commit a467cc3d222e1894babb4ac8d921434f846633d7
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sat Feb 5 14:57:08 2022 +0100
Added patch with GCC 12 fixes for Rawhide.
tg_owt-gcc12-fixes.patch | 25 +++++++++++++++++++++++++
tg_owt.spec | 3 +++
2 files changed, 28 insertions(+)
---
diff --git a/tg_owt-gcc12-fixes.patch b/tg_owt-gcc12-fixes.patch
new file mode 100644
index 0000000..6d0d6a8
--- /dev/null
+++ b/tg_owt-gcc12-fixes.patch
@@ -0,0 +1,25 @@
+From f1ed97b0abb5dcafc11c39ebe611fd3912dc0f9c Mon Sep 17 00:00:00 2001
+From: Vitaly Zaitsev <vitaly(a)easycoding.org>
+Date: Sat, 5 Feb 2022 13:48:14 +0100
+Subject: [PATCH] Fixed build on GCC 12 by adding missing includes.
+
+Signed-off-by: Vitaly Zaitsev <vitaly(a)easycoding.org>
+---
+ src/modules/rtp_rtcp/source/rtp_packetizer_av1_test_helper.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/modules/rtp_rtcp/source/rtp_packetizer_av1_test_helper.h
b/src/modules/rtp_rtcp/source/rtp_packetizer_av1_test_helper.h
+index 04a902fe..6a2d6454 100644
+--- a/src/modules/rtp_rtcp/source/rtp_packetizer_av1_test_helper.h
++++ b/src/modules/rtp_rtcp/source/rtp_packetizer_av1_test_helper.h
+@@ -11,6 +11,7 @@
+ #ifndef MODULES_RTP_RTCP_SOURCE_RTP_PACKETIZER_AV1_TEST_HELPER_H_
+ #define MODULES_RTP_RTCP_SOURCE_RTP_PACKETIZER_AV1_TEST_HELPER_H_
+
++#include <stddef.h>
+ #include <stdint.h>
+
+ #include <initializer_list>
+--
+2.34.1
+
diff --git a/tg_owt.spec b/tg_owt.spec
index 0d00c7b..1f09645 100644
--- a/tg_owt.spec
+++ b/tg_owt.spec
@@ -27,6 +27,9 @@ URL:
https://github.com/desktop-app/%{name}
Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
Source1:
https://chromium.googlesource.com/libyuv/libyuv/+archive/%{commit1}.tar.g...
+#
https://github.com/desktop-app/tg_owt/pull/90
+Patch100: %{name}-gcc12-fixes.patch
+
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(epoxy)
BuildRequires: pkgconfig(gbm)