[libmongodb-perl] 01/02: Add patch from Niko Tyni to fix endianness issue in tests.

gregor herrmann gregoa at debian.org
Tue Oct 27 22:54:17 UTC 2015


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

gregoa pushed a commit to branch master
in repository libmongodb-perl.

commit 81d1b2aaa51bb906bcfdcbce9b3eee094f272b37
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue Oct 27 23:50:32 2015 +0100

    Add patch from Niko Tyni to fix endianness issue in tests.
    
    Closes: #803178
---
 ...ON-encoded-doubles-in-little-endian-order.patch | 28 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/0001-Expect-BSON-encoded-doubles-in-little-endian-order.patch b/debian/patches/0001-Expect-BSON-encoded-doubles-in-little-endian-order.patch
new file mode 100644
index 0000000..c8c7514
--- /dev/null
+++ b/debian/patches/0001-Expect-BSON-encoded-doubles-in-little-endian-order.patch
@@ -0,0 +1,28 @@
+From 6469bf8eb321686c3b38a15b9a8a311a838568cb Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Tue, 27 Oct 2015 20:49:00 +0000
+Subject: [PATCH] Expect BSON encoded doubles in little endian order
+
+This fixes bson_codec test failures on big endian platforms.
+
+Bug-Debian: https://bugs.debian.org/803178
+---
+ t/lib/TestBSON.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/lib/TestBSON.pm b/t/lib/TestBSON.pm
+index e400586..b0f5b04 100644
+--- a/t/lib/TestBSON.pm
++++ b/t/lib/TestBSON.pm
+@@ -82,7 +82,7 @@ sub _doc {
+ sub _cstring { return $_[0] . "\x00" }
+ BEGIN { *_ename = \&_cstring }
+ 
+-sub _double { return pack( "d", shift ) }
++sub _double { return pack( PERL58 ? "d" : "d<", shift ) }
+ 
+ sub _int32 { return pack( P_INT32, shift ) }
+ 
+-- 
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
index 5299247..46bb23d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 spelling.patch
+0001-Expect-BSON-encoded-doubles-in-little-endian-order.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmongodb-perl.git



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