diff options
author | hubertf <hubertf> | 1999-11-23 20:34:26 +0000 |
---|---|---|
committer | hubertf <hubertf> | 1999-11-23 20:34:26 +0000 |
commit | e50f78fe1c6b21e27d5f33c70121d7dfb7e0346d (patch) | |
tree | bc9ce61ab5a6c221982c8983edfaf41ca77422ee | |
parent | 74f713e252fe05ebb8c4e0a8dd5cdf374e9a21b2 (diff) | |
download | pkgsrc-e50f78fe1c6b21e27d5f33c70121d7dfb7e0346d.tar.gz |
Bump version to 1.79. Introduced four new warnings:
WARN: no ./files/patch-sum file. Please run 'make makepatchsum'.
WARN: no ./files/md5 file. Please run 'make makesum'.
WARN: RUN_DEPENDS is deprecated, please use DEPENDS.
WARN: LIB_DEPENDS is deprecated, please use DEPENDS.
Fixes PR 8861 by Dan McMahill <mcmahill@mit.edu>
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 24 |
2 files changed, 25 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index aad2364cddf..600db575e10 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.18 1999/11/12 13:18:02 abs Exp $ +# $NetBSD: Makefile,v 1.19 1999/11/23 20:34:26 hubertf Exp $ # -DISTNAME= pkglint-1.78 +DISTNAME= pkglint-1.79 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 89caf945ae4..65c61c0d353 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.13 1999/10/30 16:36:44 hubertf Exp $ +# $NetBSD: pkglint.pl,v 1.14 1999/11/23 20:34:27 hubertf Exp $ # # This version contains some changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org> and @@ -172,11 +172,27 @@ foreach $i (<$portdir/patches/patch-*>) { push(@checker, $i); $checker{$i} = 'checkpatch'; } +{ + # Make sure there's a files/patch-sum if there are patches + $patches=0; + patch: + foreach $i (<$portdir/patches/patch-*>) { + if ( -T "$i" ) { + $patches=1; + last patch; + } + } + if ($patches && ! -f "$portdir/files/patch-sum" ) { + &perror("WARN: no $portdir/files/patch-sum file. Please run 'make makepatchsum'."); + } +} if (-e <$portdir/files/md5>) { $i = <files/md5>; next if (defined $checker{$i}); push(@checker, $i); $checker{$i} = 'checkmd5'; +} else { + &perror("WARN: no $portdir/files/md5 file. Please run 'make makesum'."); } foreach $i (@checker) { print "OK: checking $i.\n"; @@ -953,6 +969,12 @@ LIB_DEPENDS BUILD_DEPENDS RUN_DEPENDS FETCH_DEPENDS DEPENDS DEPENDS_TARGET EOF $warn_lib_depends_backslashes=0 if $osname eq "NetBSD"; + if ($tmp =~ /(RUN_DEPENDS).*=/) { + &perror("WARN: $1 is deprecated, please use DEPENDS."); + } + if ($tmp =~ /(LIB_DEPENDS).*=/) { + &perror("WARN: $1 is deprecated, please use DEPENDS."); + } if ($tmp =~ /(LIB_|BUILD_|RUN_|FETCH_)?DEPENDS/) { &checkearlier($tmp, @varnames); |