[elbe-devel] [PATCH 3/3] rpcaptcache: make mark_install_devpkgs() also mark -dbgsym packages

Torben Hohn torben.hohn at linutronix.de
Tue Jun 18 13:47:29 CEST 2019


dbgsym packages contain the debug symbols, which we really
want in the sysroot.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/rpcaptcache.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/elbepack/rpcaptcache.py b/elbepack/rpcaptcache.py
index d4f4a7949..71358767c 100644
--- a/elbepack/rpcaptcache.py
+++ b/elbepack/rpcaptcache.py
@@ -132,6 +132,14 @@ class RPCAPTCache(InChRootObject):
         for p in ignore_dev_pkgs:
             self.cache[p].mark_delete()
 
+        dbgsym_list = [
+                s.name + '-dbgsym' for s in self.cache if (
+                    s.is_installed or s.marked_install)]
+
+        for p in dbgsym_list:
+            if p in self.cache:
+                self.cache[p].mark_install()
+
     def cleanup(self, exclude_pkgs):
         for p in self.cache:
             if p.is_installed and not \
-- 
2.11.0




More information about the elbe-devel mailing list