summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-12-01 01:45:54 +0000
committerrillig <rillig@pkgsrc.org>2005-12-01 01:45:54 +0000
commit36c0219841783cd611a911f0ab6aa7dea8177213 (patch)
treec5aebc3ae5afba2cf3a78ffe41238aa7377cd3af
parentb8deaf4629904d01dc6cf735920c981a3b957bc5 (diff)
downloadpkgsrc-36c0219841783cd611a911f0ab6aa7dea8177213.tar.gz
- Disabled the check for direct use of tool names completely, as there are
two different kinds of tools in pkgsrc, which need different checks.
-rw-r--r--pkgtools/pkglint/files/pkglint.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 2d174298dcc..a34f87d6de0 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.396 2005/12/01 01:19:30 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.397 2005/12/01 01:45:54 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1756,7 +1756,7 @@ sub get_tool_names() {
} elsif ($varname =~ qr"^(?:TOOLS_PATH|_TOOLS_DEPMETHOD|_TOOLS_VARNAME)\.([-\w.]+|\[)$") {
$tools->{$1} = true;
- } elsif ($varname eq "_TOOLS.x11-clients") {
+ } elsif ($varname =~ qr"^_TOOLS\.") {
foreach my $tool (split(qr"\s+", $value)) {
$tools->{$tool} = true;
}
@@ -1991,6 +1991,10 @@ sub checkline_basic_vartype($$$$$) {
}
} elsif ($type eq "Tool") {
+# FIXME: There are two different kinds of tools in pkgsrc.
+# I've asked jlam for appropriate checks. Until I get a
+# definite answer, this check will be disabled.
+if (false) {
if ($value =~ qr"^([-\w]+|\[)(?::(\w+))?$") {
my ($toolname, $tooldep) = ($1, $2);
if (!exists(get_tool_names()->{$toolname})) {
@@ -2002,6 +2006,7 @@ sub checkline_basic_vartype($$$$$) {
} else {
$line->log_error("Invalid tool syntax: \"${value}\".");
}
+}
} elsif ($type eq "URL") {
if ($value eq "" && defined($comment) && $comment =~ qr"^#") {