summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-09-02 22:45:31 +0000
committerrillig <rillig@pkgsrc.org>2005-09-02 22:45:31 +0000
commitb57ad505018933179096731dbd2f59b1660e2876 (patch)
treebc1e182917d0fb361053c05b4fbb8a83194ce701 /pkgtools
parent5f2fa22cbfa0d03112b8a2a10f17ead78527288b (diff)
downloadpkgsrc-b57ad505018933179096731dbd2f59b1660e2876.tar.gz
Removed the -Winternal flag and the checks for the ":=" operator. There had
been too many spurious warnings to be worth the effort.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl17
1 files changed, 1 insertions, 16 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 0b0732452d7..a4931369687 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.270 2005/09/02 12:39:42 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.271 2005/09/02 22:45:31 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -328,7 +328,6 @@ my (%checks) = (
my $opt_warn_absname = true;
my $opt_warn_directcmd = true;
my $opt_warn_exec = true;
-my $opt_warn_internal = false;
my $opt_warn_order = true;
my $opt_warn_paren = true;
my $opt_warn_plist_sort = false;
@@ -339,7 +338,6 @@ my (%warnings) = (
"absname" => [\$opt_warn_absname, "warn about use of absolute file names"],
"directcmd" => [\$opt_warn_directcmd, "warn about use of direct command names instead of Make variables"],
"exec" => [\$opt_warn_exec, "warn if source files are executable"],
- "internal" => [\$opt_warn_internal, "emit warnings for the pkgsrc infrastructure files"],
"order" => [\$opt_warn_order, "warn if Makefile entries are unordered"],
"paren" => [\$opt_warn_paren, "warn about use of \$(VAR) instead of \${VAR} in Makefiles"],
"plist-sort" => [\$opt_warn_plist_sort, "warn about unsorted entries in PLISTs"],
@@ -1347,19 +1345,6 @@ sub checklines_Makefile($) {
if ($text =~ /^\040{8}/) {
$line->log_warning("Use tab (not spaces) to make indentation.");
}
-
- if ($text =~ $regex_varassign) {
- my ($varname, $op, $value) = ($1, $2, $3);
-
- if ($op eq ":=") {
- if ($line->file =~ qr"buildlink3.mk$" && $varname =~ "BUILDLINK") {
- # buildlink3 files may use the := operator
-
- } elsif ($opt_warn_internal || $line->file !~ qr"/mk/") {
- $line->log_warning("Please use \"=\" instead of \":=\" if possible.");
- }
- }
- }
}
checklines_trailing_empty_lines($lines);