This port checks the OS to decide how to detect runtime features on
arm64, and expects getauxval() in the else case.  Bump REVISION because
it did previously build on arm64.

OK?


Index: news/py-sabctools/Makefile
===================================================================
RCS file: /cvs/openbsd/ports/news/py-sabctools/Makefile,v
diff -u -p -u -p -r1.7 Makefile
--- news/py-sabctools/Makefile  22 Jun 2024 09:01:53 -0000      1.7
+++ news/py-sabctools/Makefile  4 Aug 2024 22:40:26 -0000
@@ -6,6 +6,7 @@ MODPY_EGG_VERSION =     8.2.3
 EPOCH =                        0
 DISTNAME =             sabctools-${MODPY_EGG_VERSION}
 PKGNAME =              py-sabctools-${MODPY_EGG_VERSION}
+REVISION =             0
 
 CATEGORIES =           news
 
Index: news/py-sabctools/patches/patch-src_yencode_crc_cc
===================================================================
RCS file: news/py-sabctools/patches/patch-src_yencode_crc_cc
diff -N news/py-sabctools/patches/patch-src_yencode_crc_cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ news/py-sabctools/patches/patch-src_yencode_crc_cc  4 Aug 2024 22:32:06 
-0000
@@ -0,0 +1,12 @@
+Index: src/yencode/crc.cc
+--- src/yencode/crc.cc.orig
++++ src/yencode/crc.cc
+@@ -206,7 +206,7 @@ namespace RapidYenc {
+ # elif defined(__has_include)
+ #  if __has_include(<sys/auxv.h>)
+ #   include <sys/auxv.h>
+-#   ifdef __FreeBSD__
++#   if __FreeBSD__ || __OpenBSD__
+ static unsigned long getauxval(unsigned long cap) {
+       unsigned long ret;
+       elf_aux_info(cap, &ret, sizeof(ret));
Index: news/py-sabctools/patches/patch-src_yencode_platform_cc
===================================================================
RCS file: news/py-sabctools/patches/patch-src_yencode_platform_cc
diff -N news/py-sabctools/patches/patch-src_yencode_platform_cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ news/py-sabctools/patches/patch-src_yencode_platform_cc     4 Aug 2024 
22:33:01 -0000
@@ -0,0 +1,21 @@
+Index: src/yencode/platform.cc
+--- src/yencode/platform.cc.orig
++++ src/yencode/platform.cc
+@@ -19,7 +19,7 @@
+ # endif
+ bool RapidYenc::cpu_supports_neon() {
+ # if defined(AT_HWCAP)
+-#  ifdef __FreeBSD__
++#  if __FreeBSD__ || __OpenBSD__
+       unsigned long supported;
+       elf_aux_info(AT_HWCAP, &supported, sizeof(supported));
+ #   ifdef __aarch64__
+@@ -204,7 +204,7 @@ int RapidYenc::cpu_supports_crc_isa() {
+ bool RapidYenc::cpu_supports_rvv() {
+ # if defined(AT_HWCAP)
+       unsigned long ret;
+-#  ifdef __FreeBSD__
++#  if __FreeBSD__ || __OpenBSD__
+       elf_aux_info(AT_HWCAP, &ret, sizeof(ret));
+ #  else
+       ret = getauxval(AT_HWCAP);




-- 
"Have you lived here all your life?"
"Oh, twice that long."

Reply via email to