From fc744a789d8b770d7867919a97efd9c89a0d9977 Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Sun, 20 Nov 2011 22:32:53 +0100 Subject: 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 (From OE-Core rev: 27cf695f1cf259f8c79214e95a0c4bc2c0779b81) Signed-off-by: Henning Heinold Signed-off-by: Richard Purdie --- meta/classes/package.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/classes/package.bbclass') diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 6775fda480..c351f26db0 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) -- cgit v1.2.3-54-g00ecf