Thu Dec 17 16:17:45 2020 UTC ()
pkgtools/lintpkgsrc: update to 4.96

Changes since 4.95:

Do not complain about "Bogus: ${_SVN_PKGREVISION:...}" that are
generated by wip/mk/*-package.mk.  Using PKGREVISION to track the
current date of the package is the wrong approach; PKGVERSION_NOREV
should be used instead.  Anyway, this is nothing the average pkgsrc user
should be worried about, so shut up the warning for now.

https://mail-index.netbsd.org/pkgsrc-users/2020/12/16/msg032884.html


(rillig)
diff -r1.34 -r1.35 pkgsrc/pkgtools/lintpkgsrc/Makefile
diff -r1.19 -r1.20 pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl

cvs diff -r1.34 -r1.35 pkgsrc/pkgtools/lintpkgsrc/Makefile (expand / switch to context diff)
--- pkgsrc/pkgtools/lintpkgsrc/Makefile 2020/08/31 18:10:58 1.34
+++ pkgsrc/pkgtools/lintpkgsrc/Makefile 2020/12/17 16:17:44 1.35
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2020/08/31 18:10:58 wiz Exp $
+# $NetBSD: Makefile,v 1.35 2020/12/17 16:17:44 rillig Exp $
 
-PKGNAME=	lintpkgsrc-4.95
-PKGREVISION=	1
+PKGNAME=	lintpkgsrc-4.96
 CATEGORIES=	pkgtools
 
 MAINTAINER=	pkgsrc-users@NetBSD.org

cvs diff -r1.19 -r1.20 pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl (expand / switch to context diff)
--- pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl 2020/12/17 16:08:44 1.19
+++ pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl 2020/12/17 16:17:45 1.20
@@ -1,6 +1,6 @@
 #!@PERL5@
 
-# $NetBSD: lintpkgsrc.pl,v 1.19 2020/12/17 16:08:44 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.20 2020/12/17 16:17:45 rillig Exp $
 
 # Written by David Brownlee <abs@netbsd.org>.
 #
@@ -996,7 +996,10 @@
         if ( defined $vars->{PKGREVISION}
             and not $vars->{PKGREVISION} =~ /^\s*$/ )
         {
-            if ( $vars->{PKGREVISION} =~ /\D/ ) {
+            if ( $vars->{PKGREVISION} =~ /^\$\{(_(CVS|GIT|HG|SVN)_PKGVERSION):.*\}$/ ) {
+                # See wip/mk/*-package.mk.
+            }
+            elsif ( $vars->{PKGREVISION} =~ /\D/ ) {
                 print
                   "\nBogus: PKGREVISION $vars->{PKGREVISION} (from $file)\n";