Why portlint warns about hyphens in PORTNAME when DISTNAME is
vd at datamax.bg
Fri Jun 24 08:22:54 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
I just encountered the following warning, produced by portlint:
"WARN: Makefile: using hyphen in PORTNAME. consider using PKGNAMEPREFIX and/or PKGNAMESUFFIX."
Further researching showed that:
* Porter's Handbook, 5.2.4
"If the software in question has numbers, hyphens, or underscores in its name,
you may include them as well (like kinput2)."
* This warning is issued only when DISTNAME is also defined.
* 603 ports in /usr/ports are currently using hyphens in their PORTNAMEs
and also have DISTNAME set.
* CVS logs show that this check was commited on 2000/04/16 with version
1.17 of ports/devel/portlint/src/portlint.pl by mharo, without any
concrete note on exacly this check.
In my case the software's name is foo-bar, but the vendor is
distributing just bar.tar.gz, so I set PORTNAME=foo-bar and
DISTNAME=bar, which causes the above warning to be produced.
So the question is: should this warning be ignored or worked around?
Does this warning make any sense?
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
More information about the freebsd-ports