Bug 806

Summary: Consider using PatchELF rather than chrpath for modifying the RPATH
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Joshua Lock - Disabled <josh>
Component: meta-yoctoAssignee: Joshua Lock - Disabled <josh>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: Low CC: poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: unspecified   
Target Milestone: 1.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 823    

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.