commit:     8c50d3b35196d6364aa52027fdfaded509f388d5
Author:     Karlson2k (Evgeny Grin) <k2k <AT> narod <DOT> ru>
AuthorDate: Wed Oct 18 07:21:06 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 27 03:18:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c50d3b3

media-plugins/kodi-inputstream-adaptive: fixed build with GCC 13

Closes: https://bugs.gentoo.org/899754
Signed-off-by: Karlson2k (Evgeny Grin) <k2k <AT> narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/33385
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...di-inputstream-adaptive-19.0.0-gcc-13-fix.patch | 27 ++++++++++++++++++++++
 .../kodi-inputstream-adaptive-19.0.0.ebuild        |  4 ++++
 2 files changed, 31 insertions(+)

diff --git 
a/media-plugins/kodi-inputstream-adaptive/files/kodi-inputstream-adaptive-19.0.0-gcc-13-fix.patch
 
b/media-plugins/kodi-inputstream-adaptive/files/kodi-inputstream-adaptive-19.0.0-gcc-13-fix.patch
new file mode 100644
index 000000000000..a9168fe42331
--- /dev/null
+++ 
b/media-plugins/kodi-inputstream-adaptive/files/kodi-inputstream-adaptive-19.0.0-gcc-13-fix.patch
@@ -0,0 +1,27 @@
+Fix build with GCC 13
+
+Gentoo bug https://bugs.gentoo.org/899754
+
+diff -ur inputstream.adaptive-19.0.0-Matrix/src/helpers.h 
inputstream.adaptive-19.0.0-Matrix-fixed/src/helpers.h
+--- inputstream.adaptive-19.0.0-Matrix/src/helpers.h   2021-09-14 
17:28:17.000000000 +0300
++++ inputstream.adaptive-19.0.0-Matrix-fixed/src/helpers.h     2023-10-18 
10:03:57.510248775 +0300
+@@ -19,7 +19,7 @@
+ #pragma once
+ 
+ #include <string>
+-#include <stdint.h>
++#include <cstdint>
+ #include <vector>
+ #include <map>
+ 
+diff -ur inputstream.adaptive-19.0.0-Matrix/src/Iaes_decrypter.h 
inputstream.adaptive-19.0.0-Matrix-fixed/src/Iaes_decrypter.h
+--- inputstream.adaptive-19.0.0-Matrix/src/Iaes_decrypter.h    2021-09-14 
17:28:17.000000000 +0300
++++ inputstream.adaptive-19.0.0-Matrix-fixed/src/Iaes_decrypter.h      
2023-10-18 10:03:12.136782831 +0300
+@@ -2,6 +2,7 @@
+ 
+ #include "Ap4Types.h"
+ 
++#include <cstdint>
+ #include <string>
+ 
+ class IAESDecrypter

diff --git 
a/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-19.0.0.ebuild
 
b/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-19.0.0.ebuild
index eb913a08d263..03d6ea558f43 100644
--- 
a/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-19.0.0.ebuild
+++ 
b/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-19.0.0.ebuild
@@ -29,6 +29,10 @@ SLOT="0"
 RESTRICT="!test? ( test )"
 IUSE="test"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc-13-fix.patch # Bug 899754
+)
+
 COMMON_DEPEND="
        dev-libs/expat
        =media-tv/kodi-19*

Reply via email to