Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88514 - sys-devel/patch-2.5.9-r1: patch: pch.c:621: intuit_diff_type: Assertion `i0 != NONE' failed.
Summary: sys-devel/patch-2.5.9-r1: patch: pch.c:621: intuit_diff_type: Assertion `i0 !...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://www.us.kernel.org/pub/linux/ke...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-09 14:23 UTC by Tony Vroon (RETIRED)
Modified: 2005-04-09 16:05 UTC (History)
0 users

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


Attachments
mm-sources-2.6.12_rc2-r2.ebuild (mm-sources-2.6.12_rc2-r2.ebuild,899 bytes, text/plain)
2005-04-09 14:24 UTC, Tony Vroon (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Vroon (RETIRED) gentoo-dev 2005-04-09 14:23:22 UTC
Patch explodes without a usable error message, but only on certain specific .diff's. The linked mm-sources diff will reproducably cause the explosion on x86, on GCC 3.4 and GCC 4.0; it has been reported that GCC 3.3 produces a working patch instead.
I will attach the 2.6.11_rc2-r2.ebuild for mm-sources as a test-case. By lu_zero's request I have tried to emerge with CFLAGS="-O1 -march=athlon-xp -pipe", this did not alleviate the issue. (Note that the patch ebuild filters most CFLAGS anyway).
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2005-04-09 14:24:28 UTC
Created attachment 55797 [details]
mm-sources-2.6.12_rc2-r2.ebuild

Testcase ebuild.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2005-04-09 14:29:15 UTC
>>> emerge (1 of 1) sys-kernel/mm-sources-2.6.12_rc2-r2 to /
>>> md5 src_uri ;-) patch-2.6.12-rc2.bz2
>>> md5 src_uri ;-) linux-2.6.11.tar.bz2
>>> md5 src_uri ;-) 2.6.11-rc2-mm2.bz2
>>> Preparing to unpack ...
>>> Unpacking source...
>>> Unpacking linux-2.6.11.tar.bz2 to /var/tmp/portage/mm-sources-2.6.12_rc2-r2/work
 * Applying patch-2.6.12-rc2.patch (-p0+) ...                             [ ok ]
 * Applying 2.6.11-rc2-mm2.patch (-p0+) ...
patch: pch.c:621: intuit_diff_type: Assertion `i0 != NONE' failed.        [ !! ]
 * Please attach /var/tmp/portage/mm-sources-2.6.12_rc2-r2/temp/2.6.11-rc2-mm2.err to any bug you may post.

!!! ERROR: sys-kernel/mm-sources-2.6.12_rc2-r2 failed.
!!! Function unipatch, Line 711, Exitcode 0
!!! Unable to dry-run patch.
!!! If you need support, post the topmost build error, NOT this status message.

(The patch debug output is too large to attach)
-rw-r--r--  1 root portage 3.1M Apr  9 22:26 /var/tmp/portage/mm-sources-2.6.12_rc2-r2/temp/2.6.11-rc2-mm2.err
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2005-04-09 14:48:30 UTC
By request of iggy, in relation to bug #77190 I have tried to set LC_ALL="C" on the commandline while emerging the testcase ebuild. This had no effect.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2005-04-09 16:05:53 UTC
mm-sources ebuild is downloading the wrong -mm patch, which will never apply.