[oe-commits] Henning Heinold : package.bbclass: fix path for relative links on elf files , when moved to debugdir

git at git.openembedded.org git at git.openembedded.org
Mon Nov 21 16:50:52 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 27cf695f1cf259f8c79214e95a0c4bc2c0779b81
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=27cf695f1cf259f8c79214e95a0c4bc2c0779b81

Author: Henning Heinold <heinold at inf.fu-berlin.de>
Date:   Sun Nov 20 22:32:53 2011 +0100

package.bbclass: fix path for relative links on elf files, when moved to debugdir

* relative links for elf files like ../foo.so ends up in the
  debugdir with ../.debug/foo.so, this causes infinite fileaccessloops
  fix it by adding an extra "../" to the link path

Signed-off-by: Henning Heinold <heinold at inf.fu-berlin.de>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/package.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 6775fda..c351f26 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -778,6 +778,8 @@ python split_and_strip_files () {
 				if lpath and lpath != ".":
 					ftarget += lpath + debugdir + "/"
 				ftarget += lbase + debugappend
+				if lpath.startswith(".."):
+					ftarget = os.path.join("..", ftarget)
 				bb.mkdirhier(os.path.dirname(fpath))
 				#bb.note("Symlink %s -> %s" % (fpath, ftarget))
 				os.symlink(ftarget, fpath)





More information about the Openembedded-commits mailing list