Fri Jul 7 13:47:10 2023 UTC ()
firefox: Update to 115.0

Changelog:
New

  * Migrating from another browser? Now you can bring over payment methods
    you've saved in Chrome-based browsers to Firefox.

  * Hardware video decoding is now enabled for Intel GPUs on Linux.

  * The Tab Manager dropdown now features close buttons, so you can close tabs
    more quickly.

  * We've refreshed and streamlined the user interface for importing data in
    from other browsers.

  * Users without platform support for H264 video decoding can now fallback to
    Cisco's OpenH264 plugin for playback.

Fixed

  * Windows Magnifier now follows the text cursor correctly when the Firefox
    title bar is visible.

  * Windows users on low-end/USB wifi drivers and with OS geolocation disabled
    can now approve geolocation on a case by case basis without causing
    system-wide network instability.

  * Various security fixes.

Changed

  * Undo and redo are now available in Password fields.

  * On Linux, middle clicks on the new tab button will now open the xclipboard
    contents in the new tab. If the xclipboard content is a URL then that URL
    is opened, any other text is opened with your default search provider.

  * For users with a Firefox Colorways built-in theme, the theme will be
    automatically migrated to the same theme hosted on addons.mozilla.org for
    Firefox profiles that have disabled add-ons auto-updates. This will allow
    users to keep their Colorways theme when they are later removed from
    Firefox installer files.

  * Certain Firefox users may come across a message in the extensions panel
    indicating that their add-ons are not allowed on the site currently open.
    We have introduced a new back-end feature to only allow some extensions
    monitored by Mozilla to run on specific websites for various reasons,
    including security concerns.

Security fixes:
#CVE-2023-3482: Block all cookies bypass for localstorage
#CVE-2023-37201: Use-after-free in WebRTC certificate generation
#CVE-2023-37202: Potential use-after-free from compartment mismatch in
 SpiderMonkey
#CVE-2023-37203: Drag and Drop API may provide access to local system files
#CVE-2023-37204: Fullscreen notification obscured via option element
#CVE-2023-37205: URL spoofing in address bar using RTL characters
#CVE-2023-37206: Insufficient validation of symlinks in the FileSystem API
#CVE-2023-37207: Fullscreen notification obscured
#CVE-2023-37208: Lack of warning when opening Diagcab files
#CVE-2023-37209: Use-after-free in `NotifyOnHistoryReload`
#CVE-2023-37210: Full-screen mode exit prevention
#CVE-2023-37211: Memory safety bugs fixed in Firefox 115, Firefox ESR 102.13,
 and Thunderbird 102.13
#CVE-2023-37212: Memory safety bugs fixed in Firefox 115


(ryoon)
diff -r1.560 -r1.561 pkgsrc/www/firefox/Makefile
diff -r1.499 -r1.500 pkgsrc/www/firefox/distinfo
diff -r1.256 -r1.257 pkgsrc/www/firefox/mozilla-common.mk
diff -r1.7 -r1.8 pkgsrc/www/firefox/files/node-wrapper.sh
diff -r1.11 -r1.12 pkgsrc/www/firefox/patches/patch-config_makefiles_rust.mk
diff -r1.1 -r1.2 pkgsrc/www/firefox/patches/patch-third__party_sqlite3_src_moz.build
diff -r1.5 -r1.6 pkgsrc/www/firefox/patches/patch-widget_gtk_DMABufSurface.cpp

cvs diff -r1.560 -r1.561 pkgsrc/www/firefox/Makefile (expand / switch to unified diff)

--- pkgsrc/www/firefox/Makefile 2023/06/26 13:56:13 1.560
+++ pkgsrc/www/firefox/Makefile 2023/07/07 13:47:09 1.561
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: Makefile,v 1.560 2023/06/26 13:56:13 ryoon Exp $ 1# $NetBSD: Makefile,v 1.561 2023/07/07 13:47:09 ryoon Exp $
2 2
3FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR} 3FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
4MOZ_BRANCH= 114.0 4MOZ_BRANCH= 115.0
5MOZ_BRANCH_MINOR= .2 5MOZ_BRANCH_MINOR=
6 6
7DISTNAME= firefox-${FIREFOX_VER}.source 7DISTNAME= firefox-${FIREFOX_VER}.source
8PKGNAME= ${DISTNAME:S/.source//:S/b/beta/:S/esr//} 8PKGNAME= ${DISTNAME:S/.source//:S/b/beta/:S/esr//}
9CATEGORIES= www 9CATEGORIES= www
10MASTER_SITES+= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/} 10MASTER_SITES+= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/}
11MASTER_SITES+= ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/} 11MASTER_SITES+= ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/}
12EXTRACT_SUFX= .tar.xz 12EXTRACT_SUFX= .tar.xz
13 13
14NODEJSKIT= nodejs-output-113.0.2.tgz 14NODEJSKIT= nodejs-output-113.0.2.tgz
15DISTFILES= ${DEFAULT_DISTFILES} ${NODEJSKIT} 15DISTFILES= ${DEFAULT_DISTFILES} ${NODEJSKIT}
16SITES.${NODEJSKIT}= ${MASTER_SITE_LOCAL} 16SITES.${NODEJSKIT}= ${MASTER_SITE_LOCAL}
17 17
18MAINTAINER= ryoon@NetBSD.org 18MAINTAINER= ryoon@NetBSD.org

