Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2011 18:35:05 +0100
From:      Chris Rees <crees@freebsd.org>
To:        h h <aakuusta@gmail.com>
Cc:        Jason <jhelfman@e-e.com>, freebsd-ports@freebsd.org
Subject:   Re: Is WRKDIR a user- or a port-defined variable? (Re: Screwy behavior in ports framework)
Message-ID:  <CADLo838mc9efwYbwyxFftM31M==KY-1UjXJOQ5sc5fO4kf==hw@mail.gmail.com>
In-Reply-To: <86vcswjtod.fsf_-_@gmail.com>
References:  <20110913094514.071C8106573A@hub.freebsd.org> <20110913113322.GX79144@droso.net> <86vcswjtod.fsf_-_@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13 September 2011 17:25, h h <aakuusta@gmail.com> wrote:
> (redirect from -current@ to -ports@)
>
> Erwin Lansing <erwin@FreeBSD.org> writes:
>
>> On Tue, Sep 13, 2011 at 09:45:05AM +0000, Thomas Mueller wrote:
>>>
>>>
>>> PORTSDIR=3D/BETA1/usr/ports
>>> PACKAGES=3D/usr/packages
>>> WRKDIR=3Dworkb2
>>> # added by use.perl 2011-09-13 02:49:43
>>> PERL_VERSION=3D5.14.1
>>>
>>> Maybe WRKDIR should have been ${MASTERDIR}/workb2 , or should it be ${.=
CURDIR}/workb2 ?
>>
>> The latter. =A0Default for WRKDIR is ${WRKDIRPREFIX}${.CURDIR}/work, so
>> you'll need to include ${.CURDIR} as well.
>
> If it's supported why WRKDIR assignments are not cleaned up?
>
> =A0databases/jasperserver/Makefile:WRKDIR=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
${WRKDIRPREFIX}${.CURDIR}/work
> =A0misc/py-xdelta3/Makefile:WRKDIR=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0${WRKDIR=
PREFIX}${MASTERDIR}/work
> =A0net/py-miniupnpc/Makefile:WRKDIR=3D =A0 =A0 =A0 =A0 =A0 =A0 ${WRKDIRPR=
EFIX}${MASTERDIR}/work
>
> In fact, Porter's Handbook encourages its redefining unlike WRKDIRPREFIX
>
> =A0http://www.freebsd.org/doc/en/books/porters-handbook/porting-wrkdir.ht=
ml
> =A0http://www.freebsd.org/doc/en/books/porters-handbook/porting-wrkdirpre=
fix.html
>
> Are you talking about new policy?

Hm, a bit naughty. Perhaps something like:

WRKDIR=3D ${WRKDIR:S/${.CURDIR}/${MASTERDIR}/}

would be more appropriate?

Jasperserver seems to do some pretty terrifying things though...
Jason, could you explain why you're redefining WRKDIR to the default please=
??

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo838mc9efwYbwyxFftM31M==KY-1UjXJOQ5sc5fO4kf==hw>