Package: kernel-package
Version: 12.018
Severity: grave
Tags: patch

Building a linux-image package failed:

,----
| % LANG=C fakeroot make-kpkg --initrd --revision=custom.1.0 --arch=amd64 
--cross-compile=- linux-image
| [...]
| install -p    -o root -g root  -m  644 ./debian/templates.master 
/usr/src/linux-2.6.27.31/debian/linux-image-2.6.27.                             
            31-amd64/DEBIAN/templates
| dpkg-gencontrol -DArchitecture=i386 -isp             \
|                         -plinux-image-2.6.27.31-amd64 
-P/usr/src/linux-2.6.27.31/debian/linux-image-2.6.27.31-amd64/
| /usr/src/linux-2.6.27.31/debian/linux-image-2.6.27.31-amd64
| make[2]: execvp: /usr/src/linux-2.6.27.31/debian/linux-image-2.6.27.31-amd64: 
Permission denied
| make[2]: *** [debian/stamp/binary/linux-image-2.6.27.31-amd64] Error 127
| make[2]: Leaving directory `/usr/src/linux-2.6.27.31'
| make[1]: *** [debian/stamp/binary/pre-linux-image-2.6.27.31-amd64] Error 2
| make[1]: Leaving directory `/usr/src/linux-2.6.27.31'
| make: *** [linux-image] Error 2
`----

A short investigation shows that the error appears here:

,----[ /usr/share/kernel-package/ruleset/targets/image.mk ]
|       dpkg-gencontrol -DArchitecture=$(DEB_HOST_ARCH) -isp         \
|                       -p$(package) -P$(TMPTOP)/
|       $(create_md5sums)              $(TMPTOP)
`----

Unfortunately create_md5sums is not defined, because
/usr/share/kernel-package/ruleset/common/install_cmds.mk defines
create_md5sum instead.

Fixing the typo solved the problem for me:

--8<---------------cut here---------------start------------->8---
--- install_cmds.mk~    2009-08-19 18:45:09.000000000 +0200
+++ install_cmds.mk     2009-08-21 14:11:46.816165961 +0200
@@ -40,7 +40,7 @@
 install_script  = $(INSTALL) -p    -o root -g root  -m  755
 make_directory  = $(INSTALL) -p -d -o root -g root  -m  755
 
-define create_md5sum
+define create_md5sums
     create_md5sums_fn () {                                         \
         cd $$1 ;                                                   \
        find . -type f                                              \
--8<---------------cut here---------------end--------------->8---


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.30.5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kernel-package depends on:
ii  binutils              2.19.51.20090805-1 The GNU assembler, linker and bina
ii  build-essential       11.4               Informational list of build-essent
ii  debianutils           3.2.1              Miscellaneous utilities specific t
ii  file                  5.03-1             Determines file type using "magic"
ii  gettext               0.17-7             GNU Internationalization utilities
ii  make                  3.81-6             An utility for Directing compilati
ii  module-init-tools     3.10-2             tools for managing Linux kernel mo
ii  po-debconf            1.0.16             tool for managing templates file t
ii  util-linux            2.16-3             Miscellaneous system utilities

Versions of packages kernel-package recommends:
ii  cpio                          2.10-1     GNU cpio -- a program to manage ar

Versions of packages kernel-package suggests:
ii  bzip2                  1.0.5-3           high-quality block-sorting file co
pn  docbook-utils          <none>            (no description available)
ii  e2fsprogs              1.41.8-2          ext2/ext3/ext4 file system utiliti
ii  initramfs-tools [linux 0.93.4            tools for generating an initramfs
pn  libdb3-dev             <none>            (no description available)
ii  libncurses5-dev [libnc 5.7+20090803-1+b1 developer's libraries and docs for
pn  linux-source | kernel- <none>            (no description available)
pn  xmlto                  <none>            (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to