summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-10 04:31:09 +0100
committerSam James <sam@gentoo.org>2022-06-10 04:31:09 +0100
commiteb9294bd4c3269a98a9573ed2f832001b668a5f4 (patch)
tree5cb551e056fffc165a3622d181ab6e9e06108044 /media-libs/tg_owt
parentapp-office/libreoffice: keyword 7.3.4.2 (diff)
downloadgentoo-eb9294bd4c3269a98a9573ed2f832001b668a5f4.tar.gz
gentoo-eb9294bd4c3269a98a9573ed2f832001b668a5f4.tar.bz2
gentoo-eb9294bd4c3269a98a9573ed2f832001b668a5f4.zip
media-libs/tg_owt: fix build with GCC 12
Closes: https://bugs.gentoo.org/840526 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/tg_owt')
-rw-r--r--media-libs/tg_owt/files/tg_owt-0_pre20220209-gcc-12-cstddef.patch20
-rw-r--r--media-libs/tg_owt/files/tg_owt-0_pre20220209-gcc-12-cstdint.patch19
-rw-r--r--media-libs/tg_owt/tg_owt-0_pre20220209.ebuild2
3 files changed, 41 insertions, 0 deletions
diff --git a/media-libs/tg_owt/files/tg_owt-0_pre20220209-gcc-12-cstddef.patch b/media-libs/tg_owt/files/tg_owt-0_pre20220209-gcc-12-cstddef.patch
new file mode 100644
index 000000000000..c79d6068945e
--- /dev/null
+++ b/media-libs/tg_owt/files/tg_owt-0_pre20220209-gcc-12-cstddef.patch
@@ -0,0 +1,20 @@
+https://bugs.gentoo.org/840526
+--- a/src/modules/rtp_rtcp/source/rtp_packetizer_av1_test_helper.cc
++++ b/src/modules/rtp_rtcp/source/rtp_packetizer_av1_test_helper.cc
+@@ -10,6 +10,7 @@
+
+ #include "modules/rtp_rtcp/source/rtp_packetizer_av1_test_helper.h"
+
++#include <cstddef>
+ #include <stdint.h>
+
+ #include <initializer_list>
+@@ -42,7 +43,7 @@ std::vector<uint8_t> BuildAv1Frame(std::initializer_list<Av1Obu> obus) {
+ }
+ if (obu.header_ & kAv1ObuSizePresentBit) {
+ // write size in leb128 format.
+- size_t payload_size = obu.payload_.size();
++ std::size_t payload_size = obu.payload_.size();
+ while (payload_size >= 0x80) {
+ raw.push_back(0x80 | (payload_size & 0x7F));
+ payload_size >>= 7;
diff --git a/media-libs/tg_owt/files/tg_owt-0_pre20220209-gcc-12-cstdint.patch b/media-libs/tg_owt/files/tg_owt-0_pre20220209-gcc-12-cstdint.patch
new file mode 100644
index 000000000000..f5fdbd58a574
--- /dev/null
+++ b/media-libs/tg_owt/files/tg_owt-0_pre20220209-gcc-12-cstdint.patch
@@ -0,0 +1,19 @@
+https://bugs.gentoo.org/840526
+https://github.com/desktop-app/tg_owt/pull/101
+
+From 86d2bcd7afb8706663d29e30f65863de5a626142 Mon Sep 17 00:00:00 2001
+From: Xiretza <xiretza@xiretza.xyz>
+Date: Sun, 15 May 2022 12:47:41 +0200
+Subject: [PATCH] fix(h265_pps_parser): fix missing cstdint include
+
+--- a/src/common_video/h265/h265_pps_parser.h
++++ b/src/common_video/h265/h265_pps_parser.h
+@@ -12,6 +12,7 @@
+ #define COMMON_VIDEO_H265_PPS_PARSER_H_
+
+ #include "absl/types/optional.h"
++#include <cstdint>
+
+ namespace rtc {
+ class BitBuffer;
+
diff --git a/media-libs/tg_owt/tg_owt-0_pre20220209.ebuild b/media-libs/tg_owt/tg_owt-0_pre20220209.ebuild
index c67d2f3d5870..c9458830e3d7 100644
--- a/media-libs/tg_owt/tg_owt-0_pre20220209.ebuild
+++ b/media-libs/tg_owt/tg_owt-0_pre20220209.ebuild
@@ -60,6 +60,8 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/tg_owt-0_pre20220209-allow-disabling-X11.patch"
"${FILESDIR}/tg_owt-0_pre20211207-fix-dcsctp-references.patch"
+ "${FILESDIR}/tg_owt-0_pre20220209-gcc-12-cstdint.patch"
+ "${FILESDIR}/tg_owt-0_pre20220209-gcc-12-cstddef.patch"
)
src_unpack() {