That is about the most booby-trapped newbie question I have ever seen
:-).  But I will have a go.  Read the .diff files with less.  Sometimes,
people who make .diff files put instructions in the beginning of the
file how to apply them.  Also, sometimes, the package you want to patch
(apply the .diff to) will have a README or INSTALL file that will tell
you how to patch it.  Make sure you have a tar[.gz] of the package you
are patching, to restore, in case you patch it wrong.  The basic command
is
cd <package dir>
patch [-p<n>] <blah.diff

if the patch file contans lines
--- <old package version>/dir/file
+++ <new package version>/dir/file

you should use patch -p1 <blah.diff

If it has lines
--- dir/file
+++ dir/file

you want patch -p0 <blah.diff

If this doesn't make sense to you, have a nice long read of man patch.
:-)

Lawson
          >< Microsoft free environment

This mail client runs on Wine.  Your mileage may vary.

On Sat, 5 Jun 1999, david wrote:

> dose any one know how to handle diff files
> eg
> 
>  i am installing & compiling the XFree86 source
> it works fine but i need to use the fixed files x.x.x.diff
> how do i use theas files
> 
> Thank you
> 




___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]

Reply via email to