diff options
author | Ross Burton <ross.burton@arm.com> | 2024-06-06 17:16:04 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-06-07 09:12:00 -0700 |
commit | 6b9167400b0e3e588a689eca5736cb188ef997c4 (patch) | |
tree | ac0be197a9dfa6ca4083e204940cd9b1bd624b4b /meta-python/recipes-devtools/python/python3-gevent/not-final.patch | |
parent | d06a9c504928f3369568e8db3b53be368f465e1d (diff) | |
download | meta-openembedded-6b9167400b0e3e588a689eca5736cb188ef997c4.tar.gz |
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 <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-gevent/not-final.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-gevent/not-final.patch | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ | |||
1 | gevent fails to build with Cython 3.0.10. As per | ||
2 | https://github.com/gevent/gevent/issues/2031, removing the | ||
3 | cython.final decorator works around this. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
7 | |||
8 | --- a/src/gevent/_gevent_cqueue.pxd | ||
9 | +++ b/src/gevent/_gevent_cqueue.pxd | ||
10 | @@ -75,7 +75,6 @@ cdef class ItemWaiter(Waiter): | ||
11 | cdef readonly Queue queue | ||
12 | |||
13 | |||
14 | -@cython.final | ||
15 | cdef class UnboundQueue(Queue): | ||
16 | pass | ||