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 <gre...@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 <nt...@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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to