cvs diff -r1.499 -r1.500 pkgsrc/www/firefox/distinfo (expand / switch to unified diff)

--- pkgsrc/www/firefox/distinfo 2023/06/26 13:56:13 1.499
+++ pkgsrc/www/firefox/distinfo 2023/07/07 13:47:09 1.500
@@ -1,48 +1,48 @@ @@ -1,48 +1,48 @@
1$NetBSD: distinfo,v 1.499 2023/06/26 13:56:13 ryoon Exp $ 1$NetBSD: distinfo,v 1.500 2023/07/07 13:47:09 ryoon Exp $
2 2
3BLAKE2s (firefox-114.0.2.source.tar.xz) = 27bdba663d137e53f2318f9d96784cae71cc79086a12214b78bfdb4a9d4ace44 3BLAKE2s (firefox-115.0.source.tar.xz) = bc81c58d9b86a48565a4b9f2a69873d4e9c4e7acd50c25de69b55d5b21ff2333
4SHA512 (firefox-114.0.2.source.tar.xz) = 1d514d09c6b964b96c6d52d54b89a89a92d53a6fe669e16a6370346c980db4d0ac6c502fa89219c71b680566b9eb982e9b3191c21f81d7326f34f6c837c0a872 4SHA512 (firefox-115.0.source.tar.xz) = ed5d150e4dfdc01026beb3ae502a0b04321dd130084fdef63afce79a8a7a4898741d08f77716ba720c24f31b9c732c00ad0f1cd408b35b5eb6601a10014fb1a2
5Size (firefox-114.0.2.source.tar.xz) = 505974216 bytes 5Size (firefox-115.0.source.tar.xz) = 505151516 bytes
6BLAKE2s (nodejs-output-113.0.2.tgz) = da79ce7a5ab44378ac326caaa496dc5592bfb645b24b09f11c241933dc8ebb86 6BLAKE2s (nodejs-output-113.0.2.tgz) = da79ce7a5ab44378ac326caaa496dc5592bfb645b24b09f11c241933dc8ebb86
7SHA512 (nodejs-output-113.0.2.tgz) = 83c7f21ec8bd1af66aa7ffa4d0ab442c41946f470918100ae50c7792182ed94afc588161a5142cdfbc71b85049beb3c660fce22444fca736a326810cfd8c1d4b 7SHA512 (nodejs-output-113.0.2.tgz) = 83c7f21ec8bd1af66aa7ffa4d0ab442c41946f470918100ae50c7792182ed94afc588161a5142cdfbc71b85049beb3c660fce22444fca736a326810cfd8c1d4b
8Size (nodejs-output-113.0.2.tgz) = 216297 bytes 8Size (nodejs-output-113.0.2.tgz) = 216297 bytes
9SHA1 (patch-browser_app_profile_firefox.js) = 3b01cf7e37ea39bdd358fb14de5ce382b945ae39 9SHA1 (patch-browser_app_profile_firefox.js) = 3b01cf7e37ea39bdd358fb14de5ce382b945ae39
10SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678 10SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678
11SHA1 (patch-config_gcc-stl-wrapper.template.h) = 9d1f15ff487efa9202114d19ed5668b4e7aa032a 11SHA1 (patch-config_gcc-stl-wrapper.template.h) = 9d1f15ff487efa9202114d19ed5668b4e7aa032a
12SHA1 (patch-config_makefiles_rust.mk) = 38c613cd87a9c3f868179caaab6e8a029eafd65f 12SHA1 (patch-config_makefiles_rust.mk) = 788ab8fed45625bc5552c56a3ab05b5ed7d49a8f
13SHA1 (patch-dom_base_nsAttrName.h) = ac7ba441a3b27df2855cf2673eea36b1cb44ad49 13SHA1 (patch-dom_base_nsAttrName.h) = ac7ba441a3b27df2855cf2673eea36b1cb44ad49
14SHA1 (patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp) = b93b4c6367bd2fb3d1868ab7d97ca56c100be414 14SHA1 (patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp) = b93b4c6367bd2fb3d1868ab7d97ca56c100be414
15SHA1 (patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp) = e458c9c8dc66edc69c1874734af28a77fc5e3993 15SHA1 (patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp) = e458c9c8dc66edc69c1874734af28a77fc5e3993
16SHA1 (patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h) = b2adce9e65662283a11b6dcff40e95523e940045 16SHA1 (patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h) = b2adce9e65662283a11b6dcff40e95523e940045
17SHA1 (patch-gfx_skia_skia_src_core_SkCpu.cpp) = 36218819254f3681b9c717d652ea78c9f20d49ad 17SHA1 (patch-gfx_skia_skia_src_core_SkCpu.cpp) = 36218819254f3681b9c717d652ea78c9f20d49ad
18SHA1 (patch-gfx_skia_skia_src_core_SkVM.cpp) = 11d8084e933f68496fc4d2f57d1eb1065483bf9c 18SHA1 (patch-gfx_skia_skia_src_core_SkVM.cpp) = 11d8084e933f68496fc4d2f57d1eb1065483bf9c
19SHA1 (patch-gfx_wr_swgl_build.rs) = df6ebfaabb4d27994e59a9d0eaf12c7cf08415fb 19SHA1 (patch-gfx_wr_swgl_build.rs) = df6ebfaabb4d27994e59a9d0eaf12c7cf08415fb
20SHA1 (patch-ipc_chromium_src_base_message__pump__libevent.cc) = 298642a3527804115b398fb7904a3596962932e3 20SHA1 (patch-ipc_chromium_src_base_message__pump__libevent.cc) = 298642a3527804115b398fb7904a3596962932e3
21SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = 35d20981d33ccdb1d8ffb8039e48798777f11658 21SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = 35d20981d33ccdb1d8ffb8039e48798777f11658
22SHA1 (patch-ipc_glue_GeckoChildProcessHost.cpp) = 6cdd0fe60455eab8f9846257c2bfea207f19478b 22SHA1 (patch-ipc_glue_GeckoChildProcessHost.cpp) = 6cdd0fe60455eab8f9846257c2bfea207f19478b
23SHA1 (patch-js_src_jit_FlushICache.cpp) = b7536050d06e87612fbedc7ce269b5f120eb0ce9 23SHA1 (patch-js_src_jit_FlushICache.cpp) = b7536050d06e87612fbedc7ce269b5f120eb0ce9
24SHA1 (patch-js_src_jit_ProcessExecutableMemory.cpp) = 1e25924a29e3700b0e0e5d143f1db35029b431fb 24SHA1 (patch-js_src_jit_ProcessExecutableMemory.cpp) = 1e25924a29e3700b0e0e5d143f1db35029b431fb
25SHA1 (patch-js_src_util_NativeStack.cpp) = a0a16d8d8d78d3cc3f4d2a508586f1a7821f7dba 25SHA1 (patch-js_src_util_NativeStack.cpp) = a0a16d8d8d78d3cc3f4d2a508586f1a7821f7dba
26SHA1 (patch-js_src_vm_ArrayBufferObject.cpp) = 374ffc0ce12e1c5babf2e553aba96612b0a30b1e 26SHA1 (patch-js_src_vm_ArrayBufferObject.cpp) = 374ffc0ce12e1c5babf2e553aba96612b0a30b1e
27SHA1 (patch-media_ffvpx_libavutil_arm_bswap.h) = de58daa0fd23d4fec50426602b65c9ea5862558a 27SHA1 (patch-media_ffvpx_libavutil_arm_bswap.h) = de58daa0fd23d4fec50426602b65c9ea5862558a
28SHA1 (patch-media_libpng_pngpriv.h) = c8084332560017cd7c9b519b61d125fa28af0dbc 28SHA1 (patch-media_libpng_pngpriv.h) = c8084332560017cd7c9b519b61d125fa28af0dbc
29SHA1 (patch-media_libtheora_lib_info.c) = f6dbf536d73859a1ff78304c2e9f6a6f74dac01f 29SHA1 (patch-media_libtheora_lib_info.c) = f6dbf536d73859a1ff78304c2e9f6a6f74dac01f
30SHA1 (patch-modules_fdlibm_src_math__private.h) = e20b6c23011d7123cbbd64a500eb8ce8c426620e 30SHA1 (patch-modules_fdlibm_src_math__private.h) = e20b6c23011d7123cbbd64a500eb8ce8c426620e
31SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = b0d1f6a6e0eb852b0fd0238ad3f8ed3166c60a50 31SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = b0d1f6a6e0eb852b0fd0238ad3f8ed3166c60a50
32SHA1 (patch-security_nss_lib_freebl_mpi_mpi.c) = a7cd867916524770609d1c307a65b315b88456f4 32SHA1 (patch-security_nss_lib_freebl_mpi_mpi.c) = a7cd867916524770609d1c307a65b315b88456f4
33SHA1 (patch-third__party_js_cfworker_build.sh) = 46cdf97b99cf01080f290ae8d9a33b5f869fc3e4 33SHA1 (patch-third__party_js_cfworker_build.sh) = 46cdf97b99cf01080f290ae8d9a33b5f869fc3e4
34SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc) = 455be625b5de2f6f1f4b2dbb6c8cb33ca16c2583 34SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc) = 455be625b5de2f6f1f4b2dbb6c8cb33ca16c2583
35SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc) = 8848fb05c1e8b45234f74db71602a8a84c0404a4 35SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc) = 8848fb05c1e8b45234f74db71602a8a84c0404a4
36SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc) = 8111952a107eb2cd665525ddd0e27c79eee3c1cd 36SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc) = 8111952a107eb2cd665525ddd0e27c79eee3c1cd
37SHA1 (patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc) = b90e22b50879f7adcc1da3a993f52c0701b720f8 37SHA1 (patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc) = b90e22b50879f7adcc1da3a993f52c0701b720f8
38SHA1 (patch-third__party_sqlite3_src_moz.build) = 2786a1f1d173e3774d89b5cdb0fd8f3148e47324 38SHA1 (patch-third__party_sqlite3_src_moz.build) = b26856a4b87aa12211575d9982f62dc899474b52
39SHA1 (patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc) = 99d0db944f0c2d0c623460991efd423d9127c988 39SHA1 (patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc) = 99d0db944f0c2d0c623460991efd423d9127c988
40SHA1 (patch-third__party_wasm2c_wasm2c_wasm-rt-impl.c) = cd5fd67f53d7a448cc9075a3756e2a03d4f43e4b 40SHA1 (patch-third__party_wasm2c_wasm2c_wasm-rt-impl.c) = cd5fd67f53d7a448cc9075a3756e2a03d4f43e4b
41SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = e905e38ef1b88d764c695c019f15609350c1c43b 41SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = e905e38ef1b88d764c695c019f15609350c1c43b
42SHA1 (patch-toolkit_modules_subprocess_subprocess__shared__unix.js) = 2303b753066298305ccae80d72765dbc4da5e0dc 42SHA1 (patch-toolkit_modules_subprocess_subprocess__shared__unix.js) = 2303b753066298305ccae80d72765dbc4da5e0dc
43SHA1 (patch-toolkit_moz.configure) = c183f8b1566ffed0df17bf856f693b3a288affeb 43SHA1 (patch-toolkit_moz.configure) = c183f8b1566ffed0df17bf856f693b3a288affeb
44SHA1 (patch-toolkit_mozapps_installer_packager.mk) = 706635b76a7b525794aba95e95544f09e18bb662 44SHA1 (patch-toolkit_mozapps_installer_packager.mk) = 706635b76a7b525794aba95e95544f09e18bb662
45SHA1 (patch-toolkit_xre_glxtest.cpp) = adcd5b05fcbd7b41c01a2aa66f3e8f05ed230444 45SHA1 (patch-toolkit_xre_glxtest.cpp) = adcd5b05fcbd7b41c01a2aa66f3e8f05ed230444
46SHA1 (patch-widget_gtk_DMABufSurface.cpp) = b07836c49c0c9c85e7923d3297ad674453165522 46SHA1 (patch-widget_gtk_DMABufSurface.cpp) = 7d1d2d7770e563c7b912e24444254ae2791710ea
47SHA1 (patch-xpcom_base_nscore.h) = 1ac4d34d3c9e80bc1ac966c6c84cb320bc0fa1ec 47SHA1 (patch-xpcom_base_nscore.h) = 1ac4d34d3c9e80bc1ac966c6c84cb320bc0fa1ec
48SHA1 (patch-xpcom_reflect_xptcall_md_unix_moz.build) = 81d43a046fcef6bf6717d52485686ba8e8738254 48SHA1 (patch-xpcom_reflect_xptcall_md_unix_moz.build) = 81d43a046fcef6bf6717d52485686ba8e8738254

