kernel-package doesn't work if CONFIG_LOCALVERSION_AUTO is set

Bug #77649 reported by Theodore Ts'o
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kernel-package (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Maverick by andrew thomas

Bug Description

Binary package hint: kernel-package

If building a kernel with CONFIG_LOCALVERSION_AUTO is enabled, so that the LOCALVERSION is automatically set to be the -git revision ID, then make-kpkg will fail to create a .deb. The problem is that make-kpkg needs to know the LOCALVERSION version that will be used, and it currently doesn't check for CONFIG_LOCALVERSION_AUTO and then call scripts/setlocalversion to determine the LOCALVERSION that will be used.

Revision history for this message
Joseph Fannin (jfannin) wrote :

This still doesn't work in Gutsy:

| The UTS Release version in include/linux/utsrelease.h

| "2.6.23-ge8b8c977-dirty"

| does not match current version:

| "2.6.23-ge8b8c977-dirty-ge8b8c977-dirty-dirty"

| Please correct this.

| make: *** [install/linux-image-2.6.23-ge8b8c977-dirty-ge8b8c977-dirty-dirty] Error 2

...which seems to be related to the problem described in Debian bug #446879. That report doesn't mention it causing make-kpkg to fail, though.

Revision history for this message
Jeremy Kerr (jk-ozlabs) wrote :

Confirmed on Hardy too. The problem is in /usr/share/kernel-package/ruleset/misc/version_vars.mk - we construct a version variable as follows:

version = $(VERSION).$(PATCHLEVEL) $(SUBLEVEL)$(EXTRAVERSION)$(iatv)$(LOCALVERSION)$(GIT_VERSION)

However, $(LOCALVERSION) already includes the contents of $(GITVERSION)

Perhaps conditionally setting $(GITVERSION) based on the value of CONFIG_LOCALVERSION_AUTO would be the solution?

Daniel T Chen (crimsun)
Changed in kernel-package:
status: New → Confirmed
Revision history for this message
Joseph Fannin (jfannin) wrote :

This issue is no longer present in Karmic. I skipped Jaunty, so I can't speak for that release, but this is potentially closeable.

Revision history for this message
Jeremy Kerr (jk-ozlabs) wrote :

Looks like it's back on lucid:

dpkg-gencontrol -DArchitecture=amd64 -isp \
   -plinux-image-2.6.35-rc6-g77a63f3 -P/home/jk/build/linux-2.6/debian/linux-image-2.6.35-rc6-g77a63f3/
dpkg-gencontrol: error: package linux-image-2.6.35-rc6-g77a63f3 not in control info
make[2]: *** [debian/stamp/binary/linux-image-2.6.35-rc6-g77a63f3] Error 255

debian/control refers to the non-localversion name:

[jk@b1 linux-2.6]$ grep '^\(Source\|Package\)' debian/control
Source: linux-source-2.6.35-rc6
Package: linux-headers-2.6.35-rc6
Package: linux-source-2.6.35-rc6
Package: linux-image-2.6.35-rc6
Package: linux-image-2.6.35-rc6-dbg
Package: linux-doc-2.6.35-rc6
Package: linux-manual-2.6.35-rc6
Package: linux-uml-2.6.35-rc6

Revision history for this message
andrew thomas (atswartz) wrote :

Fixed in 12.036 available in sid

http://packages.debian.org/sid/kernel-package

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.