[Pkg-mongodb-maintainers] [pkg-mongodb] 01/03: Really disable hardware-assisted CRC32 on s390x

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Sun Dec 25 11:14:30 UTC 2016


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

apoikos pushed a commit to branch experimental
in repository pkg-mongodb.

commit f887b704775a31a7ee300d6a7377320275f79242
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Fri Dec 23 23:40:20 2016 +0200

    Really disable hardware-assisted CRC32 on s390x
---
 .../patches/disable-hw-crc32-on-arm64-s390x.patch  | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/debian/patches/disable-hw-crc32-on-arm64-s390x.patch b/debian/patches/disable-hw-crc32-on-arm64-s390x.patch
index 534a087..57ae062 100644
--- a/debian/patches/disable-hw-crc32-on-arm64-s390x.patch
+++ b/debian/patches/disable-hw-crc32-on-arm64-s390x.patch
@@ -11,3 +11,38 @@
      env.Append(CPPDEFINES=["HAVE_CRC32_HARDWARE"])
  
  wtlib = env.Library(
+--- a/src/third_party/wiredtiger/dist/filelist
++++ b/src/third_party/wiredtiger/dist/filelist
+@@ -53,7 +53,6 @@
+ src/checksum/software/checksum.c
+ src/checksum/x86/crc32-x86.c		X86_HOST
+ src/checksum/zseries/crc32-s390x.c	ZSERIES_HOST
+-src/checksum/zseries/crc32le-vx.sx	ZSERIES_HOST
+ src/config/config.c
+ src/config/config_api.c
+ src/config/config_check.c
+--- a/src/third_party/wiredtiger/src/checksum/zseries/crc32-s390x.c
++++ b/src/third_party/wiredtiger/src/checksum/zseries/crc32-s390x.c
+@@ -66,11 +66,14 @@
+ 		return crc;                                                 \
+ 	}
+ 
++#if defined(HAVE_CRC32_HARDWARE)
+ /* Main CRC-32 functions */
+ DEFINE_CRC32_VX(__wt_crc32c_le_vx, __wt_crc32c_le_vgfm_16, __wt_crc32c_le)
++#endif
+ 
+ #include "wt_internal.h"
+ 
++#if defined(HAVE_CRC32_HARDWARE)
+ /*
+  * __wt_checksum_hw --
+  *      WiredTiger: return a checksum for a chunk of memory.
+@@ -80,6 +83,7 @@
+ {
+ 	return (~__wt_crc32c_le_vx(0xffffffff, chunk, len));
+ }
++#endif
+ 
+ /*
+  * __wt_checksum_init --

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



More information about the Pkg-mongodb-maintainers mailing list