Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218160 - sys-kernel/gentoo-sources-2.6.25 sound/pci/hda/patch_realtek.c patch fails
Summary: sys-kernel/gentoo-sources-2.6.25 sound/pci/hda/patch_realtek.c patch fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Daniel Drake (RETIRED)
URL:
Whiteboard:
Keywords:
: 218188 218304 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-17 19:24 UTC by Michel Paquet
Modified: 2008-04-19 08:29 UTC (History)
13 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 Michel Paquet 2008-04-17 19:24:13 UTC
sys-kernel/gentoo-sources-2.6.25: fail to compile. 

ERROR: sys-kernel/gentoo-sources-2.6.25 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2940:  Called kernel-2_src_unpack
 *             environment, line 2152:  Called unipatch '  /var/tmp/portage/sys-kernel/gentoo-sources-2.6.25/distdir/genpatches-2.6.25-1.base.tar.bz2 /var/tmp/portage/sys-kernel/gentoo-sources-2.6.25/distdir/genpatches-2.6.25-1.extras.tar.bz2 '
 *             environment, line 3414:  Called die
 * The specific snippet of code:
 *                   die "Unable to dry-run patch.";
 *  The die message:
 *   Unable to dry-run patch.


Reproducible: Always

Steps to Reproduce:
1. Unmask/keywords gentoo-sources-2.6.25
2. Emerge gentoo-sources-2.6.25
3. See what's happen

Actual Results:  
Won't compile

Expected Results:  
Compile
Comment 1 Michel Paquet 2008-04-17 19:25:44 UTC
Attempting Dry-run:
cmd: patch -p0 --no-backup-if-mismatch --dry-run -f < /var/tmp/portage/sys-kernel/gentoo-sources-2.6.25/work/patches/2.6.25/$
=======================================================
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|From: Tony Vroon <chainsaw@gentoo.org>
|
|Applied in ALSA upstream, queued for 2.6.25
|
|--- a/sound/pci/hda/patch_realtek.c.orig       2008-04-12 13:40:33.000000000 +0100
|+++ b/sound/pci/hda/patch_realtek.c    2008-04-12 13:40:40.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
Attempting Dry-run:
cmd: patch -p1 --no-backup-if-mismatch --dry-run -f < /var/tmp/portage/sys-kernel/gentoo-sources-2.6.25/work/patches/2.6.25/$
=======================================================
patching file sound/pci/hda/patch_realtek.c
Hunk #1 FAILED at 7939.
Hunk #2 FAILED at 7948.
Hunk #3 FAILED at 7990.
Hunk #4 FAILED at 8041.
Hunk #5 FAILED at 8065.
5 out of 5 hunks FAILED -- saving rejects to file sound/pci/hda/patch_realtek.c.rej
Attempting Dry-run:
cmd: patch -p2 --no-backup-if-mismatch --dry-run -f < /var/tmp/portage/sys-kernel/gentoo-sources-2.6.25/work/patches/2.6.25/$
=======================================================
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|From: Tony Vroon <chainsaw@gentoo.org>
|
|Applied in ALSA upstream, queued for 2.6.25
|
|--- a/sound/pci/hda/patch_realtek.c.orig       2008-04-12 13:40:33.000000000 +0100
|+++ b/sound/pci/hda/patch_realtek.c    2008-04-12 13:40:40.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
Attempting Dry-run:
cmd: patch -p3 --no-backup-if-mismatch --dry-run -f < /var/tmp/portage/sys-kernel/gentoo-sources-2.6.25/work/patches/2.6.25/$
=======================================================
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|From: Tony Vroon <chainsaw@gentoo.org>
|
|Applied in ALSA upstream, queued for 2.6.25
|
|--- a/sound/pci/hda/patch_realtek.c.orig       2008-04-12 13:40:33.000000000 +0100
|+++ b/sound/pci/hda/patch_realtek.c    2008-04-12 13:40:40.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
Attempting Dry-run:
cmd: patch -p4 --no-backup-if-mismatch --dry-run -f < /var/tmp/portage/sys-kernel/gentoo-sources-2.6.25/work/patches/2.6.25/$
=======================================================
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|From: Tony Vroon <chainsaw@gentoo.org>
|
|Applied in ALSA upstream, queued for 2.6.25
|
|--- a/sound/pci/hda/patch_realtek.c.orig       2008-04-12 13:40:33.000000000 +0100
|+++ b/sound/pci/hda/patch_realtek.c    2008-04-12 13:40:40.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
5 out of 5 hunks ignored
Comment 2 Peter 2008-04-17 22:38:52 UTC
I get the same error when trying to emerge gentoo-sources-2.6.25, the problem seems to be that 2705_alsa-hda-fujitsu.patch has dos line endings.
Comment 3 Kenton Groombridge 2008-04-18 00:17:01 UTC
I was getting ready to post this same bug.  It just installed fine on my ~amd64 system, but on my x86 system it failed.

