diff options
author | rillig <rillig@pkgsrc.org> | 2005-09-02 22:45:31 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-09-02 22:45:31 +0000 |
commit | 27692e6a7edd91db275e91d61a5518a33fbf4fa2 (patch) | |
tree | bc1e182917d0fb361053c05b4fbb8a83194ce701 /pkgtools | |
parent | e24765e322c918052038ea4bd0a9443a70776ed4 (diff) | |
download | pkgsrc-27692e6a7edd91db275e91d61a5518a33fbf4fa2.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.pl | 17 |
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); |