Date: Fri, 29 May 2009 10:06:22 -0400 From: Steve Bertrand <steve@ibctech.ca> To: Kurt Buff <kurt.buff@gmail.com> Cc: FreeBSD Questions <questions@freebsd.org>, freebsd-questions@freebsd.org Subject: Re: Patching? Probably a trivial question, but... Message-ID: <4A1FEBDE.90009@ibctech.ca> In-Reply-To: <a9f4a3860905271228sf2860e2r478ea61fd5a64218@mail.gmail.com> References: <a9f4a3860905270821h31c36b9fh25389f79ee33c29@mail.gmail.com> <200905272036.04272.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <a9f4a3860905271228sf2860e2r478ea61fd5a64218@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Kurt Buff wrote:
> On Wed, May 27, 2009 at 11:36, Mel Flynn
> <mel.flynn+fbsd.questions@mailing.thruhere.net> wrote:
>> On Wednesday 27 May 2009 17:21:42 Kurt Buff wrote:
>>> All,
>>>
>>> I've gotten a patch for a program in the ports tree from one of the
>>> authors of the program - not the port maintainer - to fix a small
>>> problem, but don't know how to install the updated port.
>>>
>>> I cd'ed into the
>>> /usr/ports/%CATEGORY%/%PROGRAM%/work/%PROGRAM-VERSION% directory, then
>>> performed 'patch <patch-name' successfully, AFAICT.
>>>
>>> Then I did a make, but got no output.
>>>
>>> So - I'm obviously lacking clue here. Anyone have a spare set?
>> Don't feel like reading the entire thread atm, but for reference:
>> - Patches need to have relative paths, where the root of the path corresponds
>> to the port's notion of $PATCH_WRKSRC
>> - You can find out this directory by running:
>> % make -C /usr/ports/category/portname -V PATCH_WRKSRC
>> The default is $WRKSRC which is $WRKDIR/$DISTNAME by default.
>> Example:
>> % make -C /usr/ports/sysutils/nagios-statd -V PATCH_WRKSRC
>> /stable/usr/obj/usr/ports/sysutils/nagios-statd/work/nagios-statd-3.12
>>
>> - Patches are automatically applied if they reside in the port's notion of
>> PATCHDIR and are named patch-*
>> - You can find out this directory by running:
>> %make -C /usr/ports/category/portname -V PATCHDIR
>> The default is $.CURDIR/files.
>> Example:
>> % make -C /usr/ports/sysutils/nagios-statd -V PATCHDIR
>> /usr/ports/sysutils/nagios-statd/files
>>
>> - In order to apply a new patch after you have previously gone past the patch
>> stage (configure, build, install), either run make clean or:
>> % rm $(make -C /usr/ports/category/portname -V PATCH_COOKIE)
>> The above can cause problems, with the build. The normal course of action is
>> to make clean.
>
> Excellent. I will be trying this tomorrow - I'm leaving work early
> today to get some things taken care of.
Kurt,
I had to leave rather hastily the other day, but I did test the patch,
and it worked ok. If this is a one-off thing, here is how I did it:
# cd /usr/ports/category/program
# make clean
# ee source.patch (pasted the patch in)
# make configure (which preps the source)
# cd work/progname
# patch < ../../source.patch
# cd ../..
# make
# make install
All worked well.
Steve
[-- Attachment #2 --]
0 *H
010 + 0 *H
00CK9AbxIUw0
*H
0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
090507231610Z
100507231610Z0B10UThawte Freemail Member10 *H
steve@ibctech.ca0"0
*H
0
DZ杙<2IⵀfrsE6q?0.>
S@Œ!V?A\Q
r-aZ
Ōf/0{OYQhɏߴ
F_\Q0BF=<_.a*3epeY|t ݼcvlҷ+@piQA{2E9WN4[Z`h6VM/zPbd(G C^K6XV4j<t -0+0U0steve@ibctech.ca0U0 0
*H
æ|85aQz-*3HG .s*Fw*`HvFw;9ytƘn0taC/:WC+LÙ{Oq 1 n00CK9AbxIUw0
*H
0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
090507231610Z
100507231610Z0B10UThawte Freemail Member10 *H
steve@ibctech.ca0"0
*H
0
DZ杙<2IⵀfrsE6q?0.>
S@Œ!V?A\Q
r-aZ
Ōf/0{OYQhɏߴ
F_\Q0BF=<_.a*3epeY|t ݼcvlҷ+@piQA{2E9WN4[Z`h6VM/zPbd(G C^K6XV4j<t -0+0U0steve@ibctech.ca0U0 0
*H
æ|85aQz-*3HG .s*Fw*`HvFw;9ytƘn0taC/:WC+LÙ{Oq 1 n0?0
0
*H
010 UZA10UWestern Cape10U Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H
personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
*H
0 Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr` 00U0 0CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
*H
HP.
fgCL!6-6/P p<ab:~ t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1d0`0v0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAK9AbxIUw0 + 0 *H
1 *H
0 *H
1
090529140622Z0# *H
1,sG5襝LB铭S:f|0R *H
1E0C0
*H
0*H
0
*H
@0+0
*H
(0 +71x0v0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAK9AbxIUw0*H
1xv0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAK9AbxIUw0
*H
j,WڍeI鱱"*FT
fD='3ג}EUҩmxwW[K K仰3iuk'Mlnš:+a*D4ީS߸lmok1}En_UHVkZ d^8کUnЧsBLN*yPF(wiYzj|[.:NA%Ʌ.GGa+an`9HVvӕ|(Qi5dD}
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A1FEBDE.90009>
