WRKDIRPREFIXPORTSDIR?

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat Feb 9 21:40:14 UTC 2013


On 09/02/2013 18:37, meta wrote:
> Porter's handbook section 12.3 mentions WRKDIREPREFIXPORTSDIR,
> but I can't find it anywhere.
> 
> $ grep WRKDIRPREFIXPORTSDIR /usr/ports/Mk/*
>   -> not found
> $ find /usr/ports -name Makefile -depth 3 | xargs grep WRKDIRPREFIXPORTSDIR
>   -> not found
> 
> Is it obsolete and has it disappeared? What's the alternative?

That looks like a flaw in the way the Porter's Handbook is converted
into HTML.

There isn't a variable 'WRKDIRPREFIXPORTSDIR' [*] as the PH apparently
claims there is.  Instead there are two variables:

     ${WRKDIRPREFIX}
     ${PORTSDIR}

So: taking the www/apache22 port as an example, and setting WRKDIRPREFIX
to a distinct value as it's usually empty, we see:

% cd /usr/ports/www/apache22
% setenv WRKDIRPREFIX /usr/obj
% make -V WRKDIRPREFIX
/usr/obj
% make -V PORTSDIR
/usr/ports
% make -V WRKDIR
/usr/obj/usr/ports/www/apache22/work

So you can see that ${WRKDIR} is composed as:

${WRKDIRPREFIX}${PORTSDIR}/www/apache22/work

All the $-signs and other punctuation seems to have gone missing from
that section in the PH.

	Cheers,

	Matthew

[*] Nor indeed WRKDIREPREFIXPORTSDIR, but that was probably a typo.

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew at infracaninophile.co.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 268 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130209/94921176/attachment.sig>


More information about the freebsd-ports mailing list