summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-10-07 10:24:42 +0000
committerrillig <rillig>2005-10-07 10:24:42 +0000
commiteb2adccec61bcf2bcb9f2840c2cce26bacf9b8db (patch)
tree1937d2546835dce61ac277993ead28a6637c430e /pkgtools
parented4cc1b6367193391bedba0d75f5bbf39a547346 (diff)
downloadpkgsrc-eb2adccec61bcf2bcb9f2840c2cce26bacf9b8db.tar.gz
Updated pkglint to 4.24.
Warn if option names contain underscore characters (suggested by dillo). NO_TOOLS and NO_WRAPPER are deprecated, as they are not used anymore.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/deprecated.map6
-rw-r--r--pkgtools/pkglint/files/pkglint.pl8
3 files changed, 14 insertions, 4 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 3d307bb6a7c..2158303e7bd 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.259 2005/09/29 13:38:37 rillig Exp $
+# $NetBSD: Makefile,v 1.260 2005/10/07 10:24:42 rillig Exp $
#
-DISTNAME= pkglint-4.23.2
+DISTNAME= pkglint-4.24
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/deprecated.map b/pkgtools/pkglint/files/deprecated.map
index f9b973a51d9..159c2b9c7ae 100644
--- a/pkgtools/pkglint/files/deprecated.map
+++ b/pkgtools/pkglint/files/deprecated.map
@@ -1,4 +1,4 @@
-# $NetBSD: deprecated.map,v 1.9 2005/08/01 11:40:56 wiz Exp $
+# $NetBSD: deprecated.map,v 1.10 2005/10/07 10:24:43 rillig Exp $
#
# This file contains names of Makefile variables and a short explanation
@@ -42,3 +42,7 @@ USE_PKGLIBTOOL Use USE_LIBTOOL instead.
# The following entries can be removed after the 2005Q4 branch.
USE_PERL5 Use USE_TOOLS+=perl or USE_TOOLS+=perl:run instead.
+
+# The following entries can be removed after the 2006Q1 branch.
+NO_TOOLS You can just remove it.
+NO_WRAPPER You can just remove it.
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index ff620e63b6e..b42cc5aec7b 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.293 2005/09/28 21:39:05 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.294 2005/10/07 10:24:43 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1508,6 +1508,12 @@ sub checklines_package_Makefile($) {
}
}
+ if ($varname eq "PKG_SUPPORTED_OPTIONS" || $varname eq "PKG_SUGGESTED_OPTIONS") {
+ if ($value =~ qr"_") {
+ $line->log_warning("Options should not contain underscores.");
+ }
+ }
+
if ($value eq "# defined" && $varname !~ qr".*(?:_MK|_COMMON)$") {
$line->log_warning("Please use \"# empty\", \"# none\" or \"yes\" instead of \"# defined\".");
}