Package: kernel-package
Version: 8.135
Severity: important

Hi,

I am having problems with building the official Debian kernels when
using --stem option. Steps to reproduce:

* Unpack /usr/src/kernel-source-2.6.11.tar.bz2
* Install the attached control and changelog files into debian.
* touch debian/official
* Running make-kpkg --stem linux --append-to-version -1-686 build
  then fails immediately with an error:

  The changelog says we are creating 2.6.11, but I thought the version is 
2.6.11-1-686 
  make: *** [stamp-debian] Error 1
  
The build proceeds fine if I remove the --stem linux option or touch
stamp-debian in the top-level dir. The latter "workaround" might omit
some necessary actions though. It appears that Ubuntu has been hitting
the same problem since they apply the following patch [0] to make-kpkg
(thanks to Fabio for pointing it out):

@@ -1155,7 +1163,8 @@
                   fi; )
 ifneq ($(strip $(saved_version)),)
 ifneq ($(strip $(saved_version)),$(strip $(version)))
-HAVE_VERSION_MISMATCH=YES
+HAVE_VERSION_MISMATCH := $(shell if test ! -f debian/official;\
+                              then echo YES; fi; )
 endif
 endif
 endif

As far as I can tell, this simply disables the version mismatch checking
for official kernels. I think that the proper way to do it is to compare
$(version) with $(saved_version) coming from changelog with whatever has
been passed via --append-to-version option.

[0] 
http://people.ubuntu.com/~scott/ongoing-merge/kernel-package/kernel-package_ubuntu.debdiff

Thanks and best regards,


Jurij Smakov                                        [EMAIL PROTECTED]
Key: http://www.wooyd.org/pgpkey/                   KeyID: C99E03CC

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages kernel-package depends on:
ii  dpkg                         1.10.27     Package maintenance system for Deb
ii  dpkg-dev                     1.10.27     Package building tools for Debian
ii  gcc [c-compiler]             4:3.3.5-3   The GNU C compiler
ii  gcc-2.95 [c-compiler]        1:2.95.4-22 The GNU C compiler
ii  gcc-3.0 [c-compiler]         1:3.0.4-13  The GNU C compiler.
ii  gcc-3.2 [c-compiler]         1:3.2.3-9   The GNU C compiler
ii  gcc-3.3 [c-compiler]         1:3.3.6-5   The GNU C compiler
ii  make                         3.80-9      The GNU version of the "make" util
ii  perl                         5.8.4-8     Larry Wall's Practical Extraction 

-- no debconf information
Source: linux-source-2.6.11
Section: devel
Priority: optional
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Standards-Version: 3.6.1.0
Build-Depends: Build-Depends: gcc (>= 4:3.3), debhelper (>= 4), kernel-package, 
module-init-tools, sparc-utils [sparc]

Package: linux-headers-2.6.11-1
Architecture: any
Section: devel
Priority: optional
Depends: coreutils | fileutils (>= 4.0)
Provides: linux-headers, linux-headers-2.6
Description: Common architecture-specific header files for Linux kernel 2.6.11
 This package provides the architecture-specific common kernel header files
 for Linux kernel version 2.6.11, generally used for building out-of-tree
 kernel modules. To obtain a complete set of headers you also need to install
 the linux-headers-2.6.11-1-(flavour) package, matching the flavour
 of the kernel you intend the build for. To obtain such a set for the currently
 running kernel it is sufficient to run a command
 apt-get install linux-headers-2.6.11-1-$(uname -r)
 .
 and it will be unpacked in /usr/src/linux-headers-2.6.11-1-(flavour).

Package: linux-headers-2.6.11-1-686
Architecture: i386
Section: devel
Priority: optional
Depends: coreutils | fileutils (>= 4.0), kernel-headers-2.6.11-1
Provides: linux-headers, linux-headers-2.6
Description: Linux kernel headers 2.6.11 on PPro/Celeron/PII/PIII/P4
 This package provides kernel header files for version 2.6.11 on
 Pentium Pro/Celeron/Pentium II/Pentium III/Pentium 4.
 Please read /usr/share/doc/kernel-headers-2.6.11-1/debian.README.gz for
 details

Package: linux-image-2.6.11-1-686
Architecture: i386
Section: base
Priority: optional
Provides: linux-image, linux-image-2.6
Depends: initrd-tools (>= 0.1.76), coreutils | fileutils (>= 4.0), 
module-init-tools (>= 0.9.13)
Conflicts: hotplug (<< 0.0.20040105-1)
Suggests: lilo (>= 19.1) | grub, fdutils, kernel-doc-2.6.11 | 
kernel-source-2.6.11
Description: Linux kernel image for version 2.6.11 on PPro/Celeron/PII/PIII/P4.
 This package contains the Linux kernel image for version 2.6.11 on
 Pentium Pro/Celeron/Pentium II/Pentium III/Pentium 4,
 the corresponding System.map file, and the modules built by the packager.
 It also contains scripts that try to ensure that the system is not left in
 a unbootable state after an update.
 .
 If you wish to update a bootdisk, or to use a bootloader to make
 installing and using the image easier, we suggest you install the latest
 fdutils (for formatting a floppy to be used as boot disk), and LILO, for a
 powerful bootloader. Of course, both these are optional.
 .
 Kernel image packages are generally produced using kernel-package,
 and it is suggested that you install that package if you wish to
 create a custom kernel from the sources.
linux-source-2.6.11 (2.6.11-5) UNRELEASED; urgency=low

  * New upstream release.
  * Build against kernel-tree-2.6.11-5.
  * Added amd64 support.

 -- Frederik Schüler <[EMAIL PROTECTED]>  Wed, 18 May 2005 12:44:53 +0200

Reply via email to