make-kpkg kernel_headers does not produce arch/x86/include for 3.0 kernels

Bug #814902 reported by Rocko
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
kernel-package (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Building a 3.0 kernel from kernel.org with the command:

fakeroot make-kpkg --initrd --append-to-version=-generic kernel_image kernel_headers

produces deb packages for linux-image and linux-headers without reporting any errors.

However, the linux-headers package is missing the folder arch/x86/include and its subfolder asm, so modules like nvidia-current will not build using it.

The same command works correctly when building the 2.6.39.3 kernel or earlier.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: kernel-package 12.036+nmu1
ProcVersionSignature: Ubuntu 3.0-3.4-generic 3.0.0-rc5
Uname: Linux 3.0-3-generic x86_64
Architecture: amd64
Date: Sat Jul 23 08:23:56 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110531.1)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: kernel-package
UpgradeStatus: Upgraded to oneiric on 2011-07-09 (13 days ago)

Revision history for this message
Rocko (rockorequin) wrote :
Revision history for this message
e X t 7 3 (ext73) wrote :

I have the same bug under Ubuntu 11.04.

Rocko (rockorequin)
Changed in kernel-package (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Lüscher (m-luescher) wrote :

The problem seems to be located in
/usr/share/kernel-package/ruleset/targets/headers.mk:
LINK_ARCH should be set to x86 for 3.0 kernels.

Please note that the kernel package files can be obtained from another location if you add the option "overlay-dir" to make-kpkg. In this case you need to fix the corresponding headers.mk file from the overlay directory.

Revision history for this message
Rocko (rockorequin) wrote :

@lueschem: thanks, that fixes it. I changed the line in headers.mk to

ifeq ($(shell if [ $(VERSION) > 2 ] || [ $(PATCHLEVEL) -eq 6 -a $(SUBLEVEL) -gt 23 ]; then \

and I now have the arch/x86/include folder.

Revision history for this message
Nathan Rennie-Waldock (nathan-renniewaldock) wrote :

Thanks, definitely fixes it.

Revision history for this message
Alan Orth (aorth) wrote :

I can also confirm this works on Ubuntu 11.04 x86_64 when using `make-kpkg` to make headers packages for Linux kernel 3.0, either statically setting LINK_ARCH=x86, or adding a modified conditional in /usr/share/kernel-package/ruleset/targets/headers.mk.

Revision history for this message
Andrei Emeltchenko (andrei-emeltchenko-finik) wrote :

I had the same bug in Ubuntu 11.04 - the Natty Narwhal. Putting LINK_ARCH=x86 to usr/share/kernel-package/ruleset/targets/headers.mk hepled.

Revision history for this message
Rocko (rockorequin) wrote :

It is still a problem in kernel-package version 12.036+nmu1 in Oneiric.

Revision history for this message
Nathan Rennie-Waldock (nathan-renniewaldock) wrote :
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.