From 744d82b565a3a2681d6d6c1a1c48e57659e95b3a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 22 Jan 2022 15:26:55 +0100 Subject: [PATCH] remove endianness macro, fixes #6105 thanks to everybody who helped with this, esp. @th0ma7 and @methane. --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 87e93d252e..631b927fa4 100644 --- a/setup.py +++ b/setup.py @@ -816,8 +816,11 @@ def run(self): system_prefix=libxxhash_prefix, system=libxxhash_system, **crypto_ext_kwargs) - msgpack_endian = '__BIG_ENDIAN__' if (sys.byteorder == 'big') else '__LITTLE_ENDIAN__' - msgpack_macros = [(msgpack_endian, '1')] + msgpack_macros = [] # setup.py of msgpack 0.5.6 defines __LITTLE_ENDIAN__ / __BIG_ENDIAN__ - which + # leads to troubles when trying cross-platform builds, see borg issue #6105. + # in current msgpack, this was fixed to ONLY define __LITTLE_ENDIAN__ ON WIN32. + # as borg 1.1.x does not support native win32 anyway, we do not have that here. + msgpack_packer_ext_kwargs = dict( sources=[msgpack_packer_source], include_dirs=include_dirs,