From owner-freebsd-questions@FreeBSD.ORG Wed May 27 18:55:19 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 40B41106564A for ; Wed, 27 May 2009 18:55:19 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0CBA48FC20 for ; Wed, 27 May 2009 18:55:18 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id E0BAC7E837; Wed, 27 May 2009 10:36:05 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Wed, 27 May 2009 20:36:03 +0200 User-Agent: KMail/1.11.3 (FreeBSD/8.0-CURRENT; KDE/4.2.3; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905272036.04272.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Kurt Buff , FreeBSD Questions 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 18:55:19 -0000 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 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. -- Mel