pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mail/thunderbird
Module Name: pkgsrc
Committed By: ryoon
Date: Tue Oct 1 15:01:30 UTC 2024
Modified Files:
pkgsrc/mail/thunderbird: Makefile PLIST distinfo mozilla-common.mk
pkgsrc/mail/thunderbird/patches: patch-browser_app_profile_firefox.js
patch-build_moz.configure_init.configure
patch-build_moz.configure_rust.configure
patch-config_gcc-stl-wrapper.template.h patch-dom_base_nsAttrName.h
patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp
patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp
patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h
patch-ipc_chromium_src_base_message__pump__libevent.cc
patch-ipc_chromium_src_base_platform__thread__posix.cc
patch-ipc_glue_GeckoChildProcessHost.cpp
patch-js_src_util_NativeStack.cpp
patch-media_ffvpx_libavutil_arm_bswap.h
patch-media_libpng_pngpriv.h patch-media_libtheora_lib_info.c
patch-nsprpub_pr_src_pthreads_ptsynch.c
patch-security_nss_lib_freebl_mpi_mpi.c
patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc
patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc
patch-toolkit_components_terminator_nsTerminator.cpp
patch-toolkit_moz.configure
patch-toolkit_mozapps_installer_packager.mk
patch-xpcom_base_nscore.h
Added Files:
pkgsrc/mail/thunderbird/files: replace-moz.build.awk
pkgsrc/mail/thunderbird/patches: patch-gfx_wr_swgl_build.rs
patch-js-src-jit-arm64-vixl-MozCpu-vixl.cpp
patch-js_src_jit_FlushICache.cpp patch-js_src_old-configure.in
patch-modules_fdlibm_src_math__private.h
patch-netwerk_protocol_http_nsHttpHandler.cpp
patch-third__party_js_cfworker_build.sh
patch-third__party_libwebrtc_modules_desktop__capture_desktop__capture__gn_moz.build
patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc
patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc
patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc
patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc
patch-xpcom_reflect_xptcall_md_unix_moz.build
Removed Files:
pkgsrc/mail/thunderbird/files:
third__party_rust_encoding__rs_.cargo-checksum.json
pkgsrc/mail/thunderbird/patches:
patch-gfx_cairo_cairo_src_cairo-type1-subset.c
patch-gfx_skia_skia_src_core_SkCpu.cpp patch-js_src_jsfriendapi.h
patch-llvm18 patch-media_libcubeb_src_cubeb__sun.c
patch-old-configure.in patch-rust-1.78.0
patch-servo_components_style__traits_values.rs
patch-servo_ports_geckolib_cbindgen.toml
patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs
patch-toolkit_modules_subprocess_subprocess__shared__unix.js
patch-widget_gtk_DMABufSurface.cpp
Log Message:
mail/thunderbird: Update to 128.2.3
* Enable WebRTC.
Changelog:
128.2.3:
fixed
Reverted OAuth2 changes from 128.2.2esr due to authentication timeout after upgrade
128.2.2:
new
Account setup is updated to support OAuth2 granular permissions
fixed
Thunderbird could crash when using return receipt with OWL add-on
fixed
Folder pane display was blank due to invalid mail server hostname
fixed
Some users were unable to log in to Microsoft 365
fixed
Matrix end-to-end encryption tab in account settings could be shown for XMPP account
fixed
Participant and message were not populated when user left the room using XMPP
fixed
Visual and UX improvements
128.0:
fixed
Opening profile import tab then restarting Thunderbird caused import tab to malfunction
fixed
"Total" column did not display message count when using "Grouped by" sorting
fixed
Could not add events to CalDAV calendar when UID contained special characters
fixed
Visual and UX improvements
To generate a diff of this commit:
cvs rdiff -u -r1.321 -r1.322 pkgsrc/mail/thunderbird/Makefile
cvs rdiff -u -r1.95 -r1.96 pkgsrc/mail/thunderbird/PLIST
cvs rdiff -u -r1.271 -r1.272 pkgsrc/mail/thunderbird/distinfo
cvs rdiff -u -r1.19 -r1.20 pkgsrc/mail/thunderbird/mozilla-common.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/thunderbird/files/replace-moz.build.awk
cvs rdiff -u -r1.1 -r0 \
pkgsrc/mail/thunderbird/files/third__party_rust_encoding__rs_.cargo-checksum.json
cvs rdiff -u -r1.4 -r1.5 \
pkgsrc/mail/thunderbird/patches/patch-browser_app_profile_firefox.js \
pkgsrc/mail/thunderbird/patches/patch-js_src_util_NativeStack.cpp \
pkgsrc/mail/thunderbird/patches/patch-toolkit_components_terminator_nsTerminator.cpp \
pkgsrc/mail/thunderbird/patches/patch-toolkit_moz.configure \
pkgsrc/mail/thunderbird/patches/patch-xpcom_base_nscore.h
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_init.configure \
pkgsrc/mail/thunderbird/patches/patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp \
pkgsrc/mail/thunderbird/patches/patch-media_ffvpx_libavutil_arm_bswap.h \
pkgsrc/mail/thunderbird/patches/patch-media_libtheora_lib_info.c \
pkgsrc/mail/thunderbird/patches/patch-security_nss_lib_freebl_mpi_mpi.c \
pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc \
pkgsrc/mail/thunderbird/patches/patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc
cvs rdiff -u -r1.5 -r1.6 \
pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_rust.configure \
pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc
cvs rdiff -u -r1.3 -r1.4 \
pkgsrc/mail/thunderbird/patches/patch-config_gcc-stl-wrapper.template.h \
pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp \
pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h \
pkgsrc/mail/thunderbird/patches/patch-toolkit_mozapps_installer_packager.mk
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/mail/thunderbird/patches/patch-dom_base_nsAttrName.h \
pkgsrc/mail/thunderbird/patches/patch-media_libpng_pngpriv.h \
pkgsrc/mail/thunderbird/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c
cvs rdiff -u -r1.2 -r0 \
pkgsrc/mail/thunderbird/patches/patch-gfx_cairo_cairo_src_cairo-type1-subset.c \
pkgsrc/mail/thunderbird/patches/patch-gfx_skia_skia_src_core_SkCpu.cpp \
pkgsrc/mail/thunderbird/patches/patch-js_src_jsfriendapi.h \
pkgsrc/mail/thunderbird/patches/patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs \
pkgsrc/mail/thunderbird/patches/patch-widget_gtk_DMABufSurface.cpp
cvs rdiff -u -r0 -r1.1 \
pkgsrc/mail/thunderbird/patches/patch-gfx_wr_swgl_build.rs \
pkgsrc/mail/thunderbird/patches/patch-js-src-jit-arm64-vixl-MozCpu-vixl.cpp \
pkgsrc/mail/thunderbird/patches/patch-js_src_jit_FlushICache.cpp \
pkgsrc/mail/thunderbird/patches/patch-js_src_old-configure.in \
pkgsrc/mail/thunderbird/patches/patch-modules_fdlibm_src_math__private.h \
pkgsrc/mail/thunderbird/patches/patch-netwerk_protocol_http_nsHttpHandler.cpp \
pkgsrc/mail/thunderbird/patches/patch-third__party_js_cfworker_build.sh \
pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_desktop__capture_desktop__capture__gn_moz.build \
pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc \
pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc \
pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc \
pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc
cvs rdiff -u -r1.13 -r1.14 \
pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc
cvs rdiff -u -r1.11 -r1.12 \
pkgsrc/mail/thunderbird/patches/patch-ipc_glue_GeckoChildProcessHost.cpp
cvs rdiff -u -r1.1 -r0 pkgsrc/mail/thunderbird/patches/patch-llvm18 \
pkgsrc/mail/thunderbird/patches/patch-rust-1.78.0 \
pkgsrc/mail/thunderbird/patches/patch-servo_components_style__traits_values.rs \
pkgsrc/mail/thunderbird/patches/patch-servo_ports_geckolib_cbindgen.toml
cvs rdiff -u -r1.4 -r0 \
pkgsrc/mail/thunderbird/patches/patch-media_libcubeb_src_cubeb__sun.c
cvs rdiff -u -r1.6 -r0 pkgsrc/mail/thunderbird/patches/patch-old-configure.in
cvs rdiff -u -r1.3 -r0 \
pkgsrc/mail/thunderbird/patches/patch-toolkit_modules_subprocess_subprocess__shared__unix.js
cvs rdiff -u -r0 -r1.4 \
pkgsrc/mail/thunderbird/patches/patch-xpcom_reflect_xptcall_md_unix_moz.build
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mail/thunderbird/Makefile
diff -u pkgsrc/mail/thunderbird/Makefile:1.321 pkgsrc/mail/thunderbird/Makefile:1.322
--- pkgsrc/mail/thunderbird/Makefile:1.321 Tue Aug 20 14:11:52 2024
+++ pkgsrc/mail/thunderbird/Makefile Tue Oct 1 15:01:27 2024
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.321 2024/08/20 14:11:52 ryoon Exp $
+# $NetBSD: Makefile,v 1.322 2024/10/01 15:01:27 ryoon Exp $
DISTNAME= thunderbird-${TB_VER}.source
-PKGNAME= thunderbird-${TB_VER}
-TB_VER= 115.14.0
+PKGNAME= thunderbird-${TB_VER:S/esr//}
+TB_VER= 128.2.3esr
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_MOZILLA:=thunderbird/releases/${TB_VER}/source/}
EXTRACT_SUFX= .tar.xz
@@ -17,25 +17,27 @@ LICENSE= mpl-1.1
# overflowing even a biggish tmpfs).
USE_TOOLS+= unzip pax
-WRKSRC= ${WRKDIR}/${DISTNAME:S/.source//}
+WRKSRC= ${WRKDIR}/${DISTNAME:S/.source//:S/esr//}
MOZILLA_DIR= # empty
PLIST_SRC+= ${PLIST_SRC_DFLT}
DEPENDS+= libotr-[0-9]*:../../chat/libotr
-ALL_ENV+= MOZ_APP_NAME=${MOZILLA_NAME}
+ALL_ENV+= MOZ_APP_NAME=${MOZILLA}
CONFIG_GUESS_OVERRIDE+= comm/ldap/sdks/c-sdk/config/autoconf/config.guess
CONFIG_SUB_OVERRIDE+= comm/ldap/sdks/c-sdk/config/autoconf/config.sub
CONFIGURE_ARGS+= --enable-application=comm/mail
-# Disable WebRTC support for Thunderbird unconditionally.
-CONFIGURE_ARGS+= --disable-webrtc
-CONFIGURE_ARGS+= --with-app-name=${MOZILLA_NAME}
+CONFIGURE_ARGS+= --enable-webrtc
+CONFIGURE_ARGS+= --with-app-name=${MOZILLA}
NOT_PAX_MPROTECT_SAFE+= lib/${MOZILLA_NAME}/${MOZILLA_NAME}
NOT_PAX_MPROTECT_SAFE+= lib/${MOZILLA_NAME}/${MOZILLA_NAME}-bin
+# Do not use uselocale() in third_party/pipewire.
+CFLAGS.NetBSD+= -D__LOCALE_C_ONLY
+
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/${MOZILLA_NAME}
# Workaround for https://bugs.llvm.org/show_bug.cgi?id=46366
@@ -58,8 +60,8 @@ CHECK_WRKREF_SKIP+= lib/${MOZILLA_NAME}/
CKSUM_CRATES+= third_party/rust/libc
# patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs
-CKSUMS+= 107a4aa396b8383c66e0ace2f941450b4b69146558cdc4d9fbe33eeab51760f1
-CKSUMS+= 3aa5bbc6bec675641c8cb02342022256435ea4f958bfa3832344dba6847ba5ea
+#CKSUMS+= 107a4aa396b8383c66e0ace2f941450b4b69146558cdc4d9fbe33eeab51760f1
+#CKSUMS+= 3aa5bbc6bec675641c8cb02342022256435ea4f958bfa3832344dba6847ba5ea
#CKSUM_CRATES+= third_party/rust/getrandom
@@ -67,39 +69,31 @@ CKSUMS+= 3aa5bbc6bec675641c8cb0234202225
#CKSUMS+= 0e52f6bde42d7bb05c297ce1c25b9879d61b28caba98f6226a152bff538db6c2
#CKSUMS+= 394425b4ba03c21c494e64d993678f7014575b1e3d590b9ee452b5c2d83ec4ac
-SUBST_CLASSES+= cksum
-SUBST_STAGE.cksum= pre-configure
-.for crate in ${CKSUM_CRATES}
-SUBST_FILES.cksum+= ${crate}/.cargo-checksum.json
-.endfor
-.for from to in ${CKSUMS}
-SUBST_SED.cksum+= -e 's,${from},${to},g'
-.endfor
+#SUBST_CLASSES+= cksum
+#SUBST_STAGE.cksum= pre-configure
+#.for crate in ${CKSUM_CRATES}
+#SUBST_FILES.cksum+= ${crate}/.cargo-checksum.json
+#.endfor
+#.for from to in ${CKSUMS}
+#SUBST_SED.cksum+= -e 's,${from},${to},g'
+#.endfor
SUBST_CLASSES+= netbsdtag
SUBST_STAGE.netbsdtag= pre-configure
SUBST_FILES.netbsdtag= comm/third_party/rnp/src/librekey/key_store_pgp.cpp
SUBST_SED.netbsdtag= -e 's/__NetBSD__/__NEVER__/'
-SUBST_CLASSES+= rust178
-SUBST_STAGE.rust178= pre-configure
-SUBST_MESSAGE.rust178= Clearing cargo checksums
-SUBST_FILES.rust178= third_party/rust/bindgen/.cargo-checksum.json
-SUBST_FILES.rust178+= third_party/rust/any_all_workaround/.cargo-checksum.json
-SUBST_FILES.rust178+= third_party/rust/encoding_rs/.cargo-checksum.json
-SUBST_SED.rust178= -e 's/\("files":{\)[^}]*/\1/'
-
post-extract:
- ${CP} ${FILESDIR}/cubeb_sun.c ${WRKSRC}/media/libcubeb/src/cubeb_sun.c
- # patch(1) of NetBSD 9 cannot handle long line.
- ${CP} ${FILESDIR}/third__party_rust_encoding__rs_.cargo-checksum.json \
- ${WRKSRC}/third_party/rust/encoding_rs/.cargo-checksum.json
+ #${CP} ${FILESDIR}/cubeb_sun.c ${WRKSRC}/media/libcubeb/src/cubeb_sun.c
+
+pre-patch:
+ for f in $$(find ${WRKSRC}/third_party/libwebrtc -name moz.build -type f) ; \
+ do \
+ ${AWK} -f ${FILESDIR}/replace-moz.build.awk $$f > $$f.new; mv $$f.new $$f ; \
+ done
pre-configure:
cd ${WRKSRC} && mkdir -p ${OBJDIR}
-# cd ${WRKSRC}${MOZILLA_DIR} && autoconf-2.13 old-configure.in > old-configure
-# cd ${WRKSRC}${MOZILLA_DIR}/js/src && autoconf-2.13 old-configure.in > old-configure
- touch ${WRKSRC}/.mozconfig
do-build:
# XXX for some reason it doesn't work unless -j is explicitly specified
Index: pkgsrc/mail/thunderbird/PLIST
diff -u pkgsrc/mail/thunderbird/PLIST:1.95 pkgsrc/mail/thunderbird/PLIST:1.96
--- pkgsrc/mail/thunderbird/PLIST:1.95 Tue Aug 20 14:11:52 2024
+++ pkgsrc/mail/thunderbird/PLIST Tue Oct 1 15:01:27 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.95 2024/08/20 14:11:52 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.96 2024/10/01 15:01:27 ryoon Exp $
bin/thunderbird
lib/thunderbird/application.ini
lib/thunderbird/chrome/icons/default/calendar-alarm-dialog.png
@@ -24,6 +24,7 @@ lib/thunderbird/isp/DSPAM.sfd
lib/thunderbird/isp/POPFile.sfd
lib/thunderbird/isp/SpamAssassin.sfd
lib/thunderbird/isp/SpamPal.sfd
+lib/thunderbird/libgkcodecs.so
lib/thunderbird/liblgpllibs.so
lib/thunderbird/libmozavcodec.so
lib/thunderbird/libmozavutil.so
@@ -35,7 +36,6 @@ lib/thunderbird/libxul.so
lib/thunderbird/omni.ja
lib/thunderbird/pingsender
lib/thunderbird/platform.ini
-lib/thunderbird/plugin-container
lib/thunderbird/removed-files
lib/thunderbird/rnp-cli
lib/thunderbird/rnpkeys
@@ -44,3 +44,4 @@ lib/thunderbird/thunderbird-bin
lib/thunderbird/vaapitest
share/applications/thunderbird.desktop
share/pixmaps/thunderbird.png
+@pkgdir lib/thunderbird/extensions
Index: pkgsrc/mail/thunderbird/distinfo
diff -u pkgsrc/mail/thunderbird/distinfo:1.271 pkgsrc/mail/thunderbird/distinfo:1.272
--- pkgsrc/mail/thunderbird/distinfo:1.271 Mon Sep 23 23:55:18 2024
+++ pkgsrc/mail/thunderbird/distinfo Tue Oct 1 15:01:27 2024
@@ -1,45 +1,46 @@
-$NetBSD: distinfo,v 1.271 2024/09/23 23:55:18 gdt Exp $
+$NetBSD: distinfo,v 1.272 2024/10/01 15:01:27 ryoon Exp $
-BLAKE2s (thunderbird-115.14.0.source.tar.xz) = 2b8644a48ba3afcea1dda9f73fa84ba49e5b85f844fab5bba8f84c712aac4780
-SHA512 (thunderbird-115.14.0.source.tar.xz) = b12e1302d6be94dd88bee6dd069d3fec944bfce95e1afc1d72c14cc188d952fd5a85f0e70575317250701ac89498d876f3384b022957689fabcef61ad7d78c29
-Size (thunderbird-115.14.0.source.tar.xz) = 533296972 bytes
-SHA1 (patch-browser_app_profile_firefox.js) = d53fae5544563888d030af7483f00283a712235c
-SHA1 (patch-build_moz.configure_init.configure) = 07cb75fad7c2f354b3d1e02e3f6e49cca119f20a
-SHA1 (patch-build_moz.configure_rust.configure) = 72c5fa2e9d1022325d038832cca2e35f7213116d
+BLAKE2s (thunderbird-128.2.3esr.source.tar.xz) = 7949b2f54fc09d0fa2da547cd0b3c96feae33eb21973c79eef78406e84b1b58e
+SHA512 (thunderbird-128.2.3esr.source.tar.xz) = f852d1fe6b8d41aa2f0fbc0fceae93cccf1e5f88d9c0447f504de775283289b82b246b79a01e8eb26e9c87197fb33138fb18c75ecc3f5f1bcfefa3920a7c7512
+Size (thunderbird-128.2.3esr.source.tar.xz) = 675213768 bytes
+SHA1 (patch-browser_app_profile_firefox.js) = bc719edef37d18655ba79b030270438ee166fdaf
+SHA1 (patch-build_moz.configure_init.configure) = 65deb3c233df0aab81eb1fca05d708e5a4ed169a
+SHA1 (patch-build_moz.configure_rust.configure) = 25ddfacd29cebbc6db005dbe61a2a7446d480678
SHA1 (patch-comm_third__party_botan_configure.py) = 262f560c514d221d0df15a1906100b5e716bfdab
SHA1 (patch-comm_third__party_libgcrypt_configure) = c5ca8a8b44c485f81139b54d341ac044189d98d3
-SHA1 (patch-config_gcc-stl-wrapper.template.h) = ec0afe1b7d97dc0c305f9f7c197f9a7d7c32e629
+SHA1 (patch-config_gcc-stl-wrapper.template.h) = 9d1f15ff487efa9202114d19ed5668b4e7aa032a
SHA1 (patch-config_makefiles_rust.mk) = def6fcd317cee79ed11c1606c3c63159750243b8
-SHA1 (patch-dom_base_nsAttrName.h) = 4e2326542d4dbba1ac2af5b33505267ee177b094
-SHA1 (patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp) = b8ea4e8382fb03be6e31b3943a52a95f1a767954
-SHA1 (patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp) = d08f170629dda585dc3e11706688527fe3dc0e78
-SHA1 (patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h) = 8ddf031923ea7edfd8e51c5ff334870d531fecb5
-SHA1 (patch-gfx_cairo_cairo_src_cairo-type1-subset.c) = 6d5b8788d65e742515c4313113fb72372d093dcc
-SHA1 (patch-gfx_skia_skia_src_core_SkCpu.cpp) = 62d0d3a41fd0302c7b066ed60b15ed9db9f485de
-SHA1 (patch-ipc_chromium_src_base_message__pump__libevent.cc) = 9de765c6ba6ddf9db9161d10aac57ddbad20075c
-SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = 64475f51534ac683c5b42bcbbd767db87d0ef87b
-SHA1 (patch-ipc_glue_GeckoChildProcessHost.cpp) = fa503231403a18e4ca6947fcd9985dcd28f83d0c
+SHA1 (patch-dom_base_nsAttrName.h) = ac7ba441a3b27df2855cf2673eea36b1cb44ad49
+SHA1 (patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp) = b93b4c6367bd2fb3d1868ab7d97ca56c100be414
+SHA1 (patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp) = e458c9c8dc66edc69c1874734af28a77fc5e3993
+SHA1 (patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h) = b2adce9e65662283a11b6dcff40e95523e940045
+SHA1 (patch-gfx_wr_swgl_build.rs) = df6ebfaabb4d27994e59a9d0eaf12c7cf08415fb
+SHA1 (patch-ipc_chromium_src_base_message__pump__libevent.cc) = 298642a3527804115b398fb7904a3596962932e3
+SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = 753bb4e90758f5b42a51bbc073b328de673988cf
+SHA1 (patch-ipc_glue_GeckoChildProcessHost.cpp) = 63fbee04321f7ade20db4ccc1a1218b848344ce1
+SHA1 (patch-js-src-jit-arm64-vixl-MozCpu-vixl.cpp) = d90fca47d79551fd74214d47f8184670b901b792
SHA1 (patch-js_public_Utility.h) = 7e97b7feca65de88972286364aaa003ca690f4ad
-SHA1 (patch-js_src_jsfriendapi.h) = e013337469254e2a9e598bd070528f0f654acccb
-SHA1 (patch-js_src_util_NativeStack.cpp) = 338fdf6aa34101f6a41d07b303d4a8426c483d5b
-SHA1 (patch-llvm18) = d349d2f2311b95d42e92476b232b79bdd49cece4
-SHA1 (patch-media_ffvpx_libavutil_arm_bswap.h) = 5a7ad4d38165d49d44862ade846cb79de026867e
-SHA1 (patch-media_libcubeb_src_cubeb__sun.c) = 789312b0511f2667ab7ee581f066b6ecc129ad4f
-SHA1 (patch-media_libpng_pngpriv.h) = 5c49119b0e555c9daca64799ff03f3fa8fa05ded
-SHA1 (patch-media_libtheora_lib_info.c) = 96f3d3824459186476102a4598d07cf6f6a704ef
-SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = 20b208c5ab4bfea5d49d79c19fc610867da0c4c7
-SHA1 (patch-old-configure.in) = d59d276124e1f95d9e144b8f7099abcf6de0489a
-SHA1 (patch-rust-1.78.0) = aa83482a831ab2ee8b38f57c1b7873719e5f8b5b
-SHA1 (patch-security_nss_lib_freebl_mpi_mpi.c) = 0cbf185955c77c9438ced0c294fbc8e4824797bf
-SHA1 (patch-servo_components_style__traits_values.rs) = 6e1efb51bd68168abfa960b5e2541b3f46a49bf0
-SHA1 (patch-servo_ports_geckolib_cbindgen.toml) = f87b82cf179651199599f7b8c5d4feaa11b1f781
-SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc) = 8848fb05c1e8b45234f74db71602a8a84c0404a4
-SHA1 (patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs) = e9378a3868ddb628213c3a37e2177257c2344bc3
+SHA1 (patch-js_src_jit_FlushICache.cpp) = d1e611eaf7d7be22abfac6b39fbcd99df3570e47
+SHA1 (patch-js_src_old-configure.in) = b4a1548e01d727af8119353a19e031bdacae38d0
+SHA1 (patch-js_src_util_NativeStack.cpp) = a0a16d8d8d78d3cc3f4d2a508586f1a7821f7dba
+SHA1 (patch-media_ffvpx_libavutil_arm_bswap.h) = de58daa0fd23d4fec50426602b65c9ea5862558a
+SHA1 (patch-media_libpng_pngpriv.h) = 8320a1f7534ed5c4914b597bb3d6117d0060318f
+SHA1 (patch-media_libtheora_lib_info.c) = f6dbf536d73859a1ff78304c2e9f6a6f74dac01f
+SHA1 (patch-modules_fdlibm_src_math__private.h) = e20b6c23011d7123cbbd64a500eb8ce8c426620e
+SHA1 (patch-netwerk_protocol_http_nsHttpHandler.cpp) = 8e1d9a0746b637f5f4259e448e72172cfb08b23f
+SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = b0d1f6a6e0eb852b0fd0238ad3f8ed3166c60a50
+SHA1 (patch-security_nss_lib_freebl_mpi_mpi.c) = a7cd867916524770609d1c307a65b315b88456f4
+SHA1 (patch-third__party_js_cfworker_build.sh) = 46cdf97b99cf01080f290ae8d9a33b5f869fc3e4
+SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_desktop__capture__gn_moz.build) = d0454784eb72be49162f619579e060a0de3c480f
+SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc) = 455be625b5de2f6f1f4b2dbb6c8cb33ca16c2583
+SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc) = 4cb0e1c88dc83370024ed1aac7f75445b9f98df8
+SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc) = 8111952a107eb2cd665525ddd0e27c79eee3c1cd
+SHA1 (patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc) = 6909c4da9e7b3785252e5bce9be0ff47ebb87e01
+SHA1 (patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc) = b90e22b50879f7adcc1da3a993f52c0701b720f8
SHA1 (patch-third__party_sqlite3_src_moz.build) = b26856a4b87aa12211575d9982f62dc899474b52
SHA1 (patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc) = 99d0db944f0c2d0c623460991efd423d9127c988
-SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = f80a0844ca37dda91a8cf38d6a542f152657901a
-SHA1 (patch-toolkit_modules_subprocess_subprocess__shared__unix.js) = d718759e59910228cc3729e359f328b47aff5eb4
-SHA1 (patch-toolkit_moz.configure) = b6a367c34b0187ac2e731b3d6265eb145b82e2ca
-SHA1 (patch-toolkit_mozapps_installer_packager.mk) = 407fe861dd9b82a88a6f5c0ed1e519a3c0e67251
-SHA1 (patch-widget_gtk_DMABufSurface.cpp) = 719924359f9c25db2f7c8e9da1040197b3aae37e
-SHA1 (patch-xpcom_base_nscore.h) = 6e6f2d564d8d6121c178c2567cce8ac2ebe8610b
+SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = e905e38ef1b88d764c695c019f15609350c1c43b
+SHA1 (patch-toolkit_moz.configure) = 1306e7ac3c3939886aff38a58dd3162e6517409b
+SHA1 (patch-toolkit_mozapps_installer_packager.mk) = 706635b76a7b525794aba95e95544f09e18bb662
+SHA1 (patch-xpcom_base_nscore.h) = 1ac4d34d3c9e80bc1ac966c6c84cb320bc0fa1ec
+SHA1 (patch-xpcom_reflect_xptcall_md_unix_moz.build) = 8980398051fa16c7283acb6d323419993cce1420
Index: pkgsrc/mail/thunderbird/mozilla-common.mk
diff -u pkgsrc/mail/thunderbird/mozilla-common.mk:1.19 pkgsrc/mail/thunderbird/mozilla-common.mk:1.20
--- pkgsrc/mail/thunderbird/mozilla-common.mk:1.19 Tue Aug 20 14:11:52 2024
+++ pkgsrc/mail/thunderbird/mozilla-common.mk Tue Oct 1 15:01:27 2024
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.19 2024/08/20 14:11:52 ryoon Exp $
+# $NetBSD: mozilla-common.mk,v 1.20 2024/10/01 15:01:27 ryoon Exp $
#
# common Makefile fragment for mozilla packages based on gecko 2.0.
#
@@ -15,7 +15,7 @@ REPLACE_PYTHON= build/cargo-linker
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX}
USE_TOOLS+= pkg-config perl gmake gm4 unzip zip # autoconf213
-UNLIMIT_RESOURCES+= datasize virtualsize
+UNLIMIT_RESOURCES+= datasize stacksize virtualsize
OVERRIDE_GNU_CONFIG_SCRIPTS= yes
OVERRIDE_DIRDEPTH= 4
@@ -28,9 +28,14 @@ GCC_REQD+= 8
# To find vscanf, vfscanf, isblank and so on under NetBSD 9.
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
-TOOL_DEPENDS+= cbindgen>=0.24.3:../../devel/cbindgen
+TOOL_DEPENDS+= cbindgen>=0.26.0:../../devel/cbindgen
+.if defined(FIREFOX_MAINTAINER) && !defined(MAINTAINER_INTERNAL)
TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs
+USE_TOOLS+= diff
+.else
+CONFIGURE_ENV+= NODEJS="${FILESDIR}/node-wrapper.sh"
+.endif
# malloc_usable_size()
LDFLAGS.NetBSD+= -ljemalloc
@@ -44,7 +49,7 @@ CFLAGS+= -msse2
# This is to work around build failures where an upstream configuration script
# is confused by having more than one approximate match to MACHINE_GNU_PLATFORM
# "i486" when attempting to select the Rust compiler target.
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
+.if ${MACHINE_PLATFORM:MNetBSD-*-i386}
CONFIGURE_ARGS+= --target=i586-unknown-netbsd
CONFIGURE_ARGS+= --host=i586-unknown-netbsd
.elif ${MACHINE_PLATFORM:MSunOS-*-x86_64}
@@ -103,6 +108,7 @@ CONFIGURE_ARGS+= --with-system-libevent
CONFIGURE_ARGS+= --disable-crashreporter
CONFIGURE_ARGS+= --enable-chrome-format=omni
CONFIGURE_ARGS+= --with-system-webp
+CONFIGURE_ARGS+= --enable-forkserver
#CONFIGURE_ARGS+= --enable-readline
CONFIGURE_ARGS+= --disable-icf
@@ -192,7 +198,14 @@ OBJDIR= ../build
CONFIGURE_DIRS= ${OBJDIR}
CONFIGURE_SCRIPT= ${WRKSRC}/configure
-PLIST_VARS+= ffvpx
+PLIST_VARS+= v4l2_decode ffvpx
+
+PLIST_VARS+= v4l2_decode
+.if ${MACHINE_ARCH} == "aarch64" || \
+ ${MACHINE_ARCH:M*arm*} || \
+ ${MACHINE_ARCH} == riscv64
+PLIST.v4l2_decode= yes # see toolkit/moz.configure
+.endif
.if ${MACHINE_ARCH} == "aarch64" || \
${MACHINE_ARCH:M*arm*} || \
@@ -204,6 +217,7 @@ PLIST.ffvpx= yes # see media/ffvpx/ffvpx
# See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing
# support is only available when the toolkit is cairo-cocoa.
CONFIGURE_ARGS.Darwin+= --disable-sandbox
+CONFIGURE_ARGS.NetBSD+= --disable-sandbox
# Makefiles sometimes call "rm -f" without more arguments. Kludge around ...
.PHONY: create-rm-wrapper
@@ -227,7 +241,7 @@ BUILDLINK_API_DEPENDS.libevent+= libeven
BUILDLINK_API_DEPENDS.nspr+= nspr>=4.34
.include "../../devel/nspr/buildlink3.mk"
#.include "../../textproc/icu/buildlink3.mk"
-BUILDLINK_API_DEPENDS.nss+= nss>=3.90
+BUILDLINK_API_DEPENDS.nss+= nss>=3.101
.include "../../devel/nss/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
#.include "../../mk/jpeg.buildlink3.mk"
@@ -238,17 +252,17 @@ BUILDLINK_API_DEPENDS.libwebp+= libwebp>
.include "../../graphics/libwebp/buildlink3.mk"
BUILDLINK_DEPMETHOD.clang= build
.include "../../lang/clang/buildlink3.mk"
-RUST_REQ= 1.66.0
+RUST_REQ= 1.76.0
.include "../../lang/rust/rust.mk"
.include "../../multimedia/libvpx/buildlink3.mk"
.include "../../net/libIDL/buildlink3.mk"
# TODO: check again, pkgsrc has hunspell 1.7
# was: textproc/hunspell 1.3 is too old
#.include "../../textproc/hunspell/buildlink3.mk"
-.include "../../multimedia/ffmpeg6/buildlink3.mk"
+.include "../../multimedia/ffmpeg7/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"
-BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2
+BUILDLINK_API_DEPENDS.pixman+= pixman>=0.40
.include "../../x11/pixman/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
PLIST_VARS+= wayland
Index: pkgsrc/mail/thunderbird/patches/patch-browser_app_profile_firefox.js
diff -u pkgsrc/mail/thunderbird/patches/patch-browser_app_profile_firefox.js:1.4 pkgsrc/mail/thunderbird/patches/patch-browser_app_profile_firefox.js:1.5
--- pkgsrc/mail/thunderbird/patches/patch-browser_app_profile_firefox.js:1.4 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-browser_app_profile_firefox.js Tue Oct 1 15:01:28 2024
@@ -1,8 +1,11 @@
-$NetBSD: patch-browser_app_profile_firefox.js,v 1.4 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-browser_app_profile_firefox.js,v 1.5 2024/10/01 15:01:28 ryoon Exp $
---- browser/app/profile/firefox.js.orig 2020-08-28 21:32:23.000000000 +0000
+This patch modifies default Firefox settings - see the comments above
+each one.
+
+--- browser/app/profile/firefox.js.orig 2024-03-08 13:19:26.000000000 +0000
+++ browser/app/profile/firefox.js
-@@ -1921,6 +1921,12 @@ pref("fission.frontend.simulate-messages
+@@ -2461,6 +2461,39 @@ pref("app.normandy.onsync_skew_sec", 600
pref("toolkit.coverage.enabled", false);
pref("toolkit.coverage.endpoint.base", "https://coverage.mozilla.org");
@@ -12,6 +15,33 @@ $NetBSD: patch-browser_app_profile_firef
+// Enable system addons, for example langpacks from www/firefox-l10n
+pref("extensions.autoDisableScopes", 11);
+
++// Firefox includes a complex mechanism for "blacklisting" GPUs that
++// appears to fail on a NetBSD system where the only available OpenGL
++// implementations are all from Mesa. WebRender was supposed to be
++// enabled by default from Firefox 91 onwards and appears to greatly
++// improve performance even with acceleration disabled at the kernel
++// level.
++pref("gfx.webrender.all", true);
++
++// Disable Web MIDI support
++// NetBSD gets immediate SIGSEGV when Web MIDI is enabled.
++pref("midi.testing", true);
++pref("dom.webmidi.enabled", true);
++pref("midi.prompt.testing", true);
++pref("media.navigator.permission.disabled", true);
++
++// Avoid runtime error from WebGL for NetBSD systems
++pref("webgl.out-of-process", false);
++
++// Avoid unfunctional video and audio codecs
++pref("media.allow-audio-non-utility", true);
++
++// On NetBSD, many web applications (e.g. Telegram, Mastodon, Twitter)
++// will freeze until the service worker is restarted in about:serviceworkers.
++// This is a workaround that makes most of these sites function.
++// The root cause of this should be investigated.
++pref("dom.serviceWorkers.enabled", false);
++
// Discovery prefs
pref("browser.discovery.enabled", true);
pref("browser.discovery.containers.enabled", true);
Index: pkgsrc/mail/thunderbird/patches/patch-js_src_util_NativeStack.cpp
diff -u pkgsrc/mail/thunderbird/patches/patch-js_src_util_NativeStack.cpp:1.4 pkgsrc/mail/thunderbird/patches/patch-js_src_util_NativeStack.cpp:1.5
--- pkgsrc/mail/thunderbird/patches/patch-js_src_util_NativeStack.cpp:1.4 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-js_src_util_NativeStack.cpp Tue Oct 1 15:01:28 2024
@@ -1,6 +1,8 @@
-$NetBSD: patch-js_src_util_NativeStack.cpp,v 1.4 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-js_src_util_NativeStack.cpp,v 1.5 2024/10/01 15:01:28 ryoon Exp $
---- js/src/util/NativeStack.cpp.orig 2020-08-28 21:32:56.000000000 +0000
+Support SunOS.
+
+--- js/src/util/NativeStack.cpp.orig 2020-04-03 19:34:51.000000000 +0000
+++ js/src/util/NativeStack.cpp
@@ -13,7 +13,7 @@
# if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
Index: pkgsrc/mail/thunderbird/patches/patch-toolkit_components_terminator_nsTerminator.cpp
diff -u pkgsrc/mail/thunderbird/patches/patch-toolkit_components_terminator_nsTerminator.cpp:1.4 pkgsrc/mail/thunderbird/patches/patch-toolkit_components_terminator_nsTerminator.cpp:1.5
--- pkgsrc/mail/thunderbird/patches/patch-toolkit_components_terminator_nsTerminator.cpp:1.4 Sun Feb 5 09:05:29 2023
+++ pkgsrc/mail/thunderbird/patches/patch-toolkit_components_terminator_nsTerminator.cpp Tue Oct 1 15:01:29 2024
@@ -1,6 +1,8 @@
-$NetBSD: patch-toolkit_components_terminator_nsTerminator.cpp,v 1.4 2023/02/05 09:05:29 he Exp $
+$NetBSD: patch-toolkit_components_terminator_nsTerminator.cpp,v 1.5 2024/10/01 15:01:29 ryoon Exp $
---- toolkit/components/terminator/nsTerminator.cpp.orig 2020-08-28 21:33:46.000000000 +0000
+* 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
@@ -34,7 +34,7 @@
#if defined(XP_WIN)
@@ -11,15 +13,14 @@ $NetBSD: patch-toolkit_components_termin
#endif
#include "mozilla/AppShutdown.h"
-@@ -184,7 +184,11 @@ void RunWatchdog(void* arg) {
+@@ -184,7 +184,10 @@ void RunWatchdog(void* arg) {
#if defined(XP_WIN)
Sleep(HEARTBEAT_INTERVAL_MS /* ms */);
#else
- usleep(HEARTBEAT_INTERVAL_MS * 1000 /* usec */);
-+ // usleep(HEARTBEAT_INTERVAL_MS * 1000 /* usec */);
+ struct timespec tickd;
-+ tickd.tv_sec = 1;
-+ tickd.tv_nsec = 0;
++ tickd.tv_sec = 0;
++ tickd.tv_nsec = HEARTBEAT_INTERVAL_MS * 1000 * 1000;
+ nanosleep(&tickd, NULL);
#endif
Index: pkgsrc/mail/thunderbird/patches/patch-toolkit_moz.configure
diff -u pkgsrc/mail/thunderbird/patches/patch-toolkit_moz.configure:1.4 pkgsrc/mail/thunderbird/patches/patch-toolkit_moz.configure:1.5
--- pkgsrc/mail/thunderbird/patches/patch-toolkit_moz.configure:1.4 Fri Aug 25 10:15:01 2023
+++ pkgsrc/mail/thunderbird/patches/patch-toolkit_moz.configure Tue Oct 1 15:01:29 2024
@@ -1,22 +1,31 @@
-$NetBSD: patch-toolkit_moz.configure,v 1.4 2023/08/25 10:15:01 pho Exp $
+$NetBSD: patch-toolkit_moz.configure,v 1.5 2024/10/01 15:01:29 ryoon Exp $
---- toolkit/moz.configure.orig 2023-08-14 18:20:04.000000000 +0000
+* Enable ALSA for NetBSD too.
+* Support --enable-forkserver on NetBSD.
+
+--- toolkit/moz.configure.orig 2023-08-15 21:10:03.000000000 +0000
+++ toolkit/moz.configure
-@@ -325,8 +325,6 @@ set_config("MOZ_OPENSL", imply_opensl, w
-
- set_config("MOZ_OSS", imply_oss, when="--enable-audio-backends")
-
--imply_option("--enable-pulseaudio", imply_pulseaudio, reason="--enable-audio-backends")
--
- imply_option("--enable-sndio", imply_sndio, reason="--enable-audio-backends")
-
- set_config("MOZ_SUNAUDIO", imply_sunaudio, when="--enable-audio-backends")
-@@ -1167,7 +1165,7 @@ set_define("MOZ_WEBSPEECH_TEST_BACKEND",
- # ==============================================================
- @depends(target, milestone)
- def skia_pdf_default(target, milestone):
-- return milestone.is_nightly and target.os != "WINNT"
-+ return milestone.is_nightly and target.os != "WINNT" and target.endianness != 'big'
+@@ -242,6 +242,7 @@ def imply_alsa(values, target):
+ any("alsa" in value for value in values)
+ and target.kernel != "Linux"
+ and target.os != "FreeBSD"
++ and target.os != "NetBSD"
+ ):
+ die("Cannot enable ALSA on %s", target.os)
+ return any("alsa" in value for value in values) or None
+@@ -2816,6 +2817,7 @@ def forkserver_default(target, build_pro
+ (target.os == "GNU" and target.kernel == "Linux")
+ or target.os == "FreeBSD"
+ or target.os == "OpenBSD"
++ or target.os == "NetBSD"
+ )
- option("--enable-skia-pdf", default=skia_pdf_default, help="{Enable|Disable} Skia PDF")
+@@ -2834,6 +2836,7 @@ def forkserver_flag(value, target):
+ or (target.os == "GNU" and target.kernel == "Linux")
+ or target.os == "FreeBSD"
+ or target.os == "OpenBSD"
++ or target.os == "NetBSD"
+ ):
+ return bool(value)
+ pass
Index: pkgsrc/mail/thunderbird/patches/patch-xpcom_base_nscore.h
diff -u pkgsrc/mail/thunderbird/patches/patch-xpcom_base_nscore.h:1.4 pkgsrc/mail/thunderbird/patches/patch-xpcom_base_nscore.h:1.5
--- pkgsrc/mail/thunderbird/patches/patch-xpcom_base_nscore.h:1.4 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-xpcom_base_nscore.h Tue Oct 1 15:01:29 2024
@@ -1,8 +1,10 @@
-$NetBSD: patch-xpcom_base_nscore.h,v 1.4 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-xpcom_base_nscore.h,v 1.5 2024/10/01 15:01:29 ryoon Exp $
---- xpcom/base/nscore.h.orig 2020-08-28 21:33:30.000000000 +0000
+* Support llvm/clang
+
+--- xpcom/base/nscore.h.orig 2019-03-07 16:53:44.000000000 +0000
+++ xpcom/base/nscore.h
-@@ -77,7 +77,7 @@
+@@ -76,7 +76,7 @@
* NS_HIDDEN_(int) NS_FASTCALL func2(char *foo);
*/
Index: pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_init.configure
diff -u pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_init.configure:1.1 pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_init.configure:1.2
--- pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_init.configure:1.1 Fri May 10 09:14:07 2024
+++ pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_init.configure Tue Oct 1 15:01:28 2024
@@ -1,10 +1,10 @@
-$NetBSD: patch-build_moz.configure_init.configure,v 1.1 2024/05/10 09:14:07 jperkin Exp $
+$NetBSD: patch-build_moz.configure_init.configure,v 1.2 2024/10/01 15:01:28 ryoon Exp $
Support illumos triple.
---- build/moz.configure/init.configure.orig 2024-05-10 08:33:53.315533784 +0000
+--- build/moz.configure/init.configure.orig 2024-05-09 17:11:33.720650056 +0000
+++ build/moz.configure/init.configure
-@@ -475,6 +475,8 @@ def split_triplet(triplet, allow_msvc=Fa
+@@ -535,6 +535,8 @@ def split_triplet(triplet, allow_wasi=Fa
canonical_os = canonical_kernel = "OpenBSD"
elif os.startswith("solaris"):
canonical_os = canonical_kernel = "SunOS"
Index: pkgsrc/mail/thunderbird/patches/patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp
diff -u pkgsrc/mail/thunderbird/patches/patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp:1.1
pkgsrc/mail/thunderbird/patches/patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp:1.2
--- pkgsrc/mail/thunderbird/patches/patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp:1.1 Mon Aug 28 18:01:47 2023
+++ pkgsrc/mail/thunderbird/patches/patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp Tue Oct 1 15:01:28 2024
@@ -1,16 +1,40 @@
-$NetBSD: patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp,v 1.1 2023/08/28 18:01:47 he Exp $
+$NetBSD: patch-dom_webtransport_api_WebTransportDatagramDuplexStream.cpp,v 1.2 2024/10/01 15:01:28 ryoon Exp $
-Make isnan() available via "using std::isnan;", as that's
-apparently needed at least on netbsd-10 to bring isnan() into scope.
-
---- dom/webtransport/api/WebTransportDatagramDuplexStream.cpp.orig 2023-08-14 18:19:46.000000000 +0000
+--- dom/webtransport/api/WebTransportDatagramDuplexStream.cpp.orig 2023-04-23 21:17:18.000000000 +0000
+++ dom/webtransport/api/WebTransportDatagramDuplexStream.cpp
-@@ -10,6 +10,8 @@
- #include "mozilla/dom/Promise-inl.h"
- #include "mozilla/dom/WebTransportLog.h"
-
-+using std::isnan;
-+
- namespace mozilla::dom {
-
- NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(WebTransportDatagramDuplexStream, mGlobal,
+@@ -62,7 +62,7 @@ void WebTransportDatagramDuplexStream::S
+ ErrorResult& aRv) {
+ // https://w3c.github.io/webtransport/#dom-webtransportdatagramduplexstream-incomingmaxage
+ // Step 1
+- if (isnan(aMaxAge) || aMaxAge < 0.) {
++ if (std::isnan(aMaxAge) || aMaxAge < 0.) {
+ aRv.ThrowRangeError("Invalid IncomingMaxAge");
+ return;
+ }
+@@ -78,7 +78,7 @@ void WebTransportDatagramDuplexStream::S
+ ErrorResult& aRv) {
+ // https://w3c.github.io/webtransport/#dom-webtransportdatagramduplexstream-outgoingmaxage
+ // Step 1
+- if (isnan(aMaxAge) || aMaxAge < 0.) {
++ if (std::isnan(aMaxAge) || aMaxAge < 0.) {
+ aRv.ThrowRangeError("Invalid OutgoingMaxAge");
+ return;
+ }
+@@ -94,7 +94,7 @@ void WebTransportDatagramDuplexStream::S
+ double aWaterMark, ErrorResult& aRv) {
+ // https://w3c.github.io/webtransport/#dom-webtransportdatagramduplexstream-incominghighwatermark
+ // Step 1
+- if (isnan(aWaterMark) || aWaterMark < 0.) {
++ if (std::isnan(aWaterMark) || aWaterMark < 0.) {
+ aRv.ThrowRangeError("Invalid OutgoingMaxAge");
+ return;
+ }
+@@ -110,7 +110,7 @@ void WebTransportDatagramDuplexStream::S
+ double aWaterMark, ErrorResult& aRv) {
+ // https://w3c.github.io/webtransport/#dom-webtransportdatagramduplexstream-outgoinghighwatermark
+ // Step 1
+- if (isnan(aWaterMark) || aWaterMark < 0.) {
++ if (std::isnan(aWaterMark) || aWaterMark < 0.) {
+ aRv.ThrowRangeError("Invalid OutgoingHighWaterMark");
+ return;
+ }
Index: pkgsrc/mail/thunderbird/patches/patch-media_ffvpx_libavutil_arm_bswap.h
diff -u pkgsrc/mail/thunderbird/patches/patch-media_ffvpx_libavutil_arm_bswap.h:1.1 pkgsrc/mail/thunderbird/patches/patch-media_ffvpx_libavutil_arm_bswap.h:1.2
--- pkgsrc/mail/thunderbird/patches/patch-media_ffvpx_libavutil_arm_bswap.h:1.1 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-media_ffvpx_libavutil_arm_bswap.h Tue Oct 1 15:01:28 2024
@@ -1,6 +1,8 @@
-$NetBSD: patch-media_ffvpx_libavutil_arm_bswap.h,v 1.1 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-media_ffvpx_libavutil_arm_bswap.h,v 1.2 2024/10/01 15:01:28 ryoon Exp $
---- media/ffvpx/libavutil/arm/bswap.h.orig 2020-08-28 21:33:11.000000000 +0000
+Fix NetBSD aarch64 build.
+
+--- media/ffvpx/libavutil/arm/bswap.h.orig 2019-10-30 17:35:56.000000000 +0000
+++ media/ffvpx/libavutil/arm/bswap.h
@@ -23,6 +23,8 @@
#include "config.h"
Index: pkgsrc/mail/thunderbird/patches/patch-media_libtheora_lib_info.c
diff -u pkgsrc/mail/thunderbird/patches/patch-media_libtheora_lib_info.c:1.1 pkgsrc/mail/thunderbird/patches/patch-media_libtheora_lib_info.c:1.2
--- pkgsrc/mail/thunderbird/patches/patch-media_libtheora_lib_info.c:1.1 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-media_libtheora_lib_info.c Tue Oct 1 15:01:28 2024
@@ -1,6 +1,12 @@
-$NetBSD: patch-media_libtheora_lib_info.c,v 1.1 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-media_libtheora_lib_info.c,v 1.2 2024/10/01 15:01:28 ryoon Exp $
---- media/libtheora/lib/info.c.orig 2020-08-28 21:32:52.000000000 +0000
+Fix undefined behavior when calling <ctype.h> functions with illegal values.
+
+media/libtheora/lib/info.c:32:8: error: array subscript is of type 'char' [-Werror,-Wchar-subscripts]
+
+https://bugzilla.mozilla.org/show_bug.cgi?id=1642081
+
+--- media/libtheora/lib/info.c.orig 2020-05-07 18:34:12.000000000 +0000
+++ media/libtheora/lib/info.c
@@ -29,7 +29,7 @@
static int oc_tagcompare(const char *_s1,const char *_s2,int _n){
Index: pkgsrc/mail/thunderbird/patches/patch-security_nss_lib_freebl_mpi_mpi.c
diff -u pkgsrc/mail/thunderbird/patches/patch-security_nss_lib_freebl_mpi_mpi.c:1.1 pkgsrc/mail/thunderbird/patches/patch-security_nss_lib_freebl_mpi_mpi.c:1.2
--- pkgsrc/mail/thunderbird/patches/patch-security_nss_lib_freebl_mpi_mpi.c:1.1 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-security_nss_lib_freebl_mpi_mpi.c Tue Oct 1 15:01:29 2024
@@ -1,8 +1,18 @@
-$NetBSD: patch-security_nss_lib_freebl_mpi_mpi.c,v 1.1 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-security_nss_lib_freebl_mpi_mpi.c,v 1.2 2024/10/01 15:01:29 ryoon Exp $
---- security/nss/lib/freebl/mpi/mpi.c.orig 2020-08-28 21:33:15.000000000 +0000
+Fix undefined behavior when calling <ctype.h> functions with illegal values.
+
+security/nss/lib/freebl/mpi/mpi.c:4565:15: error: array subscript is of type 'char' [-Werror,-Wchar-subscripts]
+ xch = toupper(ch);
+
+security/nss/lib/freebl/mpi/mpi.c:4611:14: error: array subscript is of type 'char' [-Werror,-Wchar-subscripts]
+ ch = tolower(ch);
+
+https://bugzilla.mozilla.org/show_bug.cgi?id=1642081
+
+--- security/nss/lib/freebl/mpi/mpi.c.orig 2020-05-07 18:35:01.000000000 +0000
+++ security/nss/lib/freebl/mpi/mpi.c
-@@ -4661,9 +4661,9 @@ s_mp_tovalue(char ch, int r)
+@@ -4560,9 +4560,9 @@ s_mp_tovalue(char ch, int r)
int val, xch;
if (r > 36)
@@ -14,7 +24,7 @@ $NetBSD: patch-security_nss_lib_freebl_m
if (isdigit(xch))
val = xch - '0';
-@@ -4709,7 +4709,7 @@ s_mp_todigit(mp_digit val, int r, int lo
+@@ -4608,7 +4608,7 @@ s_mp_todigit(mp_digit val, int r, int lo
ch = s_dmap_1[val];
if (r <= 36 && low)
Index: pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc
diff -u pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc:1.1
pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc:1.2
--- pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc:1.1 Fri Aug 25 10:15:01 2023
+++ pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc Tue Oct 1 15:01:29 2024
@@ -1,11 +1,11 @@
-$NetBSD: patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc,v 1.1 2023/08/25 10:15:01 pho Exp $
+$NetBSD: patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc,v 1.2 2024/10/01 15:01:29 ryoon Exp $
* Fix build under NetBSD 9 and older.
The older NetBSD's sys/videoio.h does not have v4l2_capability.device_caps.
---- third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc.orig 2022-10-19 18:00:20.000000000 +0000
+--- third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc.orig 2023-09-14 21:15:08.000000000 +0000
+++ third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc
-@@ -193,11 +193,13 @@ uint32_t DeviceInfoV4l2::NumberOfDevices
+@@ -211,11 +211,13 @@ uint32_t DeviceInfoV4l2::NumberOfDevices
for (int n = 0; n < 64; n++) {
snprintf(device, sizeof(device), "/dev/video%d", n);
if ((fd = open(device, O_RDONLY)) != -1) {
@@ -19,9 +19,9 @@ $NetBSD: patch-third__party_libwebrtc_mo
close(fd);
count++;
-@@ -225,11 +227,13 @@ int32_t DeviceInfoV4l2::GetDeviceName(ui
- for (device_index = 0; device_index < 64; device_index++) {
- sprintf(device, "/dev/video%d", device_index);
+@@ -242,11 +244,13 @@ int32_t DeviceInfoV4l2::GetDeviceName(ui
+ for (int n = 0; n < 64; n++) {
+ snprintf(device, sizeof(device), "/dev/video%d", n);
if ((fd = open(device, O_RDONLY)) != -1) {
+#if defined(VIDIOC_QUERYCAP)
// query device capabilities and make sure this is a video capture device
@@ -33,7 +33,7 @@ $NetBSD: patch-third__party_libwebrtc_mo
if (count == deviceNumber) {
// Found the device
found = true;
-@@ -307,6 +311,7 @@ int32_t DeviceInfoV4l2::CreateCapability
+@@ -317,6 +321,7 @@ int32_t DeviceInfoV4l2::CreateCapability
if (fd == -1)
continue;
@@ -41,7 +41,7 @@ $NetBSD: patch-third__party_libwebrtc_mo
// query device capabilities
struct v4l2_capability cap;
if (ioctl(fd, VIDIOC_QUERYCAP, &cap) == 0) {
-@@ -331,6 +336,7 @@ int32_t DeviceInfoV4l2::CreateCapability
+@@ -341,6 +346,7 @@ int32_t DeviceInfoV4l2::CreateCapability
}
}
}
@@ -49,7 +49,7 @@ $NetBSD: patch-third__party_libwebrtc_mo
close(fd); // close since this is not the matching device
}
-@@ -376,11 +382,15 @@ bool DeviceInfoV4l2::IsDeviceNameMatches
+@@ -386,11 +392,15 @@ bool DeviceInfoV4l2::IsDeviceNameMatches
bool DeviceInfoV4l2::IsVideoCaptureDevice(struct v4l2_capability* cap)
{
Index: pkgsrc/mail/thunderbird/patches/patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc
diff -u pkgsrc/mail/thunderbird/patches/patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc:1.1
pkgsrc/mail/thunderbird/patches/patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc:1.2
--- pkgsrc/mail/thunderbird/patches/patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc:1.1 Fri Aug 25 10:15:01 2023
+++ pkgsrc/mail/thunderbird/patches/patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc Tue Oct 1 15:01:29 2024
@@ -1,4 +1,4 @@
-$NetBSD: patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc,v 1.1 2023/08/25 10:15:01 pho Exp $
+$NetBSD: patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc,v 1.2 2024/10/01 15:01:29 ryoon Exp $
--- third_party/wasm2c/src/prebuilt/wasm2c_source_includes.cc.orig 2023-05-25 21:19:41.000000000 +0000
+++ third_party/wasm2c/src/prebuilt/wasm2c_source_includes.cc
Index: pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_rust.configure
diff -u pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_rust.configure:1.5 pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_rust.configure:1.6
--- pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_rust.configure:1.5 Sun Feb 5 09:05:29 2023
+++ pkgsrc/mail/thunderbird/patches/patch-build_moz.configure_rust.configure Tue Oct 1 15:01:28 2024
@@ -1,8 +1,11 @@
-$NetBSD: patch-build_moz.configure_rust.configure,v 1.5 2023/02/05 09:05:29 he Exp $
+$NetBSD: patch-build_moz.configure_rust.configure,v 1.6 2024/10/01 15:01:28 ryoon Exp $
---- build/moz.configure/rust.configure.orig 2020-08-28 21:32:29.000000000 +0000
+* Do not match rumprun toolchain for NetBSD,
+ narrowed should be one not two.
+
+--- build/moz.configure/rust.configure.orig 2020-12-03 23:12:39.000000000 +0000
+++ build/moz.configure/rust.configure
-@@ -385,6 +385,7 @@ def detect_rustc_target(
+@@ -371,6 +371,7 @@ def detect_rustc_target(
for c in candidates
if c.target.raw_os == host_or_target.raw_os
and c.target.raw_cpu == host_or_target.raw_cpu
Index: pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc
diff -u pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc:1.5 pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc:1.6
--- pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc:1.5 Sun Feb 5 09:05:29 2023
+++ pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_message__pump__libevent.cc Tue Oct 1 15:01:28 2024
@@ -1,6 +1,8 @@
-$NetBSD: patch-ipc_chromium_src_base_message__pump__libevent.cc,v 1.5 2023/02/05 09:05:29 he Exp $
+$NetBSD: patch-ipc_chromium_src_base_message__pump__libevent.cc,v 1.6 2024/10/01 15:01:28 ryoon Exp $
---- ipc/chromium/src/base/message_pump_libevent.cc.orig 2020-08-28 21:32:41.000000000 +0000
+Allow older libevent
+
+--- ipc/chromium/src/base/message_pump_libevent.cc.orig 2022-06-16 21:32:07.000000000 +0000
+++ ipc/chromium/src/base/message_pump_libevent.cc
@@ -24,6 +24,7 @@
Index: pkgsrc/mail/thunderbird/patches/patch-config_gcc-stl-wrapper.template.h
diff -u pkgsrc/mail/thunderbird/patches/patch-config_gcc-stl-wrapper.template.h:1.3 pkgsrc/mail/thunderbird/patches/patch-config_gcc-stl-wrapper.template.h:1.4
--- pkgsrc/mail/thunderbird/patches/patch-config_gcc-stl-wrapper.template.h:1.3 Sun Feb 5 09:05:29 2023
+++ pkgsrc/mail/thunderbird/patches/patch-config_gcc-stl-wrapper.template.h Tue Oct 1 15:01:28 2024
@@ -1,6 +1,6 @@
-$NetBSD: patch-config_gcc-stl-wrapper.template.h,v 1.3 2023/02/05 09:05:29 he Exp $
+$NetBSD: patch-config_gcc-stl-wrapper.template.h,v 1.4 2024/10/01 15:01:28 ryoon Exp $
---- config/gcc-stl-wrapper.template.h.orig 2020-08-28 21:32:29.000000000 +0000
+--- config/gcc-stl-wrapper.template.h.orig 2021-09-04 13:24:51.000000000 +0000
+++ config/gcc-stl-wrapper.template.h
@@ -32,8 +32,8 @@
// limits) and bug 1694575 (iosfwd).
Index: pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp
diff -u pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp:1.3
pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp:1.4
--- pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp:1.3 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp Tue Oct 1 15:01:28 2024
@@ -1,6 +1,8 @@
-$NetBSD: patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp,v 1.3 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-gfx_angle_checkout_src_common_third__party_smhasher_src_PMurHash.cpp,v 1.4 2024/10/01 15:01:28 ryoon Exp $
---- gfx/angle/checkout/src/common/third_party/smhasher/src/PMurHash.cpp.orig 2020-08-28 21:32:36.000000000 +0000
+Fix build where _LITTLE_ENDIAN is not an integer.
+
+--- gfx/angle/checkout/src/common/third_party/smhasher/src/PMurHash.cpp.orig 2019-07-06 01:48:31.000000000 +0000
+++ gfx/angle/checkout/src/common/third_party/smhasher/src/PMurHash.cpp
@@ -91,8 +91,8 @@ on big endian machines, or a byte-by-byt
/* gcc 'may' define __LITTLE_ENDIAN__ or __BIG_ENDIAN__ to 1 (Note the trailing __),
Index: pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h
diff -u pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h:1.3 pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h:1.4
--- pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h:1.3 Sun Feb 5 09:05:29 2023
+++ pkgsrc/mail/thunderbird/patches/patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h Tue Oct 1 15:01:28 2024
@@ -1,6 +1,9 @@
-$NetBSD: patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h,v 1.3 2023/02/05 09:05:29 he Exp $
+$NetBSD: patch-gfx_angle_checkout_src_compiler_translator_InfoSink.h,v 1.4 2024/10/01 15:01:28 ryoon Exp $
---- gfx/angle/checkout/src/compiler/translator/InfoSink.h.orig 2020-08-28 21:32:36.000000000 +0000
+* isinf/isnan in make.h is defined as macro. Use non-macro version
+ to fix build.
+
+--- gfx/angle/checkout/src/compiler/translator/InfoSink.h.orig 2021-10-28 18:03:11.000000000 +0000
+++ gfx/angle/checkout/src/compiler/translator/InfoSink.h
@@ -7,7 +7,7 @@
#ifndef COMPILER_TRANSLATOR_INFOSINK_H_
Index: pkgsrc/mail/thunderbird/patches/patch-toolkit_mozapps_installer_packager.mk
diff -u pkgsrc/mail/thunderbird/patches/patch-toolkit_mozapps_installer_packager.mk:1.3 pkgsrc/mail/thunderbird/patches/patch-toolkit_mozapps_installer_packager.mk:1.4
--- pkgsrc/mail/thunderbird/patches/patch-toolkit_mozapps_installer_packager.mk:1.3 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-toolkit_mozapps_installer_packager.mk Tue Oct 1 15:01:29 2024
@@ -1,8 +1,10 @@
-$NetBSD: patch-toolkit_mozapps_installer_packager.mk,v 1.3 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-toolkit_mozapps_installer_packager.mk,v 1.4 2024/10/01 15:01:29 ryoon Exp $
---- toolkit/mozapps/installer/packager.mk.orig 2020-08-28 21:33:59.000000000 +0000
+* Symbolic link to lib/firefox/firefox causes 'Couldn't load XPCOM.' error.
+
+--- toolkit/mozapps/installer/packager.mk.orig 2020-01-29 07:05:13.000000000 +0000
+++ toolkit/mozapps/installer/packager.mk
-@@ -156,7 +156,7 @@ endif
+@@ -145,7 +145,7 @@ endif
(cd $(DESTDIR)$(installdir) && tar -xf -)
$(NSINSTALL) -D $(DESTDIR)$(bindir)
$(RM) -f $(DESTDIR)$(bindir)/$(MOZ_APP_NAME)
Index: pkgsrc/mail/thunderbird/patches/patch-dom_base_nsAttrName.h
diff -u pkgsrc/mail/thunderbird/patches/patch-dom_base_nsAttrName.h:1.2 pkgsrc/mail/thunderbird/patches/patch-dom_base_nsAttrName.h:1.3
--- pkgsrc/mail/thunderbird/patches/patch-dom_base_nsAttrName.h:1.2 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-dom_base_nsAttrName.h Tue Oct 1 15:01:28 2024
@@ -1,6 +1,9 @@
-$NetBSD: patch-dom_base_nsAttrName.h,v 1.2 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-dom_base_nsAttrName.h,v 1.3 2024/10/01 15:01:28 ryoon Exp $
---- dom/base/nsAttrName.h.orig 2020-08-28 21:32:30.000000000 +0000
+cbindgen gets confused by NetBSD's types being macros too
+https://mail-index.netbsd.org/tech-pkg/2018/10/25/msg020395.html
+
+--- dom/base/nsAttrName.h.orig 2019-01-18 00:20:23.000000000 +0000
+++ dom/base/nsAttrName.h
@@ -16,6 +16,10 @@
#include "mozilla/dom/NodeInfo.h"
Index: pkgsrc/mail/thunderbird/patches/patch-media_libpng_pngpriv.h
diff -u pkgsrc/mail/thunderbird/patches/patch-media_libpng_pngpriv.h:1.2 pkgsrc/mail/thunderbird/patches/patch-media_libpng_pngpriv.h:1.3
--- pkgsrc/mail/thunderbird/patches/patch-media_libpng_pngpriv.h:1.2 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-media_libpng_pngpriv.h Tue Oct 1 15:01:28 2024
@@ -1,13 +1,15 @@
-$NetBSD: patch-media_libpng_pngpriv.h,v 1.2 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-media_libpng_pngpriv.h,v 1.3 2024/10/01 15:01:28 ryoon Exp $
---- media/libpng/pngpriv.h.orig 2020-08-28 21:33:11.000000000 +0000
+Fix _POSIX_SOURCE on SunOS.
+
+--- media/libpng/pngpriv.h.orig 2024-04-05 19:49:16.000000000 +0000
+++ media/libpng/pngpriv.h
@@ -36,8 +36,10 @@
* still required (as of 2011-05-02.)
*/
#ifndef _POSIX_SOURCE
+#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
- # define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */
+ # define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */
#endif
+#endif
Index: pkgsrc/mail/thunderbird/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c
diff -u pkgsrc/mail/thunderbird/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c:1.2 pkgsrc/mail/thunderbird/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c:1.3
--- pkgsrc/mail/thunderbird/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c:1.2 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c Tue Oct 1 15:01:28 2024
@@ -1,6 +1,14 @@
-$NetBSD: patch-nsprpub_pr_src_pthreads_ptsynch.c,v 1.2 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-nsprpub_pr_src_pthreads_ptsynch.c,v 1.3 2024/10/01 15:01:28 ryoon Exp $
---- nsprpub/pr/src/pthreads/ptsynch.c.orig 2020-08-28 21:33:00.000000000 +0000
+firefox: Workaround broken pthread_equal() usage
+
+Switch to an internal version of pthread_equal() without sanity checks.
+
+Problems detected on NetBSD 9.99.46.
+
+https://bugzilla.mozilla.org/show_bug.cgi?id=1718838
+
+--- nsprpub/pr/src/pthreads/ptsynch.c.orig 2020-01-17 21:34:42.000000000 +0000
+++ nsprpub/pr/src/pthreads/ptsynch.c
@@ -25,6 +25,13 @@ static pthread_condattr_t _pt_cvar_attr;
extern PTDebug pt_debug; /* this is shared between several modules */
Index: pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc
diff -u pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc:1.13 pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc:1.14
--- pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc:1.13 Thu Sep 3 15:26:22 2020
+++ pkgsrc/mail/thunderbird/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc Tue Oct 1 15:01:28 2024
@@ -1,15 +1,17 @@
-$NetBSD: patch-ipc_chromium_src_base_platform__thread__posix.cc,v 1.13 2020/09/03 15:26:22 ryoon Exp $
+$NetBSD: patch-ipc_chromium_src_base_platform__thread__posix.cc,v 1.14 2024/10/01 15:01:28 ryoon Exp $
---- ipc/chromium/src/base/platform_thread_posix.cc.orig 2020-08-28 21:32:41.000000000 +0000
+* Support NetBSD
+* Support Solaris (we can't rely on pthread_setname_np so ignore it).
+
+--- ipc/chromium/src/base/platform_thread_posix.cc.orig 2023-07-20 18:06:23.000000000 +0000
+++ ipc/chromium/src/base/platform_thread_posix.cc
@@ -12,7 +12,9 @@
- #if defined(OS_MACOSX)
+ #if defined(XP_DARWIN)
# include <mach/mach.h>
- #elif defined(OS_NETBSD)
--# include <lwp.h>
+ #elif defined(XP_NETBSD)
+_Pragma("GCC visibility push(default)")
-+#include <lwp.h>
+ # include <lwp.h>
+_Pragma("GCC visibility pop")
- #elif defined(OS_LINUX)
+ #elif defined(XP_LINUX)
# include <sys/syscall.h>
# include <sys/prctl.h>
Index: pkgsrc/mail/thunderbird/patches/patch-ipc_glue_GeckoChildProcessHost.cpp
diff -u pkgsrc/mail/thunderbird/patches/patch-ipc_glue_GeckoChildProcessHost.cpp:1.11 pkgsrc/mail/thunderbird/patches/patch-ipc_glue_GeckoChildProcessHost.cpp:1.12
--- pkgsrc/mail/thunderbird/patches/patch-ipc_glue_GeckoChildProcessHost.cpp:1.11 Sun Feb 5 09:05:29 2023
+++ pkgsrc/mail/thunderbird/patches/patch-ipc_glue_GeckoChildProcessHost.cpp Tue Oct 1 15:01:28 2024
@@ -1,6 +1,9 @@
-$NetBSD: patch-ipc_glue_GeckoChildProcessHost.cpp,v 1.11 2023/02/05 09:05:29 he Exp $
+$NetBSD: patch-ipc_glue_GeckoChildProcessHost.cpp,v 1.12 2024/10/01 15:01:28 ryoon Exp $
---- ipc/glue/GeckoChildProcessHost.cpp.orig 2020-08-28 21:32:41.000000000 +0000
+* Support Solaris
+* Fix NetBSD linking
+
+--- ipc/glue/GeckoChildProcessHost.cpp.orig 2023-08-17 21:21:29.000000000 +0000
+++ ipc/glue/GeckoChildProcessHost.cpp
@@ -4,7 +4,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -15,4 +18,4 @@ $NetBSD: patch-ipc_glue_GeckoChildProces
+#endif
#include "base/command_line.h"
- #include "base/process_util.h"
+ #include "base/process.h"
Added files:
Index: pkgsrc/mail/thunderbird/files/replace-moz.build.awk
diff -u /dev/null pkgsrc/mail/thunderbird/files/replace-moz.build.awk:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/files/replace-moz.build.awk Tue Oct 1 15:01:27 2024
@@ -0,0 +1,102 @@
+/^if CONFIG\[\"OS_TARGET\"\] == \"Android\":/{
+ flag = 1;
+ print $0;
+ next;
+}
+/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"]
== \"FreeBSD\":");
+ print $0;
+ next;
+}
+/^if CONFIG\[\"TARGET_CPU\"\] == \"arm\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"arm\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"arm\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ print $0;
+ next;
+}
+/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"arm\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"arm\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"arm\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ print $0;
+ next;
+}
+/^if CONFIG\[\"TARGET_CPU\"\] == \"aarch64\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"aarch64\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"aarch64\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ print $0;
+ next;
+}
+/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"aarch64\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"aarch64\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"aarch64\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ print $0;
+ next;
+}
+/^if CONFIG\[\"TARGET_CPU\"\] == \"x86\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"x86\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"x86\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ print $0;
+ next;
+}
+/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"x86\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"x86\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"x86\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ print $0;
+ next;
+}
+/^if CONFIG\[\"TARGET_CPU\"\] == \"x86_64\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"x86_64\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"x86_64\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ print $0;
+ next;
+}
+/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"x86_64\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"x86_64\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"x86_64\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ print $0;
+ next;
+}
+/^if CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"aarch64\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"aarch64\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"aarch64\" and
CONFIG\[\"MOZ_X11\"\] == \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+}
+/^if CONFIG\[\"TARGET_CPU\"\] == \"aarch64\" and CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"aarch64\" and CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"aarch64\" and
CONFIG\[\"MOZ_X11\"\] == \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+}
+/^if CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"arm\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"arm\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"arm\" and CONFIG\[\"MOZ_X11\"\]
== \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+}
+/^if CONFIG\[\"TARGET_CPU\"\] == \"arm\" and CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"arm\" and CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"arm\" and CONFIG\[\"MOZ_X11\"\]
== \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+}
+/^if CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"x86\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"x86\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"x86\" and CONFIG\[\"MOZ_X11\"\]
== \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+}
+/^if CONFIG\[\"TARGET_CPU\"\] == \"x86\" and CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"x86\" and CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"x86\" and CONFIG\[\"MOZ_X11\"\]
== \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+}
+/^if CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"x86_64\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\" and CONFIG\[\"TARGET_CPU\"\] == \"x86_64\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"x86_64\" and
CONFIG\[\"MOZ_X11\"\] == \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+}
+/^if CONFIG\[\"TARGET_CPU\"\] == \"x86_64\" and CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"x86_64\" and CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG\[\"TARGET_CPU\"\] == \"x86_64\" and
CONFIG\[\"MOZ_X11\"\] == \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+}
+{
+ if (flag != 1) {
+ sub(/^ DEFINES\[\"WEBRTC_LINUX\"\] = True/, " if CONFIG\[\"OS_TARGET\"\] == \"Linux\":\n DEFINES\[\"WEBRTC_LINUX\"\] = True\n else:\n DEFINES\[\"WEBRTC_BSD\"\]
= True");
+ sub(/^if not CONFIG\[\"MOZ_DEBUG\"\] and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if not CONFIG[\"MOZ_DEBUG\"] and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] ==
\"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ sub(/^if CONFIG\[\"MOZ_DEBUG\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"MOZ_DEBUG\"] == \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"aarch64\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"TARGET_CPU\"] == \"aarch64\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"x86\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"TARGET_CPU\"] == \"x86\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ sub(/^if CONFIG\[\"TARGET_CPU\"\] == \"x86_64\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"TARGET_CPU\"] == \"x86_64\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or
CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):");
+ }
+ print $0;
+}
Index: pkgsrc/mail/thunderbird/patches/patch-gfx_wr_swgl_build.rs
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-gfx_wr_swgl_build.rs:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-gfx_wr_swgl_build.rs Tue Oct 1 15:01:28 2024
@@ -0,0 +1,27 @@
+$NetBSD: patch-gfx_wr_swgl_build.rs,v 1.1 2024/10/01 15:01:28 ryoon Exp $
+
+Work around an internal compiler error on i386 when optimization is enabled:
+
+ cargo:warning=In file included from src/gl.cc:2637:0:
+ cargo:warning=src/rasterize.h: In function 'void draw_quad_spans(int, Point2D*, uint32_t, glsl::Interpolants*, Texture&, Texture&, const ClipRect&) [with P = unsigned char]':
+ cargo:warning=src/rasterize.h:782:20: internal compiler error: in convert_move, at expr.c:231
+ cargo:warning= static inline void draw_quad_spans(int nump, Point2D p[4], uint32_t z,
+ cargo:warning= ^~~~~~~~~~~~~~~
+
+
+--- gfx/wr/swgl/build.rs.orig 2021-08-23 14:57:16.000000000 +0000
++++ gfx/wr/swgl/build.rs
+@@ -196,6 +196,13 @@ fn main() {
+ }
+ }
+
++ // Work around a compiler bug
++ let target_triple = std::env::var("TARGET").expect("The TARGET environment variable must be set");
++ let target_name = target_triple.split('-').next().unwrap();
++ if ["i386", "i586", "i686"].contains(&target_name) {
++ build.flag("-O0");
++ }
++
+ build.file("src/gl.cc")
+ .define("_GLIBCXX_USE_CXX11_ABI", Some("0"))
+ .include(shader_dir)
Index: pkgsrc/mail/thunderbird/patches/patch-js-src-jit-arm64-vixl-MozCpu-vixl.cpp
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-js-src-jit-arm64-vixl-MozCpu-vixl.cpp:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-js-src-jit-arm64-vixl-MozCpu-vixl.cpp Tue Oct 1 15:01:28 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-js-src-jit-arm64-vixl-MozCpu-vixl.cpp,v 1.1 2024/10/01 15:01:28 ryoon Exp $
+
+Add NetBSD support.
+
+--- js/src/jit/arm64/vixl/MozCpu-vixl.cpp.orig 2024-02-13 14:50:57.324257195 +0000
++++ js/src/jit/arm64/vixl/MozCpu-vixl.cpp
+@@ -110,7 +110,7 @@ void CPU::EnsureIAndDCacheCoherency(void
+ FlushInstructionCache(GetCurrentProcess(), address, length);
+ #elif defined(XP_DARWIN)
+ sys_icache_invalidate(address, length);
+-#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__) || defined(__FreeBSD__))
++#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__) || defined(__FreeBSD__) || defined(__NetBSD__))
+ // Implement the cache synchronisation for all targets where AArch64 is the
+ // host, even if we're building the simulator for an AAarch64 host. This
+ // allows for cases where the user wants to simulate code as well as run it
Index: pkgsrc/mail/thunderbird/patches/patch-js_src_jit_FlushICache.cpp
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-js_src_jit_FlushICache.cpp:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-js_src_jit_FlushICache.cpp Tue Oct 1 15:01:28 2024
@@ -0,0 +1,34 @@
+$NetBSD: patch-js_src_jit_FlushICache.cpp,v 1.1 2024/10/01 15:01:28 ryoon Exp $
+
+NetBSD does not have the Linux-specific membarrier(2) syscall.
+
+--- js/src/jit/FlushICache.cpp.orig 2023-08-15 20:31:19.000000000 +0000
++++ js/src/jit/FlushICache.cpp
+@@ -31,12 +31,18 @@
+ # elif defined(__android__)
+ # include <sys/syscall.h>
+ # include <unistd.h>
++# elif defined(__NetBSD__)
++ // nothing
+ # else
+ # error "Missing platform-specific declarations for membarrier syscall!"
+ # endif // __linux__ / ANDROID
+
+ static int membarrier(int cmd, int flags) {
++#if defined(__NetBSD__)
++ return ENOSYS;
++#else
+ return syscall(__NR_membarrier, cmd, flags);
++#endif
+ }
+
+ // These definitions come from the Linux kernel source, for kernels before 4.16
+@@ -92,6 +98,8 @@ bool CanFlushExecutionContextForAllThrea
+
+ computed = true;
+ return kernelHasMembarrier;
++# elif defined(__NetBSD__)
++ return false;
+ # else
+ // On other platforms, we assume that the syscall for flushing the icache
+ // will flush the execution context for other cores.
Index: pkgsrc/mail/thunderbird/patches/patch-js_src_old-configure.in
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-js_src_old-configure.in:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-js_src_old-configure.in Tue Oct 1 15:01:28 2024
@@ -0,0 +1,13 @@
+$NetBSD: patch-js_src_old-configure.in,v 1.1 2024/10/01 15:01:28 ryoon Exp $
+
+--- js/src/old-configure.in.orig 2024-07-13 07:59:30.318615331 +0000
++++ js/src/old-configure.in
+@@ -257,7 +257,7 @@ case "$target" in
+
+ *-android*|*-linuxandroid*)
+ MOZ_OPTIMIZE_FLAGS="-O3"
+- if test "$CC_TYPE" == gcc ; then
++ if test "$CC_TYPE" = gcc ; then
+ MOZ_OPTIMIZE_FLAGS="-fno-reorder-functions $MOZ_OPTIMIZE_FLAGS"
+ fi
+ ;;
Index: pkgsrc/mail/thunderbird/patches/patch-modules_fdlibm_src_math__private.h
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-modules_fdlibm_src_math__private.h:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-modules_fdlibm_src_math__private.h Tue Oct 1 15:01:28 2024
@@ -0,0 +1,20 @@
+$NetBSD: patch-modules_fdlibm_src_math__private.h,v 1.1 2024/10/01 15:01:28 ryoon Exp $
+
+* Fix PR pkg/56457, build failure on NetBSD/i386.
+ Do not use FreeBSD-specific definition.
+
+--- modules/fdlibm/src/math_private.h.orig 2022-11-03 21:19:39.000000000 +0000
++++ modules/fdlibm/src/math_private.h
+@@ -30,9 +30,9 @@
+ * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
+ */
+
+-typedef double __double_t;
+-typedef __double_t double_t;
+-typedef float __float_t;
++#include <math.h>
++typedef double_t __double_t;
++typedef float_t __float_t;
+
+ /*
+ * The original fdlibm code used statements like:
Index: pkgsrc/mail/thunderbird/patches/patch-netwerk_protocol_http_nsHttpHandler.cpp
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-netwerk_protocol_http_nsHttpHandler.cpp:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-netwerk_protocol_http_nsHttpHandler.cpp Tue Oct 1 15:01:28 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-netwerk_protocol_http_nsHttpHandler.cpp,v 1.1 2024/10/01 15:01:28 ryoon Exp $
+
+* Do not freeze user-agent string as Linux under NetBSD.
+
+--- netwerk/protocol/http/nsHttpHandler.cpp.orig 2024-03-12 14:30:47.266423256 +0000
++++ netwerk/protocol/http/nsHttpHandler.cpp
+@@ -903,6 +903,8 @@ void nsHttpHandler::InitUserAgentCompone
+ if (mozilla::StaticPrefs::network_http_useragent_freezeCpu()) {
+ # ifdef ANDROID
+ mOscpu.AssignLiteral("Linux armv81");
++# elif defined(__NetBSD__)
++ mOscpu.AssignLiteral("NetBSD x86_64");
+ # else
+ mOscpu.AssignLiteral("Linux x86_64");
+ # endif
Index: pkgsrc/mail/thunderbird/patches/patch-third__party_js_cfworker_build.sh
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-third__party_js_cfworker_build.sh:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-third__party_js_cfworker_build.sh Tue Oct 1 15:01:29 2024
@@ -0,0 +1,20 @@
+$NetBSD: patch-third__party_js_cfworker_build.sh,v 1.1 2024/10/01 15:01:29 ryoon Exp $
+
+shell portability
+
+--- third_party/js/cfworker/build.sh.orig 2022-04-28 22:03:47.000000000 +0000
++++ third_party/js/cfworker/build.sh
+@@ -4,9 +4,10 @@ set -euo pipefail
+ # Path to mach relative to /third_party/js/cfworker
+ MACH=$(realpath "../../../mach")
+
+-if [[ $(uname -a) == *MSYS* ]]; then
+- MACH="python ${MACH}"
+-fi
++# uname -a is not a good idea here. Someone could have MSYS in the hostname.
++#if uname -a | grep MSYS > /dev/null; then
++# MACH="python ${MACH}"
++#fi
+
+ NODE="${MACH} node"
+ NPM="${MACH} npm"
Index: pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_desktop__capture_desktop__capture__gn_moz.build
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_desktop__capture_desktop__capture__gn_moz.build:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_desktop__capture_desktop__capture__gn_moz.build Tue Oct 1 15:01:29 2024
@@ -0,0 +1,45 @@
+$NetBSD: patch-third__party_libwebrtc_modules_desktop__capture_desktop__capture__gn_moz.build,v 1.1 2024/10/01 15:01:29 ryoon Exp $
+
+* Disable Wayland desktop capture for non-Linux platforms.
+ Fix segfault under X11.
+
+--- third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build.orig 2024-03-11 10:11:56.287869888 +0000
++++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
+@@ -392,7 +392,7 @@ if CONFIG["MOZ_DEBUG"] == "1" and CONFIG
+
+ DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
+
+-if CONFIG["TARGET_CPU"] == "aarch64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"):
++if CONFIG["TARGET_CPU"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
+
+ DEFINES["WEBRTC_USE_PIPEWIRE"] = True
+ DEFINES["_GNU_SOURCE"] = True
+@@ -449,7 +449,7 @@ if CONFIG["OS_TARGET"] == "Linux" and CO
+ "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_window_property.cc"
+ ]
+
+-if CONFIG["TARGET_CPU"] == "x86" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"):
++if CONFIG["TARGET_CPU"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
+
+ CXXFLAGS += [
+ "-msse2"
+@@ -482,7 +482,7 @@ if CONFIG["TARGET_CPU"] == "x86" and (CO
+ "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc"
+ ]
+
+-if CONFIG["TARGET_CPU"] == "x86_64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"):
++if CONFIG["TARGET_CPU"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
+
+ DEFINES["WEBRTC_USE_PIPEWIRE"] = True
+ DEFINES["_GNU_SOURCE"] = True
+@@ -628,6 +628,10 @@ if CONFIG["TARGET_CPU"] == "x86" and CON
+ DEFINES["USE_X11"] = "1"
+ DEFINES["WEBRTC_USE_X11"] = True
+
++ CXXFLAGS += [
++ "-msse2"
++ ]
++
+ OS_LIBS += [
+ "X11",
+ "Xcomposite",
Index: pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc Tue Oct 1 15:01:29 2024
@@ -0,0 +1,21 @@
+$NetBSD: patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc,v 1.1 2024/10/01 15:01:29 ryoon Exp $
+
+--- third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc.orig 2023-03-30 21:16:09.000000000 +0000
++++ third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc
+@@ -10,12 +10,16 @@
+
+ #include "modules/desktop_capture/linux/wayland/egl_dmabuf.h"
+
++#if defined(__linux__)
+ #include <asm/ioctl.h>
++#endif
+ #include <dlfcn.h>
+ #include <fcntl.h>
+ #include <gdk/gdk.h>
+ #include <libdrm/drm_fourcc.h>
++#if defined(__linux__)
+ #include <linux/types.h>
++#endif
+ #include <spa/param/video/format-utils.h>
+ #include <unistd.h>
+ #include <xf86drm.h>
Index: pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc Tue Oct 1 15:01:29 2024
@@ -0,0 +1,23 @@
+$NetBSD: patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc,v 1.1 2024/10/01 15:01:29 ryoon Exp $
+
+* Fix build under NetBSD 9 and older.
+ The older NetBSD's sys/videoio.h does not have v4l2_capability.device_caps.
+
+--- third_party/libwebrtc/modules/video_capture/linux/video_capture_v4l2.cc.orig 2022-10-06 21:19:29.000000000 +0000
++++ third_party/libwebrtc/modules/video_capture/linux/video_capture_v4l2.cc
+@@ -77,6 +77,7 @@ int32_t VideoCaptureModuleV4L2::Init(con
+ if ((fd = open(device, O_RDONLY)) != -1) {
+ // query device capabilities
+ struct v4l2_capability cap;
++#if defined(VIDIOC_QUERYCAP)
+ if (ioctl(fd, VIDIOC_QUERYCAP, &cap) == 0) {
+ if (cap.bus_info[0] != 0) {
+ if (strncmp((const char*)cap.bus_info,
+@@ -89,6 +90,7 @@ int32_t VideoCaptureModuleV4L2::Init(con
+ }
+ }
+ }
++#endif
+ close(fd); // close since this is not the matching device
+ }
+ }
Index: pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc Tue Oct 1 15:01:29 2024
@@ -0,0 +1,13 @@
+$NetBSD: patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc,v 1.1 2024/10/01 15:01:29 ryoon Exp $
+
+--- third_party/libwebrtc/rtc_base/physical_socket_server.cc.orig 2024-07-03 20:25:45.412396416 +0000
++++ third_party/libwebrtc/rtc_base/physical_socket_server.cc
+@@ -770,7 +770,7 @@ int PhysicalSocket::TranslateOption(Opti
+ return -1;
+ #endif
+ case OPT_RECV_ECN:
+-#if defined(WEBRTC_POSIX)
++#if defined(WEBRTC_POSIX) && defined(IP_RECVTOS)
+ if (family_ == AF_INET6) {
+ *slevel = IPPROTO_IPV6;
+ *sopt = IPV6_RECVTCLASS;
Index: pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc:1.1
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc Tue Oct 1 15:01:29 2024
@@ -0,0 +1,25 @@
+$NetBSD: patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc,v 1.1 2024/10/01 15:01:29 ryoon Exp $
+
+* Fix build under NetBSD at least.
+
+--- third_party/libwebrtc/system_wrappers/source/cpu_features_linux.cc.orig 2022-01-13 19:26:15.000000000 +0000
++++ third_party/libwebrtc/system_wrappers/source/cpu_features_linux.cc
+@@ -8,7 +8,9 @@
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
++#if !defined(__NetBSD__)
+ #include <features.h>
++#endif
+ #include <stdlib.h>
+ #include <string.h>
+
+@@ -30,7 +32,7 @@
+ #include "rtc_base/system/arch.h"
+ #include "system_wrappers/include/cpu_features_wrapper.h"
+
+-#if defined(WEBRTC_ARCH_ARM_FAMILY)
++#if defined(WEBRTC_ARCH_ARM_FAMILY) && defined(__linux__)
+ #include <asm/hwcap.h>
+
+ namespace webrtc {
Index: pkgsrc/mail/thunderbird/patches/patch-xpcom_reflect_xptcall_md_unix_moz.build
diff -u /dev/null pkgsrc/mail/thunderbird/patches/patch-xpcom_reflect_xptcall_md_unix_moz.build:1.4
--- /dev/null Tue Oct 1 15:01:30 2024
+++ pkgsrc/mail/thunderbird/patches/patch-xpcom_reflect_xptcall_md_unix_moz.build Tue Oct 1 15:01:30 2024
@@ -0,0 +1,17 @@
+$NetBSD: patch-xpcom_reflect_xptcall_md_unix_moz.build,v 1.4 2024/10/01 15:01:30 ryoon Exp $
+
+Make NetBSD/sparc64 use the same xptcall bindings as all other sparc64 ports
+
+https://bugzilla.mozilla.org/show_bug.cgi?id=1505360
+
+--- xpcom/reflect/xptcall/md/unix/moz.build.orig 2024-01-12 13:20:20.000000000 +0000
++++ xpcom/reflect/xptcall/md/unix/moz.build
+@@ -221,7 +221,7 @@ if CONFIG["OS_ARCH"] == "OpenBSD" and CO
+ ]
+
+ if (
+- CONFIG["OS_ARCH"] in ("OpenBSD", "FreeBSD", "Linux", "SunOS")
++ CONFIG["OS_ARCH"] in ("OpenBSD", "FreeBSD", "Linux", "SunOS", "NetBSD")
+ and CONFIG["TARGET_CPU"] == "sparc64"
+ ):
+ SOURCES += [
Home |
Main Index |
Thread Index |
Old Index