cvs diff -r1.256 -r1.257 pkgsrc/www/firefox/mozilla-common.mk (expand / switch to unified diff)

--- pkgsrc/www/firefox/mozilla-common.mk 2023/06/14 16:22:18 1.256
+++ pkgsrc/www/firefox/mozilla-common.mk 2023/07/07 13:47:09 1.257
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: mozilla-common.mk,v 1.256 2023/06/14 16:22:18 ryoon Exp $ 1# $NetBSD: mozilla-common.mk,v 1.257 2023/07/07 13:47:09 ryoon Exp $
2# 2#
3# common Makefile fragment for mozilla packages based on gecko 2.0. 3# common Makefile fragment for mozilla packages based on gecko 2.0.
4# 4#
5# used by www/firefox/Makefile 5# used by www/firefox/Makefile
6 6
7.include "../../mk/bsd.prefs.mk" 7.include "../../mk/bsd.prefs.mk"
8 8
9PYTHON_VERSIONS_INCOMPATIBLE= 27 9PYTHON_VERSIONS_INCOMPATIBLE= 27
10PYTHON_FOR_BUILD_ONLY= tool 10PYTHON_FOR_BUILD_ONLY= tool
11ALL_ENV+= PYTHON3=${PYTHONBIN} 11ALL_ENV+= PYTHON3=${PYTHONBIN}
12 12
13REPLACE_PYTHON= build/cargo-linker 13REPLACE_PYTHON= build/cargo-linker
14 14
@@ -81,28 +81,27 @@ CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}j @@ -81,28 +81,27 @@ CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}j
81CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}intl/icu/source/configure 81CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}intl/icu/source/configure
82CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh 82CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh
83CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh 83CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh
84CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}third_party/libwebrtc/tools_webrtc/iwyu/apply-iwyu 84CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}third_party/libwebrtc/tools_webrtc/iwyu/apply-iwyu
85 85
86CONFIGURE_ARGS+= --enable-release 86CONFIGURE_ARGS+= --enable-release
87# Disable Rust SIMD option to fix build with lang/rust-1.33.0 87# Disable Rust SIMD option to fix build with lang/rust-1.33.0
88# This should be enabled later again. 88# This should be enabled later again.
89#CONFIGURE_ARGS+= --enable-rust-simd 89#CONFIGURE_ARGS+= --enable-rust-simd
90CONFIGURE_ARGS+= --disable-tests 90CONFIGURE_ARGS+= --disable-tests
91# Mozilla Bug 1432751 91# Mozilla Bug 1432751
92#CONFIGURE_ARGS+= --enable-system-cairo 92#CONFIGURE_ARGS+= --enable-system-cairo
93CONFIGURE_ARGS+= --enable-system-pixman 93CONFIGURE_ARGS+= --enable-system-pixman
94# webrtc option requires internal libvpx 94CONFIGURE_ARGS+= --with-system-libvpx
95#CONFIGURE_ARGS+= --with-system-libvpx 
96CONFIGURE_ARGS+= --enable-system-ffi 95CONFIGURE_ARGS+= --enable-system-ffi
97CONFIGURE_ARGS+= --with-system-icu 96CONFIGURE_ARGS+= --with-system-icu
98CONFIGURE_ARGS+= --with-system-nss 97CONFIGURE_ARGS+= --with-system-nss
99CONFIGURE_ARGS+= --with-system-nspr 98CONFIGURE_ARGS+= --with-system-nspr
100#CONFIGURE_ARGS+= --with-system-jpeg 99#CONFIGURE_ARGS+= --with-system-jpeg
101CONFIGURE_ARGS+= --with-system-zlib 100CONFIGURE_ARGS+= --with-system-zlib
102CONFIGURE_ARGS+= --with-system-libevent 101CONFIGURE_ARGS+= --with-system-libevent
103CONFIGURE_ARGS+= --disable-crashreporter 102CONFIGURE_ARGS+= --disable-crashreporter
104CONFIGURE_ARGS+= --enable-chrome-format=omni 103CONFIGURE_ARGS+= --enable-chrome-format=omni
105CONFIGURE_ARGS+= --with-system-webp 104CONFIGURE_ARGS+= --with-system-webp
106 105
107#CONFIGURE_ARGS+= --enable-readline 106#CONFIGURE_ARGS+= --enable-readline
108CONFIGURE_ARGS+= --disable-icf 107CONFIGURE_ARGS+= --disable-icf
@@ -218,42 +217,41 @@ create-rm-wrapper: @@ -218,42 +217,41 @@ create-rm-wrapper:
218# dist/bin/libxul.so: undefined reference to `__tls_get_addr' 217# dist/bin/libxul.so: undefined reference to `__tls_get_addr'
219CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no 218CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no
220# In unspecified case, clock_gettime(CLOCK_MONOTONIC, ...) fails. 219# In unspecified case, clock_gettime(CLOCK_MONOTONIC, ...) fails.
221CONFIGURE_ENV.NetBSD+= ac_cv_clock_monotonic= 220CONFIGURE_ENV.NetBSD+= ac_cv_clock_monotonic=
222 221
223.include "../../sysutils/pciutils/buildlink3.mk" 222.include "../../sysutils/pciutils/buildlink3.mk"
224.include "../../mk/atomic64.mk" 223.include "../../mk/atomic64.mk"
225BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1 224BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1
226.include "../../devel/libevent/buildlink3.mk" 225.include "../../devel/libevent/buildlink3.mk"
227.include "../../devel/libffi/buildlink3.mk" 226.include "../../devel/libffi/buildlink3.mk"
228BUILDLINK_API_DEPENDS.nspr+= nspr>=4.34 227BUILDLINK_API_DEPENDS.nspr+= nspr>=4.34
229.include "../../devel/nspr/buildlink3.mk" 228.include "../../devel/nspr/buildlink3.mk"
230.include "../../textproc/icu/buildlink3.mk" 229.include "../../textproc/icu/buildlink3.mk"
231BUILDLINK_API_DEPENDS.nss+= nss>=3.89 230BUILDLINK_API_DEPENDS.nss+= nss>=3.90
232.include "../../devel/nss/buildlink3.mk" 231.include "../../devel/nss/buildlink3.mk"
233.include "../../devel/zlib/buildlink3.mk" 232.include "../../devel/zlib/buildlink3.mk"
234#.include "../../mk/jpeg.buildlink3.mk" 233#.include "../../mk/jpeg.buildlink3.mk"
235.include "../../graphics/MesaLib/buildlink3.mk" 234.include "../../graphics/MesaLib/buildlink3.mk"
236#BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4 235#BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4
237#.include "../../graphics/cairo/buildlink3.mk" 236#.include "../../graphics/cairo/buildlink3.mk"
238BUILDLINK_API_DEPENDS.libwebp+= libwebp>=1.0.2 237BUILDLINK_API_DEPENDS.libwebp+= libwebp>=1.0.2
239.include "../../graphics/libwebp/buildlink3.mk" 238.include "../../graphics/libwebp/buildlink3.mk"
240BUILDLINK_DEPMETHOD.clang= build 239BUILDLINK_DEPMETHOD.clang= build
241.include "../../lang/clang/buildlink3.mk" 240.include "../../lang/clang/buildlink3.mk"
242RUST_REQ= 1.65.0 241RUST_REQ= 1.65.0
243.include "../../lang/rust/rust.mk" 242.include "../../lang/rust/rust.mk"
244# webrtc option requires internal libvpx 243BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.13.0
245#BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.3.0 244.include "../../multimedia/libvpx/buildlink3.mk"
246#.include "../../multimedia/libvpx/buildlink3.mk" 
247.include "../../net/libIDL/buildlink3.mk" 245.include "../../net/libIDL/buildlink3.mk"
248# TODO: check again, pkgsrc has hunspell 1.7 246# TODO: check again, pkgsrc has hunspell 1.7
249# was: textproc/hunspell 1.3 is too old 247# was: textproc/hunspell 1.3 is too old
250#.include "../../textproc/hunspell/buildlink3.mk" 248#.include "../../textproc/hunspell/buildlink3.mk"
251.include "../../multimedia/ffmpeg6/buildlink3.mk" 249.include "../../multimedia/ffmpeg6/buildlink3.mk"
252.include "../../x11/libXt/buildlink3.mk" 250.include "../../x11/libXt/buildlink3.mk"
253.include "../../x11/libXtst/buildlink3.mk" 251.include "../../x11/libXtst/buildlink3.mk"
254BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2 252BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2
255.include "../../x11/pixman/buildlink3.mk" 253.include "../../x11/pixman/buildlink3.mk"
256.include "../../x11/gtk3/buildlink3.mk" 254.include "../../x11/gtk3/buildlink3.mk"
257PLIST_VARS+= wayland 255PLIST_VARS+= wayland
258.if ${PKG_BUILD_OPTIONS.gtk3:Mwayland} 256.if ${PKG_BUILD_OPTIONS.gtk3:Mwayland}
259CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3-x11-wayland 257CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3-x11-wayland

