Date: Thu, 21 Apr 2022 17:25:31 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b49d8fda50fa - main - devel/py-pysimdjson: fix build on powerpc64* Message-ID: <202204211725.23LHPVdZ098452@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=b49d8fda50fa040d194be9da621db31258fcb3ab commit b49d8fda50fa040d194be9da621db31258fcb3ab Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-04-21 17:11:22 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-04-21 17:11:22 +0000 devel/py-pysimdjson: fix build on powerpc64* --- devel/py-pysimdjson/Makefile | 2 ++ devel/py-pysimdjson/files/patch-simdjson_simdjson.h | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/devel/py-pysimdjson/Makefile b/devel/py-pysimdjson/Makefile index 2be995e7463a..f6cb94b4a986 100644 --- a/devel/py-pysimdjson/Makefile +++ b/devel/py-pysimdjson/Makefile @@ -14,6 +14,8 @@ LICENSE= MIT USES= python:3.7+ USE_PYTHON= cython distutils +CFLAGS_powerpc64= -mpower8-vector + .if ! defined(WITH_DEBUG) LDFLAGS+= -s .endif diff --git a/devel/py-pysimdjson/files/patch-simdjson_simdjson.h b/devel/py-pysimdjson/files/patch-simdjson_simdjson.h new file mode 100644 index 000000000000..017a1371519b --- /dev/null +++ b/devel/py-pysimdjson/files/patch-simdjson_simdjson.h @@ -0,0 +1,20 @@ +--- simdjson/simdjson.h.orig 2022-04-21 05:39:10 UTC ++++ simdjson/simdjson.h +@@ -17200,7 +17200,7 @@ simdjson_unused simdjson_warn_unused simdjson_really_i + #ifndef SIMDJSON_PPC64_NUMBERPARSING_H + #define SIMDJSON_PPC64_NUMBERPARSING_H + +-#include <byteswap.h> ++#include <sys/endian.h> + + namespace simdjson { + namespace ppc64 { +@@ -17213,7 +17213,7 @@ parse_eight_digits_unrolled(const uint8_t *chars) { + uint64_t val; + std::memcpy(&val, chars, sizeof(uint64_t)); + #ifdef __BIG_ENDIAN__ +- val = bswap_64(val); ++ val = bswap64(val); + #endif + val = (val & 0x0F0F0F0F0F0F0F0F) * 2561 >> 8; + val = (val & 0x00FF00FF00FF00FF) * 6553601 >> 16;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204211725.23LHPVdZ098452>