[elbe-devel] [PATCH] elbeproject pbuilder: add gnupg to extrapackages installed into pbuilder

Torben Hohn torben.hohn at linutronix.de
Thu May 3 15:56:54 CEST 2018


when using a pbuilder for a stretch target, we see this message:

--------------------------------------------------------------------
I: user script //tmp/hooks/D10elbe_apt_sources starting
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
--------------------------------------------------------------------

The result is that apt-key does not install the project repo key.
That makes builds which depend on packages build earlier fail.

Its not yet clear, if this also happens on elbe stable, and whether
<norecommend /> is involved (the reproducer has it, and is a stretch build)

Fix it by adding "gnupg" to  --extrapackages.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/elbeproject.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 9c1692eb..690a289d 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -630,7 +630,7 @@ class ElbeProject (object):
 
         # Run pbuilder --create
         self.log.do('pbuilder --create --configfile "%s" --aptconfdir "%s" '
-                    '--extrapackages git' % (
+                    '--extrapackages "git gnupg"' % (
                         os.path.join(self.builddir, "pbuilderrc"),
                         os.path.join(self.builddir, "aptconfdir")))
 
-- 
2.11.0




More information about the elbe-devel mailing list