cvs diff -r1.7 -r1.8 pkgsrc/www/firefox/files/node-wrapper.sh (expand / switch to unified diff)

--- pkgsrc/www/firefox/files/node-wrapper.sh 2023/06/04 09:26:35 1.7
+++ pkgsrc/www/firefox/files/node-wrapper.sh 2023/07/07 13:47:10 1.8
@@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
1#! /bin/sh 1#! /bin/sh
2 2
3VERS=v20.2.0 3VERS=v20.3.1
4 4
5if [ "$1" = "-v" ] || [ "$1" = "--version" ]; then 5if [ "$1" = "-v" ] || [ "$1" = "--version" ]; then
6 printf "${VERS}\n" 6 printf "${VERS}\n"
7fi 7fi
8 8
9exit 0 9exit 0

cvs diff -r1.11 -r1.12 pkgsrc/www/firefox/patches/patch-config_makefiles_rust.mk (expand / switch to unified diff)

--- pkgsrc/www/firefox/patches/patch-config_makefiles_rust.mk 2023/06/04 09:26:35 1.11
+++ pkgsrc/www/firefox/patches/patch-config_makefiles_rust.mk 2023/07/07 13:47:10 1.12
@@ -1,30 +1,29 @@ @@ -1,30 +1,29 @@
1$NetBSD: patch-config_makefiles_rust.mk,v 1.11 2023/06/04 09:26:35 ryoon Exp $ 1$NetBSD: patch-config_makefiles_rust.mk,v 1.12 2023/07/07 13:47:10 ryoon Exp $
2 2
3NetBSD doesn't get along with parallel rust builds (it causes issues 3NetBSD doesn't get along with parallel rust builds (it causes issues
4with ld.so) which are the default. Force -j1. 4with ld.so) which are the default. Force -j1.
5 5
6Use less memory to fix build under NetBSD/i386. 6Use less memory to fix build under NetBSD/i386.
7From: https://bugzilla.mozilla.org/show_bug.cgi?id=1644409 7From: https://bugzilla.mozilla.org/show_bug.cgi?id=1644409
8 8
9--- config/makefiles/rust.mk.orig 2022-06-08 14:10:19.000000000 +0000 9--- config/makefiles/rust.mk.orig 2023-06-22 21:19:03.000000000 +0000
10+++ config/makefiles/rust.mk 10+++ config/makefiles/rust.mk
11@@ -58,6 +58,9 @@ ifdef MOZ_TSAN 11@@ -60,6 +60,9 @@ ifdef MOZ_TSAN
12 cargo_build_flags += -Zbuild-std=std,panic_abort 12 cargo_build_flags += -Zbuild-std=std,panic_abort
13 RUSTFLAGS += -Zsanitizer=thread 13 RUSTFLAGS += -Zsanitizer=thread
14 endif 14 endif
15+ifeq ($(OS_ARCH),NetBSD) 15+ifeq ($(OS_ARCH),NetBSD)
16+cargo_build_flags += @RUST_MAKE_JOBS@ 16+cargo_build_flags += @RUST_MAKE_JOBS@
17+endif 17+endif
18  18
19 rustflags_sancov = 19 rustflags_sancov =
20 ifdef LIBFUZZER 20 ifdef LIBFUZZER
21@@ -90,7 +93,8 @@ ifndef rustflags_sancov 21@@ -92,7 +95,7 @@ ifndef rustflags_sancov
22 # Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045. 22 # Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045.
23 ifndef MOZ_CODE_COVERAGE 23 ifndef MOZ_CODE_COVERAGE
24 ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE))) 24 ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
25-cargo_rustc_flags += -Clto 25-cargo_rustc_flags += -Clto$(if $(filter full,$(MOZ_LTO_RUST_CROSS)),=fat)
26+cargo_rustc_flags += -Clto=thin 26+cargo_rustc_flags += -Clto$(if $(filter full,$(MOZ_LTO_RUST_CROSS)),=thin)
27+export CARGO_PROFILE_RELEASE_LTO=thin 
28 endif 27 endif
29 # We need -Cembed-bitcode=yes for all crates when using -Clto. 28 # We need -Cembed-bitcode=yes for all crates when using -Clto.
30 RUSTFLAGS += -Cembed-bitcode=yes 29 RUSTFLAGS += -Cembed-bitcode=yes

