Hi folks,
sorry for the silly question, but i can't get it to work :
I have linux-2.4.1 unpacked, configured and installed.
Now i want to apply Alan Cox patche (linux-2.4.1-ac9), but i always get
these errors :
[root@space src]# cat /home/puck/patch-2.4.1-ac9 | patch -p0
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla/CREDITS linux.ac/CREDITS
|--- linux.vanilla/CREDITS Wed Jan 31 22:05:29 2001
|+++ linux.ac/CREDITS Fri Feb 9 13:19:13 2001
--------------------------
File to patch:
[root@space src]#
Do i have to create linux.vanilla and linux.ac, or what's the magic?! :-)
Thanx a lot,
Thomas
Em Tue, Feb 13, 2001 at 04:03:02PM +0100, Thomas Foerster escreveu:
> Hi folks,
>
> sorry for the silly question, but i can't get it to work :
>
> I have linux-2.4.1 unpacked, configured and installed.
> Now i want to apply Alan Cox patche (linux-2.4.1-ac9), but i always get
> these errors :
>
> [root@space src]# cat /home/puck/patch-2.4.1-ac9 | patch -p0
> can't find file to patch at input line 4
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
cd src/linux
cat /home/puck/patch-2.4.1-ac9 | patch -p1
^
|
- Arnaldo
Alan's patches are installed like this:
# cd /usr/src
# tar xIf linux-2.4.1.tar.bz2
# cd linux
# patch -sp1 < ../patch-2.4.1-ac6
# chown -R root:root .
Note the "-sp1" and that you need to be _inside_ the tree. Also, you don't
need to waste another process ("cat") and create a pipe, just use shell
input redirection facility "<".
Regards,
Tigran
On Tue, 13 Feb 2001, Thomas Foerster wrote:
> Hi folks,
>
> sorry for the silly question, but i can't get it to work :
>
> I have linux-2.4.1 unpacked, configured and installed.
> Now i want to apply Alan Cox patche (linux-2.4.1-ac9), but i always get
> these errors :
>
> [root@space src]# cat /home/puck/patch-2.4.1-ac9 | patch -p0
> can't find file to patch at input line 4
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla/CREDITS linux.ac/CREDITS
> |--- linux.vanilla/CREDITS Wed Jan 31 22:05:29 2001
> |+++ linux.ac/CREDITS Fri Feb 9 13:19:13 2001
> --------------------------
> File to patch:
> [root@space src]#
>
> Do i have to create linux.vanilla and linux.ac, or what's the magic?! :-)
>
> Thanx a lot,
> Thomas
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
> |+++ linux.ac/CREDITS Fri Feb 9 13:19:13 2001
> --------------------------
> File to patch:
> [root@space src]#
>
> Do i have to create linux.vanilla and linux.ac, or what's the magic?! :-)
Calling it linux.ac is one answer. Another one is
cd linux
patch -p1 <../patchfile
from linux (/usr/src/linux) directory, if the patch is
up a level (/usr/src):
patch -p1 <../patch-2.4.1-ac9
hth,
bradley mclain
ps -- probably a google search with the string 'how to
install ac patches' will find some instructions for
you.
--- Thomas Foerster <[email protected]> wrote:
> Hi folks,
>
> sorry for the silly question, but i can't get it to
> work :
>
> I have linux-2.4.1 unpacked, configured and
> installed.
> Now i want to apply Alan Cox patche
> (linux-2.4.1-ac9), but i always get
> these errors :
>
> [root@space src]# cat /home/puck/patch-2.4.1-ac9 |
> patch -p0
> can't find file to patch at input line 4
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff -u --new-file --recursive --exclude-from
> /usr/src/exclude linux.vanilla/CREDITS
> linux.ac/CREDITS
> |--- linux.vanilla/CREDITS Wed Jan 31 22:05:29
> 2001
> |+++ linux.ac/CREDITS Fri Feb 9 13:19:13 2001
> --------------------------
> File to patch:
> [root@space src]#
>
> Do i have to create linux.vanilla and linux.ac, or
> what's the magic?! :-)
>
> Thanx a lot,
> Thomas
>
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
Alan Cox writes:
> cd linux
> patch -p1 <../patchfile
patch -p1 -i ../patchfile means that patch won't read the whole patchfile
into a temporary file first, which it will do if patch reads from stdin.
--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html