[devscripts] 01/01: mk-build-deps: display apt resolver debug info when installing

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Jan 30 18:59:04 UTC 2016


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

terceiro pushed a commit to branch master
in repository devscripts.

commit ff1e6f45e1c787df08bf44e903c1c2e3acd51195
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Jan 30 16:58:41 2016 -0200

    mk-build-deps: display apt resolver debug info when installing
---
 debian/changelog         | 5 +++++
 scripts/mk-build-deps.pl | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 0e84469..0cc5fc2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,11 @@ devscripts (2.16.1) UNRELEASED; urgency=medium
       don't have a file called 'watch'. This removes several annoying warnings
       when uscan is run on a package that has several directories called
       'debian' in its upstream source.
+  * mk-build-deps:
+    - When installing, pass `-o Debug::pkgProblemResolver=yes` to `apt-get
+      install` so that when build dependencies can't be satisfied, you know why.
+      Otherwise it would just tell you that the *-build-deps package needs to
+      be removed and you will never know why.
 
   [ James McCoy ]
   * checkbashisms:
diff --git a/scripts/mk-build-deps.pl b/scripts/mk-build-deps.pl
index a17be2b..4f4eecc 100755
--- a/scripts/mk-build-deps.pl
+++ b/scripts/mk-build-deps.pl
@@ -124,7 +124,7 @@ my @packages;
 
 my @config_files = ('/etc/devscripts.conf', '~/.devscripts');
 my %config_vars = (
-		    'MKBUILDDEPS_TOOL' => '/usr/bin/apt-get --no-install-recommends',
+		    'MKBUILDDEPS_TOOL' => '/usr/bin/apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends',
 		    'MKBUILDDEPS_REMOVE_AFTER_INSTALL' => 'no',
 		    'MKBUILDDEPS_ROOTCMD' => '',
 		    );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list