Page 1 of 1

How does one apply a patch?

Posted: 23 Jul 2011, 01:03
by francois
I am trying to apply a patch needed in the compilation of a package:
http://forum.porteus.org/viewtopic.php?f=81&t=704

I have googled a little and found patch(1) - Linux man page:
http://linux.die.net/man/1/patch
and found a thread:
http://www.linuxquestions.org/questions ... ost4422822

I still am lost in the clouds.

What is the usual format for a patch? Text file, bash file ...
How does one apply the patch command and where should be the patch located in reference to the package to be patched?

Re: How doe one apply a patch?

Posted: 23 Jul 2011, 02:30
by Ahau
Patches are plain text. Put the plain text file, patchfile (or whatever you like) in the root directory of the source you're compiling, then:

patch -p1 < patchfile

That's unfortunately the extent of my knowledge. I'm still struggling with patches as well ;)

Re: How does one apply a patch?

Posted: 23 Jul 2011, 10:57
by francois
Thanks Ahau.