Bug#512271: Building out-of-tree modules fails on powerpc due to missing file crtsavres.o
Package: kernel-package
Version: 11.015
Severity: important
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The powerpc linux-headers-* packages generated by make-kpkg are missing the
file arch/powerpc/lib/crtsavres.o which is required for building kernel
modules on recent 2.6 kernels. The attached patch is a possible fix, though
it may be missing a check for the kernel version or existence of the file.
- -- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (102, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.27.10
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages kernel-package depends on:
ii binutils 2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii debianutils 2.30 Miscellaneous utilities specific t
ii dpkg 1.14.24 Debian package management system
ii dpkg-dev 1.14.24 Debian package development tools
ii file 4.26-2 Determines file type using "magic"
ii gcc [c-compiler] 4:4.3.2-2 The GNU C compiler
ii gcc-4.3 [c-compiler 4.3.2-2 The GNU C compiler
ii gettext 0.17-6 GNU Internationalization utilities
ii make 3.81-5 The GNU version of the "make" util
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
ii perl 5.10.0-19 Larry Wall's Practical Extraction
ii po-debconf 1.0.15 manage translated Debconf template
ii util-linux 2.13.1.1-1 Miscellaneous system utilities
Versions of packages kernel-package recommends:
ii bzip2 1.0.5-1 high-quality block-sorting file co
ii libc6-dev [libc-dev] 2.7-18 GNU C Library: Development Librari
Versions of packages kernel-package suggests:
ii docbook-utils 0.6.14-1.1 Convert Docbook files to other for
ii e2fsprogs 1.41.3-1 ext2/ext3/ext4 file system utiliti
ii initramfs-tools [linux-in 0.92o tools for generating an initramfs
pn libdb3-dev <none> (no description available)
ii libncurses5-dev [libncurs 5.7+20090105-1 developer's libraries and docs for
pn linux-source | kernel-sou <none> (no description available)
ii xmlto 0.0.20-3 XML-to-any converter
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFJdCx4WoGvjmrbsgARAs8sAJ95F0+Rud57LD6sjZ9KwTJCv95IyQCfVSl+
HQIVzWSvbbWYPShoxcecihw=
=2E5x
-----END PGP SIGNATURE-----
--- /usr/share/kernel-package/ruleset/targets/headers.mk.dpkg-dist 2008-12-29 13:37:07.000000000 +0100
+++ /usr/share/kernel-package/ruleset/targets/headers.mk 2008-12-29 13:37:12.000000000 +0100
@@ -99,6 +99,9 @@ debian/stamp/install/$(h_package):
ifneq ($(strip $(int_follow_symlinks_in_src)),)
-tar cfh - include | (cd $(SRCDIR); umask 000; tar xsf -)
-tar cfh - scripts | (cd $(SRCDIR); umask 000; tar xsf -)
+ ifeq ($(strip $(KERNEL_ARCH)),powerpc)
+ -tar cfh - arch/powerpc/lib/crtsavres.o | (cd $(SRCDIR); umask 000; tar xsf -)
+ endif
(cd $(SRCDIR)/include; rm -rf asm; ln -s asm-$(LINK_ARCH) asm)
find . -path './scripts/*' -prune -o -path './Documentation/*' -prune -o \
-path './debian/*' -prune -o -type f \
@@ -111,6 +114,9 @@ debian/stamp/install/$(h_package):
else
-tar cf - include | (cd $(SRCDIR); umask 000; tar xsf -)
-tar cf - scripts | (cd $(SRCDIR); umask 000; tar xsf -)
+ ifeq ($(strip $(KERNEL_ARCH)),powerpc)
+ -tar cf - arch/powerpc/lib/crtsavres.o | (cd $(SRCDIR); umask 000; tar xsf -)
+ endif
(cd $(SRCDIR)/include; rm -f asm; ln -s asm-$(LINK_ARCH) asm)
find . -path './scripts/*' -prune -o -path './Documentation/*' -prune -o \
-path './debian/*' -prune -o -type f \
Reply to: