From owner-freebsd-questions Wed Dec 4 8:22:21 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 2BF2A37B401 for ; Wed, 4 Dec 2002 08:22:20 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93F9F43E4A for ; Wed, 4 Dec 2002 08:22:18 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gB4GM9OR084184 for ; Wed, 4 Dec 2002 16:22:09 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gB4GM3We084183 for freebsd-questions@FreeBSD.ORG; Wed, 4 Dec 2002 16:22:03 GMT Date: Wed, 4 Dec 2002 16:22:03 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: patching a file Message-ID: <20021204162203.GB83234@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <1039016799.61750.9.camel@x74-47.forestry.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1039016799.61750.9.camel@x74-47.forestry.umn.edu> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.43 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 On Wed, Dec 04, 2002 at 09:46:40AM -0600, Kirk R. Wythers wrote: > I have a patch that should fix a build problem with one of freebsd's > ports, pybliographer. The patch needs to be applied to recode-3.6_1 to > make it compatable with pybliographer (which requires recode 3.5 > exactly). I want to test this patch out on my system, to see if it does > all it claims to do... Just put your patches into the 'files' directory of the port --- call them patch-aa, patch-ab, patch-ac ... if you want them to be applied in any particular order, and make sure the filenames in the patches are given relative to the 'work' directory the port uses to compile in. > Problem is, I confused over how to apply a patch to something in the > ports system. My ports tree is up to date, but I dont't see the source > in /usr/ports/converters/recode that the patch should be applied to. > Also, running "file" on /usr/ports/distfiles/recode-3.6.tar.gz returns > "file is empty". I thought that I could unpack the tarball manually > apply the patch, then tar it back up and build the port. I seem to be > all wet on this. No --- the source tarball will be downloaded to /usr/ports/distfile (make fetch) from whence it will be compared to the pre-recorded checksum (make checksum), and then untarred into the work directory and the patches applied (make unpack). If you modify the recode tarball, it will fail the checksum test and all sorts of ugly warning messages will be produced. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message