[oe] [oe-commits] Joshua Lock : relocatable: Class to post-process packages for relocatability

Richard Purdie rpurdie at rpsys.net
Fri Apr 2 21:23:35 UTC 2010


On Fri, 2010-04-02 at 09:40 +0200, Koen Kooi wrote:
> On 02-04-10 00:07, Tom Rini wrote:
> > On Thu, 2010-04-01 at 13:44 +0000, git version control wrote:
> >> +def rpath_replace (path, d):
> >> +    bindirs = bb.data.expand("${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${libdir} ${base_libdir} ${PREPROCESS_RELOCATE_DIRS}", d).split()
> > 
> > Is that last variable there to let recipes add non-standard locations to
> > the search path?

Yes, as long as all users append to it, it will work like that and that
use makes sense.

> > [snip]
> >> -       required_utilities = "patch help2man diffstat texi2html
> > makeinfo cvs svn bzip2 tar gzip gawk md5sum"
> >> +       required_utilities = "patch help2man diffstat texi2html
> > makeinfo cvs svn bzip2 tar gzip gawk md5sum chrpath"
> > 
> > How hard would it be to add a chrpath-native recipe and maybe treat this
> > like we used to treat qemu?  Don't see it in yum on my rhel5 box.
> > Thanks.
> 
> We already have that from our previous chrpath experiments :) See
> recipes/chrpath

As does Poky. The tricky bit isn't the recipes, its the dependencies and
making sure we don't end up with any binaries that haven't had the
relocation treatment.

Cheers,

Richard





More information about the Openembedded-devel mailing list