<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>806</bug_id>
          
          <creation_ts>2011-03-04 01:15:58 +0000</creation_ts>
          <short_desc>Consider using PatchELF rather than chrpath for modifying the RPATH</short_desc>
          <delta_ts>2013-04-25 10:43:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          <blocked>823</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock - Disabled">josh</reporter>
          <assigned_to name="Joshua Lock - Disabled">josh</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12290</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-03-04 01:15:58 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13292</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-04-14 21:34:37 +0000</bug_when>
    <thetext>I started to write a patch for this, I&apos;ll dig it up and polish for feedback on the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21124</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-05-04 22:45:02 +0000</bug_when>
    <thetext>This could be problematic in that Ubuntu do not package patchelf and building our own native version introduces code comlexity in that we can&apos;t make the utility or anything it depends on relocatable until the utility has been built...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32618</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-25 10:43:05 +0000</bug_when>
    <thetext>chrpath is working well for us and the complexities involved in changing are substantial so closing this as something we&apos;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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>