[SLE] Silly question - how to use patch?
Hello How to use a patch? I have just received a patch to modify qpopper so as to use sasl but I don't have a clue on how to use it? And how about pacths in rpm files? Thanks a lot. Eduardo -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
mendes wrote:
Hello How to use a patch? I have just received a patch to modify qpopper so as to use sasl but I don't have a clue on how to use it? And how about pacths in rpm files?
You need to get source rpm files to patch. The easiest way to patch is to experiment: Go to the source directory, where you untared the package, or installed the source rpm. Put the patch in the directory and try patch -p0<myfile.patch If it works you will know because of all the "hunk succeeded" messages. If you get a message "which file to patch", then you failed. Then try: patch -p1<myfile.patch If that don't work try it from just outside the source code directory. Each patch is different, and depending on how it was written needs either the -p0 or -p1 option. Read man patch for a gory description. :-) -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (2)
-
mendes@mgconecta.com.br
-
zentara@gypsyfarm.com