From owner-freebsd-current@FreeBSD.ORG Tue Sep 13 09:45:14 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 071C8106573A for ; Tue, 13 Sep 2011 09:45:07 +0000 (UTC) (envelope-from mueller6727@bellsouth.net) Received: from fmailhost02.isp.att.net (fmailhost02.isp.att.net [207.115.11.52]) by mx1.freebsd.org (Postfix) with ESMTP id 221768FC17 for ; Tue, 13 Sep 2011 09:45:06 +0000 (UTC) Date: Tue, 13 Sep 2011 09:45:05 +0000 (GMT) X-Comment: Sending client does not conform to RFC822 minimum requirements X-Comment: Date has been added by Maillennium Received: from localhost (adsl-68-210-172-214.sdf.bellsouth.net[68.210.172.214]) by isp.att.net (frfwmhc02) with SMTP id <20110913094504H0200ced4le>; Tue, 13 Sep 2011 09:45:05 +0000 X-Originating-IP: [68.210.172.214] From: "Thomas Mueller" To: freebsd-current@freebsd.org Message-Id: <20110913094514.071C8106573A@hub.freebsd.org> Subject: Re: Screwy behavior in ports framework X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2011 09:45:14 -0000 Sorry about fubar e-mail address, it was a typo, missing > at the end of the line: From: "Thomas Mueller" WKRDIR needs to be an absolute path and will break when it moves up the > tree to install dependencies. The most likely fix is to adjust the > default value ${WRKDIRPREFIX}${.CURDIR}/work to your liking, but what > you probably want is to set WRKDIRPREFIX to say /BETA1/workb2/ or > similar. > Erwin > -- > Erwin Lansing http://droso.org I quote my /etc/make.conf from BETA2: PORTSDIR=/BETA1/usr/ports PACKAGES=/usr/packages WRKDIR=workb2 # added by use.perl 2011-09-13 02:49:43 PERL_VERSION=5.14.1 Maybe WRKDIR should have been ${MASTERDIR}/workb2 , or should it be ${.CURDIR}/workb2 ? NetBSD pkgsrc has WRKDIR_BASENAME, as in my /etc/mk.conf from NetBSD 4.0.1 i386 on a 4 GB USB stick, running on a computer where the motherboard USB version is 1.1, and NetBSD 5.1_STABLE is on the hard drive, mounted as /lin1: # Example /usr/pkg/etc/mk.conf file produced by bootstrap-pkgsrc # Sat Nov 27 22:37:13 UTC 2010 .ifdef BSD_PKG_MK # begin pkgsrc settings PACKAGES= /usr/pkgsrc/packages PKG_DEVELOPER=YES PKG_DEFAULT_OPTIONS+= ssl inet6 PKG_DBDIR= /var/db/pkg LOCALBASE= /usr/pkg VARBASE= /var PKG_TOOLS_BIN= /usr/pkg/sbin PKGMANDIR= man WRKDIR_BASENAME= work401 WRKOBJDIR= /lin1/usr/pkgsrc PKG_OPTIONS.msmtp+= idn PKG_OPTIONS.lynx+= ncurses ACCEPTABLE_LICENSES+= socks5-license ALLOW_VULNERABLE_PACKAGES=yes DEPENDS_TARGET=package-install SKIP_LICENSE_CHECK= yes .endif # end pkgsrc settings This WRKDIR_BASENAME is what I really want to be workb2, work directory is intended to be /BETA1/usr/ports///workb2 workb2 to distinguish from the "work" used when building ports in BETA1. I don't think FreeBSD ports has a WRKDIR_BASENAME, it would be very helpful if it did. Tom