[perl-CGI-Session] Fix deprecated use of qw//

Petr Pisar ppisar at fedoraproject.org
Tue Aug 21 15:09:43 UTC 2012


commit 98863eeee54d541f06b1eed92aa17c661e4da98a
Author: Petr Písař <ppisar at redhat.com>
Date:   Tue Aug 21 17:08:46 2012 +0200

    Fix deprecated use of qw//

 CGI-Session-4.35-qw.patch |   41 +++++++++++++++++++++++++++++++++++++++++
 perl-CGI-Session.spec     |    8 +++++++-
 2 files changed, 48 insertions(+), 1 deletions(-)
---
diff --git a/CGI-Session-4.35-qw.patch b/CGI-Session-4.35-qw.patch
new file mode 100644
index 0000000..52bca85
--- /dev/null
+++ b/CGI-Session-4.35-qw.patch
@@ -0,0 +1,41 @@
+From 6079e2ecba0da7a432663f8213345f60978513f5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Tue, 21 Aug 2012 17:04:58 +0200
+Subject: [PATCH] Fix deprecated use of qw//
+
+<https://bugzilla.redhat.com/show_bug.cgi?id=754689>
+<https://rt.cpan.org/Public/Bug/Display.html?id=69048>
+---
+ lib/CGI/Session.pm | 2 +-
+ t/ip_matches.t     | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/CGI/Session.pm b/lib/CGI/Session.pm
+index 67eaf39..92c0c4d 100644
+--- a/lib/CGI/Session.pm
++++ b/lib/CGI/Session.pm
+@@ -879,7 +879,7 @@ sub _load_pluggables {
+                        id         => "ID",
+                        );
+     my $dsn = $self->{_DSN};
+-    foreach my $plug qw(driver serializer id) {
++    foreach my $plug (qw(driver serializer id)) {
+         my $mod_name = $dsn->{ $plug };
+         if (not defined $mod_name) {
+             $mod_name = $DEFAULT_FOR{ $plug };
+diff --git a/t/ip_matches.t b/t/ip_matches.t
+index 1137d4a..8db31e9 100644
+--- a/t/ip_matches.t
++++ b/t/ip_matches.t
+@@ -36,7 +36,7 @@ is($session->param('TEST'),'VALUE','TEST param still set');
+ 
+ $session->flush;
+ # Testing with ip_match set.
+-CGI::Session->import qw/-ip_match/;
++CGI::Session->import (qw/-ip_match/);
+ 
+ is($CGI::Session::IP_MATCH,1,'ip_match switched on');
+ 
+-- 
+1.7.11.4
+
diff --git a/perl-CGI-Session.spec b/perl-CGI-Session.spec
index 7b8d438..352c417 100644
--- a/perl-CGI-Session.spec
+++ b/perl-CGI-Session.spec
@@ -1,11 +1,13 @@
 Name:           perl-CGI-Session
 Version:        4.35
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Persistent session data in CGI applications
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/CGI-Session/
 Source0:        http://www.cpan.org/modules/by-module/CGI/CGI-Session-%{version}.tar.gz
+# Fix deprecated use of qw//, RHBZ #754689, CPAN RT #69048
+Patch0:         CGI-Session-4.35-qw.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@@ -39,6 +41,7 @@ CGI::Session does that and many more.
 
 %prep
 %setup -q -n CGI-Session-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -68,6 +71,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 
 %changelog
+* Tue Aug 21 2012 Petr Pisar <ppisar at redhat.com> - 4.35-14
+- Fix deprecated use of qw// (bug #754689)
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.35-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list