git: e2e368120dc7 - main - devel/py-pysimdjson: drop power8-vector requirement on powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Sep 2026 12:50:19 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e2e368120dc7336fe34807be1dc98ae506320252
commit e2e368120dc7336fe34807be1dc98ae506320252
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-09-03 12:02:48 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-09-11 12:49:22 +0000
devel/py-pysimdjson: drop power8-vector requirement on powerpc64
Allows to build on baseline G5.
---
devel/py-pysimdjson/Makefile | 4 +---
devel/py-pysimdjson/files/patch-simdjson_simdjson.cpp | 11 +++++++++++
devel/py-pysimdjson/files/patch-simdjson_simdjson.h | 15 ++++++++++++---
3 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/devel/py-pysimdjson/Makefile b/devel/py-pysimdjson/Makefile
index 2f48116e8d2f..622d36434806 100644
--- a/devel/py-pysimdjson/Makefile
+++ b/devel/py-pysimdjson/Makefile
@@ -1,6 +1,6 @@
PORTNAME= pysimdjson
PORTVERSION= 6.0.2
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -19,8 +19,6 @@ LICENSE= MIT
USES= python
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.cpp b/devel/py-pysimdjson/files/patch-simdjson_simdjson.cpp
new file mode 100644
index 000000000000..861241c93cb9
--- /dev/null
+++ b/devel/py-pysimdjson/files/patch-simdjson_simdjson.cpp
@@ -0,0 +1,11 @@
+--- simdjson/simdjson.cpp.orig 2026-09-03 05:57:08 UTC
++++ simdjson/simdjson.cpp 2026-09-03 05:57:08 UTC
+@@ -112,7 +112,7 @@
+ #elif defined(__riscv) && __riscv_xlen == 64
+ #define SIMDJSON_IS_RISCV64 1
+ #elif defined(__PPC64__) || defined(_M_PPC64)
+-#if defined(__ALTIVEC__)
++#if defined(__ALTIVEC__) && defined(__POWER8_VECTOR__)
+ #define SIMDJSON_IS_PPC64_VMX 1
+ #endif // defined(__ALTIVEC__)
+ #else
diff --git a/devel/py-pysimdjson/files/patch-simdjson_simdjson.h b/devel/py-pysimdjson/files/patch-simdjson_simdjson.h
index 1632cb6c5790..0bee51f9f2fc 100644
--- a/devel/py-pysimdjson/files/patch-simdjson_simdjson.h
+++ b/devel/py-pysimdjson/files/patch-simdjson_simdjson.h
@@ -1,6 +1,15 @@
---- simdjson/simdjson.h.orig 2024-02-06 03:49:45 UTC
-+++ simdjson/simdjson.h
-@@ -6223,15 +6223,15 @@ class base_formatter { (public)
+--- simdjson/simdjson.h.orig 2026-09-03 05:57:08 UTC
++++ simdjson/simdjson.h 2026-09-03 05:57:08 UTC
+@@ -132,7 +132,7 @@
+ #elif defined(__riscv) && __riscv_xlen == 64
+ #define SIMDJSON_IS_RISCV64 1
+ #elif defined(__PPC64__) || defined(_M_PPC64)
+-#if defined(__ALTIVEC__)
++#if defined(__ALTIVEC__) && defined(__POWER8_VECTOR__)
+ #define SIMDJSON_IS_PPC64_VMX 1
+ #endif // defined(__ALTIVEC__)
+ #else
+@@ -6223,15 +6223,15 @@
simdjson_inline void one_char(char c);
simdjson_inline void call_print_newline() {