cvs diff -r1.1 -r1.2 pkgsrc/www/firefox/patches/patch-third__party_sqlite3_src_moz.build (expand / switch to unified diff)

--- pkgsrc/www/firefox/patches/patch-third__party_sqlite3_src_moz.build 2023/06/14 16:22:18 1.1
+++ pkgsrc/www/firefox/patches/patch-third__party_sqlite3_src_moz.build 2023/07/07 13:47:10 1.2
@@ -1,13 +1,15 @@ @@ -1,13 +1,15 @@
1$NetBSD: patch-third__party_sqlite3_src_moz.build,v 1.1 2023/06/14 16:22:18 ryoon Exp $ 1$NetBSD: patch-third__party_sqlite3_src_moz.build,v 1.2 2023/07/07 13:47:10 ryoon Exp $
2 2
3* Fix segfault under NetBSD/i386 9 and pkgsrc/lang/gcc8-8.5.0 3* Fix segfault under NetBSD/i386 9 and pkgsrc/lang/gcc8-8.5.0
4 For NetBSD/i386 9, @SQLITE3OPTFLAG@ will be replaced with "'-O0',". 4 For NetBSD/i386 9, @SQLITE3OPTFLAG@ will be replaced with "'-O0',".
5 5
6--- third_party/sqlite3/src/moz.build.orig 2023-06-08 22:35:48.000000000 +0000 6--- third_party/sqlite3/src/moz.build.orig 2023-06-22 21:19:22.000000000 +0000
7+++ third_party/sqlite3/src/moz.build 7+++ third_party/sqlite3/src/moz.build
8@@ -106,4 +106,5 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc') 8@@ -108,6 +108,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc')
9 CFLAGS += [ 9 CFLAGS += [
10 '-Wno-sign-compare', 10 '-Wno-sign-compare',
11 '-Wno-type-limits', 11 '-Wno-type-limits',
12+ @SQLITE3OPTFLAG@ 12+ @SQLITE3OPTFLAG@
13 ] 13 ]
 14
 15 # Set a default journal size limit. Note an hot journal can grow over this

