forked from OpenDingux/buildroot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package/kodi: fix build with python 3.12
Signed-off-by: Bernd Kuhls <[email protected]> Signed-off-by: Yann E. MORIN <[email protected]>
- Loading branch information
1 parent
ce7d054
commit cf368a3
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
package/kodi/0006-PythonBindings-TypeInfo-add-initialization-of-tp_wat.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
From cbfee0e6add2b57c6a2a8641a60b4322543f4675 Mon Sep 17 00:00:00 2001 | ||
From: Lukas Rusak <[email protected]> | ||
Date: Wed, 12 Jul 2023 19:58:08 -0700 | ||
Subject: [PATCH] PythonBindings: TypeInfo: add initialization of | ||
tp_watched for PyTypeObject | ||
|
||
This member was added in upstream commit https://github.com/python/cpython/commit/82ccbf69a842db25d8117f1c41b47aa5b4ed96ab | ||
|
||
This change first appeared in Python v3.12.0a1 | ||
|
||
Signed-off-by: Lukas Rusak <[email protected]> | ||
|
||
Upstream: https://github.com/xbmc/xbmc/commit/2c84ee54a75770e291f38d4ebb2c31c8f2c3b8c5 | ||
|
||
Signed-off-by: Bernd Kuhls <[email protected]> | ||
--- | ||
xbmc/interfaces/python/swig.cpp | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/xbmc/interfaces/python/swig.cpp b/xbmc/interfaces/python/swig.cpp | ||
index 5a2599a84ea0f..74baa72ee5c4c 100644 | ||
--- a/xbmc/interfaces/python/swig.cpp | ||
+++ b/xbmc/interfaces/python/swig.cpp | ||
@@ -71,6 +71,9 @@ namespace PythonBindings | ||
#endif | ||
#if PY_VERSION_HEX < 0x03090000 | ||
0, | ||
+#endif | ||
+#if PY_VERSION_HEX >= 0x030C00A1 | ||
+ 0, | ||
#endif | ||
}; | ||
|
||
|
||
From e3ba40936cc10de05c46d507851568ee3e351f43 Mon Sep 17 00:00:00 2001 | ||
From: Lukas Rusak <[email protected]> | ||
Date: Thu, 13 Jul 2023 08:57:38 -0700 | ||
Subject: [PATCH] swig.cpp: add clang-format formatting | ||
|
||
Signed-off-by: Lukas Rusak <[email protected]> | ||
--- | ||
xbmc/interfaces/python/swig.cpp | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/xbmc/interfaces/python/swig.cpp b/xbmc/interfaces/python/swig.cpp | ||
index 74baa72ee5c4c..0c49f87ca84e1 100644 | ||
--- a/xbmc/interfaces/python/swig.cpp | ||
+++ b/xbmc/interfaces/python/swig.cpp | ||
@@ -18,8 +18,8 @@ namespace PythonBindings | ||
{ | ||
TypeInfo::TypeInfo(const std::type_info& ti) : swigType(NULL), parentType(NULL), typeIndex(ti) | ||
{ | ||
- static PyTypeObject py_type_object_header = | ||
- { PyVarObject_HEAD_INIT(nullptr, 0) 0, | ||
+ static PyTypeObject py_type_object_header = { | ||
+ PyVarObject_HEAD_INIT(nullptr, 0) 0, | ||
0, | ||
0, | ||
0, |