commit:     dd2aad08c203475e1fe4fcdf80fc50a24d35647e
Author:     Kent Fredric <kentfredric <AT> gmail <DOT> com>
AuthorDate: Thu Mar 19 08:47:51 2015 +0000
Commit:     Kent Fredric <kentfredric <AT> gmail <DOT> com>
CommitDate: Thu Mar 19 08:50:59 2015 +0000
URL:        https://gitweb.gentoo.org/proj/perl-overlay.git/commit/?id=dd2aad08

[fixup] CGI-Application-Plugin-Authentication-0.200.0-r2: EAPI5, fixup deps, 
fix broken testing

Package-Manager: portage-2.2.17

 ...cation-Plugin-Authentication-0.200.0-r2.ebuild} | 29 ++++++++++++++--------
 .../files/0.20/cgipm-4.05.patch                    | 21 ++++++++++++++++
 2 files changed, 40 insertions(+), 10 deletions(-)

diff --git 
a/dev-perl/CGI-Application-Plugin-Authentication/CGI-Application-Plugin-Authentication-0.200.0-r1.ebuild
 
b/dev-perl/CGI-Application-Plugin-Authentication/CGI-Application-Plugin-Authentication-0.200.0-r2.ebuild
similarity index 64%
rename from 
dev-perl/CGI-Application-Plugin-Authentication/CGI-Application-Plugin-Authentication-0.200.0-r1.ebuild
rename to 
dev-perl/CGI-Application-Plugin-Authentication/CGI-Application-Plugin-Authentication-0.200.0-r2.ebuild
index fb33b1c..f263117 100644
--- 
a/dev-perl/CGI-Application-Plugin-Authentication/CGI-Application-Plugin-Authentication-0.200.0-r1.ebuild
+++ 
b/dev-perl/CGI-Application-Plugin-Authentication/CGI-Application-Plugin-Authentication-0.200.0-r2.ebuild
@@ -1,25 +1,36 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
-EAPI=4
+EAPI=5
 MODULE_AUTHOR=SILASMONK
 MODULE_VERSION="0.20"
 inherit perl-module
 
 DESCRIPTION="Authentication framework for CGI::Application"
-LICENSE="|| ( Artistic GPL-2 )"
 
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-comment() { echo ''; }
 IUSE="recommended"
+
+PATCHES=(
+       # https://rt.cpan.org/Ticket/Display.html?id=99460
+       "${FILESDIR}/${MODULE_VERSION}/cgipm-4.05.patch"
+)
+PERL_RM_FILES=(
+       t/podspell.t
+       t/99_pod_coverage.t
+       t/98_pod.t
+       # https://rt.cpan.org/Ticket/Display.html?id=85969
+       t/03_login_box.t
+)
+PERL_RESTRICT="parallel-test"
 RDEPEND="
        >=dev-perl/CGI-Application-4.0.0
-       virtual/perl-Scalar-List-Utils $(comment Scalar::Util)
+       virtual/perl-Scalar-List-Utils
        dev-perl/Class-ISA
        virtual/perl-Attribute-Handlers
        dev-perl/UNIVERSAL-require
-       >=virtual/perl-CGI-3.160 $(comment 3.160.0)
+       >=virtual/perl-CGI-3.160.0
        virtual/perl-MIME-Base64
        virtual/perl-Digest-SHA
        recommended? (
@@ -31,8 +42,8 @@ RDEPEND="
 
 "
 DEPEND="
-       >=virtual/perl-Module-Build-0.36.0 $(comment 0.360.0)
-       >=virtual/perl-Test-Simple-0.93 $(comment Test::More 0.930.0)
+       >=virtual/perl-Module-Build-0.360.0
+       >=virtual/perl-Test-Simple-0.930.0
        >=dev-perl/Test-Warn-0.110.0
        dev-perl/Test-MockObject
        dev-perl/Test-Exception
@@ -41,7 +52,5 @@ DEPEND="
        dev-perl/Test-Taint
        dev-perl/Test-Without-Module
        dev-perl/Readonly
-
        ${RDEPEND}
 "
-SRC_TEST=do

diff --git 
a/dev-perl/CGI-Application-Plugin-Authentication/files/0.20/cgipm-4.05.patch 
b/dev-perl/CGI-Application-Plugin-Authentication/files/0.20/cgipm-4.05.patch
new file mode 100644
index 0000000..2a318eb
--- /dev/null
+++ b/dev-perl/CGI-Application-Plugin-Authentication/files/0.20/cgipm-4.05.patch
@@ -0,0 +1,21 @@
+Description: Adjust for CGI.pm >= 4.05
+ CGI.pm now warns if parameters are imported in list context, as this is a 
potential security hole.
+ Explicitly require scalar context.
+Origin: vendor
+Bug: https://rt.cpan.org/Ticket/Display.html?id=99460
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=99460
+Bug-Debian: https://bugs.debian.org/765051
+Author: gregor herrmann <[email protected]>
+Last-Update: 2014-10-13
+
+--- a/lib/CGI/Application/Plugin/Authentication.pm
++++ b/lib/CGI/Application/Plugin/Authentication.pm
+@@ -1205,7 +1205,7 @@
+     my $field_names = $config->{CREDENTIALS} || [qw(authen_username 
authen_password)];
+ 
+     my $query = $self->_cgiapp->query;
+-    my @credentials = map { $query->param($_) } @$field_names;
++    my @credentials = map { scalar $query->param($_) } @$field_names;
+     if ($credentials[0]) {
+         # The user is trying to login
+         # make sure if they are already logged in, that we log them out first

Reply via email to