From 4019710d8fd09c08393e5a71f40e90d05ef4d54d0fd97c28d101ece142b2b815 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 28 May 2024 13:52:01 +0000 Subject: [PATCH] Accepting request 1177321 from home:glaubitz:branches:devel:languages:python - Add gh-2031-cython-workaround.patch which fixes a regression with Cython 3.0.10 which caused an FTBFS with GCC 14 OBS-URL: https://build.opensuse.org/request/show/1177321 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=111 --- gh-2031-cython-workaround.patch | 11 +++++++++++ python-gevent.changes | 6 ++++++ python-gevent.spec | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 gh-2031-cython-workaround.patch diff --git a/gh-2031-cython-workaround.patch b/gh-2031-cython-workaround.patch new file mode 100644 index 0000000..c957226 --- /dev/null +++ b/gh-2031-cython-workaround.patch @@ -0,0 +1,11 @@ +diff -Nru gevent-24.2.1.orig/src/gevent/_gevent_cqueue.pxd gevent-24.2.1/src/gevent/_gevent_cqueue.pxd +--- gevent-24.2.1.orig/src/gevent/_gevent_cqueue.pxd 2024-02-14 12:22:11.000000000 +0100 ++++ gevent-24.2.1/src/gevent/_gevent_cqueue.pxd 2024-05-28 12:54:09.729241504 +0200 +@@ -75,7 +75,6 @@ + cdef readonly Queue queue + + +-@cython.final + cdef class UnboundQueue(Queue): + pass + diff --git a/python-gevent.changes b/python-gevent.changes index 74c80f2..534402b 100644 --- a/python-gevent.changes +++ b/python-gevent.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 28 10:56:43 UTC 2024 - John Paul Adrian Glaubitz + +- Add gh-2031-cython-workaround.patch which fixes a regression + with Cython 3.0.10 which caused an FTBFS with GCC 14 + ------------------------------------------------------------------- Mon Apr 22 07:38:07 UTC 2024 - Daniel Garcia diff --git a/python-gevent.spec b/python-gevent.spec index 63720eb..f2e0ff1 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -40,6 +40,10 @@ Patch2: gevent-opensuse-nocolor-tests.patch # Fix some tests that fails with python 3.12.3 in the current version, # related to gh#python/cpython#113964 Patch3: gh-113964-fix-tests-3.12.3.patch +# PATCH-FIX-OPENSUSE gh-2031-cython-workaround.patch +# Fix FTBFS with GCC 14 and Cython 3.0.10 +# https://github.com/gevent/gevent/issues/2031 +Patch4: gh-2031-cython-workaround.patch BuildRequires: %{python_module Cython >= 3.0.2} BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel >= 3.8}