pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint Updated pkglint to 4.42.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0d10ac7d437d
branches:  trunk
changeset: 503376:0d10ac7d437d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Nov 19 13:34:41 2005 +0000

description:
Updated pkglint to 4.42.2.

- Added a check that PERL5_PACKLIST does not contain references to other
  variables. Some packages have ${PERL5_SITEARCH} in it, which results in
  a double slash, and the CHECK_FILES framework cannot handle this.

diffstat:

 pkgtools/pkglint/Makefile           |  4 ++--
 pkgtools/pkglint/files/makevars.map |  3 ++-
 pkgtools/pkglint/files/pkglint.pl   |  7 ++++++-
 3 files changed, 10 insertions(+), 4 deletions(-)

diffs (54 lines):

diff -r 7afba5ac9d5b -r 0d10ac7d437d pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Sat Nov 19 12:47:24 2005 +0000
+++ b/pkgtools/pkglint/Makefile Sat Nov 19 13:34:41 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.298 2005/11/15 03:10:20 rillig Exp $
+# $NetBSD: Makefile,v 1.299 2005/11/19 13:34:41 rillig Exp $
 #
 
-DISTNAME=      pkglint-4.42.1
+DISTNAME=      pkglint-4.42.2
 CATEGORIES=    pkgtools devel
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r 7afba5ac9d5b -r 0d10ac7d437d pkgtools/pkglint/files/makevars.map
--- a/pkgtools/pkglint/files/makevars.map       Sat Nov 19 12:47:24 2005 +0000
+++ b/pkgtools/pkglint/files/makevars.map       Sat Nov 19 13:34:41 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: makevars.map,v 1.33 2005/11/15 13:42:50 rillig Exp $
+# $NetBSD: makevars.map,v 1.34 2005/11/19 13:34:41 rillig Exp $
 #
 
 # This file contains the guessed type of some variables, according to
@@ -116,6 +116,7 @@
 PAM_ACCEPTED           List* of { linux-pam openpam solaris-pam }
 PAM_DEFAULT            Userdefined
 PAM_TYPE               Readonly
+PERL5_PACKLIST         Perl5Packlist
 PGSQL_VERSIONS_ACCEPTED        List* of { 73 74 80 }
 PGSQL_VERSION_DEFAULT  Userdefined
 PKGBASE                        Readonly
diff -r 7afba5ac9d5b -r 0d10ac7d437d pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sat Nov 19 12:47:24 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sat Nov 19 13:34:41 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.361 2005/11/15 13:48:42 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.362 2005/11/19 13:34:41 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -1618,6 +1618,11 @@
                        $line->log_warning("\"${value}\" is not a valid pathname mask.");
                }
 
+       } elsif ($type eq "Perl5Packlist") {
+               if ($value ne $value_novar) {
+                       $line->log_warning("${varname} should not depend on other variables.");
+               }
+
        } elsif ($type eq "PkgName") {
                if ($value eq $value_novar && $value !~ regex_pkgname) {
                        $line->log_warning("\"${value}\" is not a valid package name.");



Home | Main Index | Thread Index | Old Index