What am I overlooking here ? - I have been doing like this for the last years, no problem. Today there is:

# cd /usr/src
# ls -l 004_pf.patch
-rw-r--r--  1 root  wsrc  1303 Nov 27 17:32 004_pf.patch
# patch -p0 < 004_pf.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Apply by doing:
|       cd /usr/src
|       patch -p0 < 004_pf.patch
|
|And then build, install and boot a new kernel:
|       cd /usr/src/sys/arch/`arch -s`/conf
|       config GENERIC
|       cd ../compile/GENERIC
|       make depend && make && sudo make install
|
|If you are using the multiprocessor kernel, replace GENERIC by
|GENERIC.MP above.
|
|Index: sys/net/pf.c
|===================================================================
|RCS file: /cvs/src/sys/net/pf.c,v
|retrieving revision 1.564
|retrieving revision 1.565
|diff -u -p -r1.564 -r1.565
|--- pf.c       18 Nov 2007 21:53:47 -0000      1.564
|+++ pf.c       22 Nov 2007 02:01:46 -0000      1.565
--------------------------
File to patch:
No file found--skip this patch? [n] y
Skipping patch...
Hunk #1 ignored at 816.
Hunk #2 ignored at 960.
2 out of 2 hunks ignored--saving rejects to Oops.rej
done
And, yes, I have unzipped the respective tar:

# pwd
/usr/src
# ls
001_dhcpd.patch     Oops.rej            gnu                 sbin
002_openssl.patch   Oops.rej.orig       include             share
004_pf.patch        bin                 kerberosV           sys
CVS                 distrib             lib                 usr.bin
Makefile            etc                 libexec             usr.sbin
Makefile.cross      games               regress             xenocara

And I have that file:

# ls -l sys/net/pf.c -rw-r--r-- 1 root wsrc 155860 Aug 22 02:44 sys/net/pf.c

So where is my mistake, please ?

Uwe

Reply via email to