apt-get build-dep doesn't install all the necessary packages

Bug #378680 reported by Tamas Szerb
8
This bug affects 1 person
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.5=2.5.2-2ubuntu4.1

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-Indep: libhtml-tree-perl, texlive-latex-recommended, texinfo, emacs22, debiandoc-sgml, sharutils

and it silently discards the libbluetooth-dev package on amd64 and i386 (linux) arch.

Poking around, I found that apt parses correctly [debSrcRecordParser::BuildDepends(vector<pkgSrcRecords::Parser::BuildDepRec> &BuildDeps, bool ArchOnly) ],
but fails in cmdline/apt-get.cc at

<code>
         bool hasAlternatives = (((*D).Op & pkgCache::Dep::Or) == pkgCache::Dep::Or);

         if (skipAlternatives == true)
         {
            if (!hasAlternatives)
               skipAlternatives = false; { // end of or group
                  std::cout << "MOO7: skipping: " << (*D).Package << " " << (*D).Version << std::endl;
                  std::cout << "MOO7: skipping: info: " << (*D).Op << std::endl;
                  continue;
               }
         }
</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.

Revision history for this message
Vish (vish) wrote :

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.

Changed in apt (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apt (Ubuntu) because there has been no activity for 60 days.]

Changed in apt (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.