Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75386 - ac-sources-2.6.9-r16 fails to emerge, a patch seems not to apply correctly
Summary: ac-sources-2.6.9-r16 fails to emerge, a patch seems not to apply correctly
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-22 17:09 UTC by Timo
Modified: 2005-01-24 14:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo 2004-12-22 17:09:52 UTC
see the above url, it's a posting from me.
Currently I am using sys-kernel/ac-sources-2.6.9-r12 with no problems.

I am pasting it here again:

....
>>> md5 src_uri ;-) linux-2.6.9.tar.bz2 
 >>> md5 src_uri ;-) patch-2.6.9-ac16.bz2 
 >>> Preparing to unpack ... 
 >>> Unpacking source... 
 >>> Unpacking linux-2.6.9.tar.bz2 to /var/tmp/portage/ac-sources-2.6.9-r16/work 
  * Applying patch-2.6.9-ac16.patch (-p0+)...                                    [ ok ] 
  * Applying ac-sources-2.6.9.vma.patch (-p0+)...                                [ !! ] 
 
  * Please attach /var/tmp/portage/ac-sources-2.6.9-r16/temp/ac-sources-2.6.9.vma.err to any bug you may post. 
 
 !!! ERROR: sys-kernel/ac-sources-2.6.9-r16 failed. 
 !!! Function unipatch, Line 542, Exitcode 0 
 !!! Unable to dry-run patch. 
 !!! If you need support, post the topmost build error, NOT this status message.

