Is WRKDIR a user- or a port-defined variable? (Re: Screwy
behavior in ports framework)
Chris Rees
crees at freebsd.org
Tue Sep 13 17:35:36 UTC 2011
On 13 September 2011 17:25, h h <aakuusta at gmail.com> wrote:
> (redirect from -current@ to -ports@)
>
> Erwin Lansing <erwin at FreeBSD.org> writes:
>
>> On Tue, Sep 13, 2011 at 09:45:05AM +0000, Thomas Mueller wrote:
>>>
>>>
>>> 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 ?
>>
>> The latter. Default 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?
>
> databases/jasperserver/Makefile:WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work
> misc/py-xdelta3/Makefile:WRKDIR= ${WRKDIRPREFIX}${MASTERDIR}/work
> net/py-miniupnpc/Makefile:WRKDIR= ${WRKDIRPREFIX}${MASTERDIR}/work
>
> In fact, Porter's Handbook encourages its redefining unlike WRKDIRPREFIX
>
> http://www.freebsd.org/doc/en/books/porters-handbook/porting-wrkdir.html
> http://www.freebsd.org/doc/en/books/porters-handbook/porting-wrkdirprefix.html
>
> Are you talking about new policy?
Hm, a bit naughty. Perhaps something like:
WRKDIR= ${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
More information about the freebsd-ports
mailing list