On Sat, May 29, 1999 at 01:35:17PM +0200, Johann Spies at Johann wrote
> According to the Kernel-HOWTO I should do the following:
> 
>   So, continuing with the example above, let's suppose that you have
>   `patch46.gz' in /usr/src. cd to /usr/src  and do a `zcat patch46.gz |
>   patch -p0' (or `patch -p0 < patch46' if the patch isn't compressed).
>   You'll see things whizz by (or flutter by, if your system is that
>   slow) telling you that it is trying to apply hunks, and whether it
>   succeeds or not. 
> 
> When I follow these instructions the following happens:
> 
> [EMAIL PROTECTED](1)$ cat patch-2.2.7-ac4 | 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 ../exclude 
> linux.vanilla/Documentation/00-INDEX linux.ac/Documentation/00-INDEX
> |--- linux.vanilla/Documentation/00-INDEX     Tue Feb 23 14:21:32 1999
> |+++ linux.ac/Documentation/00-INDEX  Fri May  7 16:34:31 1999
> --------------------------

The patch was prepared on a system where /usr/src/linux was 'really'
/usr/src/linux.vanilla.  Try this:
# cd /usr/src
# ln -s linux linux.vanilla
# cat patch-2.2.7-ac4 | patch -p0

That should work.  


John P.
-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark

Reply via email to