diff options
Diffstat (limited to 'dev-python/krb5')
-rw-r--r-- | dev-python/krb5/Manifest | 3 | ||||
-rw-r--r-- | dev-python/krb5/files/krb5-0.5.0-cython-3.patch | 26 | ||||
-rw-r--r-- | dev-python/krb5/krb5-0.5.0.ebuild | 5 |
3 files changed, 33 insertions, 1 deletions
diff --git a/dev-python/krb5/Manifest b/dev-python/krb5/Manifest index 422778e272a8..6d3529a8ee46 100644 --- a/dev-python/krb5/Manifest +++ b/dev-python/krb5/Manifest @@ -1,3 +1,4 @@ +AUX krb5-0.5.0-cython-3.patch 800 BLAKE2B 215b97c42aedbeb321cff89c912e6e071f35989ccadcac4990e495d09907a448d01bdd112ac471074e4b6da96d14e643ca8a77c9224cc728b5a9fa5832bc13e8 SHA512 cd2cd8cba18f677a879ce41ae47bbd8812526ed211d96112df2bdad6f8ff9c4ba3c446b30d4bd98f45a8d70c5c24fc13ec9a106d6a484f17aaae9eeae8d73a04 DIST krb5-0.5.0.tar.gz 220969 BLAKE2B e492220906afff138a35e0545a9fec4d802e37e17d776fa5448361f1d62a93500063f783e638bbf903165a1998f9d2eaa1444d3bf5ce8446b781c69596c53080 SHA512 a5e8dc16026602373a00aae9188256b586a9f02cee7a413b7bc8ff0525660c416256179b56795cb9a69ca9dab0afff258f803a810220472e086c1c497d044567 -EBUILD krb5-0.5.0.ebuild 574 BLAKE2B 49fddd4e514a97e800eb8cf3437b8894a410d90bf830fbc8998dfa7e1b3e174b44b1b741c2d365766c3da92c8b846cbb593eb5723056a0fdac7b79fd66019e7f SHA512 76cf84b7aa1a03fad214cee5121567ad4a28b326337b1a00da015a18b25930ef1a5e65733066d6eccd0a280d2482938fb45bb69e1ee3489330e9d329bd5991cc +EBUILD krb5-0.5.0.ebuild 669 BLAKE2B 88ac7f97d73e549000585abb99a6edef20c0f91c39a1474292c6f4f8f22d9b2f235f786662d45101ea4c38a5a9e45b6496f8d97c206d427373f862bad5a69725 SHA512 cfc82e1e693e700b305f4635a450f97f17361fdcb585019bc45d4c7141f38a92aad800fa97989334d0715e9d56fdc57b2bc6b86fd8f976e50449d2b5ffb2e8ae MISC metadata.xml 364 BLAKE2B e69a14082c08f32db33234a5738190f54374c13a2f114d65e26a8e224c96f23be90e0cf602830b757fdadfaa058d723ab2cd51e6980f08fb090ca7b014416935 SHA512 f65eb368468d221f55e0701f8ae3790dbf083be2d3f210e9688b27db892b6d3e566a0cea3912d45a4e1e6da7aa092bc82eb6a4b861b459bb8decf914c5192d6a 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" +) |