[oe] RFC: strip "-native" from $S for native packages automatically (bug 1856)

Rolf Leggewie no2spam at nospam.arcornews.de
Fri Jan 25 11:33:39 UTC 2008


Hi,

I elicit your comments on bug 1856, especially comment3.

The bug is about stripping "-native" automatically from the S variable
for native packages since it will hardly ever occur that a tar ball will
unpack to $PN-native-$PV/  This would save us resetting $S manually for
native packages all the time.  Koen suggested the fix to go into
native.bbclass. When I revisited the bug today, I thought this must be
as easy to fix as simply adding

  export S=`echo $S|sed s/\-native\-/\-/`

to native.bbclass which is what I propose.  This might still have some
issues that I so far overlooked such as the need to further escape
special characters or something else, but the general idea should be
clear.  Please be aware that I have not yet tested this.  Any comments
as to why this should or should not work?

If there is no opposition, I'll make some simple tests to verify correct
functioning of the code before finally committing.

Regards

Rolf


PS: http://bugs.openembedded.org/show_bug.cgi?id=1856#c3





More information about the Openembedded-devel mailing list