summaryrefslogtreecommitdiff
path: root/dev-python/jq/files/jq-1.5.0-cython3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/jq/files/jq-1.5.0-cython3.patch')
-rw-r--r--dev-python/jq/files/jq-1.5.0-cython3.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-python/jq/files/jq-1.5.0-cython3.patch b/dev-python/jq/files/jq-1.5.0-cython3.patch
new file mode 100644
index 000000000000..b4b66b65139c
--- /dev/null
+++ b/dev-python/jq/files/jq-1.5.0-cython3.patch
@@ -0,0 +1,20 @@
+https://bugs.gentoo.org/898684
+https://github.com/mwilliamson/jq.py/commit/c2c7ed1f25b51947ebb690f6b8464c78fe83bb2b
+
+From c2c7ed1f25b51947ebb690f6b8464c78fe83bb2b Mon Sep 17 00:00:00 2001
+From: Michael Williamson <mike@zwobble.org>
+Date: Thu, 31 Aug 2023 23:11:28 +0100
+Subject: [PATCH] Add explicit noexcept to _store_error for Cython 3
+ compatibility
+
+--- a/jq.pyx
++++ b/jq.pyx
+@@ -172,7 +172,7 @@ cdef jq_state* _compile(object program_bytes, object args) except NULL:
+ return jq
+
+
+-cdef void _store_error(void* store_ptr, jv error):
++cdef void _store_error(void* store_ptr, jv error) noexcept:
+ # TODO: handle errors not of JV_KIND_STRING
+ cdef _ErrorStore store = <_ErrorStore>store_ptr
+ if jv_get_kind(error) == JV_KIND_STRING: