diff --git a/www/librewolf/Makefile b/www/librewolf/Makefile index 67cfb25b8480..1128fb759756 100644 --- a/www/librewolf/Makefile +++ b/www/librewolf/Makefile @@ -1,104 +1,104 @@ PORTNAME= librewolf -DISTVERSION= 152.0.2 +DISTVERSION= 152.0.4 LWPATCH= -1 DISTVERSIONSUFFIX= ${LWPATCH}.source CATEGORIES= www wayland MASTER_SITES= https://codeberg.org/api/packages/librewolf/generic/librewolf-source/${DISTVERSION}${LWPATCH}/ MAINTAINER= freebsd@sysctl.cz COMMENT= Custom version of Firefox, focused on privacy, security and freedom WWW= https://librewolf.net/ LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= nspr>=4.32:devel/nspr \ nss>=3.124:security/nss \ icu>=76.1:devel/icu \ libevent>=2.1.8:devel/libevent \ harfbuzz>=10.1.0:print/harfbuzz \ graphite2>=1.3.14:graphics/graphite2 \ png>=1.6.45:graphics/png \ dav1d>=1.0.0:multimedia/dav1d \ libvpx>=1.15.0:multimedia/libvpx \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ v4l_compat>0:multimedia/v4l_compat \ nasm:devel/nasm \ yasm:devel/yasm \ zip:archivers/zip \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc++abi.a:devel/wasi-libcxx${LLVM_VERSION} \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc.a:devel/wasi-libc@${LLVM_VERSION} \ wasi-compiler-rt${LLVM_VERSION}>0:devel/wasi-compiler-rt${LLVM_VERSION} USE_GECKO= gecko USE_MOZILLA= -sqlite # work around bindgen not finding ICU, e.g. # dist/include/mozilla/intl/ICU4CGlue.h:8:10: fatal error: 'unicode/uenum.h' file not found, err: true CONFIGURE_ENV+= BINDGEN_CFLAGS="-I${LOCALBASE}/include" CONFIGURE_ENV+= MOZ_REQUIRE_SIGNING="" WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}${LWPATCH} FIREFOX_ICON= ${MOZILLA}.png FIREFOX_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/browser/chrome/icons/default/default48.png MOZILLA_CAP= ${MOZILLA:C/^(.).*/\1/:tu}${MOZILLA:C/^.//} MOZ_EXPORT= MOZ_TELEMETRY_REPORTING="" \ MOZILLA_OFFICIAL="1" \ MOZ_OFFICIAL_BRANDING="1" \ MOZ_APP_DISPLAYNAME="${MOZILLA_CAP}" \ MOZ_APP_NAME="${MOZILLA}" MOZ_OPTIONS= --enable-application=browser \ --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot \ --allow-addon-sideload \ --disable-crashreporter \ --disable-debug \ --disable-default-browser-agent \ --disable-tests \ --disable-updater \ --enable-hardening \ --enable-optimize \ --enable-release \ --with-app-name=${MOZILLA} \ --with-branding=browser/branding/${MOZILLA} \ --with-unsigned-addon-scopes=app,system \ --enable-bootstrap \ --with-l10n-base=${WRKSRC}/lw/l10n \ MOZ_CRASHREPORTER=0 \ MOZ_DATA_REPORTING=0 .include "${.CURDIR}/../../www/firefox/Makefile.options" .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 post-extract: @${SED} -e 's|@FIREFOX_ICON@|${FIREFOX_ICON:R}|;s|@MOZILLA@|${MOZILLA}|' \ -e 's|firefox|${MOZILLA}|' \ -e 's|Firefox|${MOZILLA_CAP}|' \ <${.CURDIR}/../firefox/files/firefox.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/browser/app/nsBrowserApp.cpp @${REINPLACE_CMD} -e 's|wasm32-wasi|&p1|' \ ${WRKSRC}/build/moz.configure/toolchain.configure @${RM} ${WRKSRC}/mozconfig post-install: ${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${STAGEDIR}${DESKTOPDIR} ${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps ${LN} -sf ${FIREFOX_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${FIREFOX_ICON} .include diff --git a/www/librewolf/distinfo b/www/librewolf/distinfo index 3ca8311d4a92..bc6c443dfbcb 100644 --- a/www/librewolf/distinfo +++ b/www/librewolf/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1782279878 -SHA256 (librewolf-152.0.2-1.source.tar.gz) = 2db000606af1acb50e857a57f744d2ae40325d0d81a6bb6ba648422b9114b625 -SIZE (librewolf-152.0.2-1.source.tar.gz) = 1155807761 +TIMESTAMP = 1782890636 +SHA256 (librewolf-152.0.4-1.source.tar.gz) = fa21c6183109971401eea879b706281064228c9d72dddcbb8103d8da756862bd +SIZE (librewolf-152.0.4-1.source.tar.gz) = 1155974937 diff --git a/www/librewolf/files/patch-gfx_skia_skia_src_core_SkCpu.cpp b/www/librewolf/files/patch-gfx_skia_skia_src_core_SkCpu.cpp deleted file mode 100644 index 8d4ac6407f81..000000000000 --- a/www/librewolf/files/patch-gfx_skia_skia_src_core_SkCpu.cpp +++ /dev/null @@ -1,29 +0,0 @@ ---- gfx/skia/skia/src/core/SkCpu.cpp.orig 2025-02-24 16:56:14 UTC -+++ gfx/skia/skia/src/core/SkCpu.cpp -@@ -89,6 +89,26 @@ - } - #endif - -+#if (SK_CPU_ARM32) && defined(__FreeBSD__) -+ #include -+ -+ static uint32_t read_cpu_features() { -+ unsigned long caps = 0; -+ uint32_t features = 0; -+ -+ elf_aux_info(AT_HWCAP, &caps, sizeof caps); -+ -+ if (caps & HWCAP_NEON) { -+ features |= SkCpu::NEON; -+ if (caps & HWCAP_VFPv4) { -+ features |= SkCpu::NEON_FMA|SkCpu::VFP_FP16; -+ } -+ } -+ -+ return features; -+ } -+#endif -+ - uint32_t SkCpu::gCachedFeatures = 0; - - void SkCpu::CacheRuntimeFeatures() { diff --git a/www/librewolf/files/patch-python_sites_mach.txt b/www/librewolf/files/patch-python_sites_mach.txt new file mode 100644 index 000000000000..91b4e15b9843 --- /dev/null +++ b/www/librewolf/files/patch-python_sites_mach.txt @@ -0,0 +1,31 @@ +commit 4ae638d5bbcaa34f67b316bc79eb9c1fe14ec362 +Author: Christoph Moench-Tegeder +Date: Tue Jun 9 21:44:59 2026 +0200 + + avoid problems with python modules in mach + +diff --git python/sites/mach.txt python/sites/mach.txt +index 8f4aa95dbd04..045c15136680 100644 +--- python/sites/mach.txt ++++ python/sites/mach.txt +@@ -58,15 +58,15 @@ pth:xpcom/geckoprocesstypes_generator + pth:xpcom/idl-parser + # glean-sdk may not be installable if a wheel isn't available + # and it has to be built from source. + # pypi-optional:glean-sdk==67.3.2:telemetry will not be collected +-pypi-optional:orjson>=3.10:json operations will be slower in various tools ++# pypi-optional:orjson>=3.10:json operations will be slower in various tools + # Mach gracefully handles the case where `psutil` is unavailable. + # We aren't (yet) able to pin packages in automation, so we have to + # support down to the oldest locally-installed version (5.4.2). +-pypi-optional:psutil>=5.4.2:telemetry will be missing some data +-pypi-optional:rtoml>=0.11.0:toml operations will be slower in various tools +-pypi-optional:zstandard>=0.11.1,<=0.25.0:zstd archives will not be possible to extract +-vendored-fallback:pyyaml:third_party/python/pyyaml/lib/:faster native loading is disabled ++# pypi-optional:psutil>=5.4.2:telemetry will be missing some data ++# pypi-optional:rtoml>=0.11.0:toml operations will be slower in various tools ++# pypi-optional:zstandard>=0.11.1,<=0.25.0:zstd archives will not be possible to extract ++vendored:pyyaml:third_party/python/pyyaml/lib/ + vendored:third_party/python/ansicon + vendored:third_party/python/appdirs + vendored:third_party/python/async_timeout diff --git a/www/librewolf/files/patch-third__party_xsimd_include_xsimd_types_xsimd__vsx__register.hpp b/www/librewolf/files/patch-third__party_xsimd_include_xsimd_types_xsimd__vsx__register.hpp new file mode 100644 index 000000000000..51367c0ea805 --- /dev/null +++ b/www/librewolf/files/patch-third__party_xsimd_include_xsimd_types_xsimd__vsx__register.hpp @@ -0,0 +1,16 @@ +--- third_party/xsimd/include/xsimd/types/xsimd_vsx_register.hpp.orig 2026-06-28 10:55:46.683534000 +0200 ++++ third_party/xsimd/include/xsimd/types/xsimd_vsx_register.hpp 2026-06-28 10:55:46.694422000 +0200 +@@ -64,10 +64,10 @@ + XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(short, short); + XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(unsigned int, int); + XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(int, int); +- XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(unsigned long, long); +- XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(long, long); ++ XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(unsigned long, long long); ++ XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(long, long long); + XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(float, int); +- XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(double, long); ++ XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER(double, long long); + + #undef XSIMD_DECLARE_SIMD_BOOL_VSX_REGISTER + } diff --git a/www/librewolf/files/patch-toolkit_xre_nsXREDirProvider.cpp b/www/librewolf/files/patch-toolkit_xre_nsXREDirProvider.cpp deleted file mode 100644 index 7c89097408dc..000000000000 --- a/www/librewolf/files/patch-toolkit_xre_nsXREDirProvider.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- toolkit/xre/nsXREDirProvider.cpp.orig 2024-03-19 15:15:35 UTC -+++ toolkit/xre/nsXREDirProvider.cpp -@@ -1430,7 +1430,7 @@ nsresult nsXREDirProvider::AppendProfilePath(nsIFile* - if (gAppData->profile) { - profile = gAppData->profile; - } else { -- appName = gAppData->name; -+ appName = "Librewolf"; - vendor = gAppData->vendor; - } -