apt-get build-dep doesn't install all the necessary packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Binary package hint: apt
Hello,
I tried on hardy:
#sudo apt-get build-dep -o Debug::BuildDeps=1 python2.
where python has in control file and cache:
Build-Depends: debhelper (>= 5), autoconf, automake1.9, libreadline5-dev, libncursesw5-dev (>= 5.3), tk8.4-dev, libdb4.6-dev [amd64 i386 lpia], libdb4.2-dev [!amd64 !i386 !lpia], zlib1g-dev, libgdbm-dev, blt-dev (>= 2.4z), libssl-dev, sharutils, libbz2-dev, libbluetooth-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], locales, libsqlite3-dev, libffi4-dev (>= 4.1.2), mime-support, libgpmg1 [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], netbase, lsb-release, bzip2, netbase, gcc (>= 4:4.2) | gcc-4.1 (>= 4.1.2-4) [alpha powerpc ppc64 s390 sparc]
Build-Depends-
and it silently discards the libbluetooth-dev package on amd64 and i386 (linux) arch.
Poking around, I found that apt parses correctly [debSrcRecordPa
but fails in cmdline/apt-get.cc at
<code>
bool hasAlternatives = (((*D).Op & pkgCache::Dep::Or) == pkgCache::Dep::Or);
if (skipAlternatives == true)
{
if (!hasAlternatives)
}
}
</code>
when it iterates over the all Build-Depends and Build-Indep-Depends packages.
The output of this modified C++ code for better understanding:
[..]
MOO4 Install: libbluetooth-dev
MOO7: skipping: libbluetooth-dev
MOO7: skipping: info: 0
[..]
, later the dpkg-checkbuilddeps will fail when I try to build this python. In this case, by using apt-get build-dep the python's build dependency cannot be satisfied nor built.
Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.