Vladimir A. Pavlov
pv4 at bk.ru
Sun Jan 7 15:12:15 PST 2007
On Monday 08 January 2007 01:36, Zeb Packard wrote:
> looks for 'coreutils-5.94/src/Makefile.in'
> It asks me for the file to patch then I tell it to look for v 5.96 and
> all is ok.
On the first hand, you're right and it should be "5.96".
On the other hand, when applying a patch the book uses the command like
patch -Np1 patch-name.patch
According to the man page quoted below, this means the first part of
the file name including the first slash ("coreutils-5.94/") will be
stripped before applying the patch.
So, your having an error means your doing something wrong.
Particularly, you must be in the source directory to use the patch
command in the way suggested in the book.
"man patch" gives the following:
-pnum or --strip=num
Strip the smallest prefix containing num leading slashes from each
file name found in the patch file. A sequence of one or more adjacent
slashes is counted as a single slash. This controls how file names
found in the patch file are treated, in case you keep your files in a
different directory than the person who sent out the patch.
For example, supposing the file name in the patch file was
setting -p0 gives the entire file name unmodified, -p1 gives
without the leading slash, -p4 gives
and not specifying -p at all just gives you blurfl.c.
Nothing but perfection
More information about the lfs-support