Bug#611382: linux-2.6: Provide all packaging instructions in linux-source package
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.0 + +++ linux-2.6-2.6.37/debian/rules.real 2011-01-28 13:36:06.744220002 + @@ -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
Bug#611382: linux-2.6: Provide all packaging instructions in linux-source package
On Fri, Jan 28, 2011 at 05:03:12PM +, Marcin Juszkiewicz wrote: 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. The upstream kernel supports make deb-pkg to build packages. For everything else use the _source_ 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). The linux-libc-dev package exists in the target architecture. Use this package. Bastian -- Military secrets are the most fleeting of all. -- Spock, The Enterprise Incident, stardate 5027.4 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#611382: linux-2.6: Provide all packaging instructions in linux-source package
Dnia piątek, 28 stycznia 2011 o 18:55:33 Bastian Blank napisał(a): On Fri, Jan 28, 2011 at 05:03:12PM +, Marcin Juszkiewicz wrote: 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. The upstream kernel supports make deb-pkg to build packages. For everything else use the _source_ package. I do not want make deb-pkg which will build kernel which I will ignore as I need only linux-libc-dev for target architecture (which != build architecture). 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). The linux-libc-dev package exists in the target architecture. Use this package. Source package in Debian can not depend on packages for other architectures and there is no linux-libc-dev-armel-cross in amd64/i386 archive. It can not also depend on source packages. Unless something changed in last months... Regards, -- JID: h...@jabber.org Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#611382: linux-2.6: Provide all packaging instructions in linux-source package
On Fri, Jan 28, 2011 at 09:22:54PM +0100, Marcin Juszkiewicz wrote: Dnia piątek, 28 stycznia 2011 o 18:55:33 Bastian Blank napisał(a): On Fri, Jan 28, 2011 at 05:03:12PM +, Marcin Juszkiewicz wrote: 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. The upstream kernel supports make deb-pkg to build packages. For everything else use the _source_ package. I do not want make deb-pkg which will build kernel which I will ignore as I need only linux-libc-dev for target architecture (which != build architecture). 2.6.38-rcX make deb-pkg generates the linux-libc-dev for specific arch. if not report bugs on linux-kbuild mailinglist. thanks. -- maks -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org