[packages/python-gevent] Rel 6; disable python3 (now in python3-gevent.spec)

arekm arekm at pld-linux.org
Sat Mar 15 01:59:37 CET 2025


commit 06d738993600ef5d002c749598ab7e1ddd5acf07
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 15 00:04:57 2025 +0100

    Rel 6; disable python3 (now in python3-gevent.spec)

 not-final.patch    | 16 ++++++++++++++++
 python-gevent.spec |  8 +++++---
 2 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/python-gevent.spec b/python-gevent.spec
index 6cbde78..e6a62e9 100644
--- a/python-gevent.spec
+++ b/python-gevent.spec
@@ -12,14 +12,14 @@
 %bcond_with	system_libev	# system libev [test__core_stat.py test fails]
 %bcond_without	system_c_ares	# system c_ares
 %bcond_without	python2		# CPython 2.x module
-%bcond_without	python3		# CPython 3.x module
+%bcond_with	python3		# CPython 3.x module
 
 %define	module	gevent
 Summary:	A coroutine-based Python 2 networking library
 Summary(pl.UTF-8):	Biblioteka sieciowa dla Pythona 2 oparta na korutynach
 Name:		python-%{module}
 Version:	21.12.0
-Release:	6
+Release:	7
 Epoch:		1
 License:	MIT
 Group:		Libraries/Python
@@ -28,6 +28,7 @@ Source0:	https://files.pythonhosted.org/packages/source/g/gevent/%{module}-%{ver
 # Source0-md5:	84014946a25407706cbe9ecb088f1e9c
 Patch0:		%{name}-sphinx-python3.patch
 Patch1:		known_failures-pld.patch
+Patch2:		not-final.patch
 URL:		http://www.gevent.org/
 %{?with_system_c_ares:BuildRequires:	c-ares-devel >= 1.10.0}
 %{?with_system_libev:BuildRequires:	libev-devel >= 4.23}
@@ -154,7 +155,8 @@ Dokumentacja API modułu Pythona gevent.
 %prep
 %setup -q -n %{module}-%{version}
 %patch -P 0 -p1
-#%patch1 -p1
+#%%patch -P 1 -p1
+%patch -P 2 -p1
 
 find . -type f -name '*.orig' | xargs -r %{__rm}
 
diff --git a/not-final.patch b/not-final.patch
new file mode 100644
index 0000000..444a195
--- /dev/null
+++ b/not-final.patch
@@ -0,0 +1,16 @@
+gevent fails to build with Cython 3.0.10.  As per
+https://github.com/gevent/gevent/issues/2031, removing the
+cython.final decorator works around this.
+
+Upstream-Status: Pending
+Signed-off-by: Ross Burton <ross.burton at arm.com>
+
+--- a/src/gevent/_gevent_cqueue.pxd
++++ b/src/gevent/_gevent_cqueue.pxd
+@@ -75,7 +75,6 @@ cdef class ItemWaiter(Waiter):
+     cdef readonly Queue queue
+ 
+ 
+- at cython.final
+ cdef class UnboundQueue(Queue):
+     pass
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-gevent.git/commitdiff/06d738993600ef5d002c749598ab7e1ddd5acf07



More information about the pld-cvs-commit mailing list