From 63ad10bef5a237d5d97d3b8785b269797e2870c2 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Tue, 14 May 2024 21:41:09 +0200 Subject: [PATCH] Fix build with Cython 3.0.10 Resolves: rhbz#2275488 --- cython-3.0.10-fix.patch | 12 ++++++++++++ python-gevent.spec | 11 ++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 cython-3.0.10-fix.patch diff --git a/cython-3.0.10-fix.patch b/cython-3.0.10-fix.patch new file mode 100644 index 0000000..74ce6e9 --- /dev/null +++ b/cython-3.0.10-fix.patch @@ -0,0 +1,12 @@ +diff --git a/src/gevent/_gevent_cqueue.pxd b/src/gevent/_gevent_cqueue.pxd +index 301fec1..3ebdf40 100644 +--- a/src/gevent/_gevent_cqueue.pxd ++++ b/src/gevent/_gevent_cqueue.pxd +@@ -75,7 +75,6 @@ cdef class ItemWaiter(Waiter): + cdef readonly Queue queue + + +-@cython.final + cdef class UnboundQueue(Queue): + pass + diff --git a/python-gevent.spec b/python-gevent.spec index c0a6fe0..ba9c961 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,13 +4,18 @@ Name: python-%{modname} Version: 23.9.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ Source0: %{pypi_source %{modname} %{version} tar.gz} +# Fix FTBFS with Cython 3.0.10 +# Downstream only +# Reported upstream: https://github.com/gevent/gevent/issues/2031 +Patch: cython-3.0.10-fix.patch + BuildRequires: gcc BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -92,6 +97,10 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Tue May 14 2024 Charalampos Stratakis - 23.9.1-2 +- Fix build with Cython 3.0.10 +- Resolves: rhbz#2275488 + * Sat Feb 17 2024 Orion Poplawski - 23.9.1-1 - Update to 23.9.1 CVE-2023-41419 (bz#2242244)