Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 1999 12:08:33 +0200
From:      Sheldon Hearn <axl@iafrica.com>
To:        ports@FreeBSD.ORG
Subject:   Side-effects of changing WRKDIR in bsd.port.mk?
Message-ID:  <4467.918727713@axl.noc.iafrica.com>

next in thread | raw e-mail | index | archive | help

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



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