Sun May 26 18:09:24 2013 UTC ()
rillig clarified:
"u" means "use at runtime", i.e. the variable may not be available
during preprocessing.
"t" wasn't used at all (my error -- wiz)

Bump version.


(wiz)
diff -r1.429 -r1.430 pkgsrc/pkgtools/pkglint/Makefile
diff -r1.855 -r1.856 pkgsrc/pkgtools/pkglint/files/pkglint.pl

cvs diff -r1.429 -r1.430 pkgsrc/pkgtools/pkglint/Makefile (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkglint/Makefile 2013/05/06 02:53:24 1.429
+++ pkgsrc/pkgtools/pkglint/Makefile 2013/05/26 18:09:23 1.430
@@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
1# $NetBSD: Makefile,v 1.429 2013/05/06 02:53:24 obache Exp $ 1# $NetBSD: Makefile,v 1.430 2013/05/26 18:09:23 wiz Exp $
2 2
3# Note: if you update the version number, please have a look at the 3# Note: if you update the version number, please have a look at the
4# changes between the CVS tag "pkglint_current" and HEAD. 4# changes between the CVS tag "pkglint_current" and HEAD.
5# After updating, please re-set the CVS tag to HEAD. 5# After updating, please re-set the CVS tag to HEAD.
6DISTNAME= pkglint-4.129 6DISTNAME= pkglint-4.130
7CATEGORIES= pkgtools 7CATEGORIES= pkgtools
8MASTER_SITES= # none 8MASTER_SITES= # none
9DISTFILES= # none 9DISTFILES= # none
10 10
11OWNER= wiz@NetBSD.org 11OWNER= wiz@NetBSD.org
12HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/ 12HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/
13COMMENT= Verifier for NetBSD packages 13COMMENT= Verifier for NetBSD packages
14 14
15DEPENDS+= p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1 15DEPENDS+= p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
16DEPENDS+= p5-enum>=1.016:../../devel/p5-enum 16DEPENDS+= p5-enum>=1.016:../../devel/p5-enum
17DEPENDS+= p5-pkgsrc-Dewey>=1.0:../../pkgtools/p5-pkgsrc-Dewey 17DEPENDS+= p5-pkgsrc-Dewey>=1.0:../../pkgtools/p5-pkgsrc-Dewey
18 18
19BUILD_DEPENDS+= p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep 19BUILD_DEPENDS+= p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep

cvs diff -r1.855 -r1.856 pkgsrc/pkgtools/pkglint/files/Attic/pkglint.pl (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkglint/files/Attic/pkglint.pl 2013/05/06 02:53:25 1.855
+++ pkgsrc/pkgtools/pkglint/files/Attic/pkglint.pl 2013/05/26 18:09:24 1.856
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1#! @PERL@ 1#! @PERL@
2# $NetBSD: pkglint.pl,v 1.855 2013/05/06 02:53:25 obache Exp $ 2# $NetBSD: pkglint.pl,v 1.856 2013/05/26 18:09:24 wiz Exp $
3# 3#
4 4
5# pkglint - static analyzer and checker for pkgsrc packages 5# pkglint - static analyzer and checker for pkgsrc packages
6# 6#
7# Written by: 7# Written by:
8# Roland Illig <rillig@NetBSD.org> 8# Roland Illig <rillig@NetBSD.org>
9# 9#
10# Based on work by: 10# Based on work by:
11# Hubert Feyrer <hubertf@NetBSD.org> 11# Hubert Feyrer <hubertf@NetBSD.org>
12# Thorsten Frueauf <frueauf@NetBSD.org> 12# Thorsten Frueauf <frueauf@NetBSD.org>
13# Thomas Klausner <wiz@NetBSD.org> 13# Thomas Klausner <wiz@NetBSD.org>
14# and others. 14# and others.
15# 15#
@@ -3697,28 +3697,27 @@ sub checkline_mk_shelltext($$) { @@ -3697,28 +3697,27 @@ sub checkline_mk_shelltext($$) {
3697 $line->log_error("Internal pkglint error: " . scst_statename->[$state] . ": rest=${rest}"); 3697 $line->log_error("Internal pkglint error: " . scst_statename->[$state] . ": rest=${rest}");
3698 } 3698 }
3699} 3699}
3700 3700
3701sub checkline_mk_shellcmd($$) { 3701sub checkline_mk_shellcmd($$) {
3702 my ($line, $shellcmd) = @_; 3702 my ($line, $shellcmd) = @_;
3703 3703
3704 checkline_mk_text($line, $shellcmd); 3704 checkline_mk_text($line, $shellcmd);
3705 checkline_mk_shelltext($line, $shellcmd); 3705 checkline_mk_shelltext($line, $shellcmd);
3706} 3706}
3707 3707
3708sub expand_permission($) { 3708sub expand_permission($) {
3709 my ($perm) = @_; 3709 my ($perm) = @_;
3710 # wiz 20120826: IIUC, "u" is the permission for the variable to be used at all here; no need to expand it 3710 my %fullperm = ( "a" => "append", "d" => "default", "p" => "preprocess", "s" => "set", "u" => "runtime", "?" => "unknown" );
3711 my %fullperm = ( "a" => "append", "d" => "default", "p" => "preprocess", "s" => "set", "t" => "runtime", "?" => "unknown", "u" => "" ); 
3712 my $result = join(", ", map { $fullperm{$_} } split //, $perm); 3711 my $result = join(", ", map { $fullperm{$_} } split //, $perm);
3713 $result =~ s/, $//g; 3712 $result =~ s/, $//g;
3714 3713
3715 return $result; 3714 return $result;
3716} 3715}
3717 3716
3718sub checkline_mk_vardef($$$) { 3717sub checkline_mk_vardef($$$) {
3719 my ($line, $varname, $op) = @_; 3718 my ($line, $varname, $op) = @_;
3720 3719
3721 $opt_debug_trace and $line->log_debug("checkline_mk_vardef(${varname}, ${op})"); 3720 $opt_debug_trace and $line->log_debug("checkline_mk_vardef(${varname}, ${op})");
3722 3721
3723 # If we are checking a whole package, add it to the package-wide 3722 # If we are checking a whole package, add it to the package-wide
3724 # list of defined variables. 3723 # list of defined variables.