[elbe-devel] [PATCH v3 1/1] Include /lib in sysroot even on buster

bage at linutronix.de bage at linutronix.de
Sat Dec 7 00:11:06 CET 2019


From: Bastian Germann <bage at linutronix.de>

Include /lib in the sysroot file list to have the symlink available for
buster targets.

Closes #249.

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 elbepack/elbeproject.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 49b8f6460..9ebb1ceb2 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -298,6 +298,10 @@ class ElbeProject (object):
         os.chdir(self.sysrootpath)
         for p in paths:
             do('find -path "%s" >> %s' % (p, sysrootfilelist))
+        # include /lib if it is a symlink (buster and later)
+        if os.path.islink(self.sysrootpath + '/lib'):
+            with open(sysrootfilelist, 'a') as filelist_fd:
+                filelist_fd.write('./lib')
 
         do("tar cfJ %s/sysroot.tar.xz -C %s -T %s" %
            (self.builddir, self.sysrootpath, sysrootfilelist))
-- 
2.20.1




More information about the elbe-devel mailing list