diff -Nru libtest-strict-perl-0.52/debian/changelog libtest-strict-perl-0.52/debian/changelog --- libtest-strict-perl-0.52/debian/changelog 2022-10-13 20:52:05.000000000 +0000 +++ libtest-strict-perl-0.52/debian/changelog 2023-08-07 21:43:20.000000000 +0000 @@ -1,7 +1,34 @@ +libtest-strict-perl (0.52-4) unstable; urgency=medium + + * Team upload. + * Add patch from upstream PR: fix tests with perl 5.38. + (Closes: #1040659) + * Update debian/upstream/metadata. + * Declare compliance with Debian Policy 4.6.2. + * Set Rules-Requires-Root: no. + + -- gregor herrmann Mon, 07 Aug 2023 23:43:20 +0200 + +libtest-strict-perl (0.52-3) unstable; urgency=medium + + * Team upload. + + [ Debian Janitor ] + * Wrap long lines in changelog entries: 0.52-2. + + [ gregor herrmann ] + * Add patch from upstream PR: fix tests with perl 5.38. + (Closes: #1040659) + * Update debian/upstream/metadata. + * Declare compliance with Debian Policy 4.6.2. + + -- gregor herrmann Mon, 07 Aug 2023 23:41:35 +0200 + libtest-strict-perl (0.52-2) unstable; urgency=medium [ Debian Janitor ] - * Remove obsolete field Name from debian/upstream/metadata (already present in machine-readable debian/copyright). + * Remove obsolete field Name from debian/upstream/metadata (already present in + machine-readable debian/copyright). * Update standards version to 4.5.0, no changes needed. * Bump debhelper from old 12 to 13. * Update standards version to 4.5.1, no changes needed. diff -Nru libtest-strict-perl-0.52/debian/control libtest-strict-perl-0.52/debian/control --- libtest-strict-perl-0.52/debian/control 2022-10-13 20:52:05.000000000 +0000 +++ libtest-strict-perl-0.52/debian/control 2023-08-07 21:43:20.000000000 +0000 @@ -6,20 +6,21 @@ Testsuite: autopkgtest-pkg-perl Priority: optional Build-Depends: debhelper-compat (= 13) -Build-Depends-Indep: perl, - libdevel-cover-perl , +Build-Depends-Indep: libdevel-cover-perl , libio-stringy-perl , libmoose-autobox-perl , - libtest-simple-perl -Standards-Version: 4.6.1 + libtest-simple-perl , + perl +Standards-Version: 4.6.2 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtest-strict-perl Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtest-strict-perl.git Homepage: https://metacpan.org/release/Test-Strict +Rules-Requires-Root: no Package: libtest-strict-perl Architecture: all -Depends: ${perl:Depends}, - ${misc:Depends}, +Depends: ${misc:Depends}, + ${perl:Depends}, libdevel-cover-perl Description: test module for checking the syntax of use strict and test coverage Test::Strict tests if the code compiles and inter-operates with diff -Nru libtest-strict-perl-0.52/debian/patches/PR33.patch libtest-strict-perl-0.52/debian/patches/PR33.patch --- libtest-strict-perl-0.52/debian/patches/PR33.patch 1970-01-01 00:00:00.000000000 +0000 +++ libtest-strict-perl-0.52/debian/patches/PR33.patch 2023-08-07 21:43:20.000000000 +0000 @@ -0,0 +1,103 @@ +From 8cc3a355b90db21b76374d3b563df3628b31d58c Mon Sep 17 00:00:00 2001 +From: James E Keenan +Date: Sat, 14 Jan 2023 22:42:22 +0000 +Subject: [PATCH] Don't simultaneously test -c and -v switches + +Up through perl-5.37.3, there was a bug in perl (see +https://github.com/Perl/perl5/issues/20252#issuecomment-1236880872) +which permitted simultaneous use of the '-c' and '-v' switches to the +perl interpreter. Once this bug was corrected, t/01all.t began to fail. +As Test::Strict has many CPAN distributions depending on it, this test +failure has had wide impact. + +This pull request modifies tests appropriately and has been tested on +bleadperl (v5.37.7-134-g25948dfb24) and on perl-5.32.1, in both cases on +threaded builds on FreeBSD-12. Devel::Cover was not installed on +bleadperl, hence t/04cover.t was skipped on that build. Otherwise, all +tests are passing. In the course of testing, certain additions were +made to .gitignore and MANIFEST.SKIP to get metadata-oriented tests to +pass. + +NOTE: In my git checkout I find the following file: + + .git/hooksfsmonitor-watchman.sample + +This is deemed by 'file' to be a Perl executable. As such, it is pushed +onto the list of files tested by 'all_perl_files_ok()' at the start of +t/01all.t. This in turn means that in my 'git checkout' the count of +tests is off by 2 and the test is reported to fail. + + "Looks like you planned 59 tests but ran 61." + +Because the files in .git/hooks/ should not be included in the tarball, +the count of tests is correct when run from the tarball. I leave to the +maintainer to determine how to square this circle. You should probably +check for the presence of a .git/ directory and exclude that directory +from the list of directories passed to all_perl_files_ok(). + +For https://github.com/manwar/Test-Strict/issues/32 + +Bug: https://github.com/manwar/Test-Strict/pull/32 +Origin: https://github.com/manwar/Test-Strict/pull/33 +Bug-Debian: https://bugs.debian.org/1040659 + +--- + .gitignore | 2 ++ + MANIFEST.SKIP | 5 +++-- + t/01all.t | 4 +--- + t/02fail.t | 3 +-- + 4 files changed, 7 insertions(+), 7 deletions(-) + +--- a/t/01all.t ++++ b/t/01all.t +@@ -17,6 +17,13 @@ + + my $tests = 57; + $tests += 2 if -e 'blib/lib/Test/Strict.pm'; ++ ++$tests += 4 unless $ENV{AUTOPKGTEST_TMP}; ++#ok 29 - Syntax check /build/libtest-strict-perl-0.52/t/../.pc/PR33.patch/t/02fail.t ++#ok 30 - use strict /build/libtest-strict-perl-0.52/t/../.pc/PR33.patch/t/02fail.t ++#ok 31 - Syntax check /build/libtest-strict-perl-0.52/t/../.pc/PR33.patch/t/01all.t ++#ok 32 - use strict /build/libtest-strict-perl-0.52/t/../.pc/PR33.patch/t/01all.t ++ + plan tests => $tests; + + ## +@@ -125,8 +132,6 @@ + strict_ok($filename); + }; + +-exit; +- + { + my %data; + sub make_file { +@@ -172,7 +177,7 @@ + + my ($fh2, $filename2) = tempfile( DIR => $tmpdir, SUFFIX => '.pl' ); + print $fh2 <<'DUMMY'; +-#!/usr/bin/perl -vw ++#!/usr/bin/perl -w + use strict; + print "Hello world"; + +--- a/t/02fail.t ++++ b/t/02fail.t +@@ -40,7 +40,6 @@ + ok !Test::Strict::_strict_ok($fh1), 'use strict in print'; + } + +-exit; + + + sub test1 { +@@ -199,7 +198,7 @@ + + my ($fh2, $filename2) = tempfile( DIR => $tmpdir, SUFFIX => '.pl' ); + print $fh2 <<'DUMMY'; +-#!/usr/bin/perl -vw ++#!/usr/bin/perl -w + use strict; + print "Hello world"; + diff -Nru libtest-strict-perl-0.52/debian/patches/series libtest-strict-perl-0.52/debian/patches/series --- libtest-strict-perl-0.52/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ libtest-strict-perl-0.52/debian/patches/series 2023-08-07 21:43:20.000000000 +0000 @@ -0,0 +1 @@ +PR33.patch diff -Nru libtest-strict-perl-0.52/debian/upstream/metadata libtest-strict-perl-0.52/debian/upstream/metadata --- libtest-strict-perl-0.52/debian/upstream/metadata 2022-10-13 20:52:05.000000000 +0000 +++ libtest-strict-perl-0.52/debian/upstream/metadata 2023-08-07 21:43:20.000000000 +0000 @@ -1,6 +1,5 @@ --- Archive: CPAN Bug-Database: https://github.com/manwar/Test-Strict -Contact: Pierre Denis Repository: https://github.com/manwar/Test-Strict.git Repository-Browse: https://github.com/manwar/Test-Strict