From owner-freebsd-questions Fri Dec 13 0:57: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E27D37B401 for ; Fri, 13 Dec 2002 00:57:00 -0800 (PST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F5CA43E4A for ; Fri, 13 Dec 2002 00:56:59 -0800 (PST) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.6/8.12.6) with ESMTP id gBD8uilv064047; Fri, 13 Dec 2002 09:56:44 +0100 (CET) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.6/8.12.6/Submit) id gBD8uia7064046; Fri, 13 Dec 2002 09:56:44 +0100 (CET) Date: Fri, 13 Dec 2002 09:56:44 +0100 From: Stijn Hoop To: BSD baby 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> References: <20021212211700.A21588@mail.hitmedia.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <20021212211700.A21588@mail.hitmedia.com> User-Agent: Mutt/1.4i X-Bright-Idea: Let's abolish HTML mail! Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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