Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2002 16:22:03 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: patching a file
Message-ID:  <20021204162203.GB83234@happy-idiot-talk.infracaninophi>
In-Reply-To: <1039016799.61750.9.camel@x74-47.forestry.umn.edu>
References:  <1039016799.61750.9.camel@x74-47.forestry.umn.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021204162203.GB83234>