From f77b7e493a067655b64bd08174646d7a2a7b0a2f Mon Sep 17 00:00:00 2001 From: rillig Date: Fri, 2 Sep 2005 22:45:31 +0000 Subject: Removed the -Winternal flag and the checks for the ":=" operator. There had been too many spurious warnings to be worth the effort. --- pkgtools/pkglint/files/pkglint.pl | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'pkgtools') 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); -- cgit v1.2.3