Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Jun 2026 20:02:41 +0000
From:      Stefa=?utf-8?Q?n E=C3=9Fer?= <se@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 72e567861c66 - main - devel/hare: Do not build on arm64
Message-ID:  <6a1f36e1.34130.1a03b17b@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by se:

URL: https://cgit.FreeBSD.org/ports/commit/?id=72e567861c66dd0e4e43602b976bb484ea427946

commit 72e567861c66dd0e4e43602b976bb484ea427946
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2026-06-02 19:46:50 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2026-06-02 20:02:09 +0000

    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.
---
 devel/hare/Makefile                                     |  3 ++-
 devel/hare/files/patch-os_+freebsd_platform__environ.ha | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

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;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1f36e1.34130.1a03b17b>