From owner-freebsd-ports Thu Feb 11 02:08:46 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA23473 for freebsd-ports-outgoing; Thu, 11 Feb 1999 02:08:46 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA23467 for ; Thu, 11 Feb 1999 02:08:38 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 2.12 #1) id 10At2v-0001A4-00 for ports@freebsd.org; Thu, 11 Feb 1999 12:08:33 +0200 From: Sheldon Hearn To: ports@FreeBSD.ORG Subject: Side-effects of changing WRKDIR in bsd.port.mk? Date: Thu, 11 Feb 1999 12:08:33 +0200 Message-ID: <4467.918727713@axl.noc.iafrica.com> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi folks, I keep my ports tree mounted on /usr but I want builds to happen in /a/ports-build. I've set the following in /etc/make.conf: WRKDIRPREFIX= /a/ports-build DISTDIR= ${WRKDIRPREFIX}/distfiles This causes WRKDIR to end up being something like /a/ports-build/usr/ports/www/apache13/work . I'd prefer something like /a/ports-build/www/apache13/work . Can anyone think of any nasty side-effects of using the following patch to effect this change? Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.304 diff -u -d -r1.304 bsd.port.mk --- bsd.port.mk 1999/02/03 11:06:19 1.304 +++ bsd.port.mk 1999/02/11 10:07:21 @@ -526,7 +526,7 @@ # Start of post-makefile section. .if !defined(BEFOREPORTMK) -WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work +WRKDIR?= ${WRKDIRPREFIX}/work .if defined(NO_WRKSUBDIR) WRKSRC?= ${WRKDIR} .else I can't see how this would break anything, but I thought I'd check here before being brazen. Thanks, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message