external/nss/UnpackedTarball_nss.mk | 1 external/nss/nss.oldglibc.patch.1 | 47 ++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+)
New commits: commit 6626202319a56521d0d583c7b0296f8b07bdf77d Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> AuthorDate: Wed Oct 7 16:17:06 2020 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> CommitDate: Wed Oct 7 16:17:20 2020 +0200 Fix nss build on centos 5 baseline glic too old Change-Id: I7050d87f8c84780feb154ec3ff5fc5535247cd9e diff --git a/external/nss/UnpackedTarball_nss.mk b/external/nss/UnpackedTarball_nss.mk index cf7ad65803a1..047ee11c8377 100644 --- a/external/nss/UnpackedTarball_nss.mk +++ b/external/nss/UnpackedTarball_nss.mk @@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,nss,\ $(if $(findstring 120_70,$(VCVER)_$(WINDOWS_SDK_VERSION)), \ external/nss/nss-winXP-sdk.patch.1) \ $(if $(filter WNTMSC,$(OS)$(COM)),external/nss/nss-no-c99.patch) \ + external/nss/nss.oldglibc.patch.1 \ )) # vim: set noet sw=4 ts=4: diff --git a/external/nss/nss.oldglibc.patch.1 b/external/nss/nss.oldglibc.patch.1 new file mode 100644 index 000000000000..8cc5ed1de232 --- /dev/null +++ b/external/nss/nss.oldglibc.patch.1 @@ -0,0 +1,47 @@ +diff -ur nss.org/nss/lib/freebl/verified/kremlin/include/kremlin/lowstar_endianness.h nss/nss/lib/freebl/verified/kremlin/include/kremlin/lowstar_endianness.h +--- nss.org/nss/lib/freebl/verified/kremlin/include/kremlin/lowstar_endianness.h 2020-10-07 16:00:10.454610384 +0200 ++++ nss/nss/lib/freebl/verified/kremlin/include/kremlin/lowstar_endianness.h 2020-10-07 16:03:18.185698074 +0200 +@@ -198,6 +198,43 @@ + memcpy(b, &i, 8); + } + ++ ++#if !defined(__bswap_constant_64) ++ ++static __inline __uint64_t ++__uint64_identity (__uint64_t __x) ++{ ++ return __x; ++} ++ ++/* Swap bytes in 64-bit value. */ ++#define __bswap_constant_64(x) \ ++ ((((x) & 0xff00000000000000ull) >> 56) \ ++ | (((x) & 0x00ff000000000000ull) >> 40) \ ++ | (((x) & 0x0000ff0000000000ull) >> 24) \ ++ | (((x) & 0x000000ff00000000ull) >> 8) \ ++ | (((x) & 0x00000000ff000000ull) << 8) \ ++ | (((x) & 0x0000000000ff0000ull) << 24) \ ++ | (((x) & 0x000000000000ff00ull) << 40) \ ++ | (((x) & 0x00000000000000ffull) << 56)) ++ ++__extension__ static __inline __uint64_t ++__bswap_64 (__uint64_t __bsx) ++{ ++#if __GNUC_PREREQ (4, 3) ++ return __builtin_bswap64 (__bsx); ++#else ++ return __bswap_constant_64 (__bsx); ++#endif ++} ++ ++# define htobe64(x) __bswap_64 (x) ++# define htole64(x) __uint64_identity (x) ++# define be64toh(x) __bswap_64 (x) ++# define le64toh(x) __uint64_identity (x) ++ ++#endif // glib version ++ + /* Legacy accessors so that this header can serve as an implementation of + * C.Endianness */ + #define load16_le(b) (le16toh(load16(b))) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits