[packages/elektra] - added python 3.13 compatibility fix; release 5

qboosh qboosh at pld-linux.org
Wed Apr 2 21:45:22 CEST 2025


commit e550fdb9efe5808c2d5573a2452f24d53bc2ca39
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Apr 2 21:38:50 2025 +0200

    - added python 3.13 compatibility fix; release 5

 elektra-python.patch | 11 +++++++++++
 elektra.spec         |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/elektra.spec b/elektra.spec
index 7e628eb..8f501ba 100644
--- a/elektra.spec
+++ b/elektra.spec
@@ -34,13 +34,14 @@ Summary:	A key/value pair database to store software configurations
 Summary(pl.UTF-8):	Baza kluczy/wartości do przechowywania konfiguracji oprogramowania
 Name:		elektra
 Version:	0.11.0
-Release:	4
+Release:	5
 License:	BSD
 Group:		Applications/System
 Source0:	https://www.libelektra.org/ftp/elektra/releases/%{name}-%{version}.tar.gz
 # Source0-md5:	47e52f34507fefd3e05a399383be7353
 Patch0:		%{name}-zsh.patch
 Patch1:		%{name}-no-markdown.patch
+Patch2:		%{name}-python.patch
 Patch4:		%{name}-gpgme.patch
 Patch5:		%{name}-jni.patch
 Patch6:		%{name}-system-gtest.patch
@@ -494,6 +495,7 @@ Wiązanie języka Ruby dla Elektry.
 %setup -q
 %patch -P 0 -p1
 %patch -P 1 -p1
+%patch -P 2 -p1
 %patch -P 4 -p1
 %patch -P 5 -p1
 %patch -P 6 -p1
diff --git a/elektra-python.patch b/elektra-python.patch
new file mode 100644
index 0000000..7be73d8
--- /dev/null
+++ b/elektra-python.patch
@@ -0,0 +1,11 @@
+--- elektra-0.11.0/src/plugins/python/python.cpp.orig	2023-08-04 14:09:00.000000000 +0200
++++ elektra-0.11.0/src/plugins/python/python.cpp	2025-04-02 19:48:08.861082920 +0200
+@@ -337,7 +337,7 @@ int PYTHON_PLUGIN_FUNCTION (Open) (ckdb:
+ 
+ 		/* create instance of class */
+ 		PyObject * inst_args = Py_BuildValue ("()");
+-		PyObject * inst = PyEval_CallObject (klass, inst_args);
++		PyObject * inst = PyObject_CallObject (klass, inst_args);
+ 		Py_DECREF (klass);
+ 		Py_DECREF (inst_args);
+ 		if (inst == nullptr)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/elektra.git/commitdiff/e550fdb9efe5808c2d5573a2452f24d53bc2ca39



More information about the pld-cvs-commit mailing list