summaryrefslogtreecommitdiff
path: root/multimedia/ringrtc/files
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ringrtc/files')
-rw-r--r--multimedia/ringrtc/files/patch-build_config_BUILD.gn2
-rw-r--r--multimedia/ringrtc/files/patch-build_config_BUILDCONFIG.gn8
-rw-r--r--multimedia/ringrtc/files/patch-build_config_clang_BUILD.gn21
-rw-r--r--multimedia/ringrtc/files/patch-build_config_compiler_BUILD.gn59
-rw-r--r--multimedia/ringrtc/files/patch-build_toolchain_gcc__toolchain.gni12
-rw-r--r--multimedia/ringrtc/files/patch-build_toolchain_toolchain.gni2
-rw-r--r--multimedia/ringrtc/files/patch-cargo-crates_neon_Cargo.toml10
-rw-r--r--multimedia/ringrtc/files/patch-cargo-crates_neon_src_lib.rs8
-rw-r--r--multimedia/ringrtc/files/patch-src_rust_src_lib.rs7
-rw-r--r--multimedia/ringrtc/files/patch-third__party_webrtc_rtc__base_network.cc5
10 files changed, 81 insertions, 53 deletions
diff --git a/multimedia/ringrtc/files/patch-build_config_BUILD.gn b/multimedia/ringrtc/files/patch-build_config_BUILD.gn
index 74d9f784d94c..ca0aa388f6b1 100644
--- a/multimedia/ringrtc/files/patch-build_config_BUILD.gn
+++ b/multimedia/ringrtc/files/patch-build_config_BUILD.gn
@@ -1,6 +1,6 @@
--- src/webrtc/src/build/config/BUILD.gn.orig 2023-08-17 07:33:31 UTC
+++ src/webrtc/src/build/config/BUILD.gn
-@@ -214,6 +214,10 @@ config("default_libs") {
+@@ -215,6 +215,10 @@ config("default_libs") {
# Targets should choose to explicitly link frameworks they require. Since
# linking can have run-time side effects, nothing should be listed here.
libs = []
diff --git a/multimedia/ringrtc/files/patch-build_config_BUILDCONFIG.gn b/multimedia/ringrtc/files/patch-build_config_BUILDCONFIG.gn
index 79473a536c3d..024c080d9390 100644
--- a/multimedia/ringrtc/files/patch-build_config_BUILDCONFIG.gn
+++ b/multimedia/ringrtc/files/patch-build_config_BUILDCONFIG.gn
@@ -10,7 +10,7 @@
(current_cpu != "s390x" && current_cpu != "s390" &&
current_cpu != "ppc64" && current_cpu != "ppc" &&
current_cpu != "mips" && current_cpu != "mips64" &&
-@@ -231,6 +232,10 @@ if (host_toolchain == "") {
+@@ -235,6 +236,10 @@ if (host_toolchain == "") {
host_toolchain = "//build/toolchain/aix:$host_cpu"
} else if (host_os == "zos") {
host_toolchain = "//build/toolchain/zos:$host_cpu"
@@ -21,7 +21,7 @@
} else {
assert(false, "Unsupported host_os: $host_os")
}
-@@ -274,6 +279,8 @@ if (target_os == "android") {
+@@ -279,6 +284,8 @@ if (target_os == "android") {
_default_toolchain = "//build/toolchain/aix:$target_cpu"
} else if (target_os == "zos") {
_default_toolchain = "//build/toolchain/zos:$target_cpu"
@@ -30,7 +30,7 @@
} else {
assert(false, "Unsupported target_os: $target_os")
}
-@@ -308,7 +315,11 @@ is_android = current_os == "android"
+@@ -313,7 +320,11 @@ is_android = current_os == "android"
is_chromeos = current_os == "chromeos"
is_fuchsia = current_os == "fuchsia"
is_ios = current_os == "ios"
@@ -42,4 +42,4 @@
+is_bsd = current_os == "openbsd" || current_os == "freebsd"
is_mac = current_os == "mac"
is_nacl = current_os == "nacl"
- is_win = current_os == "win" || current_os == "winuwp"
+ is_wasm = current_os == "emscripten"
diff --git a/multimedia/ringrtc/files/patch-build_config_clang_BUILD.gn b/multimedia/ringrtc/files/patch-build_config_clang_BUILD.gn
index f2dd7f101af1..5f81aa974ab7 100644
--- a/multimedia/ringrtc/files/patch-build_config_clang_BUILD.gn
+++ b/multimedia/ringrtc/files/patch-build_config_clang_BUILD.gn
@@ -1,11 +1,16 @@
--- src/webrtc/src/build/config/clang/BUILD.gn.orig 2024-07-30 11:12:21 UTC
+++ src/webrtc/src/build/config/clang/BUILD.gn
-@@ -224,7 +224,7 @@ clang_lib("compiler_builtins") {
- libname = "ios"
- }
- } else {
-- libname = "builtins"
-+ #libname = "builtins"
- }
- }
+@@ -252,7 +252,12 @@ template("clang_lib") {
+ # Adds a dependency on the Clang runtime library clang_rt.builtins.
+ clang_lib("compiler_builtins") {
+- if (is_mac) {
++ if (is_bsd) {
++ # Since there's no Rust in the toolchain, there's no concern that we'll use
++ # the Rust stdlib's intrinsics here.
++ #
++ # Don't define libname which makes this target do nothing.
++ } else if (is_mac) {
+ libname = "osx"
+ } else if (is_ios) {
+ if (target_platform == "iphoneos") {
diff --git a/multimedia/ringrtc/files/patch-build_config_compiler_BUILD.gn b/multimedia/ringrtc/files/patch-build_config_compiler_BUILD.gn
index 92fcd9a9cd56..3f7487004b34 100644
--- a/multimedia/ringrtc/files/patch-build_config_compiler_BUILD.gn
+++ b/multimedia/ringrtc/files/patch-build_config_compiler_BUILD.gn
@@ -1,6 +1,6 @@
--- src/webrtc/src/build/config/compiler/BUILD.gn.orig 2024-06-18 16:34:35 UTC
+++ src/webrtc/src/build/config/compiler/BUILD.gn
-@@ -198,7 +198,7 @@ declare_args() {
+@@ -197,7 +197,7 @@ declare_args() {
# This greatly reduces the size of debug builds, at the cost of
# debugging information which is required by some specialized
# debugging tools.
@@ -9,7 +9,7 @@
}
declare_args() {
-@@ -255,13 +255,16 @@ config("no_unresolved_symbols") {
+@@ -254,13 +254,16 @@ config("default_include_dirs") {
# Compiler instrumentation can introduce dependencies in DSOs to symbols in
# the executable they are loaded into, so they are unresolved at link-time.
config("no_unresolved_symbols") {
@@ -27,7 +27,7 @@
}
# compiler ---------------------------------------------------------------------
-@@ -519,6 +522,10 @@ config("compiler") {
+@@ -509,6 +512,10 @@ config("compiler") {
}
}
@@ -38,7 +38,7 @@
# Linux-specific compiler flags setup.
# ------------------------------------
if (use_icf && (!is_apple || use_lld)) {
-@@ -578,7 +585,7 @@ config("compiler") {
+@@ -569,7 +576,7 @@ config("compiler") {
ldflags += [ "-Wl,-z,keep-text-section-prefix" ]
}
@@ -47,7 +47,7 @@
cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]
if (save_reproducers_on_lld_crash && use_lld) {
ldflags += [
-@@ -1240,7 +1247,7 @@ config("compiler_cpu_abi") {
+@@ -1227,7 +1234,7 @@ config("compiler_cpu_abi") {
]
}
} else if (current_cpu == "arm") {
@@ -56,7 +56,7 @@
cflags += [ "--target=arm-linux-gnueabihf" ]
ldflags += [ "--target=arm-linux-gnueabihf" ]
}
-@@ -1255,7 +1262,7 @@ config("compiler_cpu_abi") {
+@@ -1242,7 +1249,7 @@ config("compiler_cpu_abi") {
}
} else if (current_cpu == "arm64") {
if (is_clang && !is_android && !is_nacl && !is_fuchsia &&
@@ -65,7 +65,7 @@
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
}
-@@ -1589,7 +1596,7 @@ config("compiler_deterministic") {
+@@ -1576,7 +1583,7 @@ config("compiler_deterministic") {
# different build directory like "out/feature_a" and "out/feature_b" if
# we build same files with same compile flag.
# Other paths are already given in relative, no need to normalize them.
@@ -74,38 +74,35 @@
# TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
cflags += [
"-Xclang",
-@@ -1647,7 +1654,7 @@ config("clang_revision") {
+@@ -1634,7 +1641,7 @@ config("compiler_deterministic") {
}
config("clang_revision") {
- if (is_clang && clang_base_path == default_clang_base_path &&
+ if (is_clang && !is_bsd && clang_base_path == default_clang_base_path &&
current_os != "zos") {
- update_args = [
- "--print-revision",
-@@ -1965,20 +1972,12 @@ config("default_warnings") {
- ]
- }
+ _perform_consistency_checks = current_toolchain == default_toolchain
+ if (llvm_force_head_revision) {
+@@ -1719,7 +1726,7 @@ config("clang_revision") {
+ # e.g. by setting in the the project's .gn file.
+ config("clang_warning_suppression") {
+ # Some build configs use older versions of clang that don't support WSMs
+- if (!is_nacl && default_toolchain != "//build/toolchain/cros:target" &&
++ if (!is_bsd && !is_nacl && default_toolchain != "//build/toolchain/cros:target" &&
+ !llvm_android_mainline && is_clang &&
+ clang_warning_suppression_file != "") {
+ from_build_root =
+@@ -2053,9 +2060,6 @@ config("default_warnings") {
-- cflags += [
-- # TODO(crbug.com/330524456): -Wcast-function-type is under -Wextra now.
-- "-Wno-cast-function-type",
--
-- # TODO(crbug.com/40284799): Fix and re-enable.
-- "-Wno-thread-safety-reference-return",
-- ]
+ # TODO(crbug.com/40284799): Fix and re-enable.
+ "-Wno-thread-safety-reference-return",
-
- cflags_cc += [
- # TODO(crbug.com/328490295): Fix and re-enable for C flags.
- "-Wenum-compare-conditional",
+- # TODO(crbug.com/376641662): Fix and re-enable.
+- "-Wno-nontrivial-memcall",
]
-- if (!is_nacl) {
-+ if (!is_nacl && !is_bsd) {
- cflags_cc += [
- # TODO(crbug.com/41486292): Fix and re-enable.
- "-Wno-c++11-narrowing-const-reference",
-@@ -2769,7 +2768,7 @@ config("afdo") {
+ cflags_cc += [
+@@ -2837,7 +2841,7 @@ config("afdo_optimize_size") {
# There are some targeted places that AFDO regresses, so we provide a separate
# config to allow AFDO to be disabled per-target.
config("afdo") {
@@ -114,7 +111,7 @@
cflags = []
if (clang_emit_debug_info_for_profiling) {
# Add the following flags to generate debug info for profiling.
-@@ -2796,7 +2795,7 @@ config("afdo") {
+@@ -2864,7 +2868,7 @@ config("afdo") {
cflags += [ "-Wno-backend-plugin" ]
inputs = [ _clang_sample_profile ]
}
@@ -123,7 +120,7 @@
cflags = [ "-fauto-profile=${auto_profile_path}" ]
inputs = [ auto_profile_path ]
}
-@@ -2973,7 +2972,7 @@ config("symbols") {
+@@ -3041,7 +3045,7 @@ config("symbols") {
cflags += [ "-gomit-unreferenced-methods" ]
}
diff --git a/multimedia/ringrtc/files/patch-build_toolchain_gcc__toolchain.gni b/multimedia/ringrtc/files/patch-build_toolchain_gcc__toolchain.gni
index e3def33f6fcb..49b30f663a3c 100644
--- a/multimedia/ringrtc/files/patch-build_toolchain_gcc__toolchain.gni
+++ b/multimedia/ringrtc/files/patch-build_toolchain_gcc__toolchain.gni
@@ -1,6 +1,6 @@
--- src/webrtc/src/build/toolchain/gcc_toolchain.gni.orig 2022-02-16 12:34:12 UTC
+++ src/webrtc/src/build/toolchain/gcc_toolchain.gni
-@@ -53,6 +53,13 @@ if (enable_resource_allowlist_generation) {
+@@ -56,6 +56,13 @@ if (enable_resource_allowlist_generation) {
"enable_resource_allowlist_generation=true does not work for target_os=$target_os")
}
@@ -14,8 +14,8 @@
# This template defines a toolchain for something that works like gcc
# (including clang).
#
-@@ -825,22 +832,12 @@ template("gcc_toolchain") {
- # use_gold too.
+@@ -896,22 +903,12 @@ template("gcc_toolchain") {
+ # actually just be doing a native compile.
template("clang_toolchain") {
gcc_toolchain(target_name) {
- _path = "$clang_base_path/bin"
@@ -36,9 +36,9 @@
- readelf = "${prefix}/llvm-readelf"
- ar = "${prefix}/llvm-ar"
- nm = "${prefix}/llvm-nm"
-+ readelf = "llvm-readelf"
++ readelf = "readelf"
+ ar = "llvm-ar"
+ nm = "llvm-nm"
- forward_variables_from(invoker,
- [
+ forward_variables_from(invoker, "*", [ "toolchain_args" ])
+
diff --git a/multimedia/ringrtc/files/patch-build_toolchain_toolchain.gni b/multimedia/ringrtc/files/patch-build_toolchain_toolchain.gni
index f5c9a960dfa6..8f1d9a3dacd4 100644
--- a/multimedia/ringrtc/files/patch-build_toolchain_toolchain.gni
+++ b/multimedia/ringrtc/files/patch-build_toolchain_toolchain.gni
@@ -1,6 +1,6 @@
--- src/webrtc/src/build/toolchain/toolchain.gni.orig 2024-03-22 08:19:40 UTC
+++ src/webrtc/src/build/toolchain/toolchain.gni
-@@ -72,7 +72,7 @@ if (host_os == "mac") {
+@@ -75,7 +75,7 @@ if (host_os == "mac") {
host_shlib_extension = ".dylib"
} else if (host_os == "win") {
host_shlib_extension = ".dll"
diff --git a/multimedia/ringrtc/files/patch-cargo-crates_neon_Cargo.toml b/multimedia/ringrtc/files/patch-cargo-crates_neon_Cargo.toml
new file mode 100644
index 000000000000..c3385f611dcb
--- /dev/null
+++ b/multimedia/ringrtc/files/patch-cargo-crates_neon_Cargo.toml
@@ -0,0 +1,10 @@
+--- cargo-crates/neon-1.1.1/Cargo.toml.orig 2025-06-20 16:24:28.786063000 +0200
++++ cargo-crates/neon-1.1.1/Cargo.toml 2025-06-20 15:29:20.492364000 +0200
+@@ -109,6 +109,7 @@ version = "0.3.33"
+
+ [dependencies.linkme]
+ version = "0.3.33"
++features = ["used_linker"]
+
+ [dependencies.neon-macros]
+ version = "=1.1.1"
diff --git a/multimedia/ringrtc/files/patch-cargo-crates_neon_src_lib.rs b/multimedia/ringrtc/files/patch-cargo-crates_neon_src_lib.rs
new file mode 100644
index 000000000000..322ea7e0200c
--- /dev/null
+++ b/multimedia/ringrtc/files/patch-cargo-crates_neon_src_lib.rs
@@ -0,0 +1,8 @@
+--- cargo-crates/neon-1.1.1/src/lib.rs.orig 2025-06-20 16:23:34.475493000 +0200
++++ cargo-crates/neon-1.1.1/src/lib.rs 2025-06-20 15:36:29.406748000 +0200
+@@ -1,3 +1,5 @@
++#![feature(used_with_arg)]
++
+ //! The [Neon][neon] crate provides bindings for writing [Node.js addons][addons]
+ //! (i.e., dynamically-loaded binary modules) with a safe and fast Rust API.
+ //!
diff --git a/multimedia/ringrtc/files/patch-src_rust_src_lib.rs b/multimedia/ringrtc/files/patch-src_rust_src_lib.rs
new file mode 100644
index 000000000000..b422a1b6e588
--- /dev/null
+++ b/multimedia/ringrtc/files/patch-src_rust_src_lib.rs
@@ -0,0 +1,7 @@
+--- src/rust/src/lib.rs.orig 2025-06-20 16:23:04.823901000 +0200
++++ src/rust/src/lib.rs 2025-06-20 15:36:53.716050000 +0200
+@@ -1,3 +1,4 @@
++#![feature(used_with_arg)]
+ //
+ // Copyright 2019-2021 Signal Messenger, LLC
+ // SPDX-License-Identifier: AGPL-3.0-only
diff --git a/multimedia/ringrtc/files/patch-third__party_webrtc_rtc__base_network.cc b/multimedia/ringrtc/files/patch-third__party_webrtc_rtc__base_network.cc
index 4852bcb601d4..29d5f54e06e9 100644
--- a/multimedia/ringrtc/files/patch-third__party_webrtc_rtc__base_network.cc
+++ b/multimedia/ringrtc/files/patch-third__party_webrtc_rtc__base_network.cc
@@ -1,14 +1,15 @@
--- src/webrtc/src/rtc_base/network.cc.orig 2024-06-17 12:56:06 UTC
+++ src/webrtc/src/rtc_base/network.cc
-@@ -290,7 +290,12 @@ AdapterType GetAdapterTypeFromName(absl::string_view n
+@@ -320,7 +320,12 @@ webrtc::AdapterType GetAdapterTypeFromName(absl::strin
}
#endif
+- return webrtc::ADAPTER_TYPE_UNKNOWN;
+#if defined(WEBRTC_BSD)
+ // Treat all other network interface names as ethernet on BSD
+ return ADAPTER_TYPE_ETHERNET;
+#else
- return ADAPTER_TYPE_UNKNOWN;
++ return ADAPTER_TYPE_UNKNOWN;
+#endif
}