missing build-deps for linux-meta

Bug #805737 reported by Robert Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-meta (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi, I was following advice from herton to build a custom Natty kernel; fakeroot debian/rules clean failed because I didn't have kernel-wedge installed - it wasn't in the build dependencies for some reason. Filing this bug on their advice :)

11:42 < lifeless> herton: sure; why isn't it in the build-deps from linux-meta ?
11:42 -!- jwi [~<email address hidden>] has quit [Ping timeout: 240 seconds]
11:43 < herton> lifeless: no reason that I know, file a bug for it
11:45 < herton> the fdr clean is just needed if you are building the first time or changed something in debian.master which affects debian dir
...

11:56 < lifeless> herton: now it wants makedumpfile :)
11:56 < lifeless> herton: I presume I keep following the bouncing ball ?
11:58 < herton> lifeless: hmm just report it on the same bug should be ok, one more dep to add

summary: - kernel-wedge not in build-dep for linux-meta
+ missing build-deps for linux-meta
description: updated
Revision history for this message
Robert Collins (lifeless) wrote :

12:06 < herton> debian.master/control.stub.in:Build-Depends: debhelper (>= 5), cpio, module-init-tools, kernel-wedge (>= 2.24ubuntu1), makedumpfile [amd64 i386], device-tree-compiler [powerpc], libelf-dev, binutils-dev, rsync, libdw-dev,
                dpkg (>= 1.16.0~ubuntu4)
12:06 < herton> so probably else is going on, may be related to the first build
12:06 < herton> *something else
12:09 < herton> hmm now I see, apt-get build-deb chooses linux-meta
12:10 < herton> *build-dep
12:14 < herton> lifeless: I don't know if the apt behaviour, not used to all the debian related packaging stuff, just put on the bug report this detail about the apt-get build-dep
12:15 < herton> *don't know about, damn how hard can it be typing properly...
12:15 < herton> "apt-get build-dep linux-source-2.6.38" gets things right here
12:16 < lifeless> herton: yeah

Revision history for this message
Herton R. Krzesinski (herton) wrote :

Ok, the problem is that Robert did;

apt-get build-dep linux

and apt tried to be smart and selected linux-meta from the list of binary packages, as linux-meta source generates a linux package, so it didn't got the intended list of deps (deps from the source package 'linux', not from linux-meta)

Doing "apt-get build-dep --only-source linux" does what was intended.

Not sure this can be fixed or enhanced in some way in apt or some change to the packaging could avoid this confusion for other users.

Revision history for this message
Tim Gardner (timg-tpi) wrote :

This seems more like an apt bug because debian/control has these as build dependencies:

Build-Depends: debhelper (>= 5), cpio, module-init-tools, kernel-wedge (>= 2.24ubuntu1), makedumpfile [amd64 i386], device-tree-compiler [powerpc], libelf-dev, binutils-dev, rsync, libdw-dev, dpkg (>= 1.16.0~ubuntu4)
Build-Depends-Indep: xmlto, docbook-utils, ghostscript, transfig, bzip2, sharutils, asciidoc

Revision history for this message
Herton R. Krzesinski (herton) wrote :

Tim: yes, apt wrongly selects in this case linux-meta to grab the dependencies from, as apt chooses the linux binary package (from linux-meta) and not the source package 'linux' to get the dependencies, I think apt should give higher priority to source packages, which would avoid this problem. The dependencies on the package are fine, not sure if we have a sane workaround for this, I think not, and apt would have to be fixed.

Revision history for this message
Tim Gardner (timg-tpi) wrote :

So, I think this is not really an issue with build-deps. Its rather more likely to be an apt bug, but I'll leave that up to Robert.

Changed in linux-meta (Ubuntu):
status: New → Invalid
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 805737] Re: missing build-deps for linux-meta

On Thu, Jul 7, 2011 at 1:28 AM, Tim Gardner <email address hidden> wrote:
> So, I think this is not really an issue with build-deps. Its rather more
> likely to be an apt bug, but I'll leave that up to Robert.

Well, I've learnt now, so it won't affect me further - I only reported
so you guys can have an easier on-ramp for other folk starting work
with the Ubuntu kernel packages.

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.