community/webrtc-audio-processing-2: patch gcc15

This commit is contained in:
fossdd 2025-07-29 16:05:55 +02:00
parent 2606469b8e
commit 030aa03cad
No known key found for this signature in database
GPG Key ID: BB8C8A81C6452A88
2 changed files with 50 additions and 0 deletions

View File

@ -18,6 +18,7 @@ subpackages="$pkgname-dev"
source="
https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/archive/v$pkgver/webrtc-audio-processing-v$pkgver.tar.gz
s390x.patch
gcc15.patch
"
options="!check" # No tests
builddir="$srcdir/webrtc-audio-processing-v$pkgver"
@ -35,4 +36,5 @@ package() {
sha512sums="
6851bf40b62a8f642eaa5e3e108a8331f43c0d6eb5e6d351e3252d6869066c991bd9eca6ba3a7f762bdb44251a253da05cf15a76fc1c55ca815f5a4e39cf5d4a webrtc-audio-processing-v2.1.tar.gz
fbb04729c4f654b8853bb0ce443de25f66a1a70048e82d4157ef1b5cecbda6a839976554576ce752b6efc4b4e98e8a97f0ef773e596de341aff143393eeb05a5 s390x.patch
9f6eac19b32d0ad538b713098364fe14fdba64d0142e424e1dfecc822be1732675bd2123b00c68863fe19f0ac9523756c58e2b6d1e6a38f9b92a4197bfd29e68 gcc15.patch
"

View File

@ -0,0 +1,48 @@
From e9c78dc4712fa6362b0c839ad57b6b46dce1ba83 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= <francois@centricular.com>
Date: Mon, 14 Apr 2025 16:48:19 +0200
Subject: [PATCH] Fix compilation with gcc-15
This commit fixes compilation errors with gcc-15 (default for Fedora 42).
From [1]:
> Common C++ headers (like <memory>) in GCC 15.0.0 (combined with libstdc++)
> don't transitively include uint64_t anymore.
See also [2].
[1]: https://github.com/ROCm/rocm_smi_lib/pull/198
[2]: https://github.com/root-project/root/issues/17444
---
.../audio_processing/aec3/multi_channel_content_detector.h | 1 +
webrtc/rtc_base/trace_event.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/webrtc/modules/audio_processing/aec3/multi_channel_content_detector.h b/webrtc/modules/audio_processing/aec3/multi_channel_content_detector.h
index 2b2f3b8..feb29fd 100644
--- a/webrtc/modules/audio_processing/aec3/multi_channel_content_detector.h
+++ b/webrtc/modules/audio_processing/aec3/multi_channel_content_detector.h
@@ -12,6 +12,7 @@
#define MODULES_AUDIO_PROCESSING_AEC3_MULTI_CHANNEL_CONTENT_DETECTOR_H_
#include <stddef.h>
+#include <cstdint>
#include <memory>
#include <optional>
diff --git a/webrtc/rtc_base/trace_event.h b/webrtc/rtc_base/trace_event.h
index 2aee713..f88a68e 100644
--- a/webrtc/rtc_base/trace_event.h
+++ b/webrtc/rtc_base/trace_event.h
@@ -28,6 +28,7 @@
#if !defined(RTC_USE_PERFETTO)
#include <string>
+#include <cstdint>
#include "rtc_base/event_tracer.h"
--
GitLab