[perl-Messaging-Message] Force fixed JSON ordering in tests

Petr Pisar ppisar at fedoraproject.org
Fri Jul 26 07:58:01 UTC 2013


commit 6cbefaa7e5568c5b41eeae903fd4b088991a0a41
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri Jul 26 09:57:24 2013 +0200

    Force fixed JSON ordering in tests

 ...ge-1.4-Force-fixed-JSON-ordering-in-tests.patch |   32 ++++++++++++++++++++
 perl-Messaging-Message.spec                        |    4 ++
 2 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/Messaging-Message-1.4-Force-fixed-JSON-ordering-in-tests.patch b/Messaging-Message-1.4-Force-fixed-JSON-ordering-in-tests.patch
new file mode 100644
index 0000000..169d285
--- /dev/null
+++ b/Messaging-Message-1.4-Force-fixed-JSON-ordering-in-tests.patch
@@ -0,0 +1,32 @@
+From 4616ac01ae92dc9275c6b0ec425856219d850dca Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Fri, 26 Jul 2013 09:54:52 +0200
+Subject: [PATCH] Force fixed JSON ordering in tests
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+<https://rt.cpan.org/Public/Bug/Display.html?id=87341>
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ t/2queue.t | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/t/2queue.t b/t/2queue.t
+index 935cbf3..52b2f26 100644
+--- a/t/2queue.t
++++ b/t/2queue.t
+@@ -10,6 +10,9 @@ use Test::More tests => 23;
+ 
+ our($tmpdir, $binstr, $unistr);
+ 
++# Force fixed ordering, CPAN RT#87341
++$Messaging::Message::_JSON->canonical(1);
++
+ sub test_m ($$) {
+     my($mq, $msg) = @_;
+     my($str1, $str2, $elt);
+-- 
+1.8.1.4
+
diff --git a/perl-Messaging-Message.spec b/perl-Messaging-Message.spec
index 0b1492d..530cd26 100644
--- a/perl-Messaging-Message.spec
+++ b/perl-Messaging-Message.spec
@@ -6,6 +6,8 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Messaging-Message/
 Source0:        http://search.cpan.org/CPAN/authors/id/L/LC/LCONS/Messaging-Message-%{version}.tar.gz
+# Force fixed JSON ordering in tests, CPAN RT#87341
+Patch0:         Messaging-Message-1.4-Force-fixed-JSON-ordering-in-tests.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl
@@ -32,6 +34,7 @@ see for instance: http://en.wikipedia.org/wiki/Enterprise_messaging_system.
 
 %prep
 %setup -q -n Messaging-Message-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -62,6 +65,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Thu Jul 25 2013 Petr Pisar <ppisar at redhat.com> - 1.4-3
 - Perl 5.18 rebuild
+- Force fixed JSON ordering in tests (CPAN RT#87341)
 
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild


More information about the scm-commits mailing list