aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2024-01-24 12:36:00 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2024-01-24 12:36:00 +0000
commit2289f421c1271a50ab006ba60ecf773f557bca93 (patch)
treeec9d8184d41c06c42e1d5bdf219ae08e08a57bc2
parent2a68ac754e626a422caf09b3a2f515dc3961b0bb (diff)
downloadports-2289f421c1271a50ab006ba60ecf773f557bca93.tar.gz
ports-2289f421c1271a50ab006ba60ecf773f557bca93.zip
textproc/ugrep: add a workaround for building on aarch64 platform
PR: 276577 Reported by: void at f-m dot fm
-rw-r--r--textproc/ugrep/Makefile1
-rw-r--r--textproc/ugrep/files/patch-lzma_C_CpuArch.c15
2 files changed, 16 insertions, 0 deletions
diff --git a/textproc/ugrep/Makefile b/textproc/ugrep/Makefile
index 0e8028b5b7dd..15eaa776c31c 100644
--- a/textproc/ugrep/Makefile
+++ b/textproc/ugrep/Makefile
@@ -1,6 +1,7 @@
PORTNAME= ugrep
DISTVERSIONPREFIX= v
DISTVERSION= 4.5.2
+PORTREVISION= 1
CATEGORIES= textproc
MAINTAINER= ashish@FreeBSD.org
diff --git a/textproc/ugrep/files/patch-lzma_C_CpuArch.c b/textproc/ugrep/files/patch-lzma_C_CpuArch.c
new file mode 100644
index 000000000000..11cb95f5d0a8
--- /dev/null
+++ b/textproc/ugrep/files/patch-lzma_C_CpuArch.c
@@ -0,0 +1,15 @@
+--- lzma/C/CpuArch.c.orig 2024-01-24 11:26:34 UTC
++++ lzma/C/CpuArch.c
+@@ -762,10 +762,11 @@ BoolInt CPU_IsSupported_AES (void) { return APPLE_CRYP
+
+ #include <sys/auxv.h>
+
++#ifdef __linux__
+ #define USE_HWCAP
++#endif
+
+ #ifdef USE_HWCAP
+-
+ #include <asm/hwcap.h>
+
+ #define MY_HWCAP_CHECK_FUNC_2(name1, name2) \