Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2009 12:28:08 -0700
From:      Kurt Buff <kurt.buff@gmail.com>
To:        Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
Cc:        FreeBSD Questions <questions@freebsd.org>, freebsd-questions@freebsd.org
Subject:   Re: Patching? Probably a trivial question, but...
Message-ID:  <a9f4a3860905271228sf2860e2r478ea61fd5a64218@mail.gmail.com>
In-Reply-To: <200905272036.04272.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
References:  <a9f4a3860905270821h31c36b9fh25389f79ee33c29@mail.gmail.com> <200905272036.04272.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 corresp=
onds
> to the port's notion of $PATCH_WRKSRC
> - You can find out this directory by running:
> =C2=A0 =C2=A0 =C2=A0 =C2=A0% make -C /usr/ports/category/portname -V PATC=
H_WRKSRC
> =C2=A0The default is $WRKSRC which is $WRKDIR/$DISTNAME by default.
> =C2=A0Example:
> =C2=A0 =C2=A0 =C2=A0 =C2=A0% make -C /usr/ports/sysutils/nagios-statd -V =
PATCH_WRKSRC
> =C2=A0 =C2=A0 =C2=A0 =C2=A0/stable/usr/obj/usr/ports/sysutils/nagios-stat=
d/work/nagios-statd-3.12
>
> - Patches are automatically applied if they reside in the port's notion o=
f
> PATCHDIR and are named patch-*
> - You can find out this directory by running:
> =C2=A0 =C2=A0 =C2=A0 =C2=A0%make -C /usr/ports/category/portname -V PATCH=
DIR
> =C2=A0The default is $.CURDIR/files.
> =C2=A0Example:
> =C2=A0 =C2=A0 =C2=A0 =C2=A0% make -C /usr/ports/sysutils/nagios-statd -V =
PATCHDIR
> =C2=A0 =C2=A0 =C2=A0 =C2=A0/usr/ports/sysutils/nagios-statd/files
>
> - In order to apply a new patch after you have previously gone past the p=
atch
> stage (configure, build, install), either run make clean or:
> =C2=A0 =C2=A0 =C2=A0 =C2=A0% rm $(make -C /usr/ports/category/portname -V=
 PATCH_COOKIE)
> =C2=A0The 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.

Many thanks for this.

Kurt



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