Greetings, Could someone give an example of how to patch, let's say, linux-2.2.2 to .3? (I've been at 2.2.3 from sources, but I want to get ready to patch .3 to get to .4 when it comes out.) In my case, I setup /usr/src/linux-2.2.2 and symlinked to linux. The patch file(patch-2.2.3) is sitting in /usr/src. The kernel howto says to do this from /usr/src: patch -p0 < patch-2.2.3 When I do this, it deviates from the howto and asks for the file to patch!!? I am lost as to what to do now. From other reading, it seems to hint that the patch file needs the absolute path to the code to be patched, but this does not seem reasonable. I must be doing something silly here, so someone please set me straight!! Lost in Houston. Steve. ------------------------------------ Steve Pauly (281) 496-8041 Global Marine Drilling Co. stevep@linux-shell.net steve.pauly@glm.com gmdcman@mindspring.com -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Steve Pauly wrote:
Greetings,
Could someone give an example of how to patch, let's say, linux-2.2.2 to .3?
(I've been at 2.2.3 from sources, but I want to get ready to patch .3 to get to .4 when it comes out.)
In my case, I setup /usr/src/linux-2.2.2 and symlinked to linux. The patch file(patch-2.2.3) is sitting in /usr/src.
The kernel howto says to do this from /usr/src: patch -p0 < patch-2.2.3
When I do this, it deviates from the howto and asks for the file to patch!!? I am lost as to what to do now. From other reading, it seems to hint that the patch file needs the absolute path to the code to be patched, but this does not seem reasonable.
I must be doing something silly here, so someone please set me straight!!
Lost in Houston.
Steve.
I know what you mean Steve, I am as lost using the patch command. This strikes more hard, if you want to include something different from an kernel update patch, since there is an easier solution for that: copy your *gzipped* patchfile to .../linux/scripts in .../srcipts is a file called patch_kernel. just call it, it will look for the current version, for a collection on gzipped (*.gz) patchfiles and apply them in correct order. (itŽs possible that youŽll have to make it executable) I have a script "getpatch" that ftpŽs you all needet patches from the current to the desired kernel version. (found it between patches on a long forgotten ftp-server)
------------------------------------ Steve Pauly (281) 496-8041 Global Marine Drilling Co. stevep@linux-shell.net steve.pauly@glm.com gmdcman@mindspring.com
-- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
-- ========================================== __ _ Juergen Braukmann mail: brauki@cityweb.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu| /\\ /__/ / _ \/ // /\ \/ / ==========================================_\_v __/_/_//_/\_,_/ /_/\_\ -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Steve Pauly wrote:
Could someone give an example of how to patch, let's say, linux-2.2.2 to .3? The kernel howto says to do this from /usr/src: patch -p0 < patch-2.2.3
When I do this, it deviates from the howto and asks for the file to patch!!? I am lost as to what to do now. From other reading, it seems to
Try -p1 -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Steve Pauly wrote:
The kernel howto says to do this from /usr/src: patch -p0 < patch-2.2.3
When I do this, it deviates from the howto and asks for the file to patch!!? I am lost as to what to do now. From other reading, it seems to hint that the patch file needs the absolute path to the code to be patched, but this does not seem reasonable.
Well, theres two ways it can be done, the patch can be run from either just outside the directory, or inside the directory its patching, chances are that if you attempt to patch from oputside the directory and it asks you which file you wish to patch then the patch was meant to be run within the directory. Give that a try and see what happens. Also, while the file is in gzip form you can patch with the following command from either inside or outside depending on the characteristics of the patch: zcat patch-2.2.3.tar.gz | patch -p -- S.Toms - tomas@primenet.com - <A HREF="http://www.primenet.com/~tomas"><A HREF="http://www.primenet.com/~tomas</A">http://www.primenet.com/~tomas</A</A>> S.u.S.E. Linux v6.0+ - Kernels 2.0.36/2.2.3 -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (4)
-
brauki@cityweb.de
-
stevep@bash.linux-shell.net
-
tomas@primenet.com
-
zentara@mindspring.com