cvs diff -r1.5 -r1.6 pkgsrc/www/firefox/patches/patch-widget_gtk_DMABufSurface.cpp (expand / switch to unified diff)

--- pkgsrc/www/firefox/patches/patch-widget_gtk_DMABufSurface.cpp 2023/04/18 14:00:11 1.5
+++ pkgsrc/www/firefox/patches/patch-widget_gtk_DMABufSurface.cpp 2023/07/07 13:47:10 1.6
@@ -1,42 +1,42 @@ @@ -1,42 +1,42 @@
1$NetBSD: patch-widget_gtk_DMABufSurface.cpp,v 1.5 2023/04/18 14:00:11 ryoon Exp $ 1$NetBSD: patch-widget_gtk_DMABufSurface.cpp,v 1.6 2023/07/07 13:47:10 ryoon Exp $
2 2
3No eventfd on NetBSD 9 and older, fix build 3No eventfd on NetBSD 9 and older, fix build
4 4
5--- widget/gtk/DMABufSurface.cpp.orig 2023-03-30 21:16:10.000000000 +0000 5--- widget/gtk/DMABufSurface.cpp.orig 2023-06-22 21:19:23.000000000 +0000
6+++ widget/gtk/DMABufSurface.cpp 6+++ widget/gtk/DMABufSurface.cpp
7@@ -6,6 +6,9 @@ 7@@ -6,6 +6,9 @@
8  8
9 #include "DMABufSurface.h" 9 #include "DMABufSurface.h"
10  10
11+#if defined(__NetBSD__) 11+#if defined(__NetBSD__)
12+#include <sys/param.h> 12+#include <sys/param.h>
13+#endif 13+#endif
14 #include <fcntl.h> 14 #include <fcntl.h>
15 #include <getopt.h> 15 #include <getopt.h>
16 #include <signal.h> 16 #include <signal.h>
17@@ -18,7 +21,9 @@ 17@@ -18,7 +21,9 @@
18 #include <sys/time.h> 18 #include <sys/time.h>
19 #include <dlfcn.h> 19 #include <dlfcn.h>
20 #include <sys/mman.h> 20 #include <sys/mman.h>
21+#if !(defined(__NetBSD__) && (__NetBSD_Version__ - 0 < 1000000000)) 21+#if !(defined(__NetBSD__) && (__NetBSD_Version__ - 0 < 1000000000))
22 #include <sys/eventfd.h> 22 #include <sys/eventfd.h>
23+#endif 23+#endif
24 #include <poll.h> 24 #include <poll.h>
25 #include <sys/ioctl.h> 25 #include <sys/ioctl.h>
26  26
27@@ -134,6 +139,7 @@ void DMABufSurface::GlobalRefAdd() { 27@@ -147,6 +152,7 @@ void DMABufSurface::GlobalRefAdd() {
28 } 28 }
29  29
30 void DMABufSurface::GlobalRefCountCreate() { 30 void DMABufSurface::GlobalRefCountCreate() {
31+#if !(defined(__NetBSD__) && (__NetBSD_Version__ - 0 < 1000000000)) 31+#if !(defined(__NetBSD__) && (__NetBSD_Version__ - 0 < 1000000000))
32 MOZ_ASSERT(!mGlobalRefCountFd); 32 LOGDMABUFREF(("DMABufSurface::GlobalRefCountCreate UID %d", mUID));
 33 MOZ_DIAGNOSTIC_ASSERT(!mGlobalRefCountFd);
33 // Create global ref count initialized to 0, 34 // Create global ref count initialized to 0,
34 // i.e. is not referenced after create. 35@@ -159,6 +165,7 @@ void DMABufSurface::GlobalRefCountCreate
35@@ -145,6 +151,7 @@ void DMABufSurface::GlobalRefCountCreate 
36 mGlobalRefCountFd = 0; 36 mGlobalRefCountFd = 0;
37 return; 37 return;
38 } 38 }
39+#endif 39+#endif
40 } 40 }
41  41
42 void DMABufSurface::GlobalRefCountImport(int aFd) { 42 void DMABufSurface::GlobalRefCountImport(int aFd) {