From 6b9167400b0e3e588a689eca5736cb188ef997c4 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 6 Jun 2024 17:16:04 +0000 Subject: python3-gevent: fix build with Cython 3.0.10 Cython 3.0.10 generates code which causes compiler errors: src/gevent/queue.c:11894:114: error: passing argument 4 of '__pyx_vtabptr_6gevent_14_gevent_cqueue_UnboundQueue->__pyx_base.put' from incompatible pointer type [-Wincompatible-pointer-types] >From discussion upstream, removing the final decorator works around this. Signed-off-by: Ross Burton Signed-off-by: Khem Raj --- .../python/python3-gevent/not-final.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-gevent/not-final.patch (limited to 'meta-python/recipes-devtools/python/python3-gevent/not-final.patch') diff --git a/meta-python/recipes-devtools/python/python3-gevent/not-final.patch b/meta-python/recipes-devtools/python/python3-gevent/not-final.patch new file mode 100644 index 0000000000..444a195da4 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-gevent/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 + +--- 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 -- cgit v1.2.3-54-g00ecf