pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
librewolf: forgot the new patches...
Module Name: pkgsrc-wip
Committed By: Kevin Bloom <kevin.bloom%posteo.net@localhost>
Pushed By: nuclearkev
Date: Wed Jul 30 09:16:09 2025 +0000
Changeset: bccab273a1295e7d166b2d7c62fd29b3c5ef36be
Added Files:
librewolf/patches/patch-gfx_ots_src_name.cc
librewolf/patches/patch-gfx_skia_skia_src_sksl_codegen_SkSLSPIRVCodeGenerator.cpp
librewolf/patches/patch-js_src_editline_editline.c
librewolf/patches/patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc
librewolf/patches/patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc
librewolf/patches/patch-third__party_libwebrtc_rtc__base_memory__usage.cc
librewolf/patches/patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc
librewolf/patches/patch-third__party_wasm2c_src_c-writer.cc
Log Message:
librewolf: forgot the new patches...
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bccab273a1295e7d166b2d7c62fd29b3c5ef36be
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
librewolf/patches/patch-gfx_ots_src_name.cc | 13 +++++++++
...kia_src_sksl_codegen_SkSLSPIRVCodeGenerator.cpp | 13 +++++++++
librewolf/patches/patch-js_src_editline_editline.c | 31 ++++++++++++++++++++
...tc_modules_audio__device_audio__device__impl.cc | 34 ++++++++++++++++++++++
...dules_video__capture_video__capture__options.cc | 13 +++++++++
...ird__party_libwebrtc_rtc__base_memory__usage.cc | 22 ++++++++++++++
..._libwebrtc_rtc__base_platform__thread__types.cc | 29 ++++++++++++++++++
.../patch-third__party_wasm2c_src_c-writer.cc | 13 +++++++++
8 files changed, 168 insertions(+)
diffs:
diff --git a/librewolf/patches/patch-gfx_ots_src_name.cc b/librewolf/patches/patch-gfx_ots_src_name.cc
new file mode 100644
index 0000000000..4c4f650798
--- /dev/null
+++ b/librewolf/patches/patch-gfx_ots_src_name.cc
@@ -0,0 +1,13 @@
+$NetBSD: patch-gfx_ots_src_name.cc,v 1.1 2025/07/26 14:12:54 ryoon Exp $
+
+--- gfx/ots/src/name.cc.orig 2025-07-26 13:25:22.747360576 +0000
++++ gfx/ots/src/name.cc
+@@ -16,7 +16,7 @@ namespace {
+ // We disallow characters outside the URI spec "unreserved characters"
+ // set; any chars outside this set will be replaced by underscore.
+ bool AllowedInPsName(char c) {
+- return isalnum(c) || std::strchr("-._~", c);
++ return isalnum((unsigned char)c) || std::strchr("-._~", c);
+ }
+
+ bool SanitizePsNameAscii(std::string& name) {
diff --git a/librewolf/patches/patch-gfx_skia_skia_src_sksl_codegen_SkSLSPIRVCodeGenerator.cpp b/librewolf/patches/patch-gfx_skia_skia_src_sksl_codegen_SkSLSPIRVCodeGenerator.cpp
new file mode 100644
index 0000000000..a48e5579ef
--- /dev/null
+++ b/librewolf/patches/patch-gfx_skia_skia_src_sksl_codegen_SkSLSPIRVCodeGenerator.cpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-gfx_skia_skia_src_sksl_codegen_SkSLSPIRVCodeGenerator.cpp,v 1.1 2025/07/26 14:12:54 ryoon Exp $
+
+--- gfx/skia/skia/src/sksl/codegen/SkSLSPIRVCodeGenerator.cpp.orig 2025-07-26 13:25:51.000473818 +0000
++++ gfx/skia/skia/src/sksl/codegen/SkSLSPIRVCodeGenerator.cpp
+@@ -4405,7 +4405,7 @@ void SPIRVCodeGenerator::writeFunctionSt
+ f, fSpecializationInfo, fActiveSpecializationIndex,
+ [&](int, const Variable*, const Expression* expr) {
+ std::string name = expr->description();
+- std::replace_if(name.begin(), name.end(), [](char c) { return !isalnum(c); }, '_');
++ std::replace_if(name.begin(), name.end(), [](char c) { return !isalnum(i(unsigned char)c); }, '_');
+
+ mangledName += "_" + name;
+ });
diff --git a/librewolf/patches/patch-js_src_editline_editline.c b/librewolf/patches/patch-js_src_editline_editline.c
new file mode 100644
index 0000000000..091cc2e901
--- /dev/null
+++ b/librewolf/patches/patch-js_src_editline_editline.c
@@ -0,0 +1,31 @@
+$NetBSD: patch-js_src_editline_editline.c,v 1.1 2025/07/26 14:12:54 ryoon Exp $
+
+--- js/src/editline/editline.c.orig 2025-07-26 13:19:29.740302059 +0000
++++ js/src/editline/editline.c
+@@ -337,11 +337,11 @@ do_forward(STATUS move)
+ i = 0;
+ do {
+ p = &Line[Point];
+- for ( ; Point < End && (*p == ' ' || !isalnum(*p)); Point++, p++)
++ for ( ; Point < End && (*p == ' ' || !isalnum((unsigned char)(*p))); Point++, p++)
+ if (move == CSmove)
+ right(CSstay);
+
+- for (; Point < End && isalnum(*p); Point++, p++)
++ for (; Point < End && isalnum((unsigned char)(*p)); Point++, p++)
+ if (move == CSmove)
+ right(CSstay);
+
+@@ -1166,10 +1166,10 @@ bk_word()
+
+ i = 0;
+ do {
+- for (p = &Line[Point]; p > Line && !isalnum(p[-1]); p--)
++ for (p = &Line[Point]; p > Line && !isalnum((unsigned char)(p[-1])); p--)
+ left(CSmove);
+
+- for (; p > Line && p[-1] != ' ' && isalnum(p[-1]); p--)
++ for (; p > Line && p[-1] != ' ' && isalnum((unsigned char)(p[-1])); p--)
+ left(CSmove);
+
+ if (Point == 0)
diff --git a/librewolf/patches/patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc b/librewolf/patches/patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc
new file mode 100644
index 0000000000..6407df2239
--- /dev/null
+++ b/librewolf/patches/patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc
@@ -0,0 +1,34 @@
+$NetBSD: patch-third__party_libwebrtc_modules_audio__device_audio__device__impl.cc,v 1.3 2025/07/26 14:12:54 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
diff --git a/librewolf/patches/patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc b/librewolf/patches/patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc
new file mode 100644
index 0000000000..3ff9837871
--- /dev/null
+++ b/librewolf/patches/patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc
@@ -0,0 +1,13 @@
+$NetBSD: patch-third__party_libwebrtc_modules_video__capture_video__capture__options.cc,v 1.3 2025/07/26 14:12:54 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
diff --git a/librewolf/patches/patch-third__party_libwebrtc_rtc__base_memory__usage.cc b/librewolf/patches/patch-third__party_libwebrtc_rtc__base_memory__usage.cc
new file mode 100644
index 0000000000..33ea10cd71
--- /dev/null
+++ b/librewolf/patches/patch-third__party_libwebrtc_rtc__base_memory__usage.cc
@@ -0,0 +1,22 @@
+$NetBSD: patch-third__party_libwebrtc_rtc__base_memory__usage.cc,v 1.3 2025/07/26 14:12:54 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";
diff --git a/librewolf/patches/patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc b/librewolf/patches/patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc
new file mode 100644
index 0000000000..69ef8b0d7a
--- /dev/null
+++ b/librewolf/patches/patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc
@@ -0,0 +1,29 @@
+$NetBSD: patch-third__party_libwebrtc_rtc__base_platform__thread__types.cc,v 1.3 2025/07/26 14:12:54 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));
diff --git a/librewolf/patches/patch-third__party_wasm2c_src_c-writer.cc b/librewolf/patches/patch-third__party_wasm2c_src_c-writer.cc
new file mode 100644
index 0000000000..55ccbf010f
--- /dev/null
+++ b/librewolf/patches/patch-third__party_wasm2c_src_c-writer.cc
@@ -0,0 +1,13 @@
+$NetBSD: patch-third__party_wasm2c_src_c-writer.cc,v 1.1 2025/07/26 14:12:54 ryoon Exp $
+
+--- third_party/wasm2c/src/c-writer.cc.orig 2025-07-26 13:24:19.226278807 +0000
++++ third_party/wasm2c/src/c-writer.cc
+@@ -1490,7 +1490,7 @@ void CWriter::WriteInitExprTerminal(cons
+ std::string CWriter::GenerateHeaderGuard() const {
+ std::string result;
+ for (char c : header_name_) {
+- if (isalnum(c) || c == '_') {
++ if (isalnum((unsigned char)c) || c == '_') {
+ result += toupper(c);
+ } else {
+ result += '_';
Home |
Main Index |
Thread Index |
Old Index