diff options
author | rillig <rillig@pkgsrc.org> | 2005-09-28 20:47:39 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-09-28 20:47:39 +0000 |
commit | 2c69e8a8941ca93a1afedde417f2dbaafd801bd6 (patch) | |
tree | c25d13735a7e21d04fad0410c5be44155434b009 | |
parent | 36a3b1c41834cc18079114c31cd7dc8427546fcc (diff) | |
download | pkgsrc-2c69e8a8941ca93a1afedde417f2dbaafd801bd6.tar.gz |
Updated pkglint to 4.23.2.
The use of "# defined" as variable value in Makefiles is deprecated. It
has too weak semantics, compared to "# none", "# empty" or "yes".
-rw-r--r-- | doc/CHANGES | 3 | ||||
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 6 |
3 files changed, 9 insertions, 4 deletions
diff --git a/doc/CHANGES b/doc/CHANGES index db77542d73d..616d1ae91a7 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,4 +1,4 @@ -$NetBSD: CHANGES,v 1.11241 2005/09/28 18:23:13 rillig Exp $ +$NetBSD: CHANGES,v 1.11242 2005/09/28 20:48:14 rillig Exp $ Changes to the packages collection and infrastructure in 2005: @@ -4167,3 +4167,4 @@ Changes to the packages collection and infrastructure in 2005: Updated inputmethod/sj3-lib to 2.0.1.20nb2 [rillig 2005-09-28] Updated inputmethod/sj3-server to 2.0.1.20nb2 [rillig 2005-09-28] Updated inputmethod/sj3-server-bin to 2.0.1.20nb5 [rillig 2005-09-28] + Updated pkgtools/pkglint to 4.23.2 [rillig 2005-09-28] diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 79d5a1f5d57..4c116a9c5b8 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.257 2005/09/28 14:12:38 rillig Exp $ +# $NetBSD: Makefile,v 1.258 2005/09/28 20:47:39 rillig Exp $ # -DISTNAME= pkglint-4.23.1 +DISTNAME= pkglint-4.23.2 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 84cc4130899..1dc30c808ad 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -11,7 +11,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.291 2005/09/28 14:12:38 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.292 2005/09/28 20:47:39 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -1507,6 +1507,10 @@ sub checklines_package_Makefile($) { $line->log_warning("COMMENT should not be longer than 70 characters."); } } + + if ($value eq "# defined" && $varname !~ qr".*_MK$") { + $line->log_warning("Please use \"# empty\", \"# none\" or \"yes\" instead of \"# defined\"."); + } } } |