[packages/libsigrok] - fixes for python 3.13; release 7

qboosh qboosh at pld-linux.org
Sun Apr 6 16:45:41 CEST 2025


commit b93c61495700871de773d60608157f55b0d5c913
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 6 16:11:51 2025 +0200

    - fixes for python 3.13; release 7

 libsigrok-python.patch | 29 +++++++++++++++++++++++++++++
 libsigrok.spec         |  2 +-
 2 files changed, 30 insertions(+), 1 deletion(-)
---
diff --git a/libsigrok.spec b/libsigrok.spec
index 616048c..36511b6 100644
--- a/libsigrok.spec
+++ b/libsigrok.spec
@@ -15,7 +15,7 @@ Summary:	Basic hardware access drivers for logic analyzers
 Summary(pl.UTF-8):	Podstawowe sterowniki dostępu do sprzętu dla analizatorów logicznych
 Name:		libsigrok
 Version:	0.5.2
-Release:	6
+Release:	7
 License:	GPL v3+
 Group:		Libraries
 Source0:	http://sigrok.org/download/source/libsigrok/%{name}-%{version}.tar.gz
diff --git a/libsigrok-python.patch b/libsigrok-python.patch
index 670f512..9d4999a 100644
--- a/libsigrok-python.patch
+++ b/libsigrok-python.patch
@@ -10,3 +10,32 @@ diff -urNp -x '*.orig' libsigrok-0.5.2.org/Makefile.am libsigrok-0.5.2/Makefile.
  
  python-clean:
  	-$(AM_V_at)rm -f $(PDIR)/timestamp
+--- libsigrok-0.5.2/bindings/python/sigrok/core/classes.i.orig	2019-12-25 21:29:19.000000000 +0100
++++ libsigrok-0.5.2/bindings/python/sigrok/core/classes.i	2025-04-06 15:44:05.193989617 +0200
+@@ -131,7 +131,7 @@ typedef guint pyg_flags_type;
+ 
+         auto arglist = Py_BuildValue("(OO)", log_obj, string_obj);
+ 
+-        auto result = PyEval_CallObject($input, arglist);
++        auto result = PyObject_CallObject($input, arglist);
+ 
+         Py_XDECREF(arglist);
+         Py_XDECREF(log_obj);
+@@ -174,7 +174,7 @@ typedef guint pyg_flags_type;
+     $1 = [=] () {
+         const auto gstate = PyGILState_Ensure();
+ 
+-        const auto result = PyEval_CallObject($input, nullptr);
++        const auto result = PyObject_CallObject($input, nullptr);
+         const bool completed = !PyErr_Occurred();
+         const bool valid_result = (completed && result == Py_None);
+ 
+@@ -218,7 +218,7 @@ typedef guint pyg_flags_type;
+ 
+         auto arglist = Py_BuildValue("(OO)", device_obj, packet_obj);
+ 
+-        auto result = PyEval_CallObject($input, arglist);
++        auto result = PyObject_CallObject($input, arglist);
+ 
+         Py_XDECREF(arglist);
+         Py_XDECREF(device_obj);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsigrok.git/commitdiff/b93c61495700871de773d60608157f55b0d5c913



More information about the pld-cvs-commit mailing list