commit 715bed2b455c68a8373a9700d5845e4210399f7f
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat Jul 8 21:18:00 2023 +0100
Fix gcc error
kodi.spec | 4 ++++
tp_watched_initializer.patch | 10 ++++++++++
2 files changed, 14 insertions(+)
---
diff --git a/kodi.spec b/kodi.spec
index 9f6f6cb..5827da2 100644
--- a/kodi.spec
+++ b/kodi.spec
@@ -78,6 +78,9 @@ Patch2: kodi-20-annobin-workaround.patch
Patch3:
https://github.com/xbmc/xbmc/pull/23453.patch#/fmt10_buildfix.patch
+# Add initializer for tp_watched
+Patch4: tp_watched_initializer.patch
+
%ifarch x86_64
%global _with_crystalhd 1
%endif
@@ -302,6 +305,7 @@ This package contains FirewallD files for Kodi.
%patch -P 2 -p1 -b.innobinfix
%if 0%{?fedora} && 0%{?fedora} > 38
%patch -P 3 -p1 -b.fmt
+%patch -P 4 -p1 -b.initializer
%endif
# Fix up Python shebangs
diff --git a/tp_watched_initializer.patch b/tp_watched_initializer.patch
new file mode 100644
index 0000000..45fa7ca
--- /dev/null
+++ b/tp_watched_initializer.patch
@@ -0,0 +1,10 @@
+--- a/xbmc/interfaces/python/swig.cpp
++++ b/xbmc/interfaces/python/swig.cpp
+@@ -72,6 +72,7 @@ namespace PythonBindings
+ #if PY_VERSION_HEX < 0x03090000
+ 0,
+ #endif
++ 0
+ };
+
+ static int size = (long*)&(py_type_object_header.tp_name) -
(long*)&py_type_object_header;