Package: linux-2.6 Severity: wishlist Tags: patch I am working on cross toolchain packages for Ubuntu. During work on 10.10 'maverick' release I got it working and now want to add it also to Debian archive.
To get it done I need some changes to be done in linux-2.6 packaging. None of them affects backward compatibility - they extend it a bit. This bug report is about first change - adding debian/ directory to linux-source package so it could be possible to rebuild linux kernel/headers/includes packages just from contents of linux-source binary package. I need this to get my armel-cross-toolchain-base package be able to generate linux-libc-dev package during cross compiler boostrap process (which is automated and occurs on buildd in two source packages). -- System Information: Debian Release: 6.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.37-12-generic Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
Index: linux-2.6-2.6.37/debian/rules.real =================================================================== --- linux-2.6-2.6.37.orig/debian/rules.real 2011-01-27 13:26:09.000000000 +0000 +++ linux-2.6-2.6.37/debian/rules.real 2011-01-28 13:36:06.744220002 +0000 @@ -523,11 +533,23 @@ find '$(pfull)/debian' ! -path '*/series/*' -type f -execdir bzip2 '{}' ';' -execdir chmod 644 '{}.bz2' ';' +$(MAKE_SELF) install-base +install-source: PACKAGE_NAME = linux-source-$(VERSION) +install-source: PACKAGE_DIR = debian/$(PACKAGE_NAME) install-source: DH_OPTIONS = -plinux-source-$(VERSION) install-source: $(BUILD_DIR)/linux-source-$(UPSTREAMVERSION).tar.bz2 dh_testdir dh_testroot dh_install '$<' /usr/src + find './debian' \ + -path './debian/linux-*' -prune -o \ + -path './debian/firmware-linux-free*' -prune -o \ + -path './debian/$(src_pkg_name)-*' -prune -o \ + -path './debian/build' -prune -o \ + -path './debian/files' -prune -o \ + -path './debian/stamps' -prune -o \ + -path './debian/tmp' -prune -o \ + -print | \ + cpio -pd --preserve-modification-time '$(CURDIR)/$(PACKAGE_DIR)/usr/src/linux-source-$(VERSION)' +$(MAKE_SELF) install-base install-firmware: PACKAGE_NAME = firmware-linux-free