And here is the contents of the mentioned file:
Attempting Dry-run: 
 cmd: patch -p0 --dry-run -f < /var/tmp/portage/ac-sources-2.6.9-r16/work/patches/2/ac-sources-2.6.9.vma.patch 
 ======================================================= 
 can't find file to patch at input line 54 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |# This is a BitKeeper generated diff -Nru style patch. 
 |# 
 |# ChangeSet 
 |#   2004/11/25 16:00:28-08:00 nanhai.zou@intel.com 
 |#   [PATCH] ia64/x86_64/s390 overlapping vma fix 
 |#    
 |#   IA64 is also vulnerable to the huge-vma-in-executable bug in 64 bit elf 
 |#   support, it just insert a vma of zero page without checking overlap, so user 
 |#   can construct a elf with section begin from 0x0 to trigger this BUGON(). 
 |#    
 |#   However, I think it's safe to check overlap before we actually insert a vma 
 |#   into vma list.  And I also feel check vma overlap everywhere is unnecessary, 
 |#   because invert_vm_struct will check it again, so the check is duplicated. 
 |#   It's better to have invert_vm_struct return a value then let caller check if 
 |#   it successes.  Here is a patch against 2.6.10.rc2-mm3 I have tested it on 
 |#   i386, x86_64 and ia64 machines. 
 |#    
 |#   Signed-off-by: Tony Luck <tony.luck@intel.com> 
 |#   Signed-off-by: Zou Nan hai <Nanhai.zou@intel.com> 
 |#   Signed-off-by: Andrew Morton <akpm@osdl.org> 
 |#   Signed-off-by: Linus Torvalds <torvalds@osdl.org> 
 |# 
 |# arch/ia64/ia32/binfmt_elf32.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +21 -5 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/ia64/mm/init.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +14 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/s390/kernel/compat_exec.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +6 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/x86_64/ia32/ia32_binfmt.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +6 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# fs/exec.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +3 -6 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# include/linux/mm.h 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +1 -1 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# mm/mmap.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +3 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |diff -Nru a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c 
 |--- a/arch/ia64/ia32/binfmt_elf32.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/ia64/ia32/binfmt_elf32.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 5 out of 5 hunks ignored 
 can't find file to patch at input line 118 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c 
 |--- a/arch/ia64/mm/init.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/ia64/mm/init.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 151 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/s390/kernel/compat_exec.c b/arch/s390/kernel/compat_exec.c 
 |--- a/arch/s390/kernel/compat_exec.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/s390/kernel/compat_exec.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 176 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/x86_64/ia32/ia32_binfmt.c b/arch/x86_64/ia32/ia32_binfmt.c 
 |--- a/arch/x86_64/ia32/ia32_binfmt.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/x86_64/ia32/ia32_binfmt.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 201 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/fs/exec.c b/fs/exec.c 
 |--- a/fs/exec.c   2004-12-03 12:01:20 -08:00 
 |+++ b/fs/exec.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 3 out of 3 hunks ignored 
 can't find file to patch at input line 237 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/include/linux/mm.h b/include/linux/mm.h 
 |--- a/include/linux/mm.h   2004-12-03 12:01:20 -08:00 
 |+++ b/include/linux/mm.h   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 1 out of 1 hunk ignored 
 can't find file to patch at input line 249 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/mm/mmap.c b/mm/mmap.c 
 |--- a/mm/mmap.c   2004-12-03 12:01:20 -08:00 
 |+++ b/mm/mmap.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 Attempting Dry-run: 
 cmd: patch -p1 --dry-run -f < /var/tmp/portage/ac-sources-2.6.9-r16/work/patches/2/ac-sources-2.6.9.vma.patch 
 ======================================================= 
 patching file arch/ia64/ia32/binfmt_elf32.c 
 Hunk #1 FAILED at 100. 
 Hunk #2 FAILED at 127. 
 Hunk #3 FAILED at 150. 
 Hunk #4 FAILED at 202. 
 Hunk #5 FAILED at 237. 
 5 out of 5 hunks FAILED -- saving rejects to file arch/ia64/ia32/binfmt_elf32.c.rej 
 patching file arch/ia64/mm/init.c 
 Hunk #1 FAILED at 131. 
 Hunk #2 FAILED at 149. 
 2 out of 2 hunks FAILED -- saving rejects to file arch/ia64/mm/init.c.rej 
 patching file arch/s390/kernel/compat_exec.c 
 Hunk #1 FAILED at 39. 
 Hunk #2 FAILED at 68. 
 2 out of 2 hunks FAILED -- saving rejects to file arch/s390/kernel/compat_exec.c.rej 
 patching file arch/x86_64/ia32/ia32_binfmt.c 
 Hunk #1 FAILED at 334. 
 Hunk #2 FAILED at 368. 
 2 out of 2 hunks FAILED -- saving rejects to file arch/x86_64/ia32/ia32_binfmt.c.rej 
 patching file fs/exec.c 
 Hunk #1 FAILED at 342. 
 Hunk #2 FAILED at 413. 
 Hunk #3 FAILED at 433. 
 3 out of 3 hunks FAILED -- saving rejects to file fs/exec.c.rej 
 patching file include/linux/mm.h 
 Hunk #1 FAILED at 675. 
 1 out of 1 hunk FAILED -- saving rejects to file include/linux/mm.h.rej 
 patching file mm/mmap.c 
 Hunk #1 FAILED at 1871. 
 Hunk #2 FAILED at 1894. 
 2 out of 2 hunks FAILED -- saving rejects to file mm/mmap.c.rej 
 Attempting Dry-run: 
 cmd: patch -p2 --dry-run -f < /var/tmp/portage/ac-sources-2.6.9-r16/work/patches/2/ac-sources-2.6.9.vma.patch 
 ======================================================= 
 can't find file to patch at input line 54 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |# This is a BitKeeper generated diff -Nru style patch. 
 |# 
 |# ChangeSet 
 |#   2004/11/25 16:00:28-08:00 nanhai.zou@intel.com 
 |#   [PATCH] ia64/x86_64/s390 overlapping vma fix 
 |#    
 |#   IA64 is also vulnerable to the huge-vma-in-executable bug in 64 bit elf 
 |#   support, it just insert a vma of zero page without checking overlap, so user 
 |#   can construct a elf with section begin from 0x0 to trigger this BUGON(). 
 |#    
 |#   However, I think it's safe to check overlap before we actually insert a vma 
 |#   into vma list.  And I also feel check vma overlap everywhere is unnecessary, 
 |#   because invert_vm_struct will check it again, so the check is duplicated. 
 |#   It's better to have invert_vm_struct return a value then let caller check if 
 |#   it successes.  Here is a patch against 2.6.10.rc2-mm3 I have tested it on 
 |#   i386, x86_64 and ia64 machines. 
 |#    
 |#   Signed-off-by: Tony Luck <tony.luck@intel.com> 
 |#   Signed-off-by: Zou Nan hai <Nanhai.zou@intel.com> 
 |#   Signed-off-by: Andrew Morton <akpm@osdl.org> 
 |#   Signed-off-by: Linus Torvalds <torvalds@osdl.org> 
 |# 
 |# arch/ia64/ia32/binfmt_elf32.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +21 -5 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/ia64/mm/init.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +14 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/s390/kernel/compat_exec.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +6 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/x86_64/ia32/ia32_binfmt.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +6 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# fs/exec.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +3 -6 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# include/linux/mm.h 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +1 -1 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# mm/mmap.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +3 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |diff -Nru a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c 
 |--- a/arch/ia64/ia32/binfmt_elf32.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/ia64/ia32/binfmt_elf32.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 5 out of 5 hunks ignored 
 can't find file to patch at input line 118 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c 
 |--- a/arch/ia64/mm/init.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/ia64/mm/init.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 151 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/s390/kernel/compat_exec.c b/arch/s390/kernel/compat_exec.c 
 |--- a/arch/s390/kernel/compat_exec.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/s390/kernel/compat_exec.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 176 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/x86_64/ia32/ia32_binfmt.c b/arch/x86_64/ia32/ia32_binfmt.c 
 |--- a/arch/x86_64/ia32/ia32_binfmt.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/x86_64/ia32/ia32_binfmt.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 201 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/fs/exec.c b/fs/exec.c 
 |--- a/fs/exec.c   2004-12-03 12:01:20 -08:00 
 |+++ b/fs/exec.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 3 out of 3 hunks ignored 
 can't find file to patch at input line 237 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/include/linux/mm.h b/include/linux/mm.h 
 |--- a/include/linux/mm.h   2004-12-03 12:01:20 -08:00 
 |+++ b/include/linux/mm.h   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 1 out of 1 hunk ignored 
 can't find file to patch at input line 249 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/mm/mmap.c b/mm/mmap.c 
 |--- a/mm/mmap.c   2004-12-03 12:01:20 -08:00 
 |+++ b/mm/mmap.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 Attempting Dry-run: 
 cmd: patch -p3 --dry-run -f < /var/tmp/portage/ac-sources-2.6.9-r16/work/patches/2/ac-sources-2.6.9.vma.patch 
 ======================================================= 
 can't find file to patch at input line 54 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |# This is a BitKeeper generated diff -Nru style patch. 
 |# 
 |# ChangeSet 
 |#   2004/11/25 16:00:28-08:00 nanhai.zou@intel.com 
 |#   [PATCH] ia64/x86_64/s390 overlapping vma fix 
 |#    
 |#   IA64 is also vulnerable to the huge-vma-in-executable bug in 64 bit elf 
 |#   support, it just insert a vma of zero page without checking overlap, so user 
 |#   can construct a elf with section begin from 0x0 to trigger this BUGON(). 
 |#    
 |#   However, I think it's safe to check overlap before we actually insert a vma 
 |#   into vma list.  And I also feel check vma overlap everywhere is unnecessary, 
 |#   because invert_vm_struct will check it again, so the check is duplicated. 
 |#   It's better to have invert_vm_struct return a value then let caller check if 
 |#   it successes.  Here is a patch against 2.6.10.rc2-mm3 I have tested it on 
 |#   i386, x86_64 and ia64 machines. 
 |#    
 |#   Signed-off-by: Tony Luck <tony.luck@intel.com> 
 |#   Signed-off-by: Zou Nan hai <Nanhai.zou@intel.com> 
 |#   Signed-off-by: Andrew Morton <akpm@osdl.org> 
 |#   Signed-off-by: Linus Torvalds <torvalds@osdl.org> 
 |# 
 |# arch/ia64/ia32/binfmt_elf32.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +21 -5 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/ia64/mm/init.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +14 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/s390/kernel/compat_exec.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +6 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/x86_64/ia32/ia32_binfmt.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +6 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# fs/exec.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +3 -6 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# include/linux/mm.h 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +1 -1 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# mm/mmap.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +3 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |diff -Nru a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c 
 |--- a/arch/ia64/ia32/binfmt_elf32.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/ia64/ia32/binfmt_elf32.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 5 out of 5 hunks ignored 
 can't find file to patch at input line 118 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c 
 |--- a/arch/ia64/mm/init.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/ia64/mm/init.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 151 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/s390/kernel/compat_exec.c b/arch/s390/kernel/compat_exec.c 
 |--- a/arch/s390/kernel/compat_exec.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/s390/kernel/compat_exec.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 176 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/x86_64/ia32/ia32_binfmt.c b/arch/x86_64/ia32/ia32_binfmt.c 
 |--- a/arch/x86_64/ia32/ia32_binfmt.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/x86_64/ia32/ia32_binfmt.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 missing header for unified diff at line 201 of patch 
 can't find file to patch at input line 201 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/fs/exec.c b/fs/exec.c 
 |--- a/fs/exec.c   2004-12-03 12:01:20 -08:00 
 |+++ b/fs/exec.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 3 out of 3 hunks ignored 
 can't find file to patch at input line 237 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/include/linux/mm.h b/include/linux/mm.h 
 |--- a/include/linux/mm.h   2004-12-03 12:01:20 -08:00 
 |+++ b/include/linux/mm.h   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 1 out of 1 hunk ignored 
 missing header for unified diff at line 249 of patch 
 can't find file to patch at input line 249 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/mm/mmap.c b/mm/mmap.c 
 |--- a/mm/mmap.c   2004-12-03 12:01:20 -08:00 
 |+++ b/mm/mmap.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 Attempting Dry-run: 
 cmd: patch -p4 --dry-run -f < /var/tmp/portage/ac-sources-2.6.9-r16/work/patches/2/ac-sources-2.6.9.vma.patch 
 ======================================================= 
 can't find file to patch at input line 54 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |# This is a BitKeeper generated diff -Nru style patch. 
 |# 
 |# ChangeSet 
 |#   2004/11/25 16:00:28-08:00 nanhai.zou@intel.com 
 |#   [PATCH] ia64/x86_64/s390 overlapping vma fix 
 |#    
 |#   IA64 is also vulnerable to the huge-vma-in-executable bug in 64 bit elf 
 |#   support, it just insert a vma of zero page without checking overlap, so user 
 |#   can construct a elf with section begin from 0x0 to trigger this BUGON(). 
 |#    
 |#   However, I think it's safe to check overlap before we actually insert a vma 
 |#   into vma list.  And I also feel check vma overlap everywhere is unnecessary, 
 |#   because invert_vm_struct will check it again, so the check is duplicated. 
 |#   It's better to have invert_vm_struct return a value then let caller check if 
 |#   it successes.  Here is a patch against 2.6.10.rc2-mm3 I have tested it on 
 |#   i386, x86_64 and ia64 machines. 
 |#    
 |#   Signed-off-by: Tony Luck <tony.luck@intel.com> 
 |#   Signed-off-by: Zou Nan hai <Nanhai.zou@intel.com> 
 |#   Signed-off-by: Andrew Morton <akpm@osdl.org> 
 |#   Signed-off-by: Linus Torvalds <torvalds@osdl.org> 
 |# 
 |# arch/ia64/ia32/binfmt_elf32.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +21 -5 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/ia64/mm/init.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +14 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/s390/kernel/compat_exec.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +6 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# arch/x86_64/ia32/ia32_binfmt.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +6 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# fs/exec.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +3 -6 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# include/linux/mm.h 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +1 -1 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |# mm/mmap.c 
 |#   2004/11/24 22:42:43-08:00 nanhai.zou@intel.com +3 -2 
 |#   ia64/x86_64/s390 overlapping vma fix 
 |# 
 |diff -Nru a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c 
 |--- a/arch/ia64/ia32/binfmt_elf32.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/ia64/ia32/binfmt_elf32.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 5 out of 5 hunks ignored 
 can't find file to patch at input line 118 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c 
 |--- a/arch/ia64/mm/init.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/ia64/mm/init.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 151 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/s390/kernel/compat_exec.c b/arch/s390/kernel/compat_exec.c 
 |--- a/arch/s390/kernel/compat_exec.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/s390/kernel/compat_exec.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 can't find file to patch at input line 176 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/arch/x86_64/ia32/ia32_binfmt.c b/arch/x86_64/ia32/ia32_binfmt.c 
 |--- a/arch/x86_64/ia32/ia32_binfmt.c   2004-12-03 12:01:20 -08:00 
 |+++ b/arch/x86_64/ia32/ia32_binfmt.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored 
 missing header for unified diff at line 201 of patch 
 can't find file to patch at input line 201 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/fs/exec.c b/fs/exec.c 
 |--- a/fs/exec.c   2004-12-03 12:01:20 -08:00 
 |+++ b/fs/exec.c   2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 3 out of 3 hunks ignored 
 missing header for unified diff at line 237 of patch 
 can't find file to patch at input line 237 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/include/linux/mm.h b/include/linux/mm.h 
 |--- a/include/linux/mm.h   2004-12-03 12:01:20 -08:00 
 |+++ b/include/linux/mm.h 2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 1 out of 1 hunk ignored 
 missing header for unified diff at line 249 of patch 
 can't find file to patch at input line 249 
 Perhaps you used the wrong -p or --strip option? 
 The text leading up to this was: 
 -------------------------- 
 |diff -Nru a/mm/mmap.c b/mm/mmap.c 
 |--- a/mm/mmap.c 2004-12-03 12:01:20 -08:00 
 |+++ b/mm/mmap.c 2004-12-03 12:01:20 -08:00 
 -------------------------- 
 No file to patch.  Skipping patch. 
 2 out of 2 hunks ignored

