public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/krb5/, dev-python/krb5/files/
@ 2023-06-01 17:16 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2023-06-01 17:16 UTC (permalink / raw
  To: gentoo-commits

commit:     df22d5e2f561db09570b1a03b4f3e20c73d75ceb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  1 17:13:45 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jun  1 17:16:16 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df22d5e2

dev-python/krb5: Backport cython-3 fix

Closes: https://bugs.gentoo.org/898686
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/krb5/files/krb5-0.5.0-cython-3.patch | 26 +++++++++++++++++++++++++
 dev-python/krb5/krb5-0.5.0.ebuild               |  5 +++++
 2 files changed, 31 insertions(+)

diff --git a/dev-python/krb5/files/krb5-0.5.0-cython-3.patch b/dev-python/krb5/files/krb5-0.5.0-cython-3.patch
new file mode 100644
index 000000000000..6d9d34dad659
--- /dev/null
+++ b/dev-python/krb5/files/krb5-0.5.0-cython-3.patch
@@ -0,0 +1,26 @@
+From 0e843062ac3916ee0a36f59ba53caabba64cb062 Mon Sep 17 00:00:00 2001
+From: Matus Valo <matusvalo@gmail.com>
+Date: Wed, 15 Mar 2023 21:02:10 +0100
+Subject: [PATCH] Declare the function as noexcept when it is not raising
+ exception.
+
+Cython 3 will require noexcept keyword in the declaraction of the function not raising
+an exceptions.
+---
+ pyproject.toml      | 2 +-
+ src/krb5/_creds.pyx | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/krb5/_creds.pyx b/src/krb5/_creds.pyx
+index a4a8a33..5b550e6 100644
+--- a/src/krb5/_creds.pyx
++++ b/src/krb5/_creds.pyx
+@@ -263,7 +263,7 @@ cdef krb5_error_code prompt_callback(
+     const char *banner,
+     int num_prompts,
+     krb5_prompt *prompts,
+-) with gil:
++) noexcept with gil:
+     try:
+         prompter = <Krb5Prompt>data
+ 

diff --git a/dev-python/krb5/krb5-0.5.0.ebuild b/dev-python/krb5/krb5-0.5.0.ebuild
index 4a3bacb22774..5c04cef7755f 100644
--- a/dev-python/krb5/krb5-0.5.0.ebuild
+++ b/dev-python/krb5/krb5-0.5.0.ebuild
@@ -30,3 +30,8 @@ BDEPEND="
 "
 
 distutils_enable_tests pytest
+
+PATCHES=(
+	# https://github.com/jborean93/pykrb5/pull/27
+	"${FILESDIR}/${P}-cython-3.patch"
+)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-01 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-01 17:16 [gentoo-commits] repo/gentoo:master commit in: dev-python/krb5/, dev-python/krb5/files/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox