[oe-issues] [Bug 2140] RPATH of shared libraries contains host path, causing overhead

bugzilla-daemon at tinman.treke.net bugzilla-daemon at tinman.treke.net
Thu Apr 26 15:02:45 UTC 2007


http://bugs.openembedded.org/show_bug.cgi?id=2140





------- Comment #2 from koen at dominion.kabel.utwente.nl  2007-04-26 08:02 -------
(In reply to comment #1)
build/tmp/work/i686-angstrom-linux/fontconfig-2.4.1-r0/install/fontconfig/usr/lib/libfontconfig.so.1
> | grep RPATH
>   RPATH      
> /home/leon/sandbox/e520/openembedded/build/tmp/staging/i686-angstrom-linux/lib

your RPATH points to STAGING_LIBDIR, while insane.bbclass only checks for
WORKDIR. Try:

# 
# old_revision [ba162bf6372784bad9177dc8a7fa8a66c9e665c4]
# 
# patch "classes/insane.bbclass"
#  from [f04e47e34a23d6b9c9ada6d369e9432d5f400054]
#    to [9eaa617c34be8ac56b997f6c9e464adaad5b9187]
# 
============================================================
--- classes/insane.bbclass      f04e47e34a23d6b9c9ada6d369e9432d5f400054
+++ classes/insane.bbclass      9eaa617c34be8ac56b997f6c9e464adaad5b9187
@@ -202,10 +202,11 @@ def package_qa_check_rpath(file,name,d):
     """
     import bb, os
     scanelf =
os.path.join(bb.data.getVar('STAGING_BINDIR_NATIVE',d,True),'scanelf')
-    bad_dir = bb.data.getVar('TMPDIR', d, True) + "/work"
+    bad_dir_test = bb.data.getVar('TMPDIR', d, True) + "/work"
+    bad_dir = bb.data.getVar('TMPDIR', d, True)
     if not os.path.exists(scanelf):
         bb.fatal("Can not check RPATH scanelf not found")
-    if not bad_dir in bb.data.getVar('WORKDIR', d, True):
+    if not bad_dir_test in bb.data.getVar('WORKDIR', d, True):
         bb.fatal("This class assumed that WORKDIR is ${TMPDIR}/work... Not
doing any check")

     output = os.popen("%s -Byr %s" % (scanelf,file))



-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the Openembedded-issues mailing list