pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/lintpkgsrc lintpkgsrc: update to Perl 5.36



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a2db5433f485
branches:  trunk
changeset: 383019:a2db5433f485
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Aug 10 20:16:55 2022 +0000

description:
lintpkgsrc: update to Perl 5.36

Bump version.

diffstat:

 pkgtools/lintpkgsrc/Makefile            |   5 +++--
 pkgtools/lintpkgsrc/files/lintpkgsrc.pl |  22 ++++++++++------------
 2 files changed, 13 insertions(+), 14 deletions(-)

diffs (95 lines):

diff -r d72b64791e50 -r a2db5433f485 pkgtools/lintpkgsrc/Makefile
--- a/pkgtools/lintpkgsrc/Makefile      Wed Aug 10 18:49:39 2022 +0000
+++ b/pkgtools/lintpkgsrc/Makefile      Wed Aug 10 20:16:55 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.47 2022/08/09 18:14:22 rillig Exp $
+# $NetBSD: Makefile,v 1.48 2022/08/10 20:16:55 rillig Exp $
 
-PKGNAME=       lintpkgsrc-2022.08.09
+PKGNAME=       lintpkgsrc-2022.08.10
 CATEGORIES=    pkgtools
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -12,6 +12,7 @@
 TEST_DEPENDS+= p5-IO-Null>=0:../../devel/p5-IO-Null
 
 USE_TOOLS+=    perl:run
+PERL5_REQD+=   5.36
 
 WRKSRC=                ${WRKDIR}
 USE_LANGUAGES= # none
diff -r d72b64791e50 -r a2db5433f485 pkgtools/lintpkgsrc/files/lintpkgsrc.pl
--- a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Wed Aug 10 18:49:39 2022 +0000
+++ b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Wed Aug 10 20:16:55 2022 +0000
@@ -1,6 +1,6 @@
 #!@PERL5@
 
-# $NetBSD: lintpkgsrc.pl,v 1.69 2022/08/10 07:12:52 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.70 2022/08/10 20:16:55 rillig Exp $
 
 # Written by David Brownlee <abs%netbsd.org@localhost>.
 #
@@ -13,7 +13,7 @@
 # TODO: Handle fun DEPENDS like avifile-devel with
 #                      {qt2-designer>=2.2.4,qt2-designer-kde>=2.3.1nb1}
 
-use v5.34;
+use v5.36;
 use locale;
 use strict;
 use warnings;
@@ -22,8 +22,6 @@
 use File::Basename;
 use IPC::Open3;
 use Cwd 'realpath', 'getcwd';
-use feature 'signatures';               # only for < v5.36
-no warnings 'experimental::signatures'; # only for < v5.36
 
 # PkgVer is a PKGBASE + PKGVERSION, including some of the variables that
 # have been extracted from the package Makefile.
@@ -178,12 +176,12 @@
 # gets removed in the final evaluation
 my $magic_undefined = 'M_a_G_i_C_uNdEfInEd';
 
-sub debug(@) {
-       $opt{D} and print STDERR 'DEBUG: ', @_;
+sub debug(@args) {
+       $opt{D} and print STDERR 'DEBUG: ', @args;
 }
 
-sub verbose(@) {
-       -t STDERR and print STDERR @_;
+sub verbose(@args) {
+       -t STDERR and print STDERR @args;
 }
 
 sub fail($msg) {
@@ -1035,7 +1033,7 @@
        open(STORE, '<', $fname)
            or die("Cannot read pkgsrc store from $fname: $!\n");
        my ($pkgver);
-       $pkgdb = PkgDb->new;
+       $pkgdb = PkgDb->new();
        while (defined(my $line = <STORE>)) {
                chomp($line);
                if ($line =~ qr"^package\t([^\t]+)\t([^\t]+$)$") {
@@ -1067,7 +1065,7 @@
                return;
        }
 
-       $pkgdb = new PkgDb;
+       $pkgdb = PkgDb->new();
        @categories = list_pkgsrc_categories($pkgsrcdir);
        verbose('Scan Makefiles: ');
 
@@ -1356,8 +1354,8 @@
        }
 }
 
-sub debug_parse_makefiles(@) {
-       foreach my $file (@_) {
+sub debug_parse_makefiles(@args) {
+       foreach my $file (@args) {
                -d $file and $file .= '/Makefile';
                -f $file or fail("No such file: $file");
 



Home | Main Index | Thread Index | Old Index