Collins Richey wrote:
% 
% Thanks, David
% 
% That is now very clear; will remember forever.  I presume this means,
% if you have the pristine base source, you only need the very latest
% -pren or -acn patch?
% 
% One more question.  When I apply (using one of several methods,
% depending on whether still compressed or not, location, etc.) patch
% -p0, the patch always fails.  I have to use patch -p1.  Could you
% explain this

So, cd up one more directory level (say, from /usr/src/linux to
/usr/src) before applying the patch.

The number following -p indicates the number of directories (prefixed
by "/") patch should strip off the filenames embedded in the patch
file before applying the patch to the filesystem. So, given a patch
file containing a pathname foo/bar/baz/somefile.c: 

patch -p0 yields foo/bar/baz/somefile.c
patch -p1 yields bar/baz/somefile.c
patch -p2 yields baz/somefile.c

Keep in mind that patch works relative to the current directory. So,
in the first example, foo/bar/baz/somefile.c has to exist in
foo/bar/baz from your current directory, or the patch will fail.

Clear?

Kurt
-- 
"If it ain't broke, don't fix it."
- Bert Lantz
_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to