Fwd: : lenny - kernel-package 11.015 for use with kernel_2.6.33
-------- Original Message --------
Subject: [PATCH]: lenny - kernel-package 11.015 for use with kernel_2.6.33
Resent-Date: Sat, 6 Mar 2010 07:52:54 +0000 (UTC)
Resent-From: debian-user@lists.debian.org
Date: Sat, 06 Mar 2010 08:51:00 +0100
From: Mart Frauenlob <mart.frauenlob@chello.at>
Reply-To: debian-user@lists.debian.org
To: debian-user@lists.debian.org
As this one:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561569
does not really work on debian lenny (although suggested on some
websites) and i had to work myself through to get it working, here's a
patch for the kernel-package 11.015, that's currently in debian lenny,
for the use with a vanilla 2.6.33 kernel.
Attached, but pasted here also to be viewable without downloading the
attachment.
--- kernel-package/ruleset/targets/common.mk 2008-11-24
18:01:32.000000000 +0100
+++ /usr/share/kernel-package/ruleset/targets/common.mk 2010-03-06
00:29:54.000000000 +0100
@@ -333,8 +333,14 @@
@echo this was built on a machine with the kernel: >> debian/buildinfo
uname -a >> debian/buildinfo
echo using the compiler: >> debian/buildinfo
- grep LINUX_COMPILER include/linux/compile.h |
- sed -e 's/.*LINUX_COMPILER "//' -e 's/"$$//' >> debian/buildinfo
+ if [ -f include/generated/compile.h ]; then
+ grep LINUX_COMPILER include/generated/compile.h |
+ sed -e 's/.*LINUX_COMPILER "//' -e 's/"$$//' >>
debian/buildinfo;
+ else
+ grep LINUX_COMPILER include/linux/compile.h |
+ sed -e 's/.*LINUX_COMPILER "//' -e 's/"$$//' >>
debian/buildinfo;
+ fi
+
ifneq ($(strip $(shell test -f version.Debian && cat version.Debian)),)
echo kernel source package used: >> debian/buildinfo
echo $(INT_STEM)-source-$(shell cat version.Debian) >> debian/buildinfo
--- kernel-package/ruleset/misc/version_vars.mk 2008-11-24
18:01:32.000000000 +0100
+++ /usr/share/kernel-package/ruleset/misc/version_vars.mk 2010-03-05
23:41:33.000000000 +0100
@@ -138,11 +138,13 @@
EXTRAV_ARG :=
endif