[perl-Eval-Context] Perl 5.18 comptability

Petr Pisar ppisar at fedoraproject.org
Mon Aug 5 07:34:42 UTC 2013


commit 54d05da0ae2149973611fbbda0a4a9bd666e2f7d
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Aug 5 09:33:57 2013 +0200

    Perl 5.18 comptability

 Eval-Context-0.09.11-hash-randomization.patch |   22 ++++++++++++++++++++++
 perl-Eval-Context.spec                        |    4 ++++
 2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/Eval-Context-0.09.11-hash-randomization.patch b/Eval-Context-0.09.11-hash-randomization.patch
new file mode 100644
index 0000000..6b21751
--- /dev/null
+++ b/Eval-Context-0.09.11-hash-randomization.patch
@@ -0,0 +1,22 @@
+Description: sort expected and retrieved variables
+ due the hash randomization in perl 5.17.* the order varies
+Origin: vendor
+Bug: https://rt.cpan.org/Dist/Display.html?Name=Eval-Context
+Forwarded: https://rt.cpan.org/Dist/Display.html?Name=Eval-Context
+Bug-Debian: http://bugs.debian.org/711442
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-06-09
+
+--- a/t/009_persistent_variables.t
++++ b/t/009_persistent_variables.t
+@@ -125,8 +125,8 @@
+ 	die $@ if $@ ;
+ 	}
+ 	
+-my @persistent_variable_names = $context->GetPersistentVariableNames() ;
+-is_deeply(\@persistent_variable_names , [qw($object $array $variable %hash $hash $scalar @array)], 'persistent variable names') or diag DumpTree(\@persistent_variable_names ) ;
++my @persistent_variable_names = sort $context->GetPersistentVariableNames() ;
++is_deeply(\@persistent_variable_names , [sort qw($object $array $variable %hash $hash $scalar @array)], 'persistent variable names') or diag DumpTree(\@persistent_variable_names ) ;
+ 
+ throws_ok
+ 	{
diff --git a/perl-Eval-Context.spec b/perl-Eval-Context.spec
index e915a67..8600f46 100644
--- a/perl-Eval-Context.spec
+++ b/perl-Eval-Context.spec
@@ -6,6 +6,8 @@ License:    GPL+ or Artistic
 Group:      Development/Libraries
 Summary:    Evalute perl code in context wraper 
 Source:     http://search.cpan.org/CPAN/authors/id/N/NK/NKH/Eval-Context-%{version}.tar.gz 
+# Perl 5.18 comptability, CPAN RT#86017
+Patch0:     Eval-Context-0.09.11-hash-randomization.patch
 Url:        http://search.cpan.org/dist/Eval-Context
 Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 BuildArch:  noarch
@@ -49,6 +51,7 @@ in a safe compartment.
 
 %prep
 %setup -q -n Eval-Context-%{version}
+%patch0 -p1
 
 perl -pi -e 's/^#~ //' t/003*
 
@@ -76,6 +79,7 @@ make test
 %changelog
 * Sun Aug 04 2013 Petr Pisar <ppisar at redhat.com> - 0.09.11-6
 - Perl 5.18 rebuild
+- Perl 5.18 comptability (CPAN RT#86017)
 
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.09.11-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild



More information about the perl-devel mailing list