Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46355 - mm-sources-2.6.5_rc3-r1 patch fails during emerge
Summary: mm-sources-2.6.5_rc3-r1 patch fails during emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-31 06:02 UTC by Miles Cowan
Modified: 2004-04-16 18:10 UTC (History)
2 users (show)

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


Attachments
Error message from emerge (patch-2.6.5-rc3.err,16.72 KB, text/plain)
2004-03-31 06:05 UTC, Miles Cowan
Details
error log (2.6.5-mm1.err,393.76 KB, text/plain)
2004-04-05 16:58 UTC, quannum
Details
error file (2.6.5-mm1-gentoo1.bz2-3278.out,1.87 MB, text/plain)
2004-04-09 10:56 UTC, quannum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miles Cowan 2004-03-31 06:02:52 UTC
When I try to emerge the newest mm-sources it fails:

bash-2.05b# emerge -u mm-sources
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/mm-sources-2.6.5_rc3-r1 to /
>>> md5 src_uri ;-) patch-2.6.5-rc3.bz2
>>> md5 src_uri ;-) linux-2.6.4.tar.bz2
>>> md5 src_uri ;-) 2.6.5-rc3-mm1.bz2
>>> Preparing to unpack...
>>> Unpacking source...
>>> Unpacking linux-2.6.4.tar.bz2 to /var/tmp/portage/mm-sources-2.6.5_rc3-r1/work
 * Applying patch-2.6.5-rc3.patch...
patch: pch.c:614: intuit_diff_type: Assertion `i0 != NONE' failed.
patch: pch.c:614: intuit_diff_type: Assertion `i0 != NONE' failed.                                                                [ !! ]

 * Please attach /var/tmp/portage/mm-sources-2.6.5_rc3-r1/temp/patch-2.6.5-rc3.err to any bug you may post.

!!! ERROR: sys-kernel/mm-sources-2.6.5_rc3-r1 failed.
!!! Function unipatch, Line 443, Exitcode 0
!!! Unable to dry-run patch.


Reproducible: Always
Steps to Reproduce:
1.emerge mm-sources
2.
3.
Comment 1 Miles Cowan 2004-03-31 06:05:12 UTC
Created attachment 28447 [details]
Error message from emerge
Comment 2 Miles Cowan 2004-03-31 06:15:09 UTC

*** This bug has been marked as a duplicate of 46322 ***
Comment 3 Miles Cowan 2004-04-05 05:48:07 UTC
There was never a resolution to this posted.  I have no broken symlinks that are related to portage/kernel.  I don't remember doing a "dirty" unmerge and if I did, what do I do to "clean" it?  It happens for the newest mm-sources-2.6.5_rc3-r4.
Comment 4 quannum 2004-04-05 16:55:32 UTC
Same thing for sys-kernel/mm-sources-2.6.5-r1:

>>> md5 src_uri ;-) linux-2.6.5.tar.bz2
>>> md5 src_uri ;-) 2.6.5-mm1.bz2
>>> Preparing to unpack...
>>> Unpacking source...
>>> Unpacking linux-2.6.5.tar.bz2 to /var/tmp/portage/mm-sources-2.6.5-r1/work
 * Applying 2.6.5-mm1.patch...
patch: pch.c:614: intuit_diff_type: Assertion `i0 != NONE' failed.
patch: pch.c:614: intuit_diff_type: Assertion `i0 != NONE' failed.        [ !! ]

 * Please attach /var/tmp/portage/mm-sources-2.6.5-r1/temp/2.6.5-mm1.err to any bug you may post.

!!! ERROR: sys-kernel/mm-sources-2.6.5-r1 failed.
!!! Function unipatch, Line 443, Exitcode 0
!!! Unable to dry-run patch.
Comment 5 quannum 2004-04-05 16:58:00 UTC
Created attachment 28764 [details]
error log
Comment 6 Chris Irwin 2004-04-06 00:32:14 UTC
Confirmed here as well. 

`diff` says my error log is exactly the same as the one posted above for mm-sources-2.6.5-r1 .
Comment 7 Phil Almquist 2004-04-06 19:37:36 UTC
and another confirmation here... sigh
Comment 8 Jason Cox (RETIRED) gentoo-dev 2004-04-09 08:24:53 UTC
Could you try 

emerge patch

and see if that fixes anything?
Comment 9 quannum 2004-04-09 10:54:28 UTC
genlop -l | tail -2
     Fri Apr  9 10:44:47 2004 --> sys-devel/patch-2.5.9 
# emerge mm-sources
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/mm-sources-2.6.5-r1 to /
>>> md5 src_uri ;-) linux-2.6.5.tar.bz2
>>> md5 src_uri ;-) 2.6.5-mm1-gentoo1.bz2
>>> Preparing to unpack...
>>> Unpacking source...
>>> Unpacking linux-2.6.5.tar.bz2 to /var/tmp/portage/mm-sources-2.6.5-r1/work
RUNNING FROM extra_functions.sh
 * Applying 2.6.5-mm1-gentoo1.bz2...

 * Failed Patch: 2.6.5-mm1-gentoo1.bz2!
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/mm-sources-2.6.5-r1/temp/2.6.5-mm1-gentoo1.bz2-3278.out


