Messages in this thread | | | Date | Fri, 10 Apr 1998 22:24:00 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: Applying patches |
| |
On Fri, 10 Apr 1998, Linux Lists wrote:
> > Hi there, > > What is the best command line to apply a kernel patch to a Linux kernel > source tree ??? I always use only 'patch <[patch file]', but I have a > feeling that some argument is missing ... :( > > Thanks in advance. > > Regards, > Ivan > `head` the first few lines of the patch file to find the directory used to make the patch.
It is most always xxx/linux, when xxx is the version number. Since I always use /usr/src/linux (linux is a sym-link to linux-2.1.nn), I make a sym-link to /usr/src, so the _exact_ name is used to access the files as was used to make the "diff".
For instance, to patch v2.1.91, chdir to /usr/src/linux and execute `ln -s /usr/src v2.1.91`.
Then, chdir to wherever the new name will work, in this case where the new link exists (usr/src/linux), and...
`patch -p0 <patchfile`.
If you make certain that the patch's files path exactly match yours by creating the symlink, no patches will fail.
Cheers, Dick Johnson ***** FILE SYSTEM MODIFIED ***** Penguin : Linux version 2.1.92 on an i586 machine (66.15 BogoMips). Warning : It's hard to remain at the trailing edge of technology.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |