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: [email protected]
signature.asc
Description: OpenPGP digital signature
