debian specific kernel patching/unpatching problems with 2.6.29
Hi,
applying the xenomai kernelpatch created during debian package building results to a corrupt init/Kconfig file and 'make menuconfig' fails. The problem starts with linux-2.6.29. reason: growing init/Kconfig file, see [1]. This patch [2] fixed it (tested with 2.6.28 and 2.6.29).
The second problem is unpatching the kernel:
Starting with 2.6.29 the Adoes-IPipe patches have a second hunk for init/Kconfig to remove the last line [3]. This hunk fails while reverse patching the kernel. Its conflicting with the generated Kconfig.frag-patch (see [2] too). Removing the second init/Kconfig-Hunk from the adeos-patch [3] fixed it.
tested with 2.5-rc2, but please merge to xenomai-2.4.x too. thank you. kisda
[1]
wc -l (unpatched sources from kernel.org)
764 ./linux-2.6.24.7/init/Kconfig 875 ./linux-2.6.25.20/init/Kconfig 925 ./linux-2.6.26.8/init/Kconfig 912 ./linux-2.6.27.25/init/Kconfig 937 ./linux-2.6.28.9/init/Kconfig
1067 ./linux-2.6.29.5/init/Kconfig
1156 ./linux-2.6.30.0/init/Kconfig
[2]
debian/prepare-patch.sh 2009-06-20 11:40:13.000000000 +0200 renamed from debian/prepare-patch.sh 2009-03-30 12:24:49.000000000 +0200 +1 -0
@@ -78,7 +78,7 @@ diff_addons() { echo "--- linux/init/Kconfig 1970-01-01 01:00:00.000000000 +0100" >> $patch_file echo "+++ linux-patched/init/Kconfig 2007-03-06
17:55:58.000000000 +0000" >> $patch_file
- echo "@@ -950,0 +950,$lines @@" >> $patch_file
+ echo "@@ -1400,0 +1400,$lines @@" >> $patch_file
sed -e "s,@LINUX_ARCH@,$linux_arch,g"
$xenomai_root/scripts/Kconfig.frag | sed 's/^/+/' >> $patch_file
echo " " >> $patch_file
}[3]
init/Kconfig +0 -0
@@ -73,6 +73,7 @@ config INIT_ENV_ARG_LIMIT
config LOCALVERSION
string "Local version - append to kernel release"
+ default "-ipipe"
help
Append an extra string to the end of your kernel version. This will show up when you type uname, for example.
@@ -1064,4 +1065,3 @@ source "block/Kconfig"
config PREEMPT_NOTIFIERS
bool
-
Quoted 4 lines · Stefan Kisdaroczi
config LOCALVERSION
string "Local version - append to kernel release"
+ default "-ipipe"
help
Hi, why is this hunk needed ?
Signature · 1 line
Gilles.
Quoted 10 lines · Gilles Chanteperdrix
Quoted 5 lines · Stefan Kisdaroczi
config LOCALVERSION
string "Local version - append to kernel release"
+ default "-ipipe"
helpHi, why is this hunk needed ?
this hunk is in the adeos patch, see adeos-ipipe-2.6.29.5-x86-2.4-01.patch
Quoted 11 lines · Stefan Kisdaroczi
Quoted 9 lines · Gilles Chanteperdrix
Quoted 5 lines · Stefan Kisdaroczi
config LOCALVERSION
string "Local version - append to kernel release"
+ default "-ipipe"
helpHi, why is this hunk needed ?
this hunk is in the adeos patch, see adeos-ipipe-2.6.29.5-x86-2.4-01.patch
Ok, but why do we need to remove it?
Signature · 1 line
Gilles.
Quoted 13 lines · Gilles Chanteperdrix
Quoted 11 lines · Stefan Kisdaroczi
Quoted 9 lines · Gilles Chanteperdrix
Quoted 6 lines · Stefan Kisdaroczi
config LOCALVERSION
string "Local version - append to kernel release"
+ default "-ipipe"
help
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Hi, why is this hunk needed ?
this hunk is in the adeos patch, see adeos-ipipe-2.6.29.5-x86-2.4-01.patch
Ok, but why do we need to remove it?
No need to remove it, this hunk is ok, the second hunk was the problem, this one:
Quoted 6 lines
(quoted diff) +0
-0@@ -1064,4 +1065,3 @@ source "block/Kconfig"config
PREEMPT_NOTIFIERS
bool
-
but it's already fixed by Philippe, see:
https://mail.gna.org/public/xenomai-help/2009-06/msg00096.html
Quoted 26 lines · Stefan Kisdaroczi
Hi,
applying the xenomai kernelpatch created during debian package building results to a corrupt init/Kconfig file and 'make menuconfig' fails. The problem
starts with linux-2.6.29. reason: growing init/Kconfig file, see [1]. This patch [2] fixed it (tested with 2.6.28 and 2.6.29).The second problem is unpatching the kernel:
Starting with 2.6.29 the Adoes-IPipe patches have a second hunk for init/Kconfig
to remove the last line [3]. This hunk fails while reverse patching the kernel. Its
conflicting with the generatedKconfig.frag-patch(see [2] too). Removing the secondinit/Kconfig-Hunkfrom the adeos-patch [3] fixed it.tested with 2.5-rc2, but please merge to xenomai-2.4.x too. thank you. kisda
[1]
wc -l (unpatched sources from kernel.org)764 ./linux-2.6.24.7/init/Kconfig 875 ./linux-2.6.25.20/init/Kconfig 925 ./linux-2.6.26.8/init/Kconfig 912 ./linux-2.6.27.25/init/Kconfig 937 ./linux-2.6.28.9/init/Kconfig
Quoted 6 lines
1067 ./linux-2.6.29.5/init/Kconfig
1156 ./linux-2.6.30.0/init/Kconfig[2]
diff -uNrpxenomai-2.4.91.orig/debian/prepare-patch.shxenomai-2.4.91/debian/prepare-patch.sh
Thunderbird did massive whitespace damages to your patch it seems; could you resend it attached? TIA,
Signature · 1 line
Philippe.
Quoted 4 lines · Philippe Gerum
Quoted 2 lines · Stefan Kisdaroczi
Hi,
Quoted 9 lines
Quoted 6 lines
applying the xenomai kernelpatch created during debian package building results to a corrupt init/Kconfig file and 'make menuconfig' fails. The problem starts with linux-2.6.29. reason: growing init/Kconfig file, see [1]. This patch [2] fixed it (tested with 2.6.28 and 2.6.29).
[...]
Thunderbird did massive whitespace damages to your patch it seems; could you resend it attached? TIA,
sorry, attached.
debian/prepare-patch.sh +1 -1
@@ -78,7 +78,7 @@ diff_addons() { echo "--- linux/init/Kconfig 1970-01-01 01:00:00.000000000 +0100" >> $patch_file echo "+++ linux-patched/init/Kconfig 2007-03-06 17:55:58.000000000 +0000" >> $patch_file - echo "@@ -950,0 +950,$lines @@" >> $patch_file + echo "@@ -1400,0 +1400,$lines @@" >> $patch_file sed -e "s,@LINUX_ARCH@,$linux_arch,g" $xenomai_root/scripts/Kconfig.frag | sed 's/^/+/' >> $patch_file echo " " >> $patch_file }