[perl-CGI-Application-Plugin-Session] Perl 5.18 comptability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 2511cbfde398e4a9ca5381df505e7edca0b051f8
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Fri Jul 26 12:02:27 2013 +0200

    Perl 5.18 comptability

 ...-hash-ordering-bug-in-what-I-think-is-CGI.patch |   32 ++++++++++++++++++++
 perl-CGI-Application-Plugin-Session.spec           |    5 +++
 2 files changed, 37 insertions(+), 0 deletions(-)
---
diff --git a/CGI-Application-Plugin-Session-1.03-work-around-hash-ordering-bug-in-what-I-think-is-CGI.patch b/CGI-Application-Plugin-Session-1.03-work-around-hash-ordering-bug-in-what-I-think-is-CGI.patch
new file mode 100644
index 0000000..dca60c1
--- /dev/null
+++ b/CGI-Application-Plugin-Session-1.03-work-around-hash-ordering-bug-in-what-I-think-is-CGI.patch
@@ -0,0 +1,32 @@
+From cfefeb19cd1e54e8b19fba968fc3dae2fbbbbce7 Mon Sep 17 00:00:00 2001
+From: Arthur Axel 'fREW' Schmidt <frioux@xxxxxxxxx>
+Date: Tue, 23 Jul 2013 13:52:32 -0500
+Subject: [PATCH] work around hash ordering bug in what I think is CGI::Cookie
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+
+Signed-off-by: Petr Písař <ppisar@xxxxxxxxxx>
+---
+ lib/CGI/Application/Plugin/Session.pm | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/lib/CGI/Application/Plugin/Session.pm b/lib/CGI/Application/Plugin/Session.pm
+index 54c7555..ed157c1 100644
+--- a/lib/CGI/Application/Plugin/Session.pm
++++ b/lib/CGI/Application/Plugin/Session.pm
+@@ -184,7 +184,9 @@ sub session_delete {
+             $options{'name'} ||= CGI::Session->name;
+             $options{'value'}    = '';
+             $options{'-expires'} = '-1d';
+-            my $newcookie = $self->query->cookie(%options);
++            my $newcookie = $self->query->cookie(
++               map {; $_ => $options{$_} } sort keys %options
++            );
+ 
+             # See if a session cookie has already been set (this will happen if
+             #  this is a new session).  We keep all existing cookies except the
+-- 
+1.8.1.4
+
diff --git a/perl-CGI-Application-Plugin-Session.spec b/perl-CGI-Application-Plugin-Session.spec
index 3f71f12..da7693c 100644
--- a/perl-CGI-Application-Plugin-Session.spec
+++ b/perl-CGI-Application-Plugin-Session.spec
@@ -6,6 +6,9 @@ License:        GPL+ or Artistic
 
 URL:            http://search.cpan.org/dist/CGI-Application-Plugin-Session/
 Source0:        http://www.cpan.org/authors/id/C/CE/CEESHEK/CGI-Application-Plugin-Session-%{version}.tar.gz
+# Perl 5.18 comptability,
+# https://github.com/cees/cgi-application-plugin-session/pull/1
+Patch0:         CGI-Application-Plugin-Session-1.03-work-around-hash-ordering-bug-in-what-I-think-is-CGI.patch
 
 BuildArch:      noarch
 BuildRequires:  perl(CGI)
@@ -27,6 +30,7 @@ accessible from anywhere in the application.
 
 %prep
 %setup -q -n CGI-Application-Plugin-Session-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Build.PL installdirs=vendor
@@ -49,6 +53,7 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %changelog
 * Fri Jul 26 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 1.03-13
 - Perl 5.18 rebuild
+- Perl 5.18 comptability
 
 * Sun Jan 27 2013 Emmanuel Seyman <emmanuel@xxxxxxxxx> - 1.03-12
 - Add perl default filter
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux