[OE-core] [PATCH] patchelf: Add patchelf recipe

Richard Purdie richard.purdie at linuxfoundation.org
Wed Aug 27 15:50:57 UTC 2014


On Wed, 2014-08-27 at 08:08 -0700, Khem Raj wrote:
> On Wed, Aug 27, 2014 at 7:50 AM, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
> > This is useful since it allows us to edit the RPATH and interpreter fields
> > in ELF binaries. This is potentially particularly useful in improving the way
> > we can use the SDK and also potentially making native binaries more relocatable.
> >
> 
> Long ago I had a patch series to replace chrpath with patchelf see
> http://git.openembedded.org/openembedded-core-contrib/log/?h=kraj/patchelf
> 
> can that be considered now ?

The issue is one of dependencies. We need chrpath/patchelf to relocate
things like {autoconf|automake|pkgconfig}-native. Native
patchelf/chrpath depend on those things to build so if we don't have it
in ASSUME_PROVIDED, we get circular dependencies.

chrpath is widely available in most distros. Unfortunately patchelf is
not. We therefore can't easily put patchelf-native into
ASSUME_PROVIDED :(

So the reason the above didn't merge hasn't really changed, much as I'd
also wish it had.

This does not stop us using patchelf for other things though (and I
believe we should).

Cheers,

Richard




More information about the Openembedded-core mailing list