Lionel,

Try using "-p1" instead of "-p0".  Patch tries to take the complete path and
filename in the patch file to find the file to be patched.  In your case,
that is linux-2.4.7/Documentation/s390/chandev.8.  Since you're in the
linux-2.4.7.SuSE directory, it's unlikely there's a linux-2.4.7 subdirectory
there.  Specifying "-p1" will cause patch to discard the linux-2.4.7 part
and start looking in ./Documentation.

Mark Post

-----Original Message-----
From: Lionel Dyck [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 12:40 PM
To: [EMAIL PROTECTED]
Subject: Applying a Patch


I'm trying to apply a patch to the kernel and it isn't working.  What am I
doing wrong?

root@mlnxd008:/usr/src/linux-2.4.7.SuSE > patch -p0
</tmp/linux-2.4.7-s390-3.diff
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 -urN linux-2.4.7/Documentation/s390/chandev.8
linux-2.4.7-s390/Documentati
on/s390/chandev.8
|--- linux-2.4.7/Documentation/s390/chandev.8   Wed Nov  7 11:43:51 2001
|+++ linux-2.4.7-s390/Documentation/s390/chandev.8      Wed Oct 17
14:44:39 2001

--------------------------
File to patch:



--------------------------------------------------------------------
Lionel B. Dyck, Systems Software Lead
Kaiser Permanente Information Technology
25 N. Via Monte Ave
Walnut Creek, Ca 94598

Phone:   (925) 926-5332 (tie line 8/473-5332)
E-Mail:    [EMAIL PROTECTED]
Sametime: (use Lotus Notes address)
AIM:        lbdyck

Reply via email to