From owner-freebsd-questions@FreeBSD.ORG Wed May 5 05:29:39 2004 Return-Path: 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 5D1BC16A4CE for ; Wed, 5 May 2004 05:29:39 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08F3143D1F for ; Wed, 5 May 2004 05:29:38 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i45CTWpY012499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 May 2004 13:29:32 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i45CTWwv012498; Wed, 5 May 2004 13:29:32 +0100 (BST) (envelope-from matthew) Date: Wed, 5 May 2004 13:29:32 +0100 From: Matthew Seaman To: Mikkel Christensen Message-ID: <20040505122932.GA12413@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Mikkel Christensen , freebsd-questions@freebsd.org References: <200405051211.22184.mikkel@talkactive.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <200405051211.22184.mikkel@talkactive.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040504, clamav-milter version 0.70u X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Patching ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2004 12:29:39 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 05, 2004 at 12:11:22PM +0000, Mikkel Christensen wrote: > How do I add a patch to a certain port? > Usually I would use the "patch" program to add the patch to the source co= de. > But when using ports the system begins compiling right after rewtrieving = the source. Thus not giving me a change to apply the patch. > I've seen a folder named "files" in which patches part of the port seem t= o be located. But just adding the patchfile here apperently wont do much go= od. > I've tried using the "PATCHFILES" variable in the Makefile but then the s= ystem complains the my patchfile does not have a matching MD5 hash. > Does anyone know how to handle this issue? When building a port you can type: # make extract which will download any sources, check the size and checksums, unpack the sources into the work directory and apply any patches that come with the port. And then stop. At this point you can make whatever modifications you wish to yourself, and then finish off the build by # make So long as your patch doesn't add or delete files from the expected packing list then just doing a: # make install will work. It is also possible to put your patch file into the port's files directory and have it automatically applied, but you need to take care to account for the order that patch files get applied. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --gKMricLos+KVdGMg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAmN4sdtESqEQa7a0RAmKfAJ9YsO9R82LdeP+/w8ysOHx1KWu+7wCdGzmn chfI4reWy9KhG1I5Gdj2568= =5T7a -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--