git: efc298eb849b - 2025Q3 - www/tor-browser: fix build on i386 with node24
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Jul 2025 13:04:16 UTC
The branch 2025Q3 has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=efc298eb849bd89131b0ae4c3bd53fe86ca7332d
commit efc298eb849bd89131b0ae4c3bd53fe86ca7332d
Author: Martin Filla <freebsd@sysctl.cz>
AuthorDate: 2025-07-09 09:39:29 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-07-19 13:03:59 +0000
www/tor-browser: fix build on i386 with node24
PR: 288108
(cherry picked from commit 6f4191a2ee07f50c4e32c6b3de535f8e87fa628c)
---
www/tor-browser/Makefile | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/www/tor-browser/Makefile b/www/tor-browser/Makefile
index b0c94ed27b82..8795a45e00f4 100644
--- a/www/tor-browser/Makefile
+++ b/www/tor-browser/Makefile
@@ -36,7 +36,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= nspr>=4.32:devel/nspr \
nss>=3.101:security/nss \
- icu>=73.1,1:devel/icu \
+ icu>=76.1:devel/icu \
libevent>=2.1.8:devel/libevent \
harfbuzz>=8.5.0:print/harfbuzz \
graphite2>=1.3.14:graphics/graphite2 \
@@ -47,13 +47,14 @@ BUILD_DEPENDS= nspr>=4.32:devel/nspr \
v4l_compat>0:multimedia/v4l_compat \
autoconf2.13:devel/autoconf2.13 \
nasm:devel/nasm \
+ node${NODEJS_VERSION}>=24:www/node${NODEJS_VERSION} \
yasm:devel/yasm
RUN_DEPENDS= tor:security/tor \
obfs4proxy:security/obfs4proxy-tor \
snowflake-client:security/snowflake-tor
-USES= compiler:c++11-lib libtool localbase:ldflags perl5 pkgconfig \
- python shebangfix tar:xz
+USES= compiler:c++11-lib libtool localbase:ldflags nodejs:24,build,env \
+ perl5 pkgconfig python shebangfix tar:xz
USE_GECKO= gecko
USE_GITHUB= nodefault
TAG_L10N= fcd0300e8478d1ec4d1c097a073ddb8e1e0351e3
@@ -104,6 +105,12 @@ MOZ_OPTIONS= --with-base-browser-version=${DISTVERSION} \
.include <bsd.port.options.mk>
+.if ${ARCH} == i386 && ${MACHINE_CPU:Msse2}
+# is not enabled on i386 by default
+# Fix for error: always_inline function '_mm_setzero_si64' requires target feature 'sse2'
+CFLAGS_i386+= -msse2
+.endif
+
.if ${ARCH} == amd64
MOZ_OPTIONS+= --enable-rust-simd
.endif