From 6f4191a2ee07f50c4e32c6b3de535f8e87fa628c Mon Sep 17 00:00:00 2001 From: Martin Filla Date: Wed, 9 Jul 2025 11:39:29 +0200 Subject: www/tor-browser: fix build on i386 with node24 PR: 288108 --- 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 76548cb2b9cc..5ef11b7e4cdf 100644 --- a/www/tor-browser/Makefile +++ b/www/tor-browser/Makefile @@ -37,7 +37,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 \ @@ -48,13 +48,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 @@ -105,6 +106,12 @@ MOZ_OPTIONS= --with-base-browser-version=${DISTVERSION} \ .include +.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 -- cgit v1.2.3