[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#695546: apt: can't download source package when same-name binary pkg from different-name src pkg exists



Package: apt
Version: 0.9.7.6
Severity: important

I’ve tried, and failed, to use apt to download a source package,
and had to resort using dget with an URI from packages.d.o:

root@ara3:~ # apt-get -d source konsole
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'kdebase' as source package instead of 'konsole'
E: Unable to find a source package for kdebase
100|root@ara3:~ # apt-cache showsrc konsole
Package: konsole
Binary: konsole, konsole-dbg
Version: 4:4.8.4-1
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uploaders: José Manuel Santamaría Lema <panfaust@gmail.com>, Eshat Cakar <info@eshat.de>, Modestas Vainius <modax@debian.org>
Build-Depends: kde-sc-dev-latest (>= 4:4.8.4), cmake, debhelper (>= 7.3.16), pkg-kde-tools (>= 0.12), kdelibs5-dev (>= 4:4.8), libkonq5-dev (>= 4:4.8), libphonon-dev (>= 4:4.3.0), libxkbfile-dev
Architecture: any
Standards-Version: 3.9.3
Format: 3.0 (quilt)
Files:
 91d938650ad3e31eeaf6f213e27eb6e9 1521 konsole_4.8.4-1.dsc
 4a6e9477d3a2104853b2faceb7c2e352 441968 konsole_4.8.4.orig.tar.xz
 496b66e5aac1130aa818a8b5ddfd5fca 5035 konsole_4.8.4-1.debian.tar.gz
Vcs-Browser: http://git.debian.org/?p=pkg-kde/kde-sc/konsole.git
Vcs-Git: git://git.debian.org/pkg-kde/kde-sc/konsole.git
Checksums-Sha1:
 f7f9e88fe71f72c4fea52ce1f39682cf0134079c 1521 konsole_4.8.4-1.dsc
 a5900aa089a28fcaa69b45cfc7b46f556a38bd11 441968 konsole_4.8.4.orig.tar.xz
 853fe0106e620c29d78c2df7af72e93ca6ed0cab 5035 konsole_4.8.4-1.debian.tar.gz
Checksums-Sha256:
 efdb130d7e40906c0ba3fd834bcc14fde4cb2b7ed10dc7988e9e578f7fd89f02 1521 konsole_4.8.4-1.dsc
 85001aefb81c6455562847e15b99fba28aa40ffa6df8fead8ba6c826b096cf81 441968 konsole_4.8.4.orig.tar.xz
 0eb029fb16d0fdf5026054f9c348d9f435a8cd0ab759a73a7deec327e71c24a6 5035 konsole_4.8.4-1.debian.tar.gz
Homepage: http://www.kde.org/
Package-List:
 konsole deb kde optional
 konsole-dbg deb debug extra
Directory: pool/main/k/konsole
Priority: source
Section: kde

Package: konsole
Binary: konsole, konsole-dbg
Version: 4:4.8.4-2
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uploaders: José Manuel Santamaría Lema <panfaust@gmail.com>, Eshat Cakar <info@eshat.de>, Modestas Vainius <modax@debian.org>
Build-Depends: kde-sc-dev-latest (>= 4:4.8.4), cmake, debhelper (>= 7.3.16), pkg-kde-tools (>= 0.12), kdelibs5-dev (>= 4:4.8), libkonq5-dev (>= 4:4.8), libphonon-dev (>= 4:4.3.0), libxkbfile-dev
Architecture: any
Standards-Version: 3.9.3
Format: 3.0 (quilt)
Files:
 369a4da81a9fb74e535ec42edfdafc5d 1513 konsole_4.8.4-2.dsc
 4a6e9477d3a2104853b2faceb7c2e352 441968 konsole_4.8.4.orig.tar.xz
 b578901ecc70e5db9efc84fb1bb0f826 5759 konsole_4.8.4-2.debian.tar.gz
Vcs-Browser: http://git.debian.org/?p=pkg-kde/kde-sc/konsole.git
Vcs-Git: git://git.debian.org/pkg-kde/kde-sc/konsole.git
Checksums-Sha1:
 33c9719a9fbae6f863262076ae17a1aa6985478f 1513 konsole_4.8.4-2.dsc
 a5900aa089a28fcaa69b45cfc7b46f556a38bd11 441968 konsole_4.8.4.orig.tar.xz
 e68601560718d6a6416d61f9fee05f01b9d93978 5759 konsole_4.8.4-2.debian.tar.gz
Checksums-Sha256:
 c50934b3def4856f3b16adf9ce46e14c2220d6fbf0f187e04e33cee73b4c4058 1513 konsole_4.8.4-2.dsc
 85001aefb81c6455562847e15b99fba28aa40ffa6df8fead8ba6c826b096cf81 441968 konsole_4.8.4.orig.tar.xz
 7cc699b1a540d0d92ae44e0b7e150aed1e19699e845fee15c7757320bf48be85 5759 konsole_4.8.4-2.debian.tar.gz
Homepage: http://www.kde.org/
Package-List:
 konsole deb kde optional
 konsole-dbg deb debug extra
Directory: pool/main/k/konsole
Priority: source
Section: kde

root@ara3:~ # apt-get -d source konsole=4:4.8.4-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'kdebase' as source package instead of 'konsole'
E: Ignore unavailable version '4:4.8.4-2' of package 'konsole'
E: Unable to find a source package for kdebase
100|root@ara3:~ # apt-get -d source src:konsole=4:4.8.4-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Ignore unavailable version '4:4.8.4-2' of package 'src:konsole'
E: Unable to find a source package for src:konsole

I don’t know why apt insists on overriding me telling it that
I want a *source* package. The root cause here is probably
that the archive knows of a binary package named konsole,
which is made from a source package named kdebase:

root@ara3:~ # apt-cache policy konsole
konsole:
  Installed: (none)
  Candidate: 4:3.5.9.dfsg.1-6
  Version table:
     4:3.5.9.dfsg.1-6 0
        500 http://ftp.debian-ports.org/debian/ unstable/main m68k Packages
root@ara3:~ # apt-cache show konsole=4:3.5.9.dfsg.1-6 | fgrep Source
Source: kdebase

But I don’t want the source for that! I want the current
source so I can build it.

I think the selection mechanism is mapping the binary→source name
too early. I should be able to get what I want from explicitly
specifying a version. I should also be able to get what I want
from prefixing “src:” (even without telling it a version number,
but, as you can see, even with one *and* src: it doesn’t work).

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "m68k";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "0";
APT::Install-Suggests "0";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Architectures "";
APT::Architectures:: "m68k";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "1";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "2";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-9n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "3";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-9";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "4";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "5";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-9";
APT::Compressor::lzma::UncompressArg "";
APT::Compressor::lzma::UncompressArg:: "--format=lzma";
APT::Compressor::lzma::UncompressArg:: "-d";
APT::Compressor::::Name "";
APT::Compressor::::Extension ".";
APT::Compressor::::Binary "";
APT::Compressor::::Cost "100";
APT::Compressor::::CompressArg "";
APT::Compressor::::CompressArg:: "-9";
APT::Compressor::::UncompressArg "";
APT::Compressor::::UncompressArg:: "-d";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "/var/cache/pbuilder/aptcache";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::solvers "";
Dir::Bin::solvers:: "/usr/lib/apt/solvers";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Bin::bzip2 "/bin/bzip2";
Dir::Bin::xz "/usr/bin/xz";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom/";
Acquire::PDiffs "false";
Acquire::CompressionTypes "";
Acquire::CompressionTypes::Order "";
Acquire::CompressionTypes::Order:: "gz";
Acquire::CompressionTypes::Order:: "lzma";
Acquire::http "";
Acquire::http::Pipeline-Depth "0";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
debug "";
debug::pkgproblemresolver "true";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- /etc/apt/preferences --

Package: glib-networking-common
Pin: version 2.32.3-1~m68k.1
Pin-Priority: 1001


-- /etc/apt/sources.list --

# Debian/m68k /etc/apt/sources.list for regular use
#-

# Debian/m68k binaries come from debian-ports or one of its mirrors
deb http://ftp.debian-ports.org/debian unstable main
deb http://ftp.debian-ports.org/debian unreleased main
#deb http://ftp.debian-ports.org/debian experimental main

# Debian arch:all binaries can ingeniously come from a normal debian
# mirror, when dpo is not updating timely
#deb [arch=all] http://ftp.de.debian.org/debian unstable main

# Debian/m68k unstable/experimental source comes from a normal debian mirror
deb-src http://ftp.de.debian.org/debian unstable main
#deb-src http://ftp.de.debian.org/debian experimental main

# Debian/m68k unreleased source comes from debian-ports mirrors
deb-src http://ftp.debian-ports.org/debian unreleased main

# Debian-Ports incoming source is not password protected
deb-src http://incoming.debian-ports.org/buildd unstable main
#deb-src http://incoming.debian-ports.org/buildd experimental main

# If really needed: Allow etch-m68k to satisfy dependencies
#deb http://archive.debian.org/debian etch-m68k main contrib non-free
#deb-src http://archive.debian.org/debian etch-m68k main contrib non-free

### All following repositories need the 'wtf-debian-keyring' package
### installed (0x405422DD which is signed by 0xE99007E0 on DD keyring)

# Debian unstable + Debian-Ports unreleased + src:wtf-debian-keyring
# Only official Debian packages (and the keyring), long-lived, rarely
# updated; contains everything needed for debootstrap; edos-debcheck
# is used to keep all packages from this repository installable
deb http://www.freewrt.org/~tg/dp sid main
#deb-src deb http://www.freewrt.org/~tg/dp sid main

# Debian unstable + Debian-Ports unreleased (short-lived: just built
# and not on either dpo or the above one yet)
deb http://www.freewrt.org/~tg/dp m68k main
#deb-src http://www.freewrt.org/~tg/dp m68k main

# Mostly when we use older (source or binary) packages from proper Debian
deb http://www.freewrt.org/~tg/dp hacks clean
#deb-src http://www.freewrt.org/~tg/dp hacks clean

# Anything goes, even hex-edited .deb files and cross-built packages
deb http://www.freewrt.org/~tg/dp hacks dirty
#deb-src http://www.freewrt.org/~tg/dp hacks dirty

# mirabilos' private packages (not official Debian)
deb http://www.freewrt.org/~tg/debs sid wtf
#deb-src http://www.freewrt.org/~tg/debs sid wtf

-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: m68k

Kernel: Linux 3.2.0-4-atari
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/mksh-static

Versions of packages apt depends on:
ii  debian-archive-keyring  2012.4
ii  gnupg                   1.4.12-6
ii  libapt-pkg4.12          0.9.7.6
ii  libc6                   2.13-37+m68k.1
ii  libgcc2                 4.7.2-4
ii  libstdc++6              4.7.2-4

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc                      <none>
pn  aptitude | synaptic | wajig  <none>
ii  dpkg-dev                     1.16.9
pn  python-apt                   <none>
ii  xz-utils                     5.1.1alpha+20120614-2

-- no debconf information


Reply to: