patching?
Joshua Tinnin
krinklyfig at spymac.com
Thu Feb 17 23:01:23 PST 2005
On Thursday 17 February 2005 10:35 pm, Sam Lawrance
<boris at brooknet.com.au> wrote:
> On Fri, 2005-02-18 at 00:24 -0600, Paul Schmehl wrote:
> > make install
> > ===> Extracting for sguil-server-0.5.3
> > => Checksum OK for sguil-server-0.5.3.tar.gz.
> > ===> Patching for sguil-server-0.5.3
> > ===> Applying FreeBSD patches for sguil-server-0.5.3
> > Ignoring previously applied (or reversed) patch.
> > 1 out of 1 hunks ignored--saving rejects to
> > server/archive_sguildb.tcl.rej => Patch patch-archive_sguildb.tcl
> > failed to apply cleanly. *** Error code 1
>
> As the error says, are the patches reversed? ie. perhaps you have
> incorrectly run
>
> diff -urN file file.orig
>
> instead of the correct
>
> diff -urN file.orig file
Sometimes I get this problem if I forget to use the -p flag when
patching (from the /usr/ports/ directory):
# patch -p0 < /path/to/patchfile
But this also depends on how the patch is written. You might already
know how to patch, but what the heck. The first time I made a patch I
did it incorrectly and reversed it when running diff, like Sam's
example above.
- jt
More information about the freebsd-ports
mailing list