Subject: Re: Use of ${PKGNAME} can lead to confusion
To: Todd Vierling <tv@duh.org>
From: Quentin Garnier <cube@cubidou.net>
List: tech-pkg
Date: 10/09/2005 16:40:31
--2+K7TauFN1Oc3ugB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Oct 09, 2005 at 10:25:38AM -0400, Todd Vierling wrote:
> On Sun, 9 Oct 2005, Quentin Garnier wrote:
>=20
> > You mean, no indication besides common sense?  There are very little
> > cases where DIST_SUBDIR=3D${PKGNAME_NOREV} would make sense.
>=20
> No, I think the other way round doesn't typically make sense.  All the ca=
ses
> I can remember of:
>=20
> DIST_SUBDIR=3D${PKGNAME}
>=20
> were because the distfiles were *unversioned*, thus they had to be
> downloaded into a place that disambiguated the files when they changed
> [author-specified] version.  In every single such case, it really should =
be:
>=20
> DIST_SUBDIR=3D${PKGNAME_NOREV}
>=20
> I can't think of any cases off the top of my head where the PKGREVISION
> *should* be in the DIST_SUBDIR.

When the distfile is versioned and yet change (i.e., moronic packager),
something has to version it.  We (ab)use PKGREVISION for that.

In Roland's example, the distfile is versioned.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--2+K7TauFN1Oc3ugB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQ0kr39goQloHrPnoAQICfAf/fGYYGypzAn2EswE0VIuSDDQ+cX9h2KRX
vrI7ASLaybHmp1V+d4i3u/8Xv5pfOSEdqOF8hevZ8IBqYbGL5qjHNRIWCXjtnKbw
HX29+0tzJh+BnUalrD8NeXITCQOTJEas0srkDuPfswaTFpxzVvV3SVE2HkDE3lSe
E4Fb6LCpRW8w2iAoJslyD5KQXZ09xzQZKLQYe5IIuxOd+8vjRV9WlzDYWHflaDo/
91jjAquDJ2rkX9W0RV4xsWm1skyOb1Ao3lKSfcKN3gdHaBHZRHPjtxO09iI5bmQf
OA0j/xuJq6muO/tPHr6U/y73/Rkyl8oldb57uO9x1stlgHXU0C+0Yg==
=99jz
-----END PGP SIGNATURE-----

--2+K7TauFN1Oc3ugB--