[elbe-devel] [PATCH v2 02/15] elbeproject: use norecommend option for the hostsdk

Torben Hohn torben.hohn at linutronix.de
Thu May 16 09:05:23 CEST 2019


this is used, so that libc6-dev-armhf-cross which is recommended
by gcc-6-arm-linux-gnueabihf is not included into the host sysroot.
these packages are supposed to be taken from the target sysroot, and
things get very confusing if these are included.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
Reviewed-by: John Ogness <john.ogness at linutronix.de>
---
 elbepack/elbeproject.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index b5865fa28..cdfbfbdbe 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -316,14 +316,16 @@ class ElbeProject (object):
         with self.host_sysrootenv:
 
             try:
-                self.get_rpcaptcache(env=self.host_sysrootenv).update()
+                cache = self.get_rpcaptcache(env=self.host_sysrootenv,
+                                             norecommend=True)
+
+                cache.update()
             except Exception as e:
                 raise AptCacheUpdateError(e)
 
             for p in pkgs:
                 try:
-                    self.get_rpcaptcache(
-                            env=self.host_sysrootenv).mark_install(p, None)
+                    cache.mark_install(p, None)
                 except KeyError:
                     self.log.printo("No Package " + p)
                 except SystemError as e:
@@ -331,7 +333,7 @@ class ElbeProject (object):
                                     "in package %s (%s)" % (p, str(e)))
 
             try:
-                self.get_rpcaptcache(env=self.host_sysrootenv).commit()
+                cache.commit()
             except SystemError as e:
                 self.log.printo("commiting changes failed: %s" % str(e))
                 raise AptCacheCommitError(str(e))
-- 
2.11.0




More information about the elbe-devel mailing list