diff options
author | rillig <rillig@pkgsrc.org> | 2005-10-14 09:23:46 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-10-14 09:23:46 +0000 |
commit | e95f2f49e0f86d82f8c9929391a757a712dac6cf (patch) | |
tree | 965fddfc39a30ea927010a338c7b950bff5d161e /pkgtools | |
parent | f1d7980a7c5316492db96dc3ad6dc46cc8e36bb5 (diff) | |
download | pkgsrc-e95f2f49e0f86d82f8c9929391a757a712dac6cf.tar.gz |
Updated pkglint to 4.28.1.
Declared some more variables as List types. Added a check that
PERL5_PACKLIST matches the PKGNAME.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/TODO | 1 | ||||
-rw-r--r-- | pkgtools/pkglint/files/makevars.map | 6 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 15 |
4 files changed, 21 insertions, 5 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 805f01d372b..4c87df83129 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.264 2005/10/14 00:05:23 rillig Exp $ +# $NetBSD: Makefile,v 1.265 2005/10/14 09:23:46 rillig Exp $ # -DISTNAME= pkglint-4.28 +DISTNAME= pkglint-4.28.1 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/TODO b/pkgtools/pkglint/TODO index 48294203bce..b459791533f 100644 --- a/pkgtools/pkglint/TODO +++ b/pkgtools/pkglint/TODO @@ -8,3 +8,4 @@ * in dependency lines check for ../../category/package, not ../package * ONLY_FOR_PLATFORM => NOT_FOR_PLATFORM * -Wl,-rpath +* check that PERL5_PACKLIST is a path relative to ${FOO} diff --git a/pkgtools/pkglint/files/makevars.map b/pkgtools/pkglint/files/makevars.map index 51903c1db0c..56758b7ecf8 100644 --- a/pkgtools/pkglint/files/makevars.map +++ b/pkgtools/pkglint/files/makevars.map @@ -1,4 +1,4 @@ -# $NetBSD: makevars.map,v 1.15 2005/10/14 00:05:23 rillig Exp $ +# $NetBSD: makevars.map,v 1.16 2005/10/14 09:23:46 rillig Exp $ # # This file tries to guess the type of some variables, according to their @@ -64,3 +64,7 @@ CFLAGS List CPPFLAGS List LDFLAGS List LIBS List +MAKE_ENV List +CONFIGURE_ENV List +MAKE_FLAGS List +CONFIGURE_ARGS List diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 9edfb6a65cc..c40f3168cbe 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.298 2005/10/14 00:05:23 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.299 2005/10/14 09:23:46 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -1540,6 +1540,17 @@ sub checklines_package_Makefile($) { } } + if ($varname eq "PERL5_PACKLIST" && defined($pkgname) && $pkgname =~ qr"^p5-(.*)-[0-9].*") { + my ($guess) = ($1); + $guess =~ s/-/\//g; + $guess = "auto/${guess}/.packlist"; + + my ($ucvalue, $ucguess) = (uc($value), uc($guess)); + if ($ucvalue ne $ucguess && $ucvalue ne "\${PERL5_SITEARCH\}/${ucguess}") { + $line->log_warning("Unusual value for PERL5_PACKLIST -- \"${guess}\" expected."); + } + } + if ($varname eq "PKG_SUPPORTED_OPTIONS" || $varname eq "PKG_SUGGESTED_OPTIONS") { if ($value =~ qr"_") { $line->log_warning("Options should not contain underscores."); @@ -1685,7 +1696,6 @@ sub checkfile_package_Makefile($$$$$) { log_subinfo("checkfile_package_Makefile", $fname, NO_LINE_NUMBER, undef); checkperms($fname); - checklines_package_Makefile($lines); $abspkgdir = Cwd::abs_path($dir); $category = basename(dirname($abspkgdir)); @@ -2152,6 +2162,7 @@ sub checkfile_package_Makefile($$$$$) { "discouraged. Redefine \"do-$1\" instead."); } + checklines_package_Makefile($lines); checklines_Makefile_varuse($lines); } |