[packages/libimobiledevice] - fixes for Cython 3; release 9

qboosh qboosh at pld-linux.org
Sat Apr 12 21:26:47 CEST 2025


commit 49d1f9ebd81a56b6b6c51e92102d50db11399f12
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 12 21:18:50 2025 +0200

    - fixes for Cython 3; release 9

 libimobiledevice-cython.patch | 33 +++++++++++++++++++++++++++++++++
 libimobiledevice.spec         |  5 ++++-
 2 files changed, 37 insertions(+), 1 deletion(-)
---
diff --git a/libimobiledevice.spec b/libimobiledevice.spec
index 33fce44..72ff353 100644
--- a/libimobiledevice.spec
+++ b/libimobiledevice.spec
@@ -16,7 +16,7 @@ Summary:	Library for connecting to mobile devices
 Summary(pl.UTF-8):	Biblioteka do łączenia się z urządzeniami mobilnymi
 Name:		libimobiledevice
 Version:	1.3.0
-Release:	8
+Release:	9
 License:	LGPL v2+
 Group:		Libraries
 #Source0Download: https://www.libimobiledevice.org/
@@ -148,6 +148,8 @@ install -d build
 cd build
 %define configuredir ..
 %configure \
+	CYTHON=cython2 \
+	PYTHON=%{__python} \
 	%{!?with_openssl:--disable-openssl} \
 	--disable-silent-rules \
 	%{!?with_static_libs:--disable-static} \
@@ -162,6 +164,7 @@ install -d build-py3
 cd build-py3
 %define configuredir ..
 %configure \
+	CYTHON=cython3 \
 	PYTHON=%{__python3} \
 	--disable-silent-rules \
 	%{!?with_static_libs:--disable-static}
diff --git a/libimobiledevice-cython.patch b/libimobiledevice-cython.patch
index e06c7e8..2a8c3d2 100644
--- a/libimobiledevice-cython.patch
+++ b/libimobiledevice-cython.patch
@@ -10,3 +10,36 @@ diff -urNp -x '*.orig' libimobiledevice-1.3.0.org/cython/lockdown.pxi libimobile
              bytes session_id
          err = lockdownd_start_session(self._c_client, host_id, &c_session_id, <int *>&ssl_enabled)
          try:
+--- libimobiledevice-1.3.0/cython/installation_proxy.pxi.orig	2017-07-18 21:03:02.000000000 +0200
++++ libimobiledevice-1.3.0/cython/installation_proxy.pxi	2025-04-12 19:00:25.736985506 +0200
+@@ -27,7 +27,7 @@ cdef extern from "libimobiledevice/insta
+     instproxy_error_t instproxy_restore(instproxy_client_t client, char *appid, plist.plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
+     instproxy_error_t instproxy_remove_archive(instproxy_client_t client, char *appid, plist.plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
+ 
+-cdef void instproxy_notify_cb(plist.plist_t command, plist.plist_t status, void *py_callback) with gil:
++cdef void instproxy_notify_cb(plist.plist_t command, plist.plist_t status, void *py_callback) noexcept with gil:
+     (<object>py_callback)(plist.plist_t_to_node(command, False), plist.plist_t_to_node(status, False))
+ 
+ cdef class InstallationProxyError(BaseError):
+--- libimobiledevice-1.3.0/cython/imobiledevice.pyx.orig	2020-06-07 16:57:09.000000000 +0200
++++ libimobiledevice-1.3.0/cython/imobiledevice.pyx	2025-04-12 19:02:20.821035188 +0200
+@@ -94,7 +94,7 @@ cdef class iDeviceEvent:
+         def __get__(self):
+             return self._c_event.conn_type
+ 
+-cdef void idevice_event_cb(const_idevice_event_t c_event, void *user_data) with gil:
++cdef void idevice_event_cb(const_idevice_event_t c_event, void *user_data) noexcept with gil:
+     cdef iDeviceEvent event = iDeviceEvent.__new__(iDeviceEvent)
+     event._c_event = c_event
+     (<object>user_data)(event)
+--- libimobiledevice-1.3.0/cython/notification_proxy.pxi.orig	2017-07-18 21:03:02.000000000 +0200
++++ libimobiledevice-1.3.0/cython/notification_proxy.pxi	2025-04-12 19:03:04.957976592 +0200
+@@ -70,7 +70,7 @@ NP_ITDBPREP_DID_END = C_NP_ITDBPREP_DID_
+ NP_LANGUAGE_CHANGED = C_NP_LANGUAGE_CHANGED
+ NP_ADDRESS_BOOK_PREF_CHANGED = C_NP_ADDRESS_BOOK_PREF_CHANGED
+ 
+-cdef void np_notify_cb(const_char_ptr notification, void *py_callback):
++cdef void np_notify_cb(const_char_ptr notification, void *py_callback) noexcept with gil:
+     (<object>py_callback)(notification)
+ 
+ cdef class NotificationProxyError(BaseError):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libimobiledevice.git/commitdiff/49d1f9ebd81a56b6b6c51e92102d50db11399f12



More information about the pld-cvs-commit mailing list