aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2026-06-02 19:46:50 +0000
committerStefan Eßer <se@FreeBSD.org>2026-06-02 20:02:09 +0000
commit72e567861c66dd0e4e43602b976bb484ea427946 (patch)
tree0bf2332db61fae7c71dc3c9292dc529a7be80d91
parent54be5b75a1eb875dc3afad33945f0a3801d52d8c (diff)
devel/hare: Do not build on arm64
The build on arm64 fails in rt/+freebsd/syscalls.ha, line 246, due to an assertion failure in faccessat(). The patch added in this update fixes a failed assert in a prior build phase, since the result of sysctl hw.machine is "arm64" and not "aarch64" as expected by the unpatched code. While the patch is not sufficient to complete the build on arm64, it is committed as a required but not sufficient build fix. The port revision is bumped because of the update of devel/qbe to version 1.3.
-rw-r--r--devel/hare/Makefile3
-rw-r--r--devel/hare/files/patch-os_+freebsd_platform__environ.ha11
2 files changed, 13 insertions, 1 deletions
diff --git a/devel/hare/Makefile b/devel/hare/Makefile
index d10899bcc211..13a0c9ae4b92 100644
--- a/devel/hare/Makefile
+++ b/devel/hare/Makefile
@@ -1,5 +1,6 @@
PORTNAME= hare
DISTVERSION= 0.26.0
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://git.sr.ht/~sircmpwn/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
PKGNAMESUFFIX= -lang
@@ -12,7 +13,7 @@ LICENSE= GPLv3 MPL20
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
-ONLY_FOR_ARCHS= amd64 aarch64 riscv64
+ONLY_FOR_ARCHS= amd64 riscv64 # aarch64
BUILD_DEPENDS= harec:lang/harec \
qbe:devel/qbe \
diff --git a/devel/hare/files/patch-os_+freebsd_platform__environ.ha b/devel/hare/files/patch-os_+freebsd_platform__environ.ha
new file mode 100644
index 000000000000..3ae1353d91dd
--- /dev/null
+++ b/devel/hare/files/patch-os_+freebsd_platform__environ.ha
@@ -0,0 +1,11 @@
+--- os/+freebsd/platform_environ.ha.orig 2026-02-13 12:18:15 UTC
++++ os/+freebsd/platform_environ.ha
+@@ -91,7 +91,7 @@ export fn architecture() arch = {
+ // Returns the host CPU architecture.
+ export fn architecture() arch = {
+ switch (machine()) {
+- case "aarch64" =>
++ case "arm64" =>
+ return arch::AARCH64;
+ case "riscv64" =>
+ return arch::RISCV64;