From owner-freebsd-questions@FreeBSD.ORG Wed May 27 19:28:10 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B21D6106567F; Wed, 27 May 2009 19:28:10 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id 126F78FC22; Wed, 27 May 2009 19:28:09 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by ewy8 with SMTP id 8so1192057ewy.43 for ; Wed, 27 May 2009 12:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9+DdFUC2K0hAUK96KtJPYIeeF+M0thXd0MNg1V4vQF8=; b=SMmMQCbHSFx0/t690hHkILxqYNamf91xOSzUbHx5FCFI2C7B2EVvXM4T6DBEJIKfBf Di7wpBcZIM/uDc62fTXv9j8UGlfmP3hhIve6dZLaDKgHO5I12/H+/7hQ+C/Y7C1FWQUW CvZrsv6qJ1hSqeSvHPeS07tZ21w6HoNK1ip30= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=kyLjD4up352Ya0MUtV8A0dGKrCJSitAtnUWcFUAn5rUVGGe6gcZyXLhCnqTwG/3tb8 02WtGRsszANcnSf1+4ibAbt98XjlP9UjkWrmPEiIXUJUG+gaXRAZPba2undTV8gjAeaH MDrcJZZhPLgbOtht/P/jtJwgQ5+FuR693sZQo= MIME-Version: 1.0 Received: by 10.210.144.8 with SMTP id r8mr18720ebd.48.1243452488874; Wed, 27 May 2009 12:28:08 -0700 (PDT) In-Reply-To: <200905272036.04272.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <200905272036.04272.mel.flynn+fbsd.questions@mailing.thruhere.net> Date: Wed, 27 May 2009 12:28:08 -0700 Message-ID: From: Kurt Buff To: Mel Flynn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions , freebsd-questions@freebsd.org Subject: Re: Patching? Probably a trivial question, but... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2009 19:28:12 -0000 On Wed, May 27, 2009 at 11:36, Mel Flynn 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 > >> 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