Reading and applying patches

Chong Yu Meng chongym at cymulacrum.net
Tue Sep 5 05:19:01 UTC 2006


Hi all,

I'm having some difficulty understanding patching in general. A little
background: I downloaded the source tarball for a program and it will
not "make" cleanly. Checking the forum on the website, someone had
published a patch in the form of text in an email that looks like this:

--- mlrate/mlrate.c 2003-01-27 10:31:31.000000000 +0100 
+++ mlrate.new/mlrate.c 2004-11-22 12:37:52.086783325 +0100 
@@ -25,6 +25,8 @@ 
#include <string.h> 
... and continues for a bit longer

I assume that I should copy and paste the text into a separate file and
save it. But how do I apply the patch to the source file, which is
mlrate.c? 

Also, how do I read the file? From some patch files I have come across,
they have "pluses" and "minuses" and other notation. What do they mean?
Can someone point me to some URLs where I can understand more about
these patch files? 

Thanks in Advance!



-- 
Pascal Chong 
email:  chongym at cymulacrum.net 
web:    http://cymulacrum.net
pgp:    http://cymulacrum.net/pgp/cymulacrum.asc

"La science ne connaît pas de frontière parce que la connaissance
appartient à l’humanité. et que c’est la flamme qui illumine le monde."

-- Louis Pasteur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060905/20337844/attachment-0001.sig>


More information about the fedora-list mailing list