git: 8d0bd4143c66 - main - security/py-kerberos: Make compatible with python3.11
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 19 Jan 2025 16:22:45 UTC
The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=8d0bd4143c66131728dc6c321af2656752299199 commit 8d0bd4143c66131728dc6c321af2656752299199 Author: topical <topical@gmx.net> AuthorDate: 2025-01-19 16:19:01 +0000 Commit: Dan Langille <dvl@FreeBSD.org> CommitDate: 2025-01-19 16:22:27 +0000 security/py-kerberos: Make compatible with python3.11 PR: 280567 --- security/py-kerberos/Makefile | 2 +- security/py-kerberos/files/patch-src_kerberos.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/security/py-kerberos/Makefile b/security/py-kerberos/Makefile index 5d0c6fb20d05..73b97970dd4d 100644 --- a/security/py-kerberos/Makefile +++ b/security/py-kerberos/Makefile @@ -1,6 +1,6 @@ PORTNAME= kerberos PORTVERSION= 1.3.1 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= security python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/security/py-kerberos/files/patch-src_kerberos.c b/security/py-kerberos/files/patch-src_kerberos.c new file mode 100644 index 000000000000..cd82fc5a3ccc --- /dev/null +++ b/security/py-kerberos/files/patch-src_kerberos.c @@ -0,0 +1,23 @@ +--- src/kerberos.c.orig 2021-01-09 04:30:38 UTC ++++ src/kerberos.c +@@ -14,6 +14,7 @@ + * limitations under the License. + **/ + ++#define PY_SSIZE_T_CLEAN + #include <Python.h> + + #include "kerberosbasic.h" +@@ -244,9 +245,9 @@ static PyObject *channelBindings(PyObject *self, PyObj + char *initiator_address = NULL; + char *acceptor_address = NULL; + char *application_data = NULL; +- int initiator_length = 0; +- int acceptor_length = 0; +- int application_length = 0; ++ Py_ssize_t initiator_length = 0; ++ Py_ssize_t acceptor_length = 0; ++ Py_ssize_t application_length = 0; + + PyObject *pychan_bindings = NULL; + struct gss_channel_bindings_struct *input_chan_bindings;