Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#9 Problem patching Driver

closed
snacks snax
None
5
2003-02-16
2003-01-15
dan
No

While trying to patch the orinoc drivers, I get this error
message:

[dan@localhost dan]$ su
Password:
[root@localhost dan]# cd /usr/src
[root@localhost src]# patch -p0 < pcmcia-cs-3.2.1-
orinoco-patch.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 -aur wireless/hermes.c ../pcmcia-cs-3.2.1-
patched/wireless/hermes.c
|--- wireless/hermes.c Wed May 1 20:37:30 2002
|+++ ../pcmcia-cs-3.2.1-patched/wireless/hermes.c
Thu Aug 22 08:58:02
2002
--------------------------
File to patch:

What am I doing wrong?
Slamtry

Discussion

  • Logged In: NO

    i had same problem. just change the value of the number
    beside p in encriments of one, and go up and up, and
    eventually it will work..

    I am a linux n00b, but i think it has somethign todo with the
    parent directory or something.

     
  • snacks snax
    snacks snax
    2003-02-16

    Logged In: YES
    user_id=466372

    cd into the /usr/src/pcmcia-cs-3.2.1 directory and try
    again. You are one directory too high to be using -p0 with
    this patch file.

    Snax-

     
  • snacks snax
    snacks snax
    2003-02-16

    • assigned_to: nobody --> snaks
    • status: open --> closed