Date: Fri, 24 Jun 2005 11:22:52 +0300 From: Vasil Dimov <vd@datamax.bg> To: freebsd-ports@freebsd.org Cc: marcus@FreeBSD.org, mharo@freebsd.org Subject: Why portlint warns about hyphens in PORTNAME when DISTNAME is defined? Message-ID: <20050624082252.GA13273@sinanica.bg.datamax>
next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 http://www.FreeBSD.org/doc/en/books/porters-handbook/makefile-naming.html#PORTING-PKGNAME states that: "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----- iD8DBQFCu8LcFw6SP/bBpCARAq2JAKCR00B5F/eIvSi1QBzidyNjfl0rMQCgq2Q3 XIYJ76WCerQAhMVpX6qzdtY= =OghO -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050624082252.GA13273>