commit 521d0cd55d4176bb30b396c55ee7947005a5e1e1
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Thu Jun 13 23:32:52 2024 +0100
Fix python 3.13 build
fix_py313.patch | 13 +++++++++++++
kodi.spec | 4 ++++
2 files changed, 17 insertions(+)
---
diff --git a/fix_py313.patch b/fix_py313.patch
new file mode 100644
index 0000000..46781ca
--- /dev/null
+++ b/fix_py313.patch
@@ -0,0 +1,13 @@
+diff -uNrp a/xbmc/interfaces/python/swig.cpp b/xbmc/interfaces/python/swig.cpp
+--- a/xbmc/interfaces/python/swig.cpp 2024-04-06 03:29:22.000000000 +0100
++++ b/xbmc/interfaces/python/swig.cpp 2024-06-13 23:06:04.977533658 +0100
+@@ -75,6 +75,9 @@ namespace PythonBindings
+ #if PY_VERSION_HEX >= 0x030C00A1
+ 0,
+ #endif
++#if PY_VERSION_HEX >= 0x030D00B2
++ 0,
++#endif
+ };
+
+ static int size = (long*)&(py_type_object_header.tp_name) -
(long*)&py_type_object_header;
diff --git a/kodi.spec b/kodi.spec
index afd82fe..a4f027d 100644
--- a/kodi.spec
+++ b/kodi.spec
@@ -80,6 +80,9 @@ Patch1: kodi-20-versioning.patch
# Compiler error
Patch2: kodi-21-find-if.patch
+# Python-3.13 fix
+Patch3: fix_py313.patch
+
%ifarch x86_64
%global _with_crystalhd 1
%endif
@@ -314,6 +317,7 @@ unzip %{SOURCE6}
popd
%patch -P 1 -p1 -b.versioning
%patch -P 2 -p1 -b.find-if
+%patch -P 3 -p1 -b.py313
# Fix up Python shebangs
%py3_shebang_fix \
Show replies by date