File system-opus.patch of Package nodejs-signal-ringrtc

--- webrtc-6613a/build/linux/unbundle/replace_gn_files.py.orig
+++ webrtc-6613a/build/linux/unbundle/replace_gn_files.py
@@ -67,7 +67,7 @@ REPLACEMENTS = {
     'libxslt': 'third_party/libxslt/BUILD.gn',
     'libyuv': 'third_party/libyuv/BUILD.gn',
     'openh264': 'third_party/openh264/BUILD.gn',
-    'opus': 'third_party/opus/BUILD.gn',
+    'opus': 'ringrtc/opus/BUILD.gn',
     're2': 'third_party/re2/BUILD.gn',
     'snappy': 'third_party/snappy/BUILD.gn',
     # Use system libSPIRV-Tools in Swiftshader.
--- webrtc-5615a/modules/audio_coding/codecs/opus/opus_inst.h.old	2023-06-01 18:49:03.384613407 +0200
+++ webrtc-5615a/modules/audio_coding/codecs/opus/opus_inst.h	2023-06-01 21:27:22.965231506 +0200
@@ -16,8 +16,8 @@
 
 RTC_PUSH_IGNORING_WUNDEF()
 // RingRTC change to use a fork of opus
-#include "ringrtc/opus/src/include/opus.h"
-#include "ringrtc/opus/src/include/opus_multistream.h"
+#include <opus.h>
+#include <opus_multistream.h>
 RTC_POP_IGNORING_WUNDEF()
 
 struct WebRtcOpusEncInst {
--- webrtc-6723a/modules/audio_coding/BUILD.gn.orig	2024-11-07 10:11:45.877339531 +0100
+++ webrtc-6723a/modules/audio_coding/BUILD.gn	2024-11-07 10:28:59.063644781 +0100
@@ -133,6 +133,9 @@ rtc_library("red") {
     "../../rtc_base:logging",
     "//third_party/abseil-cpp/absl/strings:string_view",
   ]
+  public_deps = [
+    "//ringrtc/opus",
+  ]
 }
 
 rtc_library("g711") {
openSUSE Build Service is sponsored by