Date: Fri, 13 Dec 2002 09:56:44 +0100 From: Stijn Hoop <stijn@win.tue.nl> To: BSD baby <bsd@hitmedia.com> Cc: freebsd-questions@freebsd.org Subject: Re: How do I patch my change into a source file in ports? Message-ID: <20021213085644.GA63902@pcwin002.win.tue.nl> In-Reply-To: <20021212211700.A21588@mail.hitmedia.com> References: <20021212211700.A21588@mail.hitmedia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Seems if I do a "make clean install" it kills my change to the source fil= e. >=20 > Do I need to add my diff change to a patch file somehow? >=20 > 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/sysu= tils/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 --=20 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. --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE9+aDMY3r/tLQmfWcRAjoDAKCJeZF3rbgDtfM1sr84gW1sery2fgCgnQOB phGIIudcwC1sTtvH7RbRnpY= =wddZ -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021213085644.GA63902>