commit 62bfe3add4663d2ec5536e367fe5ffb045695d4c
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Sun Jan 29 23:01:15 2023 +0100
Fix build with GCC 13
kodi-inputstream-adaptive-20.3.2-gcc13.patch | 84 ++++++++++++++++++++++++++++
kodi-inputstream-adaptive.spec | 13 +++--
2 files changed, 93 insertions(+), 4 deletions(-)
---
diff --git a/kodi-inputstream-adaptive-20.3.2-gcc13.patch
b/kodi-inputstream-adaptive-20.3.2-gcc13.patch
new file mode 100644
index 0000000..dfe02df
--- /dev/null
+++ b/kodi-inputstream-adaptive-20.3.2-gcc13.patch
@@ -0,0 +1,84 @@
+diff -up ./src/common/AdaptiveDecrypter.h.orig ./src/common/AdaptiveDecrypter.h
+--- ./src/common/AdaptiveDecrypter.h.orig 2023-01-11 22:37:47.000000000 +0100
++++ ./src/common/AdaptiveDecrypter.h 2023-01-29 22:50:19.875120342 +0100
+@@ -12,6 +12,7 @@
+
+ #include <stdexcept>
+ #include <string_view>
++#include <cstdint>
+
+ #include <bento4/Ap4.h>
+
+diff -up ./src/Iaes_decrypter.h.orig ./src/Iaes_decrypter.h
+--- ./src/Iaes_decrypter.h.orig 2023-01-11 22:37:47.000000000 +0100
++++ ./src/Iaes_decrypter.h 2023-01-29 22:49:06.804158436 +0100
+@@ -11,6 +11,7 @@
+ #include <bento4/Ap4Types.h>
+
+ #include <string>
++#include <cstdint>
+
+ class IAESDecrypter
+ {
+@@ -31,4 +32,4 @@ public:
+
+ private:
+ std::string m_licenseKey;
+-};
+\ Pas de fin de ligne à la fin du fichier
++};
+diff -up ./src/SSD_dll.h.orig ./src/SSD_dll.h
+--- ./src/SSD_dll.h.orig 2023-01-11 22:37:47.000000000 +0100
++++ ./src/SSD_dll.h 2023-01-29 22:43:40.145864970 +0100
+@@ -10,6 +10,7 @@
+
+ #include <stdarg.h> // va_list, va_start, va_arg, va_end
+ #include <string_view>
++#include <cstdint>
+
+ //Functionality wich is supported by the Decrypter
+ class Adaptive_CencSingleSampleDecrypter;
+diff -up ./src/test/KodiStubs.h.orig ./src/test/KodiStubs.h
+--- ./src/test/KodiStubs.h.orig 2023-01-11 22:37:47.000000000 +0100
++++ ./src/test/KodiStubs.h 2023-01-29 22:54:37.546519345 +0100
+@@ -12,6 +12,7 @@
+
+ #include <string>
+ #include <vector>
++#include <cstdint>
+
+ #ifdef _WIN32 // windows
+ #if !defined(_SSIZE_T_DEFINED) && !defined(HAVE_SSIZE_T)
+diff -up ./src/utils/PropertiesUtils.h.orig ./src/utils/PropertiesUtils.h
+--- ./src/utils/PropertiesUtils.h.orig 2023-01-11 22:37:47.000000000 +0100
++++ ./src/utils/PropertiesUtils.h 2023-01-29 22:51:41.581198149 +0100
+@@ -11,6 +11,7 @@
+ #include <map>
+ #include <string>
+ #include <utility>
++#include <cstdint>
+
+ namespace UTILS
+ {
+diff -up ./src/utils/StringUtils.h.orig ./src/utils/StringUtils.h
+--- ./src/utils/StringUtils.h.orig 2023-01-11 22:37:47.000000000 +0100
++++ ./src/utils/StringUtils.h 2023-01-29 22:55:37.497310175 +0100
+@@ -11,6 +11,7 @@
+ #include <string>
+ #include <string_view>
+ #include <vector>
++#include <cstdint>
+
+ namespace UTILS
+ {
+diff -up ./src/utils/Utils.h.orig ./src/utils/Utils.h
+--- ./src/utils/Utils.h.orig 2023-01-11 22:37:47.000000000 +0100
++++ ./src/utils/Utils.h 2023-01-29 22:53:01.149247750 +0100
+@@ -12,6 +12,7 @@
+ #include <string>
+ #include <string_view>
+ #include <vector>
++#include <cstdint>
+
+ namespace UTILS
+ {
diff --git a/kodi-inputstream-adaptive.spec b/kodi-inputstream-adaptive.spec
index 1783597..3201c1b 100644
--- a/kodi-inputstream-adaptive.spec
+++ b/kodi-inputstream-adaptive.spec
@@ -9,7 +9,7 @@
Name: kodi-inputstream-adaptive
Version: 20.3.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Adaptive file addon for Kodi's InputStream interface
# - wvdecrypter contains parts of Chromium CDM under
@@ -20,6 +20,8 @@ URL:
https://github.com/xbmc/%{kodi_addon}/
Source0:
%{url}/archive/%{version}-%{kodi_codename}/%{kodi_addon}-%{version}.tar.gz
Source1:
https://github.com/xbmc/Bento4/archive/%{internal_bento4_tag}/Bento4-%{in...
Source2: %{name}.metainfo.xml
+# Fix build with GCC 13
+Patch0: %{name}-20.3.2-gcc13.patch
BuildRequires: cmake3
BuildRequires: gcc-c++
@@ -39,7 +41,7 @@ ExcludeArch: %{power64}
%prep
-%autosetup -n %{kodi_addon}-%{version}-%{kodi_codename}
+%autosetup -n %{kodi_addon}-%{version}-%{kodi_codename} -p0
%build
@@ -71,8 +73,11 @@ appstream-util validate-relax --nonet
$RPM_BUILD_ROOT%{_metainfodir}/%{name}.met
%changelog
-* Sun Jan 29 2023 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 20.3.0-1
-- Update to 20.3.0
+* Sun Jan 29 2023 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 20.3.2-2
+- Fix build with GCC 13
+
+* Sun Jan 29 2023 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 20.3.2-1
+- Update to 20.3.2
- Add AppStream metadata
- Switch to SPDX license identifiers