On Thu, Dec 12, 2002 at 09:17:00PM -0800, BSD baby wrote:
> I made a change to this file:
> /usr/ports/sysutils/cdrtools/work/cdrtools-1.11/cdda2wav/cdda2wav.c
> and I want my change to the source file to "stick" when building the port.
> 
> Seems if I do a "make clean install" it kills my change to the source file.
> 
> Do I need to add my diff change to a patch file somehow?
> 
> Any tutorial on how to do this?

1. Do a make extract in the port directory.
2. cd /usr/ports/sysutils/cdrtools/work/cdrtools-1.11/cdda2wav
2. cp -p cdda2wav.c cdda2wav.c.orig
3. Apply your changes
4. cd /usr/ports/sysutils/cdrtools/work/cdrtools-1.11
5. diff -urN cdda2wav/cdda2wav.c.orig cdda2wav/cdda2wav.c > 
/usr/ports/sysutils/cdrtools/files/patch-cdda2wav:cdda2wav.c

Now your patch will be in the ports tree and be applied when making the
port. I recommend keeping a copy around somewhere else though because cvsup
might delete it if you told it to delete files not in the master ports tree.

HTH,

--Stijn

-- 
The right half of the brain controls the left half of the body.  This means
that only left handed people are in their right mind.

Attachment: msg11941/pgp00000.pgp
Description: PGP signature

Reply via email to