[libcgi-application-plugin-session-perl] 01/05: Add patch to fix test failure on perl 5.18

gregor herrmann gregoa at debian.org
Thu Aug 8 14:13:34 UTC 2013


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libcgi-application-plugin-session-perl.

commit 905a791f2770ddcbd46b7cc59555013f4e6263fc
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Aug 8 16:06:52 2013 +0200

    Add patch to fix test failure on perl 5.18
    
    caused by hash ordering, patch taken from upstream pull request.
    
    Closes: #709679
---
 debian/patches/hash-ordering.patch |   33 +++++++++++++++++++++++++++++++++
 debian/patches/series              |    1 +
 2 files changed, 34 insertions(+)

diff --git a/debian/patches/hash-ordering.patch b/debian/patches/hash-ordering.patch
new file mode 100644
index 0000000..ad698b4
--- /dev/null
+++ b/debian/patches/hash-ordering.patch
@@ -0,0 +1,33 @@
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=81611
+Bug-Debian: http://bugs.debian.org/709679
+Forwarded: not-needed
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-08-08
+
+From cfefeb19cd1e54e8b19fba968fc3dae2fbbbbce7 Mon Sep 17 00:00:00 2001
+From: Arthur Axel 'fREW' Schmidt <frioux at gmail.com>
+Date: Tue, 23 Jul 2013 13:52:32 -0500
+Subject: [PATCH] work around hash ordering bug in what I think is CGI::Cookie
+
+---
+ 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.6
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..65bcef4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+hash-ordering.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcgi-application-plugin-session-perl.git



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