pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/firefox
Module Name: pkgsrc
Committed By: ryoon
Date: Tue Jul 15 13:58:05 UTC 2025
Modified Files:
pkgsrc/www/firefox: Makefile distinfo
pkgsrc/www/firefox/files: node-wrapper.sh replace-moz.build.awk
pkgsrc/www/firefox/patches:
patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc
patch-third__party_sqlite3_ext_moz.build
Added Files:
pkgsrc/www/firefox/patches:
patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc
patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc
patch-third__party_libwebrtc_rtc__base_memory__usage.cc
patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc
Log Message:
www/firefox: Update to 139.0.4
* Try to add some NetBSD-specific changes (incompleted).
Changelog:
139.0.4:
Fixed
* Fixed Firefox freezing when switching between apps or opening certain
panels within the browser. (Bug 1969253 & Bug 1969346)
* Fixed difficult selection of drop-down menu options in the Firefox
preferences page when selected via the in-page search. (Bug 1968949)
* Fixed various selection issues when triple-clicking text in some
situations. (Bug 1969100 & Bug 1969432)
* Fixed an incorrect filename being used when setting an image as the desktop
wallpaper on Windows. (Bug 1969793)
* Various security fixes.
Security fixes:
Mozilla Foundation Security Advisory 2025-47
#CVE-2025-49709: Memory corruption in canvas surfaces
#CVE-2025-49710: Integer overflow in OrderedHashTable
139.0.1:
Fixed
* Fixed graphics corruption with certain NVIDIA graphics adapters and
multiple monitors running at mixed refresh rates after updating to Firefox
139. (Bug 1968876)
139.0:
New
* By popular request, Full-Page Translations are now available within Firefox
extension pages that start with the moz-extension:// URL scheme.
* The New Tab custom wallpaper (and colors) option is now available! Your own
image can be uploaded as your New Tab wallpaper or any custom color can be
selected - from the brightest pink to dark gray. This feature will be
rolling out gradually to new users and can also be enabled immediately via
Firefox Labs. Additionally, new Wallpaper images and a new Celestial
category have also been added.
* Link Previews is currently available as an experimental feature which can
be enabled via Firefox Labs in the Firefox settings. After enabling, use
the Alt+Shift keyboard shortcut when hovering over a link to see the
previews in action!
* Address autofill has now been enabled for users in Australia and India.
Fixed
* PNG images with transparency now keep their transparency when pasted into
Firefox.
* The upload performance of HTTP/3 has been significantly improved,
particularly on resumed connections (QUIC 0-RTT) and high-bandwidth and
high-delay connections.
* Various security fixes.
Changed
* Due to recent changes in how Chrome encrypts user data on Windows, the
Firefox migration wizard can no longer directly import payment methods or
passwords from Chrome. However, users can still export passwords from
Chrome to a CSV file and then import them into Firefox using the migration
wizard or the password manager.
* The Review Checker feature is shutting down and will no longer be available
after June 10, 2025.
Mozilla Foundation Security Advisory 2025-42
#CVE-2025-5283: Double-free in libvpx encoder
#CVE-2025-5263: Error handling for script execution was incorrectly isolated
from web content
#CVE-2025-5264: Potential local code execution in “Copy as cURL” command
#CVE-2025-5265: Potential local code execution in “Copy as cURL” command
#CVE-2025-5266: Script element events leaked cross-origin resource status
#CVE-2025-5271: Devtools' preview ignored CSP headers
#CVE-2025-5267: Clickjacking vulnerability could have led to leaking saved
payment card details
#CVE-2025-5268: Memory safety bugs fixed in Firefox 139, Thunderbird 139,
Firefox ESR 128.11, and Thunderbird 128.11
#CVE-2025-5272: Memory safety bugs fixed in Firefox 139 and Thunderbird 139
To generate a diff of this commit:
cvs rdiff -u -r1.635 -r1.636 pkgsrc/www/firefox/Makefile
cvs rdiff -u -r1.557 -r1.558 pkgsrc/www/firefox/distinfo
cvs rdiff -u -r1.29 -r1.30 pkgsrc/www/firefox/files/node-wrapper.sh
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/firefox/files/replace-moz.build.awk
cvs rdiff -u -r0 -r1.1 \
pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc \
pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc \
pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_rtc__base_memory__usage.cc \
pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc
cvs rdiff -u -r1.3 -r1.4 \
pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/www/firefox/patches/patch-third__party_sqlite3_ext_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/www/firefox/Makefile
diff -u pkgsrc/www/firefox/Makefile:1.635 pkgsrc/www/firefox/Makefile:1.636
--- pkgsrc/www/firefox/Makefile:1.635 Tue May 20 15:08:58 2025
+++ pkgsrc/www/firefox/Makefile Tue Jul 15 13:58:05 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.635 2025/05/20 15:08:58 ryoon Exp $
+# $NetBSD: Makefile,v 1.636 2025/07/15 13:58:05 ryoon Exp $
FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
-MOZ_BRANCH= 138.0
+MOZ_BRANCH= 139.0
MOZ_BRANCH_MINOR= .4
DISTNAME= firefox-${FIREFOX_VER}.source
@@ -11,7 +11,7 @@ MASTER_SITES+= ${MASTER_SITE_MOZILLA:=fi
MASTER_SITES+= ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/}
EXTRACT_SUFX= .tar.xz
-NODEJSKIT= nodejs-output-138.0.1.tgz
+NODEJSKIT= nodejs-output-139.0.tgz
DISTFILES= ${DEFAULT_DISTFILES} ${NODEJSKIT}
SITES.${NODEJSKIT}= ${MASTER_SITE_LOCAL}
Index: pkgsrc/www/firefox/distinfo
diff -u pkgsrc/www/firefox/distinfo:1.557 pkgsrc/www/firefox/distinfo:1.558
--- pkgsrc/www/firefox/distinfo:1.557 Tue May 20 15:08:58 2025
+++ pkgsrc/www/firefox/distinfo Tue Jul 15 13:58:05 2025
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.557 2025/05/20 15:08:58 ryoon Exp $
+$NetBSD: distinfo,v 1.558 2025/07/15 13:58:05 ryoon Exp $
-BLAKE2s (firefox-138.0.4.source.tar.xz) = 227d7778a96f75e223c18bec815b424b5ee176b19bd036c14c8374edc79dd4f6
-SHA512 (firefox-138.0.4.source.tar.xz) = 64d80456da8df27d7eeed7eb20c35fcf213bc948eb48739b6101e2c476ea9a9133da928477a79683c96c160f8d53bed52be487f01a8d29e38d39071f12676806
-Size (firefox-138.0.4.source.tar.xz) = 623414956 bytes
-BLAKE2s (nodejs-output-138.0.1.tgz) = cc0d5b7303d19718144296e8d388c375906c3716d99aa9a05e656d03ecfc1bc6
-SHA512 (nodejs-output-138.0.1.tgz) = 468966859f12b9648c13b7e552db242f02978ff8ca56a8ba6534ef444778ef4434c33d0ac7c809526364ee2d895abd1dcc839f04c4e5c5384f1a9045e81e8b4a
-Size (nodejs-output-138.0.1.tgz) = 257148 bytes
+BLAKE2s (firefox-139.0.4.source.tar.xz) = fd43e99072e9f199969b4d0527e58e472e8edcef785f52925f279d21784c29c6
+SHA512 (firefox-139.0.4.source.tar.xz) = fa5ae798b0cd485e0a56b0c57ed7f33e0d0ef921302dc0169eac91926194abe2070beb54239c81924f819a60b589f305f923970d753c07ba50acc36e1a492db4
+Size (firefox-139.0.4.source.tar.xz) = 644670560 bytes
+BLAKE2s (nodejs-output-139.0.tgz) = 8e09ba1884ac87b6755a31c5f62f1e5b2ba142689d8906e3f47ed29babcbcc50
+SHA512 (nodejs-output-139.0.tgz) = fe306729c6d706865df714e349c7a8747b57d0067a095753aee41a171394246a05efd4db716ab706ca61205983e62bfbd96c781c479ff762661df5b6c07da29c
+Size (nodejs-output-139.0.tgz) = 258868 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
@@ -32,14 +32,18 @@ SHA1 (patch-python_mozbuild_mozbuild_bac
SHA1 (patch-third__party_abseil-cpp_absl_debugging_internal_elf__mem__image.cc) = 2b5955027add79d1b8709667b0433b2d19fbd1bc
SHA1 (patch-third__party_abseil-cpp_absl_debugging_internal_vdso__support.cc) = f9c44d0d6fd952296f23c24f56053958b30d8e5c
SHA1 (patch-third__party_js_cfworker_build.sh) = 46cdf97b99cf01080f290ae8d9a33b5f869fc3e4
+SHA1 (patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc) = 47ba1a2b88b3fdfd16cd29da3eb1e4a218ecada8
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_device__info__v4l2.cc) = 8831d477f14fd4f8f735ff0c1a322cba8c70e277
SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc) = 8111952a107eb2cd665525ddd0e27c79eee3c1cd
+SHA1 (patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc) = e15f7e365ef6d57cd262f920f49c4d73f3a13305
+SHA1 (patch-third__party_libwebrtc_rtc__base_memory__usage.cc) = f8d926d400bf3df107127823eac27816f4b85644
SHA1 (patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc) = 6909c4da9e7b3785252e5bce9be0ff47ebb87e01
+SHA1 (patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc) = 8ae75100775037347008d168eedc151e0e993b0f
SHA1 (patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc) = b90e22b50879f7adcc1da3a993f52c0701b720f8
SHA1 (patch-third__party_python_dlmanager_check.py) = 69054522d8ced8cb47e65e5a8b1a87ed5ce6708e
-SHA1 (patch-third__party_sqlite3_ext_moz.build) = 2df374daa1c974b52db602613508e4fc965a7bcd
+SHA1 (patch-third__party_sqlite3_ext_moz.build) = 026483e9cdc61eda80b699978b1677e1b6d3ff6d
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) = e905e38ef1b88d764c695c019f15609350c1c43b
Index: pkgsrc/www/firefox/files/node-wrapper.sh
diff -u pkgsrc/www/firefox/files/node-wrapper.sh:1.29 pkgsrc/www/firefox/files/node-wrapper.sh:1.30
--- pkgsrc/www/firefox/files/node-wrapper.sh:1.29 Tue May 13 20:56:25 2025
+++ pkgsrc/www/firefox/files/node-wrapper.sh Tue Jul 15 13:58:05 2025
@@ -1,6 +1,6 @@
#! /bin/sh
-VERS=v23.11.0
+VERS=v24.1.0
if [ "$1" = "-v" ] || [ "$1" = "--version" ]; then
printf "${VERS}\n"
Index: pkgsrc/www/firefox/files/replace-moz.build.awk
diff -u pkgsrc/www/firefox/files/replace-moz.build.awk:1.4 pkgsrc/www/firefox/files/replace-moz.build.awk:1.5
--- pkgsrc/www/firefox/files/replace-moz.build.awk:1.4 Wed Jan 31 15:54:52 2024
+++ pkgsrc/www/firefox/files/replace-moz.build.awk Tue Jul 15 13:58:05 2025
@@ -89,6 +89,10 @@
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 CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{
+ flag = 0;
+ sub(/^if CONFIG\[\"MOZ_X11\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if 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");
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc
diff -u pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc:1.3
pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc:1.4
--- pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc:1.3 Sun Oct 15 07:40:10 2023
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc Tue Jul 15 13:58:05 2025
@@ -1,10 +1,50 @@
-$NetBSD: patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc,v 1.3 2023/10/15 07:40:10 ryoon Exp $
+$NetBSD: patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc,v 1.4 2025/07/15 13:58:05 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 2023-09-14 21:15:08.000000000 +0000
+--- third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc.orig 2025-05-17 19:55:48.000000000 +0000
+++ third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc
+@@ -52,14 +52,14 @@
+ #define V4L2_PIX_FMT_RGBA32 v4l2_fourcc('A', 'B', '2', '4')
+ #endif
+
+-#ifdef WEBRTC_LINUX
++#ifdef WEBRTC_LINUX || WEBRTC_BSD
+ #define EVENT_SIZE ( sizeof (struct inotify_event) )
+ #define BUF_LEN ( 1024 * ( EVENT_SIZE + 16 ) )
+ #endif
+
+ namespace webrtc {
+ namespace videocapturemodule {
+-#ifdef WEBRTC_LINUX
++#ifdef WEBRTC_LINUX || WEBRTC_BSD
+ void DeviceInfoV4l2::HandleEvent(inotify_event* event, int fd)
+ {
+ if (event->mask & IN_CREATE) {
+@@ -175,11 +175,11 @@ void DeviceInfoV4l2::InotifyProcess()
+ #endif
+
+ DeviceInfoV4l2::DeviceInfoV4l2() : DeviceInfoImpl()
+-#ifdef WEBRTC_LINUX
++#ifdef WEBRTC_LINUX || WEBRTC_BSD
+ , _isShutdown(false)
+ #endif
+ {
+-#ifdef WEBRTC_LINUX
++#ifdef WEBRTC_LINUX || WEBRTC_BSD
+ _inotifyEventThread = rtc::PlatformThread::SpawnJoinable(
+ [this] {
+ InotifyProcess();
+@@ -192,7 +192,7 @@ int32_t DeviceInfoV4l2::Init() {
+ }
+
+ DeviceInfoV4l2::~DeviceInfoV4l2() {
+-#ifdef WEBRTC_LINUX
++#ifdef WEBRTC_LINUX || WEBRTC_BSD
+ _isShutdown = true;
+
+ if (!_inotifyEventThread.empty()) {
@@ -211,11 +211,13 @@ uint32_t DeviceInfoV4l2::NumberOfDevices
for (int n = 0; n < 64; n++) {
snprintf(device, sizeof(device), "/dev/video%d", n);
@@ -19,7 +59,7 @@ $NetBSD: patch-third__party_libwebrtc_mo
close(fd);
count++;
-@@ -242,11 +244,13 @@ int32_t DeviceInfoV4l2::GetDeviceName(ui
+@@ -243,11 +245,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) {
@@ -33,7 +73,7 @@ $NetBSD: patch-third__party_libwebrtc_mo
if (count == deviceNumber) {
// Found the device
found = true;
-@@ -317,6 +321,7 @@ int32_t DeviceInfoV4l2::CreateCapability
+@@ -318,6 +322,7 @@ int32_t DeviceInfoV4l2::CreateCapability
if (fd == -1)
continue;
@@ -41,7 +81,7 @@ $NetBSD: patch-third__party_libwebrtc_mo
// query device capabilities
struct v4l2_capability cap;
if (ioctl(fd, VIDIOC_QUERYCAP, &cap) == 0) {
-@@ -341,6 +346,7 @@ int32_t DeviceInfoV4l2::CreateCapability
+@@ -342,6 +347,7 @@ int32_t DeviceInfoV4l2::CreateCapability
}
}
}
@@ -49,7 +89,7 @@ $NetBSD: patch-third__party_libwebrtc_mo
close(fd); // close since this is not the matching device
}
-@@ -386,11 +392,15 @@ bool DeviceInfoV4l2::IsDeviceNameMatches
+@@ -387,11 +393,15 @@ bool DeviceInfoV4l2::IsDeviceNameMatches
bool DeviceInfoV4l2::IsVideoCaptureDevice(struct v4l2_capability* cap)
{
Index: pkgsrc/www/firefox/patches/patch-third__party_sqlite3_ext_moz.build
diff -u pkgsrc/www/firefox/patches/patch-third__party_sqlite3_ext_moz.build:1.1 pkgsrc/www/firefox/patches/patch-third__party_sqlite3_ext_moz.build:1.2
--- pkgsrc/www/firefox/patches/patch-third__party_sqlite3_ext_moz.build:1.1 Mon Aug 12 14:03:32 2024
+++ pkgsrc/www/firefox/patches/patch-third__party_sqlite3_ext_moz.build Tue Jul 15 13:58:05 2025
@@ -1,9 +1,9 @@
-$NetBSD: patch-third__party_sqlite3_ext_moz.build,v 1.1 2024/08/12 14:03:32 ryoon Exp $
+$NetBSD: patch-third__party_sqlite3_ext_moz.build,v 1.2 2025/07/15 13:58:05 ryoon Exp $
---- third_party/sqlite3/ext/moz.build.orig 2024-08-06 01:06:04.545236415 +0000
+--- third_party/sqlite3/ext/moz.build.orig 2025-05-20 17:57:17.576392093 +0000
+++ third_party/sqlite3/ext/moz.build
-@@ -20,7 +20,7 @@ SOURCES += [
- "fts5.c",
+@@ -21,7 +21,7 @@ SOURCES += [
+ "sqlite-vec/sqlite-vec.c",
]
-if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "Android":
Added files:
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc:1.1
--- /dev/null Tue Jul 15 13:58:05 2025
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc Tue Jul 15 13:58:05 2025
@@ -0,0 +1,34 @@
+$NetBSD: patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc,v 1.1 2025/07/15 13:58:05 ryoon Exp $
+
+--- third_party/libwebrtc/modules/audio_device/audio_device_impl.cc.orig 2025-05-21 12:45:39.616635762 +0000
++++ third_party/libwebrtc/modules/audio_device/audio_device_impl.cc
+@@ -28,7 +28,7 @@
+ #include <stdlib.h>
+
+ #include "sdk/android/native_api/audio_device_module/audio_device_android.h"
+-#elif defined(WEBRTC_LINUX)
++#elif defined(WEBRTC_LINUX) || defined(WEBRTC_BSD)
+ #if defined(WEBRTC_ENABLE_LINUX_ALSA)
+ #include "modules/audio_device/linux/audio_device_alsa_linux.h"
+ #endif
+@@ -155,6 +155,11 @@ int32_t AudioDeviceModuleImpl::CheckPlat
+ #elif defined(WEBRTC_FUCHSIA)
+ platform = kPlatformFuchsia;
+ RTC_LOG(LS_INFO) << "current platform is Fuchsia";
++#elif defined(WEBRTC_BSD)
++# if defined(__NetBSD__)
++ platform = kPlatformNetBSD;
++ RTC_LOG(LS_INFO) << "current platform is NetBSD";
++# endif
+ #endif
+ if (platform == kPlatformNotSupported) {
+ RTC_LOG(LS_ERROR)
+@@ -207,7 +212,7 @@ int32_t AudioDeviceModuleImpl::CreatePla
+ // 'rtc_include_pulse_audio' build flag.
+ // TODO(bugs.webrtc.org/9127): improve support and make it more clear that
+ // PulseAudio is the default selection.
+-#if !defined(WEBRTC_ANDROID) && defined(WEBRTC_LINUX)
++#if !defined(WEBRTC_ANDROID) && (defined(WEBRTC_LINUX) || defined(WEBRTC_BSD))
+ #if !defined(WEBRTC_ENABLE_LINUX_PULSE)
+ // Build flag 'rtc_include_pulse_audio' is set to false. In this mode:
+ // - kPlatformDefaultAudio => ALSA, and
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc:1.1
--- /dev/null Tue Jul 15 13:58:05 2025
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc Tue Jul 15 13:58:05 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc,v 1.1 2025/07/15 13:58:05 ryoon Exp $
+
+--- third_party/libwebrtc/modules/video_capture/video_capture_options.cc.orig 2025-05-21 12:41:53.782245708 +0000
++++ third_party/libwebrtc/modules/video_capture/video_capture_options.cc
+@@ -37,7 +37,7 @@ void VideoCaptureOptions::Init(Callback*
+ return;
+ }
+ #endif
+-#if defined(WEBRTC_LINUX)
++#if defined(WEBRTC_LINUX) || defined(WEBRTC_BSD)
+ if (!allow_v4l2_)
+ callback->OnInitialized(Status::UNAVAILABLE);
+ else
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_rtc__base_memory__usage.cc
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_rtc__base_memory__usage.cc:1.1
--- /dev/null Tue Jul 15 13:58:05 2025
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_rtc__base_memory__usage.cc Tue Jul 15 13:58:05 2025
@@ -0,0 +1,22 @@
+$NetBSD: patch-third__party_libwebrtc_rtc__base_memory__usage.cc,v 1.1 2025/07/15 13:58:05 ryoon Exp $
+
+--- third_party/libwebrtc/rtc_base/memory_usage.cc.orig 2025-05-21 12:27:20.023110519 +0000
++++ third_party/libwebrtc/rtc_base/memory_usage.cc
+@@ -10,7 +10,7 @@
+
+ #include "rtc_base/memory_usage.h"
+
+-#if defined(WEBRTC_LINUX)
++#if defined(WEBRTC_LINUX) || defined(WEBRTC_BSD)
+ #include <unistd.h>
+
+ #include <cstdio>
+@@ -32,7 +32,7 @@
+ namespace rtc {
+
+ int64_t GetProcessResidentSizeBytes() {
+-#if defined(WEBRTC_LINUX)
++#if defined(WEBRTC_LINUX) || defined(WEBRTC_BSD)
+ FILE* file = fopen("/proc/self/statm", "r");
+ if (file == nullptr) {
+ RTC_LOG(LS_ERROR) << "Failed to open /proc/self/statm";
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc:1.1
--- /dev/null Tue Jul 15 13:58:05 2025
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc Tue Jul 15 13:58:05 2025
@@ -0,0 +1,29 @@
+$NetBSD: patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc,v 1.1 2025/07/15 13:58:05 ryoon Exp $
+
+--- third_party/libwebrtc/rtc_base/platform_thread_types.cc.orig 2025-05-21 12:30:11.564823191 +0000
++++ third_party/libwebrtc/rtc_base/platform_thread_types.cc
+@@ -71,7 +71,11 @@ bool IsThreadRefEqual(const PlatformThre
+ #if defined(WEBRTC_WIN) || defined(WEBRTC_FUCHSIA)
+ return a == b;
+ #elif defined(WEBRTC_POSIX)
++# if defined(__NetBSD__)
++ return a == b;
++# else
+ return pthread_equal(a, b);
++# endif
+ #endif
+ }
+
+@@ -118,6 +122,12 @@ void SetCurrentThreadName(const char* na
+ prctl(PR_SET_NAME, reinterpret_cast<unsigned long>(name)); // NOLINT
+ #elif defined(WEBRTC_MAC) || defined(WEBRTC_IOS)
+ pthread_setname_np(name);
++#elif defined(WEBRTC_BSD)
++# if defined(__NetBSD__)
++ pthread_setname_np(pthread_self(), "%s", const_cast<char *>(name));
++# else
++ pthread_setname_np(pthread_self(), name);
++# endif
+ #elif defined(WEBRTC_FUCHSIA)
+ zx_status_t status = zx_object_set_property(zx_thread_self(), ZX_PROP_NAME,
+ name, strlen(name));
Home |
Main Index |
Thread Index |
Old Index