LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Reversed (or previously applied) patch detected! (https://www.linuxquestions.org/questions/debian-26/reversed-or-previously-applied-patch-detected-653122/)

aquaboot 07-02-2008 12:24 PM

Reversed (or previously applied) patch detected!
 
Hello,

I've just installed a new kernel on Lenny: 2.6.25.1 from kernel.org. Everything went well.

uname -r returns:

test:~# uname -r
2.6.25.1


I'm now trying to apply the first patch in the series: 2.6.25.2 and have downloaded that patch from kernel.org as well. But when I try to patch, I get:

test:/usr/src/linux# patch -p1 < patch-2.6.25.2
patching file Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file arch/alpha/kernel/osf_sys.c
Reversed (or previously applied) patch detected! Assume -R? [n]

At which point I cancel out of the process. I'm not sure what I'm doing wrong here. All help much appreciated.

Thanks,

ab

aquaboot 07-02-2008 12:30 PM

Thought. Is this happening because I'm applying the patch to the 2.6.25.1 kernel instead of having installed the base 2.6.25 base and patched 1-9 from there?

Thanks,

ab

makuyl 07-02-2008 01:27 PM

Try with this ftp://ftp.eu.kernel.org/pub/linux/ke...2.6.25.1-2.bz2

aquaboot 07-02-2008 02:49 PM

Thanks for the reply and the link. Is this a kernel that is already patched up to #2? I'm actually doing this as a learning exercise. I wanted to try my hand at compiling and installing a new kernel, which I did. Now I want to tackle patching. I'm going to install the base 2.6.25 and try to patch 1-9 from there. Thanks again for your help.

Any veteran suggestions are very welcome. :-)

-ab

makuyl 07-02-2008 03:22 PM

Nope, that's the incremental patch from 2.6.25.1 to 2.6.25.2 which I thought you were trying to accomplish.
The 2.6.25.2 patch you got an error with is indeed supposed to be applied to an unpatched 2.6.25 source.

aquaboot 07-02-2008 03:32 PM

Ah, got it. Thanks again for the interest.

Cheers,

ab


All times are GMT -5. The time now is 03:00 AM.