Bug#646288: apt-get build-dep -a $arch: wrong tradeoff for the default?
Package: apt
Version: 0.8.16~exp13
Followup-For: Bug #646288
I had one issue with the previous patch with debhelper:all . Empty
InstVerIter and CandidateVersionIter. I fixed it by not applying the
FindPkg(hostArch) for :All packages (ie this call replace the Pkg
iterator with a non existant arch versoin of the package).
Attached is the fix above the patch
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=30;filename=apt-646288.patch;att=1;bug=646288
.
Best regards,
Alban
-- Package-specific info:
-- (no /etc/apt/preferences present) --
-- /etc/apt/sources.list --
# deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot amd64 NETINST Binary-1 20100322-03:31]/ squeeze main
# deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot amd64 NETINST Binary-1 20100322-03:31]/ squeeze main
deb http://ftp.uk.debian.org/debian/ experimental main non-free contrib
deb-src http://ftp.uk.debian.org/debian/ experimental main non-free contrib
deb http://ftp.fr.debian.org/debian/ unstable main non-free contrib
deb-src http://ftp.fr.debian.org/debian/ unstable main non-free contrib
deb http://ftp.fr.debian.org/debian/ wheezy main
deb-src http://ftp.fr.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# deb http://archive.canonical.com/ubuntu/ hardy partner
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.3.0-rc1test0-00391-g9454d2f (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2011.10.23
ii gnupg 1.4.11-3
ii libc6 2.13-27
ii libgcc1 1:4.6.2-16
ii libstdc++6 4.6.2-16
ii zlib1g 1:1.2.6.dfsg-2
apt recommends no packages.
Versions of packages apt suggests:
ii apt-doc <none>
ii aptitude 0.6.5-1
ii bzip2 1.0.6-1
ii dpkg-dev 1.16.2~wipmultiarch
ii lzma 9.22-2
ii python-apt 0.8.4~exp1
ii synaptic 0.75.5~exp6
-- no debconf information
=== modified file 'cmdline/apt-get.cc'
--- cmdline/apt-get.cc 2012-01-29 12:24:17 +0000
+++ cmdline/apt-get.cc 2012-02-27 22:44:55 +0000
@@ -2863,13 +2863,14 @@
if ((BADVER(Ver)) == false)
{
string forbidden;
- if (Ver->MultiArch == pkgCache::Version::None || Ver->MultiArch == pkgCache::Version::All)
+ if (Ver->MultiArch == pkgCache::Version::None)
{
if (colon == string::npos)
{
Pkg = Ver.ParentPkg().Group().FindPkg(hostArch);
}
}
+ else if (Ver->MultiArch == pkgCache::Version::All);
else if (Ver->MultiArch == pkgCache::Version::Same)
{
if (colon == string::npos)
Reply to: