Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: firefox aarch64 pledge crashes
To:
Christian Weisgerber <naddy@mips.inka.de>, Theo Buehler <tb@theobuehler.org>, Landry Breuil <landry@rhaalovely.net>, ports <ports@openbsd.org>
Date:
Tue, 24 Sep 2024 14:28:20 +0100

Download raw body.

Thread
This fixes things for me (also needs the pledge commit to the kernel).
aarch64 package at https://junkpile.org/firefox-130.0.1p0.tgz if anyone
wants to try it.

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/mozilla-firefox/Makefile,v
diff -u -p -r1.603 Makefile
--- Makefile	17 Sep 2024 12:55:40 -0000	1.603
+++ Makefile	24 Sep 2024 13:26:03 -0000
@@ -1,6 +1,8 @@
 COMMENT =	Firefox web browser
 ONLY_FOR_ARCHS =	amd64 aarch64 riscv64
 
+REVISION =		0
+
 # Don't forget to bump www/firefox-i18n after updates.
 
 MOZILLA_VERSION =	130.0.1
@@ -74,6 +76,13 @@ COMMENT_FFVPX ?=
 COMMENT_FFVPX =		@comment # needs a trailing space
 .endif
 SUBST_VARS +=		COMMENT_FFVPX
+
+# vendored copy of dav1d needs patching to avoid these (or changing to the ports
+# version, which already has relevant patches).
+USE_NOBTCFI-aarch64 =	Yes
+.if ${MACHINE_ARCH} == aarch64
+USE_NOEXECONLY =	Yes
+.endif
 
 post-install:
 	${SUBST_MAN} ${FILESDIR}/mozilla-firefox.1 \