[elbe-devel] [PATCH] elbe: pbuilder: workaround for aptitude segmentation fault

Kurt Kanzenbach kurt at linutronix.de
Fri Mar 10 12:25:16 CET 2017


There seems to be a "known" problem with armhf and debian/sid pbuilder
changeroots. Aptitude just crashes. The workaround is just as simple:
do not use aptitude for dependency calculation.

Debian Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834990

Tested with stretch pbuilder project.

Signed-off-by: Kurt Kanzenbach <kurt at linutronix.de>
---
 elbepack/pbuilder.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/elbepack/pbuilder.py b/elbepack/pbuilder.py
index 77e7cfc..37ac36b 100644
--- a/elbepack/pbuilder.py
+++ b/elbepack/pbuilder.py
@@ -35,6 +35,10 @@ def pbuilder_write_config (builddir, xml, log):
         fp.write ('DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--no-check-gpg")\n')
         fp.write ('export ALLOWUNTRUSTED="yes"\n')
 
+    # aptitude segfaults with sid armhf changeroots, great! :)
+    # link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834990
+    if distname == 'stretch':
+        fp.write ('PBUILDERSATISFYDEPENDSCMD=/usr/lib/pbuilder/pbuilder-satisfydepends-experimental\n')
 
     fp.close()
 
-- 
2.1.4





More information about the elbe-devel mailing list