Bug#606699: pbuilder-satisfydepends-aptitude can't resolve packages from experimental
Emilio Pozuelo Monfort
pochu at debian.org
Fri Dec 10 23:56:26 UTC 2010
Package: pbuilder
Version: 0.199
Severity: important
Tags: patch
Hi,
Since pbuilder-satisfydepends-experimental doesn't work well (see
bug #508403), I've tried -aptitude without much success. It doesn't
want to install packages from experimental, and just fails. Since
the sbuild aptitude resolver works for the same packages that fail
with pbuilder, I looked at it and came up with the attached patch
that solves all my problems with the aptitude resolver when using
experimental.
If you want to test it, some packages that fail are gtk+3.0/experimental
and clutter-1.0/experimental. If you need more examples to test,
let me know.
Best regards,
Emilio
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.36-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pbuilder depends on:
ii cdebootstrap 0.5.7 Bootstrap a Debian system
ii coreutils 8.5-1 GNU core utilities
ii debconf [debconf-2.0] 1.5.37 Debian configuration management sy
ii debianutils 3.4.2 Miscellaneous utilities specific t
ii debootstrap 1.0.26 Bootstrap a basic Debian system
ii wget 1.12-2.1 retrieves files from the web
Versions of packages pbuilder recommends:
ii devscripts 2.10.69 scripts to make the life of a Debi
ii fakeroot 1.14.5-1 Gives a fake root environment
ii sudo 1.7.4p4-5 Provide limited super user privile
Versions of packages pbuilder suggests:
ii cowdancer 0.62+nmu2 Copy-on-write directory tree utili
ii gdebi-core 0.6.4 Simple tool to install deb files
pn pbuilder-uml <none> (no description available)
-- debconf information:
pbuilder/rewrite: false
pbuilder/mirrorsite: http://ftp.uk.debian.org/debian/
pbuilder/nomirror:
-------------- next part --------------
--- pbuilder-satisfydepends-aptitude 2010-07-05 15:39:29.000000000 +0200
+++ pbuilder-satisfydepends-aptitude.new 2010-12-11 00:47:32.000000000 +0100
@@ -88,8 +88,8 @@ EOF
fi
$CHROOTEXEC sh -c "cat \"$BUILD_DEP_DEB_CONTROL\""
$CHROOTEXEC sh -c "dpkg-deb -b \"$BUILD_DEP_DEB_DIR/pbuilder-satisfydepends-dummy\""
- $CHROOTEXEC dpkg -i "$BUILD_DEP_DEB_DIR/pbuilder-satisfydepends-dummy.deb" || true
- $CHROOTEXEC aptitude -y --without-recommends -o APT::Install-Recommends=false "${PBUILDER_APTITUDE_CHECK_OPTS[@]}" -o Aptitude::ProblemResolver::StepScore=100 install pbuilder-satisfydepends-dummy
+ $CHROOTEXEC dpkg --force-depends --force-conflicts -i "$BUILD_DEP_DEB_DIR/pbuilder-satisfydepends-dummy.deb" || true
+ $CHROOTEXEC aptitude -y --without-recommends -o APT::Install-Recommends=false "${PBUILDER_APTITUDE_CHECK_OPTS[@]}" -o Aptitude::ProblemResolver::StepScore=100 -o "Aptitude::ProblemResolver::Hints::KeepDummy=reject pbuilder-satisfydepends-dummy :UNINST" -o Aptitude::ProblemResolver::Keep-All-Level=55000 -o Aptitude::ProblemResolver::Remove-Essential-Level=maximum install pbuilder-satisfydepends-dummy
# check whether the aptitude's resolver kept the package
if ! $CHROOTEXEC dpkg -l pbuilder-satisfydepends-dummy 2>/dev/null | grep -q ^ii; then
echo "Aptitude couldn't satisfy the build dependencies"
More information about the Pbuilder-maint
mailing list