Bug#583914: apt: "apt-get build-dep" does not handle "Provides:" correctly
Package: apt
Version: 0.7.25.3
Severity: normal
I am trying to install the build dependencies for Thunar. Now, Thunar
build-depends on libfam-dev, which in turn depends on libfam0. However,
I have libgamin0 installed, which replaces, conflicts with, and provides
libfam0. So, I will want to install libgamin-dev, which replaces,
conflicts with, and provides libfam-dev. I think apt-get should be able
to figure this out and install libgamin-dev automatically (or possibly
after prompting).
Actual behavior:
$ apt-get build-dep thunar
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have unmet dependencies:
libfam-dev: Depends: libfam0 (= 2.7.0-16.1)
E: Build-dependencies for thunar could not be satisfied.
It would be nice to at least know *why* libfam0 cannot be installed.
Now, this is what happens after I run "apt-get install libgamin-dev"
manually:
$ apt-get build-dep thunar
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libgamin-dev
0 upgraded, 0 newly installed, 1 to remove and 8 not upgraded.
After this operation, 168kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 83493 files and directories currently installed.)
Removing libgamin-dev ...
I don't get at all why apt-get thinks I want libgamin-dev removed.
Especially since at this point it doesn't even try to install libfam-dev
in its place. In other words, apt-get is now actually *removing* a
build dependency of Thunar.
John Lindgren
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
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::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
-- (no /etc/apt/preferences present) --
-- /etc/apt/sources.list --
deb http://ftp.gtlib.gatech.edu/debian/ squeeze main non-free contrib
deb http://ftp.gtlib.gatech.edu/debian/ lenny main non-free contrib
deb-src http://ftp.gtlib.gatech.edu/debian/ squeeze main non-free contrib
deb-src http://ftp.gtlib.gatech.edu/debian/ lenny main non-free contrib
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://www.debian-multimedia.org squeeze main
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2009.01.31 GnuPG archive keys of the Debian a
ii libc6 2.10.2-9 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.4-1 GCC support library
ii libstdc++6 4.4.4-1 The GNU Standard C++ Library v3
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none> (no description available)
ii aptitude 0.6.1.5-3 terminal-based package manager (te
ii bzip2 1.0.5-4 high-quality block-sorting file co
ii dpkg-dev 1.15.7.2 Debian package development tools
ii lzma 4.43-14 Compression method of 7z format in
pn python-apt <none> (no description available)
-- no debconf information
Reply to: