[poky] [PATCH] externalsrc: Change absolute symlinks to relative ones

Erdmann, Jens Jens.Erdmann at auerswald.de
Wed Apr 4 07:46:00 PDT 2018


In 3eee8e99 sstate got changed to refuse absolute symlinks. Externalsrc
creates absolute symlinks for oe-logs and oe-workdir which causes
errors at do_populate_sysroot.
Changing symlinks to relative paths will make externalsrc comply with sstate
changesi and will avoid those errors.

Signed-off-by Jens Erdmann <jens.erdmann at auerswald.de>
---
 meta/classes/externalsrc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 3f1d396..1f56495 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -136,7 +136,7 @@ python externalsrc_configure_prefunc() {
     for symlink in symlinks:
         symsplit = symlink.split(':', 1)
         lnkfile = os.path.join(s_dir, symsplit[0])
-        target = d.expand(symsplit[1])
+        target = os.path.relpath(d.expand(symsplit[1]), s_dir)
         if len(symsplit) > 1:
             if os.path.islink(lnkfile):
                 # Link already exists, leave it if it points to the right location already
--
2.7.4

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20180404/84dd0c13/attachment.html>


More information about the poky mailing list