!!! ERROR: sys-kernel/mm-sources-2.6.5-r1 failed.
!!! Function epatch, Line 360, Exitcode 0
!!! Failed Patch: 2.6.5-mm1-gentoo1.bz2!

Comment 10 quannum 2004-04-09 10:56:34 UTC
Created attachment 28964 [details]
error file

#emerge info
Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-rc2-mm3)
=================================================================
System uname: 2.6.5-rc2-mm3 i686 AMD-K7(tm) Processor
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.

/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share

config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/sha

e/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texm

/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.noved.org/

ftp://gentoo.noved.org/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://www.z

ntek-international.com/mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif

gnome gpm gtk gtk2 gtkhtml guile hyriand imlib java jpeg kde ldap libg++ libwww

mad mikmod mmx motif mozilla moznocompose moznoirc mpeg ncurses nls oggvorbis o

engl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl s

ga tcltk tcpd tetex truetype usb x86 xml2 xmms xv zlib"
Comment 11 quannum 2004-04-09 11:02:42 UTC
Also i have had this problem since mm-sources_rc2-r3:
     Thu Mar 25 18:16:05 2004 --> sys-kernel/mm-sources-2.6.5_rc2-r3 
     Thu Mar 25 21:03:09 2004 --> media-gfx/bootsplash-0.6-r12
     Thu Mar 25 22:00:53 2004 --> sys-fs/sysfsutils-0.4.0 
     Thu Mar 25 22:01:28 2004 --> sys-apps/hotplug-20040105 
     Thu Mar 25 22:02:20 2004 --> sys-fs/udev-016-r2 
     Fri Mar 26 00:01:36 2004 --> sys-fs/udev-023-r1 
Comment 12 quannum 2004-04-09 14:32:27 UTC
im trying to track down the problem so im patching it manually following what the ebuild would do, and i find that the patch fails because some source files aren't being extracted correctly.

/var/tmp/portage/mm-sources-2.6.5-r1/work # patch -p0 --dry-run < mm.patch | grep rej

1 out of 13 hunks FAILED -- saving rejects to file linux-2.6.5-mm1/drivers/scsi/qla2xxx/ql2300_fw.c.rej
1 out of 10 hunks FAILED -- saving rejects to file linux-2.6.5-mm1/drivers/scsi/qla2xxx/ql2322_fw.c.rej
1 out of 10 hunks FAILED -- saving rejects to file linux-2.6.5-mm1/drivers/scsi/qla2xxx/ql6322_fw.c.rej
1 out of 39 hunks FAILED -- saving rejects to file linux-2.6.5-mm1/fs/devfs/base.c.rej
root@sakai /var/tmp/portage/mm-sources-2.6.5-r1/work # vi linux-2.6.5-mm1/fs/devfs/base.c


that file has a block section full of ^@^@^@^@^@..
it seems to be random .. i've gont through a few unpack/clean cycles and it's different files that fail, the qla2xxx stuff appears alot tho.
so I'm thinking it's a buggy bzip2 or my FS is corrupting the files .. dmesg doesn't show any errors or anything unusual.
Comment 13 quannum 2004-04-09 20:59:34 UTC
I've chrooted my sytem from the liveCD and reiserfsck'ed my hdd .. no corruption. i've managed to emerge mm-sources while in my chroot.  I would guess the problem is somewhere in the kernel i was running. rfs3 drivers must be buggy.  I have filed a new bug http://bugs.gentoo.org/show_bug.cgi?id=47406  .. to ask that release candidates be masked. to reduce the amount of people with buggy kernels.
Comment 14 Jason Cox (RETIRED) gentoo-dev 2004-04-13 22:29:56 UTC
Does the patching issue still exist on non rc mm-sources?
Comment 15 quannum 2004-04-14 11:01:10 UTC
My opinion is that the person's running kernel is the problem.  The patches aren't being written to disk correctly. I've been able to emerge mm-sources-r4 from mm-sources-r1 with no problem.  Like my previous comments suggest, dropping to the liveCD or using a known good old kernel you still have in /boot should workaround the problem.
Comment 16 Chris Irwin 2004-04-15 23:35:17 UTC
Comment 15 is confirmed here.

I tried emerging development-sources-2.6.5 (which works fine since there is no patching) and it failed in compiling, throwing many errors. This was resolved by booting off a live-cd and compiling said kernel. 

Having done those steps (and running a new kernel), emerging mm-sources is successful.

Unless others are still having issues, I believe should be closed.
Comment 17 Jason Cox (RETIRED) gentoo-dev 2004-04-16 18:10:21 UTC
Was running kernel causing the problems. Fixed by booting into a livecd and going from there.