Re: How do I apply a kernel patch?
On Sun, 30 May 1999, John Pearson wrote:
> The patch was prepared on a system where /usr/src/linux was 'really'
> /usr/src/linux.vanilla. Try this:
> # cd /usr/src
> # ln -s linux linux.vanilla
> # cat patch-2.2.7-ac4 | patch -p0
>
> That should work.
The patch utility was specifically designed to deal with cases where the
base directory is named differently. In other words, you can do it without
the symlink.
# cd /usr/src/linux
# cat patch-2.2.7-ac4 | patch -p1
The '1' tells it to ignore up to and including the first slash in the
pathnames in the diff: in this case, "linux.vanilla/".
Reply to: