Proper patch syntax?


Subject: Proper patch syntax?
From: Mac Mason (macmasta@ak.net)
Date: Sat Mar 02 2002 - 13:14:34 AKST


I've read the man pages for patch, but it didn't help.
I want to compile 2.4.19-pre2-ac2 with the preempt patch.
Therefore, I get the 2.4.18 tgz, the patch-2.4.18-pre2 gz, the
2.4.19-pre2-ac2 patch, and the preempt patch.
The syntax I learned (reading from somewhere) is patch -p0 <
name_of_patchfile
So I uncompress the 2.4.18 tgz to /usr/src/linux and uncompress the rest
of the patches in /usr/src.
Then I run patch -p0 < patch-2.4.19-pre2
and it runs through without errors.
Then I run patch -p0 < patch-2.4.19-pre2-ac2 and get
 

switchblade:/usr/src# patch -p0 < patch-2.4.19-pre2-ac2
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.19p2/CREDITS linux.19pre2-ac2/CREDITS
|--- linux.19p2/CREDITS Fri Mar 1 18:26:30 2002
|+++ linux.19pre2-ac2/CREDITS Fri Mar 1 18:30:06 2002
--------------------------
File to patch:

Ack!
I figured that perhaps the ac2 patch would apply the pre2 patches as
well, so I ran it on a clean 2.4.18 /usr/src/linux, to no avail (Same
error)
What's going on?

~Mac~



This archive was generated by hypermail 2a23 : Sat Mar 02 2002 - 13:46:13 AKST