[X2Go-Commits] [buildscripts] 01/01: bin/sbuild-deb-package: disable alternatives resolution in sbuild.

git-admin at x2go.org git-admin at x2go.org
Tue Aug 22 02:03:09 CEST 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit 81810c7560e2211db6831002eaaf6ecedfc074d0
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Tue Aug 22 02:02:49 2017 +0200

    bin/sbuild-deb-package: disable alternatives resolution in sbuild.
    
    This might come in handy at times, but bites back when using the apt-get
    resolver. By default, alternatives resolution is enabled and removes all
    but the first alternative for the apt-get resolver - for the aptitude
    resolver, it's disabled by default.
    
    If the first alternative is an unavailable package (for instance because
    it was removed in newer distro versions), builds will fail.
    
    Hope that apt-get is smart enough to resolve such situations correctly.
---
 bin/sbuild-deb-package | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package
index 6a31f6b..fd6605a 100755
--- a/bin/sbuild-deb-package
+++ b/bin/sbuild-deb-package
@@ -334,6 +334,10 @@ build_packages() {
 					# Additionally, at the time of writing this comment, aptitude segfaults on
 					# arm*- and stretch-based chroots with Qemu user emulation.
 					sbuild_options+=("--build-dep-resolver=apt")
+
+					# Also disable alternatives resolving, hoping that apt-get is smart enough
+					# to figure stuff out correctly.
+					sbuild_options+=("--no-resolve-alternatives")
 				else
 					sbuild_options+=("--build-dep-resolver=aptitude")
 				fi

--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list