[libcgi-application-plugin-authorization-perl] 04/08: Add patch to require the "overload" module before using it.
gregor herrmann
gregoa at debian.org
Fri Jul 22 13:51:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libcgi-application-plugin-authorization-perl.
commit afb84e47e38ab75c5ac242fde902422386fbc536
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Jul 22 15:45:45 2016 +0200
Add patch to require the "overload" module before using it.
This issue is discovered when building with Test-Simple >= 1.3.
---
debian/patches/overload.patch | 23 +++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 24 insertions(+)
diff --git a/debian/patches/overload.patch b/debian/patches/overload.patch
new file mode 100644
index 0000000..3684518
--- /dev/null
+++ b/debian/patches/overload.patch
@@ -0,0 +1,23 @@
+Description: require overload before using it
+ This is detected when building with Test-Simple >= 1.3:
+ .
+ t/05_authz_runmodes.t ..
+ 1..15
+ ok 1 - authz_runmodes() is consistent
+ Error executing class callback in prerun stage: Undefined subroutine &overload::StrVal called at /build/libcgi-application-plugin-authorization-perl-0.07/blib/lib/CGI/Application/Plugin/Authorization.pm line 412.
+Origin: vendor
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2016-07-22
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=116397
+Bug: https://rt.cpan.org/Ticket/Display.html?id=116397
+
+--- a/lib/CGI/Application/Plugin/Authorization.pm
++++ b/lib/CGI/Application/Plugin/Authorization.pm
+@@ -409,6 +409,7 @@
+
+ foreach my $runmode_info ($self->authz_runmodes) {
+ my ($runmode_test, $rule) = @$runmode_info;
++ require overload;
+ if (overload::StrVal($runmode_test) =~ /^Regexp=/) {
+ # We were passed a regular expression
+ return $rule if $runmode =~ $runmode_test;
diff --git a/debian/patches/series b/debian/patches/series
index c9352c4..0fdd239 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
pod.patch
+overload.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcgi-application-plugin-authorization-perl.git
More information about the Pkg-perl-cvs-commits
mailing list