pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
firefox: add 159 with an additional upstream patch for nss 3.134
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Fri Nov 20 12:03:08 2026 +0100
Changeset: b60e0c6c6a83615ac9f8728a2514e080a04409a4
Modified Files:
firefox/Makefile
firefox/PLIST
firefox/distinfo
firefox/files/node-wrapper.sh
firefox/mozilla-common.mk
firefox/patches/patch-browser_app_profile_firefox.js
firefox/patches/patch-build_gn__processor.py
firefox/patches/patch-config_gcc-stl-wrapper.template.h
firefox/patches/patch-config_makefiles_rust.mk
firefox/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c
firefox/patches/patch-python_sites_build.txt
firefox/patches/patch-python_sites_mach.txt
firefox/patches/patch-third__party_angle_angle__common__gn_moz.build
firefox/patches/patch-third__party_angle_angle__program__version__id__gn_ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in
firefox/patches/patch-third__party_libwebrtc_modules_portal_portal__gn_moz.build
firefox/patches/patch-toolkit_components_terminator_nsTerminator.cpp
Added Files:
firefox/TODO
firefox/patches/patch-config_system-headers.mozbuild
firefox/patches/patch-third__party_llama.cpp_ggml_src_ggml-cpu_ops.cpp
firefox/patches/patch-widget_gtk_nsAppShell.cpp
Removed Files:
firefox/patches/patch-third__party_wasm2c_src_c-writer.cc
Log Message:
firefox: add 159 with an additional upstream patch for nss 3.134
still doesn't link
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b60e0c6c6a83615ac9f8728a2514e080a04409a4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
firefox/Makefile | 12 +-
firefox/PLIST | 2 +-
firefox/TODO | 22 ++
firefox/distinfo | 41 +--
firefox/files/node-wrapper.sh | 2 +-
firefox/mozilla-common.mk | 15 +-
.../patches/patch-browser_app_profile_firefox.js | 14 +-
firefox/patches/patch-build_gn__processor.py | 20 +-
.../patch-config_gcc-stl-wrapper.template.h | 13 +-
firefox/patches/patch-config_makefiles_rust.mk | 24 +-
.../patches/patch-config_system-headers.mozbuild | 12 +
.../patch-nsprpub_pr_src_pthreads_ptsynch.c | 2 +-
firefox/patches/patch-python_sites_build.txt | 6 +-
firefox/patches/patch-python_sites_mach.txt | 8 +-
...-third__party_angle_angle__common__gn_moz.build | 12 +-
...EShaderProgramVersion.h-22c710649c380411.rsp.in | 27 +-
...y_libwebrtc_modules_portal_portal__gn_moz.build | 10 +-
...hird__party_llama.cpp_ggml_src_ggml-cpu_ops.cpp | 323 +++++++++++++++++++++
.../patch-third__party_wasm2c_src_c-writer.cc | 13 -
...-toolkit_components_terminator_nsTerminator.cpp | 10 +-
firefox/patches/patch-widget_gtk_nsAppShell.cpp | 16 +
21 files changed, 467 insertions(+), 137 deletions(-)
diffs:
diff --git a/firefox/Makefile b/firefox/Makefile
index f38e10e786..3783265f03 100644
--- a/firefox/Makefile
+++ b/firefox/Makefile
@@ -1,9 +1,11 @@
-# $NetBSD: Makefile,v 1.672 2026/09/02 19:04:57 wiz Exp $
+# $NetBSD: Makefile,v 1.681 2026/11/11 11:56:14 wiz Exp $
FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
-MOZ_BRANCH= 155.0
+MOZ_BRANCH= 159.0
MOZ_BRANCH_MINOR= .1
CANDIDATE_BUILD= # for release, make this empty
+PATCHFILES+= 2e89a83f6b9b92c3b3b617b9782e51a4e84e7c3d.diff
+PATCH_SITES+= https://github.com/mozilla-firefox/firefox/commit/
DISTNAME= firefox-${FIREFOX_VER}.source
@@ -16,10 +18,11 @@ DIST_SUBDIR= ${PKGNAME_NOREV}
.endif
PKGNAME= ${DISTNAME:S/.source/${RCVER:S/build/rc/}/:S/esr//}
+PKGREVISION= 1
CATEGORIES= www
EXTRACT_SUFX= .tar.xz
-NODEJSKIT= nodejs-output-155.0.1.tgz
+NODEJSKIT= nodejs-output-156.0.1.tgz
DISTFILES= ${DEFAULT_DISTFILES} ${NODEJSKIT}
SITES.${NODEJSKIT}= ${MASTER_SITE_LOCAL}
@@ -53,6 +56,9 @@ LICENSE= mpl-1.1
#
# -----------------------------------------------------------------------
+### As if 157.0, `make maintainer-files` does not work.
+### ryoon will disable build without nodejs for a while.
+FIREFOX_MAINTAINER=yes
WRKSRC= ${WRKDIR}/firefox-${FIREFOX_VER:C/b.*//}
MOZILLA_DIR= # empty
diff --git a/firefox/PLIST b/firefox/PLIST
index 7935e0faec..83f7516a86 100644
--- a/firefox/PLIST
+++ b/firefox/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.195 2026/08/26 21:44:35 gutteridge Exp $
+@comment $NetBSD: PLIST,v 1.196 2026/09/23 08:39:50 ryoon Exp $
bin/${MOZILLA}
lib/${MOZILLA}/application.ini
lib/${MOZILLA}/browser/chrome/icons/default/default128.png
diff --git a/firefox/TODO b/firefox/TODO
new file mode 100644
index 0000000000..436d7f3f40
--- /dev/null
+++ b/firefox/TODO
@@ -0,0 +1,22 @@
+With wip/nss (3.134):
+
+In file included from Unified_cpp_protocol_http4.cpp:101:
+../../../../firefox-159.0.1/netwerk/protocol/http/WebTransportCertificateVerifier.cpp: In function 'mozilla::pkix::Result mozilla::net::AuthCertificateWithServerCertificateHashes(nsTArray<unsigned char>&, const nsTArray<RefPtr<nsIWebTransportHash> >&)':
+../../../../firefox-159.0.1/netwerk/protocol/http/WebTransportCertificateVerifier.cpp:231:45: error: cannot declare variable 'trustDomain' to be of abstract type 'mozilla::psm::ServerCertHashesTrustDomain'
+ 231 | mozilla::psm::ServerCertHashesTrustDomain trustDomain;
+ | ^~~~~~~~~~~
+../../../../firefox-159.0.1/netwerk/protocol/http/WebTransportCertificateVerifier.cpp:14:7: note: because the following virtual functions are pure within 'mozilla::psm::ServerCertHashesTrustDomain':
+ 14 | class ServerCertHashesTrustDomain : public mozilla::pkix::TrustDomain {
+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
+In file included from /tmp/www/firefox/work/.buildlink/include/nss/mozpkix/pkixder.h:43,
+ from /tmp/www/firefox/work/build/dist/include/CertVerifier.h:18,
+ from /tmp/www/firefox/work/build/dist/include/CommonSocketControl.h:9,
+ from ../../../../firefox-159.0.1/netwerk/protocol/http/QuicSocketControl.h:9,
+ from ../../../../firefox-159.0.1/netwerk/protocol/http/QuicSocketControl.cpp:6,
+ from Unified_cpp_protocol_http4.cpp:47:
+/tmp/www/firefox/work/.buildlink/include/nss/mozpkix/pkixtypes.h:358:18: note: 'virtual mozilla::pkix::Result mozilla::pkix::TrustDomain::CheckMLDSAParameterSetIsAcceptable(mozilla::pkix::EndEntityOrCA, mozilla::pkix::MLDSAParameterSet)'
+ 358 | virtual Result CheckMLDSAParameterSetIsAcceptable(
+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+/tmp/www/firefox/work/.buildlink/include/nss/mozpkix/pkixtypes.h:368:18: note: 'virtual mozilla::pkix::Result mozilla::pkix::TrustDomain::VerifyMLDSASignedData(mozilla::pkix::Input, mozilla::pkix::MLDSAParameterSet, mozilla::pkix::Input, mozilla::pkix::Input)'
+ 368 | virtual Result VerifyMLDSASignedData(Input data,
+ | ^~~~~~~~~~~~~~~~~~~~~
diff --git a/firefox/distinfo b/firefox/distinfo
index 60b5ffa385..db554399a6 100644
--- a/firefox/distinfo
+++ b/firefox/distinfo
@@ -1,17 +1,21 @@
-$NetBSD: distinfo,v 1.593 2026/09/01 15:55:09 ryoon Exp $
+$NetBSD: distinfo,v 1.599 2026/11/05 03:16:51 gutteridge Exp $
-BLAKE2s (firefox-155.0.1.source.tar.xz) = c528b9294d88f959d62d46f8b2fafdd89b7fc8a3af34fe456d30eb608fcba0ea
-SHA512 (firefox-155.0.1.source.tar.xz) = 6d137a7a315cb1d0aac1a3fe314af80fe290c49b7c2e47f8687b25d4720927b2a0dc71a3da9d75f6cab479067db114caa6732d17e888b0abfce99238a8af0f39
-Size (firefox-155.0.1.source.tar.xz) = 811591200 bytes
-BLAKE2s (nodejs-output-155.0.1.tgz) = 2f7a76708bf539bb6ce29417fb0a70212db83e23e17125e595002e6a65283084
-SHA512 (nodejs-output-155.0.1.tgz) = a85f4b63427c5868acc96caf777d43e0dfcff7cd55958634022b3f7d7b0a50867c9e0ef4c04d586b36b5d4770ce91dbf18d9446b96b4a04fb8e5c795d97c9419
-Size (nodejs-output-155.0.1.tgz) = 251187 bytes
-SHA1 (patch-browser_app_profile_firefox.js) = f111e03a9c70b6ad5ba64bf95d45302b9256687a
-SHA1 (patch-build_gn__processor.py) = 078f773104bf4c1b30584564aefe365db6ba6daf
+BLAKE2s (2e89a83f6b9b92c3b3b617b9782e51a4e84e7c3d.diff) = 8d9882b8347bba402517b08decd50a96a7c23c837b67088b6649642c958c0011
+SHA512 (2e89a83f6b9b92c3b3b617b9782e51a4e84e7c3d.diff) = 3d241d53e9c00bf81d92fbc30144bf7de72eb3bca4e92b3ee57fda706aec47794f09bc1fafa3e2cdb24bc81f57a64b618368eb6faa649d3eb481c3e8cb0a1718
+Size (2e89a83f6b9b92c3b3b617b9782e51a4e84e7c3d.diff) = 149451 bytes
+BLAKE2s (firefox-159.0.1.source.tar.xz) = f720bec1d79e3d1e406faa90dbfdf1bb5902908aacabd2fdd26a911ab86b2d55
+SHA512 (firefox-159.0.1.source.tar.xz) = e7375c0c18361b22fa1d2e6fd5f6a4ff20b22e7090a64bf32d7ef79edb0a649983439b8e6e80106fe51bb96699bdd3096c921fe198d1b460193a66d6d8f227a4
+Size (firefox-159.0.1.source.tar.xz) = 817946068 bytes
+BLAKE2s (nodejs-output-156.0.1.tgz) = 26aa0e33c007e8c08ebbe87dd1004c0cee01d9bed8a3b96ed5ccdc4062324e8d
+SHA512 (nodejs-output-156.0.1.tgz) = 6b6bc87f4dacc2f77bb525aa484ac7cb5035502033dc37f8b46d047659a516631281e332515ca450cd5cce4d01d7102d7fc011771a9bc0ea15633b233a0ffe31
+Size (nodejs-output-156.0.1.tgz) = 251380 bytes
+SHA1 (patch-browser_app_profile_firefox.js) = 1168ba368c5ffdcf77e330366848466f48a92642
+SHA1 (patch-build_gn__processor.py) = c9b2f31787704c3fec466711010ef632199ae385
SHA1 (patch-build_moz.configure_init.configure) = 65deb3c233df0aab81eb1fca05d708e5a4ed169a
SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678
-SHA1 (patch-config_gcc-stl-wrapper.template.h) = b5b4f2aef747836b09584b77d6332a7010963b0b
-SHA1 (patch-config_makefiles_rust.mk) = 62c823e5f11f047a54c7ebcce7534469c3f0d515
+SHA1 (patch-config_gcc-stl-wrapper.template.h) = 9360a859e71ebfbead97c0bfbb5153cb2184381a
+SHA1 (patch-config_makefiles_rust.mk) = 2e1c6093090b5d49700f381ad7f2d64bc9931ea4
+SHA1 (patch-config_system-headers.mozbuild) = 227a2a8c3ed38b4599895069e2c599881ec723b8
SHA1 (patch-dom_base_nsAttrName.h) = ac7ba441a3b27df2855cf2673eea36b1cb44ad49
SHA1 (patch-dom_canvas_WebGLMethodDispatcher.h) = 78f6e44116a939615523339fb73ac93f40777749
SHA1 (patch-dom_media_mediacapabilities_MediaCapabilitiesValidation.cpp) = 2f471067387bb63d530ba1299f0542d3b3a785b6
@@ -42,19 +46,19 @@ SHA1 (patch-mozglue_misc_Now.cpp) = 760724be1bdc4ca6e19edaf2c8df6dd84192d93f
SHA1 (patch-netwerk_protocol_http_nsHttpHandler.cpp) = 67493b4635041d21ff9fbfda80b3197fed542a26
SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = c99c3ce679f4196fc3baaf65051471a13d6fe8cd
SHA1 (patch-python_mozbuild_mozbuild_backend_recursivemake.py) = 5be4183d9075f5a3a3c6b3e0338473af185fb50e
-SHA1 (patch-python_sites_build.txt) = f03f059bbe79bfdf7f1db5475279edb3c9d6ebed
-SHA1 (patch-python_sites_mach.txt) = be62d091430daaa2ceeff3aff07f71275896352f
+SHA1 (patch-python_sites_build.txt) = 2f716b67b47d8d0f648f466aabdc1c4e90d0f024
+SHA1 (patch-python_sites_mach.txt) = 27a23ac588941467b5849bcc42ba4a1c8435eafd
SHA1 (patch-third__party_abseil-cpp_absl_debugging_internal_elf__mem__image.cc) = b1067a6804470f7e365f347683b7d505853fd799
SHA1 (patch-third__party_abseil-cpp_absl_debugging_internal_vdso__support.cc) = f9c44d0d6fd952296f23c24f56053958b30d8e5c
-SHA1 (patch-third__party_angle_angle__common__gn_moz.build) = bf799093eeb61677a257e947d2481a35ddb506f4
-SHA1 (patch-third__party_angle_angle__program__version__id__gn_ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in) = 64de7b9f179adfcd6ab2f2a1af1449631b7080fc
+SHA1 (patch-third__party_angle_angle__common__gn_moz.build) = 836c33a87239f69c9bcf0efedcdfef2094de1467
+SHA1 (patch-third__party_angle_angle__program__version__id__gn_ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in) = 5cd224ceac5a03ff38acb9a07c8958669f10e168
SHA1 (patch-third__party_angle_angle__program__version__id__gn_moz.build) = b367cb16b059627a6033bdce664ba591ca3527e6
SHA1 (patch-third__party_angle_src_common_system__utils__linux.cpp) = ed9936b0fa5807cdc8df871183589130784b6bc1
SHA1 (patch-third__party_js_cfworker_build.sh) = 46cdf97b99cf01080f290ae8d9a33b5f869fc3e4
SHA1 (patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc) = 127284a1a9b6e12581d325f5a5aadae443b0e57b
SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_desktop__capture__gn_moz.build) = da85f4a3e22c4a346f1f8e87ecdc62bf8c0bddd7
SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc) = 89f8f8eb5dcb877e0c70120f742050f1b32676fb
-SHA1 (patch-third__party_libwebrtc_modules_portal_portal__gn_moz.build) = 87fe72745f7a01596b8be70d618491387e1aaa36
+SHA1 (patch-third__party_libwebrtc_modules_portal_portal__gn_moz.build) = 478607ffb009ad5ca5664936c108fb97814a2317
SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc) = a4b04c390f93ffbc79e049f532251bfa00376eff
SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc) = 9f1e606242b2ab2625dabc06f25b593f4721d387
SHA1 (patch-third__party_libwebrtc_modules_video__capture_video__capture__internal__impl__gn_moz.build) = 2a214979769cbf57b1d534610e524138aac7fc2b
@@ -62,14 +66,15 @@ SHA1 (patch-third__party_libwebrtc_modules_video__capture_video__capture__option
SHA1 (patch-third__party_libwebrtc_rtc__base_memory__usage.cc) = a831145ba15b30d30c6e6e216b574d416253ed4a
SHA1 (patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc) = 6909c4da9e7b3785252e5bce9be0ff47ebb87e01
SHA1 (patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc) = 8ae75100775037347008d168eedc151e0e993b0f
+SHA1 (patch-third__party_llama.cpp_ggml_src_ggml-cpu_ops.cpp) = a4b62d60f56c5fa7e886f53f251bc10275ba1923
SHA1 (patch-third__party_python_dlmanager_check.py) = 69054522d8ced8cb47e65e5a8b1a87ed5ce6708e
SHA1 (patch-third__party_rust_mtu_src_bindings_netbsd.rs) = dc28ab3a4b6a5bee76ea6fd2485e34b9d6f1b195
SHA1 (patch-third__party_sqlite3_ext_moz.build) = 4d94ea324617a20b3524016dd02fb717e518ece1
SHA1 (patch-third__party_sqlite3_src_moz.build) = b26856a4b87aa12211575d9982f62dc899474b52
-SHA1 (patch-third__party_wasm2c_src_c-writer.cc) = 38eb2ee0e00722aa1380540b83648b43723719aa
SHA1 (patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc) = 99d0db944f0c2d0c623460991efd423d9127c988
-SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = e905e38ef1b88d764c695c019f15609350c1c43b
+SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = a222742a8a496033bd53e88f4f28fe8dde1e4e7f
SHA1 (patch-toolkit_moz.configure) = 1306e7ac3c3939886aff38a58dd3162e6517409b
SHA1 (patch-toolkit_mozapps_installer_packager.mk) = c77481a1f8fe1e237b7fe87e3e586ca886ac1d3d
+SHA1 (patch-widget_gtk_nsAppShell.cpp) = 69034ac3b176b56c93cbc7e075c484d56d61ca6a
SHA1 (patch-xpcom_base_nscore.h) = 1ac4d34d3c9e80bc1ac966c6c84cb320bc0fa1ec
SHA1 (patch-xpcom_reflect_xptcall_md_unix_moz.build) = 8980398051fa16c7283acb6d323419993cce1420
diff --git a/firefox/files/node-wrapper.sh b/firefox/files/node-wrapper.sh
index 4b811bfb9b..71ce73e76f 100755
--- a/firefox/files/node-wrapper.sh
+++ b/firefox/files/node-wrapper.sh
@@ -1,6 +1,6 @@
#! /bin/sh
-VERS=v26.8.1
+VERS=v26.10.0
if [ "$1" = "-v" ] || [ "$1" = "--version" ]; then
printf "${VERS}\n"
diff --git a/firefox/mozilla-common.mk b/firefox/mozilla-common.mk
index d543f3c1cd..44b6c3f663 100644
--- a/firefox/mozilla-common.mk
+++ b/firefox/mozilla-common.mk
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.324 2026/09/05 03:51:59 tsutsui Exp $
+# $NetBSD: mozilla-common.mk,v 1.327 2026/11/03 16:46:29 ryoon Exp $
#
# common Makefile fragment for mozilla packages based on gecko 2.0.
#
@@ -44,8 +44,8 @@ CFLAGS+= -msse2
CKSUM_CRATES+= third_party/rust/mtu
-CKSUMS+= 9fbb89ab042627182477b35adc61eed71cffada9d3d5d522766d6d369ad02d80
-CKSUMS+= 986f84f01a44521224c7a7c1b1883cc6a4f89cbcb24b36844bfffea5f285747e
+CKSUMS+= ffc9689baca349ecae41251c6e98a1947e9bad232b167caa1ba586dfef5fa457
+CKSUMS+= 7e4c1ad17090e25376316d116b0b10fd938272dae0bd50befca61895a585a895
SUBST_CLASSES+= cksum
SUBST_STAGE.cksum= pre-configure
@@ -164,15 +164,6 @@ SUBST_MESSAGE.sqlite3-opt= Fixing segfault in libmozsqlite3.so
SUBST_FILES.sqlite3-opt+= ${MOZILLA_DIR}third_party/sqlite3/src/moz.build
SUBST_VARS.sqlite3-opt+= SQLITE3OPTFLAG
-.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "aarch64"
-SUBST_CLASSES+= sve2
-SUBST_STAGE.sve2= pre-configure
-SUBST_FILES.sve2= media/libyuv/libyuv/source/convert.cc
-SUBST_FILES.sve2+= media/libyuv/libyuv/source/scale_argb.cc
-SUBST_FILES.sve2+= media/libyuv/libyuv/source/convert_argb.cc
-SUBST_SED.sve2= -e 's/_SVE2/_NEON/g'
-.endif
-
# Do not pass '-j1 -j1' for MAKE_JOBS=1 for NetBSD 9.3 or earlier.
RUST_MAKE_JOBS= # empty by default
.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 090400
diff --git a/firefox/patches/patch-browser_app_profile_firefox.js b/firefox/patches/patch-browser_app_profile_firefox.js
index 5468674e6c..910d86b816 100644
--- a/firefox/patches/patch-browser_app_profile_firefox.js
+++ b/firefox/patches/patch-browser_app_profile_firefox.js
@@ -1,13 +1,13 @@
-$NetBSD: patch-browser_app_profile_firefox.js,v 1.26 2026/08/14 12:26:11 ryoon Exp $
+$NetBSD: patch-browser_app_profile_firefox.js,v 1.29 2026/11/03 16:46:29 ryoon Exp $
This patch modifies default Firefox settings - see the comments above
each one.
---- browser/app/profile/firefox.js.orig 2026-08-10 18:46:16.000000000 +0000
+--- browser/app/profile/firefox.js.orig 2026-10-22 17:49:06.000000000 +0000
+++ browser/app/profile/firefox.js
-@@ -2929,6 +2929,36 @@ pref("toolkit.coverage.endpoint.base", "https://covera
- pref("toolkit.coverage.enabled", false);
- pref("toolkit.coverage.endpoint.base", "https://coverage.mozilla.org");
+@@ -3129,6 +3129,36 @@ pref("app.normandy.onsync_skew_sec", 600);
+ pref("intl.multilingual.aboutWelcome.languageMismatchEnabled", false);
+ #endif
+// Select UI locale from LANG/LC_MESSAGE environmental variables
+pref("intl.locale.requested", "");
@@ -39,6 +39,6 @@ each one.
+// The root cause of this should be investigated.
+pref("dom.serviceWorkers.enabled", false);
+
- // Discovery prefs
+ // Enable personalized extension recommendations
pref("browser.discovery.enabled", true);
- pref("browser.discovery.containers.enabled", true);
+
diff --git a/firefox/patches/patch-build_gn__processor.py b/firefox/patches/patch-build_gn__processor.py
index e9a290b367..79b802b0c6 100644
--- a/firefox/patches/patch-build_gn__processor.py
+++ b/firefox/patches/patch-build_gn__processor.py
@@ -1,9 +1,9 @@
-$NetBSD: patch-build_gn__processor.py,v 1.1 2025/10/27 14:24:33 ryoon Exp $
+$NetBSD: patch-build_gn__processor.py,v 1.2 2026/09/23 08:39:50 ryoon Exp $
---- build/gn_processor.py.orig 2025-10-03 13:17:56.000000000 +0000
+--- build/gn_processor.py.orig 2026-09-09 20:41:32.000000000 +0000
+++ build/gn_processor.py
-@@ -190,6 +190,8 @@ def filter_gn_config(path, gn_result, sa
- "mac": "Darwin",
+@@ -220,6 +220,8 @@ def filter_gn_config(path, gn_result, sandbox_vars, in
+ "ios": "Darwin",
"openbsd": "OpenBSD",
"win": "WINNT",
+ "freebsd": "FreeBSD",
@@ -11,15 +11,15 @@ $NetBSD: patch-build_gn__processor.py,v 1.1 2025/10/27 14:24:33 ryoon Exp $
}
mozbuild_args = {
-@@ -810,17 +812,17 @@ def main():
+@@ -1063,17 +1065,17 @@ def generate_gn_configs(topsrcdir, config):
vars_set = []
for is_debug in (True, False):
-- for target_os in ("android", "linux", "mac", "openbsd", "win"):
-+ for target_os in ("android", "linux", "mac", "openbsd", "win", "freebsd", "netbsd"):
+- for target_os in ("android", "ios", "linux", "mac", "openbsd", "win"):
++ for target_os in ("android", "ios", "linux", "mac", "openbsd", "win", "freebsd", "netbsd"):
target_cpus = ["x64"]
-- if target_os in ("android", "linux", "mac", "win", "openbsd"):
-+ if target_os in ("android", "linux", "mac", "win", "openbsd", "freebsd", "netbsd"):
+- if target_os in ("android", "ios", "linux", "mac", "win", "openbsd"):
++ if target_os in ("android", "ios", "linux", "mac", "win", "openbsd", "freebsd", "netbsd"):
target_cpus.append("arm64")
- if target_os in ("android", "linux"):
+ if target_os in ("android", "linux", "freebsd", "netbsd"):
@@ -35,7 +35,7 @@ $NetBSD: patch-build_gn__processor.py,v 1.1 2025/10/27 14:24:33 ryoon Exp $
target_cpus.extend(["loong64", "ppc64", "mipsel", "mips64el"])
for target_cpu in target_cpus:
vars = {
-@@ -834,7 +836,7 @@ def main():
+@@ -1092,7 +1094,7 @@ def generate_gn_configs(topsrcdir, config):
vars["ozone_platform_x11"] = enable_x11
vars_set.append(vars.copy())
else:
diff --git a/firefox/patches/patch-config_gcc-stl-wrapper.template.h b/firefox/patches/patch-config_gcc-stl-wrapper.template.h
index 49ab340e07..2c2e027ae3 100644
--- a/firefox/patches/patch-config_gcc-stl-wrapper.template.h
+++ b/firefox/patches/patch-config_gcc-stl-wrapper.template.h
@@ -1,6 +1,6 @@
-$NetBSD: patch-config_gcc-stl-wrapper.template.h,v 1.7 2026/08/24 12:51:47 ryoon Exp $
+$NetBSD: patch-config_gcc-stl-wrapper.template.h,v 1.8 2026/11/03 16:46:29 ryoon Exp $
---- config/gcc-stl-wrapper.template.h.orig 2026-04-15 13:12:19.000000000 +0000
+--- config/gcc-stl-wrapper.template.h.orig 2026-10-22 17:49:07.000000000 +0000
+++ config/gcc-stl-wrapper.template.h
@@ -27,8 +27,8 @@
// limits) and bug 1694575 (iosfwd).
@@ -13,15 +13,6 @@ $NetBSD: patch-config_gcc-stl-wrapper.template.h,v 1.7 2026/08/24 12:51:47 ryoon
#endif
#ifndef moz_dont_include_mozalloc_for_cmath
-@@ -50,7 +50,7 @@
- // Include mozalloc after the STL header and all other headers it includes
- // have been preprocessed.
- #if !defined(MOZ_INCLUDE_MOZALLOC_H) && \
-- !defined(moz_dont_include_mozalloc_for_${HEADER})
-+ !defined(moz_dont_include_mozalloc_for_${HEADER})
- # define MOZ_INCLUDE_MOZALLOC_H
- # define MOZ_INCLUDE_MOZALLOC_H_FROM_${HEADER}
- #endif
@@ -78,5 +78,7 @@
#ifndef mozilla_throw_gcc_h
# include "mozilla/throw_gcc.h"
diff --git a/firefox/patches/patch-config_makefiles_rust.mk b/firefox/patches/patch-config_makefiles_rust.mk
index 774e0142d8..70b5ec1f95 100644
--- a/firefox/patches/patch-config_makefiles_rust.mk
+++ b/firefox/patches/patch-config_makefiles_rust.mk
@@ -1,4 +1,4 @@
-$NetBSD: patch-config_makefiles_rust.mk,v 1.15 2025/10/27 14:24:33 ryoon Exp $
+$NetBSD: patch-config_makefiles_rust.mk,v 1.18 2026/11/03 16:46:29 ryoon Exp $
NetBSD doesn't get along with parallel rust builds (it causes issues
with ld.so) which are the default. Force -j1.
@@ -6,25 +6,15 @@ with ld.so) which are the default. Force -j1.
Use less memory to fix build under NetBSD/i386.
From: https://bugzilla.mozilla.org/show_bug.cgi?id=1644409
---- config/makefiles/rust.mk.orig 2026-08-26 21:11:39.000000000 +0000
+--- config/makefiles/rust.mk.orig 2026-10-22 17:49:06.000000000 +0000
+++ config/makefiles/rust.mk
-@@ -65,6 +65,9 @@ endif
- endif
- endif
+@@ -15,6 +15,9 @@ endif
+ else
+ normalize_sep = $(1)
endif
+ifeq ($(OS_ARCH),NetBSD)
+cargo_build_flags += @RUST_MAKE_JOBS@
+endif
- # Without -j > 1, make will not pass jobserver info down to cargo. Force
- # one job when requested as a special case.
-@@ -91,7 +94,8 @@ ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE))
- # Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045.
- ifndef MOZ_CODE_COVERAGE
- ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
--cargo_rustc_flags += -Clto$(if $(filter full,$(MOZ_LTO_RUST_CROSS)),=fat)
-+cargo_rustc_flags += -Clto=thin
-+export CARGO_PROFILE_RELEASE_LTO=thin
- endif
- # We need -Cembed-bitcode=yes for all crates when using -Clto.
- RUSTFLAGS += -Cembed-bitcode=yes
+ # The + prefix preserves jobserver file descriptors. Omit it for `make -n`.
+ # Pass --single-job when Make is limited to one job.
diff --git a/firefox/patches/patch-config_system-headers.mozbuild b/firefox/patches/patch-config_system-headers.mozbuild
new file mode 100644
index 0000000000..926f5ae02c
--- /dev/null
+++ b/firefox/patches/patch-config_system-headers.mozbuild
@@ -0,0 +1,12 @@
+$NetBSD: patch-config_system-headers.mozbuild,v 1.5 2026/10/16 16:28:47 ryoon Exp $
+
+--- config/system-headers.mozbuild.orig 2026-10-09 17:18:07.601740057 +0000
++++ config/system-headers.mozbuild
+@@ -761,6 +761,7 @@ system_headers = [
+ "size_t.h",
+ "smime.h",
+ "someincludefile.h",
++ "source_location",
+ "soundcard.h",
+ "Sound.h",
+ "soundtouch/SoundTouchFactory.h",
diff --git a/firefox/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c b/firefox/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c
index c0baf72cf3..0e02b8c6df 100644
--- a/firefox/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c
+++ b/firefox/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c
@@ -1,4 +1,4 @@
-$NetBSD: patch-nsprpub_pr_src_pthreads_ptsynch.c,v 1.3 2024/12/25 13:30:11 ryoon Exp $
+$NetBSD: patch-nsprpub_pr_src_pthreads_ptsynch.c,v 1.4 2026/09/23 08:39:50 ryoon Exp $
firefox: Workaround broken pthread_equal() usage
diff --git a/firefox/patches/patch-python_sites_build.txt b/firefox/patches/patch-python_sites_build.txt
index f141b3786e..3b129ae253 100644
--- a/firefox/patches/patch-python_sites_build.txt
+++ b/firefox/patches/patch-python_sites_build.txt
@@ -1,12 +1,12 @@
-$NetBSD: patch-python_sites_build.txt,v 1.3 2026/07/21 15:25:01 ryoon Exp $
+$NetBSD: patch-python_sites_build.txt,v 1.5 2026/10/16 16:28:47 ryoon Exp $
* We are offline, so do not try to download from pypi.
No need to wait a timeout.
---- python/sites/build.txt.orig 2026-07-13 13:09:21.000000000 +0000
+--- python/sites/build.txt.orig 2026-09-24 10:45:43.000000000 +0000
+++ python/sites/build.txt
@@ -1,6 +1,6 @@ pth:third_party/python/vsdownload
- requires-python:>=3.9
+ requires-python:>=3.10
pth:third_party/python/vsdownload
-pypi-optional:taskcluster-taskgraph==24.1.1:toolchain artifacts will not be bootstrapped
+#pypi-optional:taskcluster-taskgraph==24.1.1:toolchain artifacts will not be bootstrapped
diff --git a/firefox/patches/patch-python_sites_mach.txt b/firefox/patches/patch-python_sites_mach.txt
index a61b835add..7e2b33552d 100644
--- a/firefox/patches/patch-python_sites_mach.txt
+++ b/firefox/patches/patch-python_sites_mach.txt
@@ -1,18 +1,18 @@
-$NetBSD: patch-python_sites_mach.txt,v 1.4 2026/08/24 12:51:47 ryoon Exp $
+$NetBSD: patch-python_sites_mach.txt,v 1.6 2026/11/03 16:46:29 ryoon Exp $
* We are offline, so do not try to download from pypi.
No need to wait a timeout.
* Use pyyaml from vendored unconditionally.
---- python/sites/mach.txt.orig 2026-08-14 13:12:29.655766457 +0000
+--- python/sites/mach.txt.orig 2026-10-22 17:49:16.000000000 +0000
+++ python/sites/mach.txt
@@ -58,15 +58,16 @@ pth:xpcom/idl-parser
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==68.0.1:telemetry will not be collected
+-pypi-optional:glean-sdk==70.2.1:telemetry will not be collected
-pypi-optional:orjson>=3.10:json operations will be slower in various tools
-+#pypi-optional:glean-sdk==68.0.1:telemetry will not be collected
++#pypi-optional:glean-sdk==70.2.1:telemetry will not be collected
+#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
diff --git a/firefox/patches/patch-third__party_angle_angle__common__gn_moz.build b/firefox/patches/patch-third__party_angle_angle__common__gn_moz.build
index c25ecd6f9d..92a6225633 100644
--- a/firefox/patches/patch-third__party_angle_angle__common__gn_moz.build
+++ b/firefox/patches/patch-third__party_angle_angle__common__gn_moz.build
@@ -1,17 +1,17 @@
-$NetBSD: patch-third__party_angle_angle__common__gn_moz.build,v 1.1 2026/08/24 12:51:47 ryoon Exp $
+$NetBSD: patch-third__party_angle_angle__common__gn_moz.build,v 1.2 2026/09/23 08:39:50 ryoon Exp $
---- third_party/angle/angle_common_gn/moz.build.orig 2026-08-12 13:09:20.000000000 +0000
+--- third_party/angle/angle_common_gn/moz.build.orig 2026-09-09 20:41:52.000000000 +0000
+++ third_party/angle/angle_common_gn/moz.build
-@@ -134,7 +134,7 @@ if CONFIG["OS_TARGET"] == "Linux":
+@@ -136,7 +136,7 @@ if CONFIG["OS_TARGET"] == "Linux":
"/third_party/angle/src/common/system_utils_posix.cpp"
]
-if CONFIG["OS_TARGET"] == "OpenBSD":
+if CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD" or CONFIG["OS_TARGET"] == "NetBSD":
+ DEFINES["EGL_NO_X11"] = True
DEFINES["USE_GLIB"] = "1"
- DEFINES["USE_OZONE"] = "1"
-@@ -144,6 +144,17 @@ if CONFIG["OS_TARGET"] == "OpenBSD":
+@@ -147,6 +147,17 @@ if CONFIG["OS_TARGET"] == "OpenBSD":
DEFINES["__STDC_CONSTANT_MACROS"] = True
DEFINES["__STDC_FORMAT_MACROS"] = True
@@ -29,7 +29,7 @@ $NetBSD: patch-third__party_angle_angle__common__gn_moz.build,v 1.1 2026/08/24 1
if CONFIG["OS_TARGET"] == "WINNT":
DEFINES["ANGLE_IS_WIN"] = True
-@@ -208,7 +219,7 @@ if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"]
+@@ -212,7 +223,7 @@ if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"]
DEFINES["_DEBUG"] = True
diff --git a/firefox/patches/patch-third__party_angle_angle__program__version__id__gn_ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in b/firefox/patches/patch-third__party_angle_angle__program__version__id__gn_ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in
index e8d1350838..64fb9f3a6b 100644
--- a/firefox/patches/patch-third__party_angle_angle__program__version__id__gn_ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in
+++ b/firefox/patches/patch-third__party_angle_angle__program__version__id__gn_ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in
@@ -1,10 +1,8 @@
-$NetBSD: patch-third__party_angle_angle__program__version__id__gn_ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in,v 1.1 2026/08/24 12:51:47 ryoon Exp $
+$NetBSD: patch-third__party_angle_angle__program__version__id__gn_ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in,v 1.2 2026/09/23 08:39:50 ryoon Exp $
-For FreeBSD and NetBSD.
-
---- third_party/angle/angle_program_version_id_gn/ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in.orig 2026-08-14 14:16:40.408891583 +0000
+--- third_party/angle/angle_program_version_id_gn/ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in.orig 2026-09-11 15:06:30.611350505 +0000
+++ third_party/angle/angle_program_version_id_gn/ANGLEShaderProgramVersion.h-22c710649c380411.rsp.in
-@@ -0,0 +1,866 @@
+@@ -0,0 +1,855 @@
+/third_party/angle/src/common/BinaryStream.h
+/third_party/angle/src/common/CircularBuffer.h
+/third_party/angle/src/common/Color.h
@@ -135,10 +133,6 @@ For FreeBSD and NetBSD.
+/third_party/angle/src/libANGLE/MemoryProgramCache.h
+/third_party/angle/src/libANGLE/MemoryShaderCache.h
+/third_party/angle/src/libANGLE/Observer.h
-+/third_party/angle/src/libANGLE/Overlay.h
-+/third_party/angle/src/libANGLE/OverlayWidgets.h
-+/third_party/angle/src/libANGLE/Overlay_autogen.h
-+/third_party/angle/src/libANGLE/Overlay_font_autogen.h
+/third_party/angle/src/libANGLE/PixelLocalStorage.h
+/third_party/angle/src/libANGLE/Program.h
+/third_party/angle/src/libANGLE/ProgramExecutable.h
@@ -198,7 +192,6 @@ For FreeBSD and NetBSD.
+/third_party/angle/src/libANGLE/renderer/gl/functionsgl_enums.h
+/third_party/angle/src/libANGLE/renderer/ImageImpl.h
+/third_party/angle/src/libANGLE/renderer/MemoryObjectImpl.h
-+/third_party/angle/src/libANGLE/renderer/OverlayImpl.h
+/third_party/angle/src/libANGLE/renderer/ProgramImpl.h
+/third_party/angle/src/libANGLE/renderer/ProgramExecutableImpl.h
+/third_party/angle/src/libANGLE/renderer/ProgramPipelineImpl.h
@@ -278,10 +271,6 @@ For FreeBSD and NetBSD.
+/third_party/angle/src/libANGLE/MemoryProgramCache.cpp
+/third_party/angle/src/libANGLE/MemoryShaderCache.cpp
+/third_party/angle/src/libANGLE/Observer.cpp
-+/third_party/angle/src/libANGLE/Overlay.cpp
-+/third_party/angle/src/libANGLE/OverlayWidgets.cpp
-+/third_party/angle/src/libANGLE/Overlay_autogen.cpp
-+/third_party/angle/src/libANGLE/Overlay_font_autogen.cpp
+/third_party/angle/src/libANGLE/PixelLocalStorage.cpp
+/third_party/angle/src/libANGLE/Platform.cpp
+/third_party/angle/src/libANGLE/Program.cpp
@@ -572,9 +561,10 @@ For FreeBSD and NetBSD.
+/third_party/angle/src/compiler/translator/tree_ops/SimplifyLoopConditions.h
+/third_party/angle/src/compiler/translator/tree_ops/SplitSequenceOperator.cpp
+/third_party/angle/src/compiler/translator/tree_ops/SplitSequenceOperator.h
-+/third_party/angle/src/compiler/translator/tree_ops/glsl/RegenerateStructNames.h
++/third_party/angle/src/compiler/translator/tree_ops/glsl/ExpandFragmentOutputsToVec4.h
+/third_party/angle/src/compiler/translator/tree_ops/glsl/RewriteRepeatedAssignToSwizzled.h
+/third_party/angle/src/compiler/translator/tree_ops/glsl/UseInterfaceBlockFields.h
++/third_party/angle/src/compiler/translator/tree_ops/glsl/WrapStructConstructors.h
+/third_party/angle/src/compiler/translator/tree_ops/glsl/apple/AddAndTrueToLoopCondition.h
+/third_party/angle/src/compiler/translator/tree_ops/glsl/apple/RewriteRowMajorMatrices.h
+/third_party/angle/src/compiler/translator/tree_ops/glsl/apple/UnfoldShortCircuitAST.h
@@ -612,8 +602,6 @@ For FreeBSD and NetBSD.
+/third_party/angle/src/compiler/translator/tree_util/RunAtTheBeginningOfShader.h
+/third_party/angle/src/compiler/translator/tree_util/RunAtTheEndOfShader.cpp
+/third_party/angle/src/compiler/translator/tree_util/RunAtTheEndOfShader.h
-+/third_party/angle/src/compiler/translator/tree_util/SpecializationConstant.cpp
-+/third_party/angle/src/compiler/translator/tree_util/SpecializationConstant.h
+/third_party/angle/src/compiler/translator/tree_util/Visit.h
+/third_party/angle/src/compiler/translator/util.cpp
+/third_party/angle/src/compiler/translator/util.h
@@ -631,9 +619,10 @@ For FreeBSD and NetBSD.
+/third_party/angle/src/compiler/translator/glsl/ExtensionGLSL.h
+/third_party/angle/src/compiler/translator/glsl/TranslatorGLSL.cpp
+/third_party/angle/src/compiler/translator/glsl/VersionGLSL.cpp
-+/third_party/angle/src/compiler/translator/tree_ops/glsl/RegenerateStructNames.cpp
++/third_party/angle/src/compiler/translator/tree_ops/glsl/ExpandFragmentOutputsToVec4.cpp
+/third_party/angle/src/compiler/translator/tree_ops/glsl/RewriteRepeatedAssignToSwizzled.cpp
+/third_party/angle/src/compiler/translator/tree_ops/glsl/UseInterfaceBlockFields.cpp
++/third_party/angle/src/compiler/translator/tree_ops/glsl/WrapStructConstructors.cpp
+/third_party/angle/src/compiler/translator/tree_ops/glsl/apple/AddAndTrueToLoopCondition.cpp
+/third_party/angle/src/compiler/translator/tree_ops/glsl/apple/RewriteRowMajorMatrices.cpp
+/third_party/angle/src/compiler/translator/tree_ops/glsl/apple/UnfoldShortCircuitAST.cpp
@@ -691,8 +680,6 @@ For FreeBSD and NetBSD.
+/third_party/angle/src/compiler/translator/tree_ops/spirv/ClampGLLayer.h
+/third_party/angle/src/compiler/translator/tree_ops/spirv/EmulateAdvancedBlendEquations.cpp
+/third_party/angle/src/compiler/translator/tree_ops/spirv/EmulateAdvancedBlendEquations.h
-+/third_party/angle/src/compiler/translator/tree_ops/spirv/EmulateDithering.cpp
-+/third_party/angle/src/compiler/translator/tree_ops/spirv/EmulateDithering.h
+/third_party/angle/src/compiler/translator/tree_ops/spirv/EmulateFragColorData.cpp
+/third_party/angle/src/compiler/translator/tree_ops/spirv/EmulateFragColorData.h
+/third_party/angle/src/compiler/translator/tree_ops/spirv/EmulateFramebufferFetch.cpp
diff --git a/firefox/patches/patch-third__party_libwebrtc_modules_portal_portal__gn_moz.build b/firefox/patches/patch-third__party_libwebrtc_modules_portal_portal__gn_moz.build
index 9e2af92ce6..ca46094878 100644
--- a/firefox/patches/patch-third__party_libwebrtc_modules_portal_portal__gn_moz.build
+++ b/firefox/patches/patch-third__party_libwebrtc_modules_portal_portal__gn_moz.build
@@ -1,18 +1,18 @@
-$NetBSD: patch-third__party_libwebrtc_modules_portal_portal__gn_moz.build,v 1.2 2026/01/19 12:06:04 ryoon Exp $
+$NetBSD: patch-third__party_libwebrtc_modules_portal_portal__gn_moz.build,v 1.3 2026/11/03 16:46:29 ryoon Exp $
---- third_party/libwebrtc/modules/portal/portal_gn/moz.build.orig 2026-01-02 07:16:24.028920365 +0000
+--- third_party/libwebrtc/modules/portal/portal_gn/moz.build.orig 2026-10-27 07:57:59.150870854 +0000
+++ third_party/libwebrtc/modules/portal/portal_gn/moz.build
-@@ -38,7 +38,8 @@ DEFINES["WEBRTC_MOZILLA_BUILD"] = True
+@@ -39,7 +39,8 @@ DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0"
DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
DEFINES["WEBRTC_POSIX"] = True
DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0"
-DEFINES["WEBRTC_USE_PIPEWIRE"] = True
+if CONFIG["OS_TARGET"] == "Linux":
+ DEFINES["WEBRTC_USE_PIPEWIRE"] = True
+ DEFINES["WEBRTC_WITHOUT_RUST"] = True
DEFINES["_FILE_OFFSET_BITS"] = "64"
DEFINES["_GNU_SOURCE"] = True
- DEFINES["_LARGEFILE64_SOURCE"] = True
-@@ -62,10 +63,13 @@ LOCAL_INCLUDES += [
+@@ -64,10 +65,13 @@ UNIFIED_SOURCES += [
]
UNIFIED_SOURCES += [
diff --git a/firefox/patches/patch-third__party_llama.cpp_ggml_src_ggml-cpu_ops.cpp b/firefox/patches/patch-third__party_llama.cpp_ggml_src_ggml-cpu_ops.cpp
new file mode 100644
index 0000000000..a71d6beb40
--- /dev/null
+++ b/firefox/patches/patch-third__party_llama.cpp_ggml_src_ggml-cpu_ops.cpp
@@ -0,0 +1,323 @@
+$NetBSD: patch-third__party_llama.cpp_ggml_src_ggml-cpu_ops.cpp,v 1.1 2026/11/05 03:16:51 gutteridge Exp $
+
+Fix builds with recent GCC.
+
+--- third_party/llama.cpp/ggml/src/ggml-cpu/ops.cpp.orig 2026-11-02 17:55:38.000000000 +0000
++++ third_party/llama.cpp/ggml/src/ggml-cpu/ops.cpp
+@@ -2137,8 +2137,8 @@ static void ggml_compute_forward_gelu_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*(dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -2185,8 +2185,8 @@ static void ggml_compute_forward_gelu_f16(
+ const ggml_fp16_t x = ((ggml_fp16_t *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*( dst->nb[1])))[k];
+ const float v = GGML_CPU_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -2367,8 +2367,8 @@ static void ggml_compute_forward_gelu_erf_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*(dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -2415,8 +2415,8 @@ static void ggml_compute_forward_gelu_erf_f16(
+ const ggml_fp16_t x = ((ggml_fp16_t *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*( dst->nb[1])))[k];
+ const float v = GGML_CPU_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -2486,8 +2486,8 @@ static void ggml_compute_forward_gelu_quick_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*(dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -2534,8 +2534,8 @@ static void ggml_compute_forward_gelu_quick_f16(
+ const ggml_fp16_t x = ((ggml_fp16_t *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*( dst->nb[1])))[k];
+ const float v = GGML_CPU_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -2605,8 +2605,8 @@ static void ggml_compute_forward_silu_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*(dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -2653,8 +2653,8 @@ static void ggml_compute_forward_silu_f16(
+ const ggml_fp16_t x = ((ggml_fp16_t *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*( dst->nb[1])))[k];
+ const float v = GGML_CPU_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -2803,8 +2803,8 @@ static void ggml_compute_forward_silu_back_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -2847,8 +2847,8 @@ static void ggml_compute_forward_silu_back_f16(
+ const float x = ((ggml_fp16_t *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ const float v = GGML_CPU_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -2930,8 +2930,8 @@ static void ggml_compute_forward_reglu_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -2990,8 +2990,8 @@ static void ggml_compute_forward_reglu_f16(
+ const ggml_fp16_t x = ((ggml_fp16_t *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ const float v = GGML_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -3073,8 +3073,8 @@ static void ggml_compute_forward_geglu_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -3133,8 +3133,8 @@ static void ggml_compute_forward_geglu_f16(
+ const ggml_fp16_t x = ((ggml_fp16_t *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ const float v = GGML_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -3216,8 +3216,8 @@ static void ggml_compute_forward_swiglu_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -3276,8 +3276,8 @@ static void ggml_compute_forward_swiglu_f16(
+ const ggml_fp16_t x = ((ggml_fp16_t *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ const float v = GGML_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -3367,8 +3367,8 @@ static void ggml_compute_forward_swiglu_oai_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = dst_p[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -3446,8 +3446,8 @@ static void ggml_compute_forward_geglu_erf_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -3506,8 +3506,8 @@ static void ggml_compute_forward_geglu_erf_f16(
+ const ggml_fp16_t x = ((ggml_fp16_t *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ const float v = GGML_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -3589,8 +3589,8 @@ static void ggml_compute_forward_geglu_quick_f32(
+ for (int k = 0; k < nc; k++) {
+ const float x = ((float *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ GGML_UNUSED(x);
+- assert(!isnan(x));
+- assert(!isinf(x));
++ assert(!std::isnan(x));
++ assert(!std::isinf(x));
+ }
+ #endif // NDEBUG
+ }
+@@ -3649,8 +3649,8 @@ static void ggml_compute_forward_geglu_quick_f16(
+ const ggml_fp16_t x = ((ggml_fp16_t *) ((char *) dst->data + i1*( dst->nb[1])))[k];
+ const float v = GGML_FP16_TO_FP32(x);
+ GGML_UNUSED(v);
+- assert(!isnan(v));
+- assert(!isinf(v));
++ assert(!std::isnan(v));
++ assert(!std::isinf(v));
+ }
+ #endif // NDEBUG
+ }
+@@ -5393,7 +5393,7 @@ static void ggml_compute_forward_soft_max_f32(
+ #ifndef NDEBUG
+ for (int i = 0; i < ne00; ++i) {
+ //printf("p[%d] = %f\n", i, p[i]);
+- assert(!isnan(wp[i]));
++ assert(!std::isnan(wp[i]));
+ }
+ #endif // NDEBUG
+
+@@ -5417,8 +5417,8 @@ static void ggml_compute_forward_soft_max_f32(
+
+ #ifndef NDEBUG
+ for (int i = 0; i < ne00; ++i) {
+- assert(!isnan(dp[i]));
+- assert(!isinf(dp[i]));
++ assert(!std::isnan(dp[i]));
++ assert(!std::isinf(dp[i]));
+ }
+ #endif // NDEBUG
+ }
+@@ -5491,8 +5491,8 @@ static void ggml_compute_forward_soft_max_ext_back_f32
+ #ifndef NDEBUG
+ for (int i = 0; i < nc; ++i) {
+ //printf("p[%d] = %f\n", i, p[i]);
+- assert(!isnan(dy[i]));
+- assert(!isnan(y[i]));
++ assert(!std::isnan(dy[i]));
++ assert(!std::isnan(y[i]));
+ }
+ #endif // NDEBUG
+ // Jii = yi - yi*yi
+@@ -5524,8 +5524,8 @@ static void ggml_compute_forward_soft_max_ext_back_f32
+
+ #ifndef NDEBUG
+ for (int i = 0; i < nc; ++i) {
+- assert(!isnan(dx[i]));
+- assert(!isinf(dx[i]));
++ assert(!std::isnan(dx[i]));
++ assert(!std::isinf(dx[i]));
+ }
+ #endif // NDEBUG
+ }
+@@ -11114,8 +11114,8 @@ static void ggml_compute_forward_cross_entropy_loss_f3
+ #ifndef NDEBUG
+ for (int64_t i = 0; i < nc; ++i) {
+ //printf("p[%d] = %f\n", i, p[i]);
+- assert(!isnan(s0[i]));
+- assert(!isnan(s1[i]));
++ assert(!std::isnan(s0[i]));
++ assert(!std::isnan(s1[i]));
+ }
+ #endif // NDEBUG
+
+@@ -11133,8 +11133,8 @@ static void ggml_compute_forward_cross_entropy_loss_f3
+
+ #ifndef NDEBUG
+ for (int64_t i = 0; i < nc; ++i) {
+- assert(!isnan(st[i]));
+- assert(!isinf(st[i]));
++ assert(!std::isnan(st[i]));
++ assert(!std::isinf(st[i]));
+ }
+ #endif // NDEBUG
+ }
+@@ -11206,8 +11206,8 @@ static void ggml_compute_forward_cross_entropy_loss_ba
+ #ifndef NDEBUG
+ for (int64_t i = 0; i < nc; ++i) {
+ //printf("p[%d] = %f\n", i, p[i]);
+- assert(!isnan(s0[i]));
+- assert(!isnan(s1[i]));
++ assert(!std::isnan(s0[i]));
++ assert(!std::isnan(s1[i]));
+ }
+ #endif // NDEBUG
+
+@@ -11224,8 +11224,8 @@ static void ggml_compute_forward_cross_entropy_loss_ba
+
+ #ifndef NDEBUG
+ for (int64_t i = 0; i < nc; ++i) {
+- assert(!isnan(ds0[i]));
+- assert(!isinf(ds0[i]));
++ assert(!std::isnan(ds0[i]));
++ assert(!std::isinf(ds0[i]));
+ }
+ #endif // NDEBUG
+ }
diff --git a/firefox/patches/patch-third__party_wasm2c_src_c-writer.cc b/firefox/patches/patch-third__party_wasm2c_src_c-writer.cc
deleted file mode 100644
index 55ccbf010f..0000000000
--- a/firefox/patches/patch-third__party_wasm2c_src_c-writer.cc
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-third__party_wasm2c_src_c-writer.cc,v 1.1 2025/07/26 14:12:54 ryoon Exp $
-
---- third_party/wasm2c/src/c-writer.cc.orig 2025-07-26 13:24:19.226278807 +0000
-+++ third_party/wasm2c/src/c-writer.cc
-@@ -1490,7 +1490,7 @@ void CWriter::WriteInitExprTerminal(cons
- std::string CWriter::GenerateHeaderGuard() const {
- std::string result;
- for (char c : header_name_) {
-- if (isalnum(c) || c == '_') {
-+ if (isalnum((unsigned char)c) || c == '_') {
- result += toupper(c);
- } else {
- result += '_';
diff --git a/firefox/patches/patch-toolkit_components_terminator_nsTerminator.cpp b/firefox/patches/patch-toolkit_components_terminator_nsTerminator.cpp
index 6eb631a296..7fd3f52491 100644
--- a/firefox/patches/patch-toolkit_components_terminator_nsTerminator.cpp
+++ b/firefox/patches/patch-toolkit_components_terminator_nsTerminator.cpp
@@ -1,10 +1,10 @@
-$NetBSD: patch-toolkit_components_terminator_nsTerminator.cpp,v 1.8 2023/01/07 23:36:39 ryoon Exp $
+$NetBSD: patch-toolkit_components_terminator_nsTerminator.cpp,v 1.9 2026/10/16 16:28:47 ryoon Exp $
* Fix segfault on exit under NetBSD
---- toolkit/components/terminator/nsTerminator.cpp.orig 2022-06-16 21:35:58.000000000 +0000
+--- toolkit/components/terminator/nsTerminator.cpp.orig 2026-10-08 02:24:22.000000000 +0000
+++ toolkit/components/terminator/nsTerminator.cpp
-@@ -34,7 +34,7 @@
+@@ -33,7 +33,7 @@
#if defined(XP_WIN)
# include <windows.h>
#else
@@ -13,7 +13,7 @@ $NetBSD: patch-toolkit_components_terminator_nsTerminator.cpp,v 1.8 2023/01/07 2
#endif
#include "mozilla/AppShutdown.h"
-@@ -184,7 +184,10 @@ void RunWatchdog(void* arg) {
+@@ -223,7 +223,10 @@ void RunWatchdog(void*) {
#if defined(XP_WIN)
Sleep(HEARTBEAT_INTERVAL_MS /* ms */);
#else
@@ -24,4 +24,4 @@ $NetBSD: patch-toolkit_components_terminator_nsTerminator.cpp,v 1.8 2023/01/07 2
+ nanosleep(&tickd, NULL);
#endif
- if (gHeartbeat++ < timeToLive) {
+ if (gHeartbeat++ < gCrashAfterTicks) {
diff --git a/firefox/patches/patch-widget_gtk_nsAppShell.cpp b/firefox/patches/patch-widget_gtk_nsAppShell.cpp
new file mode 100644
index 0000000000..8fa7e02358
--- /dev/null
+++ b/firefox/patches/patch-widget_gtk_nsAppShell.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-widget_gtk_nsAppShell.cpp,v 1.1 2026/10/08 20:57:15 ryoon Exp $
+
+* Fix build without dbus option.
+
+--- widget/gtk/nsAppShell.cpp.orig 2026-09-29 15:04:11.531003992 +0000
++++ widget/gtk/nsAppShell.cpp
+@@ -30,8 +30,8 @@
+ #ifdef MOZ_ENABLE_DBUS
+ # include <gio/gio.h>
+
+-# include "WidgetUtilsGtk.h"
+ #endif
++#include "WidgetUtilsGtk.h"
+ #include "HeadlessScreenHelper.h"
+ #include "ScreenHelperGTK.h"
+ #include "WakeLockListener.h"
Home |
Main Index |
Thread Index |
Old Index