[SCM] Debian packaging of libtest-autoloader-perl branch, master, updated. 48ce18a73def39154bb044f78464a4e72e64f9e4

gregor herrmann gregoa at debian.org
Sun Jun 16 15:21:46 UTC 2013


The following commit has been merged in the master branch:
commit 1746ceaded3fbe4b320f5246137288b06a8fe2e6
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Jun 16 17:16:48 2013 +0200

    Add patch from CPAN RT to fix build failure with Perl >= 5.16.
    
    Closes: #711259

diff --git a/debian/patches/Test-AutoLoader-0.03-Skip-POSIX-tests-with-perl-5.16.patch b/debian/patches/Test-AutoLoader-0.03-Skip-POSIX-tests-with-perl-5.16.patch
new file mode 100644
index 0000000..ea4da03
--- /dev/null
+++ b/debian/patches/Test-AutoLoader-0.03-Skip-POSIX-tests-with-perl-5.16.patch
@@ -0,0 +1,59 @@
+Description: [perldelta 5.16] POSIX no longer uses AutoLoader.
+ Any code which was relying on this implementation detail was buggy, and may
+ fail because of this change. Not using AutoLoader is the reason why the al
+ files are missing.
+Origin: CPAN RT
+Bug: https://rt.cpan.org/Ticket/Display.html?id=77942
+Forwarded: not-needed
+Bug-Debian: http://bugs.debian.org/711259
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-06-16
+
+From 7f347d684936c6108e658ba6c12e43b7e62562f3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Thu, 21 Jun 2012 10:49:01 +0200
+Subject: [PATCH] Skip POSIX tests with perl 5.16
+
+---
+ t/00basic.t |   11 +++++++++--
+ 1 files changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/t/00basic.t b/t/00basic.t
+index 94f1a4f..462d8e0 100644
+--- a/t/00basic.t
++++ b/t/00basic.t
+@@ -35,6 +35,7 @@ require EmptyModule;
+ my @unreadable = (File::Spec->catdir(qw(tlib auto TestBusted1)),
+                   File::Spec->catfile(qw(tlib auto TestBusted2 no_ready.al)));
+ my $CAN_CHMOD =  chmod 0000, @unreadable;
++my $POSIX_USES_AUTOLOAD = $^V lt v5.16.0;
+ my $file_errors;
+ $file_errors .=<<DIAG if $CAN_CHMOD;
+     couldn't load no_ready.al: Permission denied
+@@ -46,8 +47,6 @@ DIAG
+ 
+ 
+ my @tests = (
+-  [ ['POSIX'],{ok=>1,name=>"Autoload of POSIX (all files)"},"Standard-distribution module, all files"],
+-  [ [qw(POSIX strcpy)],{ok=>1,name=>"Autoload of POSIX (listed subroutines)"},"Standard-distribution module, one file"],
+   [ [qw(POSIX no_such_function)], {ok=>0,diag=>"    couldn't load no_such_function.al: No such file or directory"}, "Standard-distribution, bad subroutine name"],
+   [ [qw(strict)], {ok=>0,diag=>"Unable to find valid autoload directory for strict"}, "Non-existent auto directory"],
+   [ [qw(EmptyModule)], {ok=>0,diag=>"No autoloaded files found"}, "No files in auto directory"],
+@@ -59,6 +58,14 @@ my @tests = (
+ 
+ );
+ 
++if ($POSIX_USES_AUTOLOAD) {
++    push @tests,
++      [ ['POSIX'],{ok=>1,name=>"Autoload of POSIX (all files)"},"Standard-distribution module, all files"],
++      [ [qw(POSIX strcpy)],{ok=>1,name=>"Autoload of POSIX (listed subroutines)"},"Standard-distribution module, one file"];
++} else {
++  SKIP:{skip "POSIX module does not use AutoLoader",12}
++}
++
+ if ($CAN_CHMOD) {
+     push @tests, 
+       [ [qw(TestBusted1)], {ok=>0,diag=>"Unable to find valid autoload directory for TestBusted1"}, "Unreadable auto directory"],
+-- 
+1.7.7.6
+
diff --git a/debian/patches/series b/debian/patches/series
index 12555bd..ab8e4c6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 notests.patch
+Test-AutoLoader-0.03-Skip-POSIX-tests-with-perl-5.16.patch

-- 
Debian packaging of libtest-autoloader-perl



More information about the Pkg-perl-cvs-commits mailing list