Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Feb 2013 21:39:53 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        meta <meta@vmeta.jp>
Cc:        ports@freebsd.org
Subject:   Re: WRKDIRPREFIXPORTSDIR?
Message-ID:  <5116C229.6090404@infracaninophile.co.uk>
In-Reply-To: <e374068bb9d1b93f91570c1a17903064@vmeta.jp>
References:  <e374068bb9d1b93f91570c1a17903064@vmeta.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2TRMLTOGKDUQKIXXIOIOK
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 09/02/2013 18:37, meta wrote:
> Porter's handbook section 12.3 mentions WRKDIREPREFIXPORTSDIR,
> but I can't find it anywhere.
>=20
> $ grep WRKDIRPREFIXPORTSDIR /usr/ports/Mk/*
>   -> not found
> $ find /usr/ports -name Makefile -depth 3 | xargs grep WRKDIRPREFIXPORT=
SDIR
>   -> not found
>=20
> 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.

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

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


------enig2TRMLTOGKDUQKIXXIOIOK
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlEWwjEACgkQ8Mjk52CukIxi5ACfa1Z+OVuXQYNl1WJum+AAaIko
2dEAn2ATVcaoFjQ0RTKbxqzvLL0uzOqL
=CF9L
-----END PGP SIGNATURE-----

------enig2TRMLTOGKDUQKIXXIOIOK--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5116C229.6090404>