diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/webrtc-audio-processing')
4 files changed, 103 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-1/0001-task_queue-fix-build-with-gcc-15.patch b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-1/0001-task_queue-fix-build-with-gcc-15.patch new file mode 100644 index 0000000000..0f7e7a18ea --- /dev/null +++ b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-1/0001-task_queue-fix-build-with-gcc-15.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From d8ba62262265fac19804cf52f99488ed226c9c51 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <martin.jansa@gmail.com> | ||
3 | Date: Fri, 21 Mar 2025 11:06:14 +0100 | ||
4 | Subject: [PATCH] task_queue: fix build with gcc-15 | ||
5 | |||
6 | * fixes: | ||
7 | http://errors.yoctoproject.org/Errors/Details/848476/ | ||
8 | ../webrtc-audio-processing-1.3/webrtc/api/task_queue/task_queue_base.h:53:32: error: 'uint32_t' has not been declared | ||
9 | 53 | uint32_t milliseconds) = 0; | ||
10 | | ^~~~~~~~ | ||
11 | |||
12 | Upstream-Status: Pending [uint32_t is no longer used here after "Bump to WebRTC M120 release" https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/commit/c6abf6cd3fbd688b111b339775cbd2d66d509ddc?page=2#66fd3af91f4a7b8a1dafa8180959efa4e32ac2f0] | ||
13 | |||
14 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
15 | --- | ||
16 | webrtc/api/task_queue/task_queue_base.h | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/webrtc/api/task_queue/task_queue_base.h b/webrtc/api/task_queue/task_queue_base.h | ||
20 | index 90b1efd..63526a7 100644 | ||
21 | --- a/webrtc/api/task_queue/task_queue_base.h | ||
22 | +++ b/webrtc/api/task_queue/task_queue_base.h | ||
23 | @@ -10,6 +10,7 @@ | ||
24 | #ifndef API_TASK_QUEUE_TASK_QUEUE_BASE_H_ | ||
25 | #define API_TASK_QUEUE_TASK_QUEUE_BASE_H_ | ||
26 | |||
27 | +#include <cstdint> | ||
28 | #include <memory> | ||
29 | |||
30 | #include "api/task_queue/queued_task.h" | ||
diff --git a/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-1_1.3.bb b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-1_1.3.bb index c56ca53f89..08104cbc62 100644 --- a/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-1_1.3.bb +++ b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-1_1.3.bb | |||
@@ -12,9 +12,10 @@ SRC_URI = " \ | |||
12 | http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/webrtc-audio-processing-${PV}.tar.xz \ | 12 | http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/webrtc-audio-processing-${PV}.tar.xz \ |
13 | file://0001-add-missing-header-for-musl.patch \ | 13 | file://0001-add-missing-header-for-musl.patch \ |
14 | file://0001-Fix-return-type-errors.patch \ | 14 | file://0001-Fix-return-type-errors.patch \ |
15 | file://0001-task_queue-fix-build-with-gcc-15.patch \ | ||
15 | " | 16 | " |
16 | SRC_URI[sha256sum] = "2365e93e778d7b61b5d6e02d21c47d97222e9c7deff9e1d0838ad6ec2e86f1b9" | 17 | SRC_URI[sha256sum] = "2365e93e778d7b61b5d6e02d21c47d97222e9c7deff9e1d0838ad6ec2e86f1b9" |
17 | S = "${WORKDIR}/webrtc-audio-processing-${PV}" | 18 | S = "${UNPACKDIR}/webrtc-audio-processing-${PV}" |
18 | 19 | ||
19 | LDFLAGS:append:libc-musl = " -lexecinfo" | 20 | LDFLAGS:append:libc-musl = " -lexecinfo" |
20 | 21 | ||
diff --git a/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-2/e9c78dc4712fa6362b0c839ad57b6b46dce1ba83.patch b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-2/e9c78dc4712fa6362b0c839ad57b6b46dce1ba83.patch new file mode 100644 index 0000000000..3e2ac72c69 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-2/e9c78dc4712fa6362b0c839ad57b6b46dce1ba83.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From e9c78dc4712fa6362b0c839ad57b6b46dce1ba83 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= <francois@centricular.com> | ||
3 | Date: Mon, 14 Apr 2025 16:48:19 +0200 | ||
4 | Subject: [PATCH] Fix compilation with gcc-15 | ||
5 | |||
6 | This commit fixes compilation errors with gcc-15 (default for Fedora 42). | ||
7 | |||
8 | From [1]: | ||
9 | |||
10 | > Common C++ headers (like <memory>) in GCC 15.0.0 (combined with libstdc++) | ||
11 | > don't transitively include uint64_t anymore. | ||
12 | |||
13 | See also [2]. | ||
14 | |||
15 | [1]: https://github.com/ROCm/rocm_smi_lib/pull/198 | ||
16 | [2]: https://github.com/root-project/root/issues/17444 | ||
17 | |||
18 | Upstream-Status: Backport [https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/commit/e9c78dc4712fa6362b0c839ad57b6b46dce1ba83.patch] | ||
19 | --- | ||
20 | .../audio_processing/aec3/multi_channel_content_detector.h | 1 + | ||
21 | webrtc/rtc_base/trace_event.h | 1 + | ||
22 | 2 files changed, 2 insertions(+) | ||
23 | |||
24 | diff --git a/webrtc/modules/audio_processing/aec3/multi_channel_content_detector.h b/webrtc/modules/audio_processing/aec3/multi_channel_content_detector.h | ||
25 | index 2b2f3b8..feb29fd 100644 | ||
26 | --- a/webrtc/modules/audio_processing/aec3/multi_channel_content_detector.h | ||
27 | +++ b/webrtc/modules/audio_processing/aec3/multi_channel_content_detector.h | ||
28 | @@ -12,6 +12,7 @@ | ||
29 | #define MODULES_AUDIO_PROCESSING_AEC3_MULTI_CHANNEL_CONTENT_DETECTOR_H_ | ||
30 | |||
31 | #include <stddef.h> | ||
32 | +#include <cstdint> | ||
33 | |||
34 | #include <memory> | ||
35 | #include <optional> | ||
36 | diff --git a/webrtc/rtc_base/trace_event.h b/webrtc/rtc_base/trace_event.h | ||
37 | index 2aee713..f88a68e 100644 | ||
38 | --- a/webrtc/rtc_base/trace_event.h | ||
39 | +++ b/webrtc/rtc_base/trace_event.h | ||
40 | @@ -28,6 +28,7 @@ | ||
41 | |||
42 | #if !defined(RTC_USE_PERFETTO) | ||
43 | #include <string> | ||
44 | +#include <cstdint> | ||
45 | |||
46 | #include "rtc_base/event_tracer.h" | ||
47 | |||
48 | -- | ||
49 | GitLab | ||
50 | |||
diff --git a/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-2_2.1.bb b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-2_2.1.bb new file mode 100644 index 0000000000..9aab57a089 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-2_2.1.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | DESCRIPTION = "Audio processing bits of the WebRTC reference implementation" | ||
2 | HOMEPAGE = "https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/" | ||
3 | SECTION = "audio" | ||
4 | |||
5 | DEPENDS = "abseil-cpp" | ||
6 | DEPENDS:append:libc-musl = " libexecinfo" | ||
7 | |||
8 | LICENSE = "BSD-3-Clause" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=da08a38a32a340c5d91e13ee86a118f2" | ||
10 | |||
11 | SRC_URI = " \ | ||
12 | http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/webrtc-audio-processing-${PV}.tar.xz \ | ||
13 | file://e9c78dc4712fa6362b0c839ad57b6b46dce1ba83.patch \ | ||
14 | " | ||
15 | SRC_URI[sha256sum] = "ae9302824b2038d394f10213cab05312c564a038434269f11dbf68f511f9f9fe" | ||
16 | S = "${UNPACKDIR}/webrtc-audio-processing-${PV}" | ||
17 | |||
18 | LDFLAGS:append:libc-musl = " -lexecinfo" | ||
19 | # | riscv32-yoe-linux-musl-ld.lld: error: undefined reference: __atomic_store_8 | ||
20 | LDFLAGS:append:riscv32 = " -latomic" | ||
21 | inherit meson pkgconfig | ||