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

Torben Hohn torben.hohn at linutronix.de
Fri Mar 10 13:20:42 CET 2017


On Fri, Mar 10, 2017 at 12:25:16PM +0100, Kurt Kanzenbach wrote:
> 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

I would really like to avoid using experimental dependency calculation.
However, here are some more references to bug ids:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832710
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811087

> 
> 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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Mit freundlichen Grüßen
Torben Hohn

Linutronix GmbH

Standort: Bremen

Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Firmensitz / Registered Office: D-88690 Uhldingen, Bahnhofstr. 3
Registergericht / Local District Court: Amtsgericht Freiburg i. Br.; HRB
Nr. / Trade register no.: 700 806

Geschäftsführer / Managing Directors: Heinz Egger, Thomas Gleixner

Eine Bitte von uns: Sollten Sie diese E-Mail irrtümlich erhalten haben,
benachrichtigen Sie uns in diesem Falle bitte sobald wie es Ihnen
möglich ist, durch Antwort-Mail. Vielen Dank!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20170310/95905c8f/attachment.sig>


More information about the elbe-devel mailing list