Reproducible: Always
Steps to Reproduce:
1. emerge -avu ac-sources
2.
3.

Actual Results:  
Again, see the url above or the pasted text. I think there is something wrong
how the patch is beeing applied.

Expected Results:  
sys-kernel/ac-sources-2.6.9-r16

Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-ac12 i686)
=================================================================
System uname: 2.6.9-ac12 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=prescott -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -msse3
-mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=prescott -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2
-msse3 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror
http://ftp.tu-clausthal.de/pub/linux/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage/"
USE="x86 3dnow X aalib acl acpi alsa apache2 apm arts avi berkdb bitmap-fonts
bzlib caps cardbus cdr clamav crypt cups dga directfb dvd encode esd ethereal
fam fbcon flac flash foomaticdb fortran ftp gd gdbm ggi gif gnome gphoto2 gpm
gps gtk gtk2 imagemagick imap imlib ipv6 jack java jikes joystick jpeg junit kde
kerberos lcms ldap libg++ libgda libwww mad maildir mbox mikmod mmx motif
mozilla mpeg mpi ncurses nls nptl odbc oggvorbis opengl oss pam pcmcia pda
pdflib perl pic plotutils png pnp postgres ppds python qt quicktime readline
samba sasl sdl slang slp snmp speex spell sse ssl svg svga tcltk tcpd tetex tiff
truetype trusted unicode usb wmf xinerama xml xml2 xmms xosd xv xvid zlib
linguas_de"
Comment 1 Guillaume 2005-01-24 11:40:07 UTC
I believe this bug can be closed. It's not relevant any longer.
Comment 2 Timo 2005-01-24 14:07:50 UTC
ebuild no longer available