Ken
Comment 4 Markus Moll 2008-04-18 07:02:27 UTC
I have the very same problem on amd64. I can confirm that dos line endings seem to be the problem. The patch applies without problems after converting it with dos2unix.
Comment 5 Martin 'Douglas' Schuster 2008-04-18 11:14:17 UTC
What's the Gentoo-way of fixing this locally?
I have a overlay at /usr/local/portage, copied the whole sys-kernel/gentoo-sources/ there, but how can I tell portage to take the fixed patchset instead of the one from /usr/portage/distfiles/ ?
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2008-04-18 11:19:47 UTC
*** Bug 218188 has been marked as a duplicate of this bug. ***
Comment 7 Santiago M. Mola (RETIRED) gentoo-dev 2008-04-18 19:29:33 UTC
*** Bug 218304 has been marked as a duplicate of this bug. ***
Comment 8 Jan Vansteenkiste 2008-04-18 20:13:23 UTC
(In reply to comment #5)
> What's the Gentoo-way of fixing this locally?
> I have a overlay at /usr/local/portage, copied the whole
> sys-kernel/gentoo-sources/ there, but how can I tell portage to take the fixed
> patchset instead of the one from /usr/portage/distfiles/ ?
> 

I copied the gentoo-sources ebuild into my own overlay. Fixed the base patchset, rebzip2'ed it and replaced it in the distfiles folder. After that, just run a ebuild digest on your newly created ebuild and it should patch fine after that. 

Cheerz

Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2008-04-18 20:15:51 UTC
You can do this simpler... If you don't have this hardware, just add the following to the build:
UNIPATCH_EXCLUDE="2705_alsa-hda-fujitsu*"
Comment 10 Michel Paquet 2008-04-19 01:45:23 UTC
Yes I could do this... But this doesn't solve the issue. The patch should be apply all time, not if I have this type of hardware.
Comment 11 Hayama Yossihiro 2008-04-19 02:29:35 UTC
I tried export then Excluding Patch !!
# export UNIPATCH_EXCLUDE="2705_alsa-hda-fujitsu*"
# ebuild /usr/portage/sys-kernel/gentoo-sources/gentoo-sources-2.6.25.ebuild unpack
..
>>> Unpacking genpatches-2.6.25-1.extras.tar.bz2 to /var/tmp/portage/sys-kernel/gentoo-sources-2.6.25/work/patches
 * Excluding Patch #2705_alsa-hda-fujitsu* ...        [ ok ]
 * Applying 4105_dm-bbr.patch (-p0+) ...               [ ok ]
 * Applying 4200_fbcondecor-0.9.4.patch (-p0+) ...    [ ok ]
 * Applying 4300_squashfs-3.3.patch (-p0+) ...        [ ok ]
 * Applying 4405_alpha-sysctl-uac.patch (-p0+) ...   [ ok ]
>>> Source unpacked.
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2008-04-19 08:29:25 UTC
sorry about that, this is fixed in genpatches-2.6.25-2 / gentoo-sources-2.6.25-r1