From: Henning Heinold Date: Sun, 20 Nov 2011 21:32:53 +0000 (+0100) Subject: package.bbclass: fix path for relative links on elf files, when moved to debugdir X-Git-Tag: yocto-4.0~39123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27cf695f1cf259f8c79214e95a0c4bc2c0779b81;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 6775fda4802..c351f26db03 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)