pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Don't show warnings for tool na...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b6f2ad855f0d
branches: trunk
changeset: 497129:b6f2ad855f0d
user: rillig <rillig%pkgsrc.org@localhost>
date: Wed Jul 20 21:04:16 2005 +0000
description:
Don't show warnings for tool names that are enclosed in single quotes.
Replace ${PHPPKGSRCDIR} with ../../lang/php5 when expanding Makefile
variables. Show a warning if Makefile variables contain unresolved
substitutions after expanding them. Fixed a newly introduced bug that
prevented bsd.sites.mk from being found.
diffstat:
pkgtools/pkglint/files/pkglint.pl | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (47 lines):
diff -r 38dcdf4b00dc -r b6f2ad855f0d pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed Jul 20 20:38:28 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed Jul 20 21:04:16 2005 +0000
@@ -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.210 2005/07/20 18:20:27 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.211 2005/07/20 21:04:16 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1244,7 +1244,8 @@
USE_TOOLS);
my @ok_shellcmds = (
qr"(?:\./Build|\$\{JAM_COMMAND\})\s+(?:install|test)",
- qr"\"[^\"]*${regex_tools}[^\"]*\"");
+ qr"\"[^\"]*${regex_tools}[^\"]*\"",
+ qr"\'[^\']*${regex_tools}[^\']*\'");
my %toolvar = ();
foreach my $tool (@tools) {
@@ -1314,9 +1315,15 @@
}
$value =~ s,\$\{\.CURDIR\},.,g;
$value =~ s,\$\{PKGSRCDIR\},../..,g;
+ $value =~ s,\$\{PHPPKGSRCDIR\},../../lang/php5,g;
if (defined($pkgdir)) {
$value =~ s,\$\{PKGDIR\},$pkgdir,g;
}
+ if ($value =~ qr"\$") {
+ log_warning(NO_FILE, NO_LINE_NUMBER, "The variable ${varname} could not be resolved completely.");
+ log_warning(NO_FILE, NO_LINE_NUMBER, "Its value would be \"${value}\"---using \"${default_value}\" instead.");
+ $value = $default_value;
+ }
return $value;
}
@@ -1526,7 +1533,7 @@
$opt_warn_vague && log_error(NO_FILE, NO_LINE_NUMBER, "URL \"$i\" contains ".
"extra \":\".");
}
- check_predefined_sites($dir, $i);
+ check_predefined_sites("$dir/../..", $i);
} else {
log_info(NO_FILE, NO_LINE_NUMBER, "non-URL \"$i\" ok.");
}
Home |
Main Index |
Thread Index |
Old Index