Bug 806 - Consider using PatchELF rather than chrpath for modifying the RPATH
Summary: Consider using PatchELF rather than chrpath for modifying the RPATH
Status: RESOLVED WONTFIX
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 1.4
Assignee: Joshua Lock - Disabled
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 823
  Show dependency tree
 
Reported: 2011-03-04 01:15 UTC by Joshua Lock - Disabled
Modified: 2013-04-25 10:43 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Lock - Disabled 2011-03-04 01:15:58 UTC
An OE user on #oe requested that we consider using PatchELF instead of chrpath for modifying the RPATH of binaries in relocatable.bbclass.

http://nixos.org/patchelf.html

The main reasoning seemed to be that chrpath only really works on Linux whereas PatchELF is usable on other Unices (specifically, for this user, Mac OS X).

A basic survey (and the PatchELF website is currently down) indicated that chrpath has more features but PatchELF will do all that we require at this time.
Comment 1 Joshua Lock - Disabled 2011-04-14 21:34:37 UTC
I started to write a patch for this, I'll dig it up and polish for feedback on the mailing list.
Comment 2 Joshua Lock - Disabled 2012-05-04 22:45:02 UTC
This could be problematic in that Ubuntu do not package patchelf and building our own native version introduces code comlexity in that we can't make the utility or anything it depends on relocatable until the utility has been built...
Comment 3 Richard Purdie 2013-04-25 10:43:05 UTC
chrpath is working well for us and the complexities involved in changing are substantial so closing this as something we're not going to do. For the other OSs, it would be possible to add in a different tool for them, if as and when someone could get them working.