From nobody Tue Oct 22 09:56:49 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XXndZ1tFKz5F4ks; Tue, 22 Oct 2024 09:56:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XXndY6cZgz4ZFs; Tue, 22 Oct 2024 09:56:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729591009; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VBQalk83/nBCKl1goojGFfi0EJPXLr0scVlt5FZ/Nuo=; b=sLhQjRHI9Lc4ad0N8bmE+aaZWmNCy9N5fJUAd9NdJHw2n9q6kyi4dwJ/04oOAm7qeyfJc9 hnYzdcTl4F/Kf7VWJmwf/7n2XD38r0p06g526k9Dh1PNPQxiWvTze/n/pN+sjFuq5CCCas 3G8n5hjo3b/yjYtUzvcbGwI+f7RV2xqerYGoRXZqsd2v7BeA0g2QfRlKZ7sYKTTssVx6xk 4bSmE0Cp/S0LOIVqlSUjBTGzCdjMSsTDBZFaY1jjuGn0P+pLGnkriPKrXO/SfAB1XUV+BB OK3d6CJcVmhGts3UvZvMpasIuGN13SxTO6KtDYRwrpnC32fpsmzxs2M1UqQK+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729591009; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VBQalk83/nBCKl1goojGFfi0EJPXLr0scVlt5FZ/Nuo=; b=E4+j+Ulk/UrVl7ypIy/GS8iLbxHkdqNJ1VAnxmMkoCa9pQ/Ad53o/ZkX+p6dvJQ+KHyUzP 3ye+gN/Q94h7/XKbUBiYgjOR5V+VTbIgFTnW882DIHqvAm98pQnR2v0I4/y/kR3thukg9q 3uRuR/L7k8VhwDNm6Z0KV+42I9z2bApwNGFfE55gosjiZpgxzDdC2k+VCjFzxTcX8v3YOK EDEVG92LjYWSM08LSbN9WUTcbFbvPhIafnD+tnSIjfDtaEqhTxu+BC+L+bjT5wZOC9ifCi AgARHuMUMOWA0Qu61lg2+BxMl72BWMG6HFTkRa6X/OSpy40T7waPfobYrLamNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729591009; a=rsa-sha256; cv=none; b=c1Dd3yeeX49fId8TtT25QCTbqsg9NFcoJBFdfxb2bNcJDyuBjB60IOUo8QXkcM2xFxkWrX /mOKIURtsKfOL5Ed8Ttt2vK+RO2zj0d16L+dnP76huuZMTRkCj4IXbB8qohg1t2/Q1nXzI VPQWPH6pEHPtwDpfnCrGw3OfWfOe2KFM7e3hnoVZv2jawTY4dfjp+yOT/VBV+0HOaPXWmp +Z7htoiAE/15Wt8UuqaNq9JeRGvZGMwUyHNwY4YTDxYvSZRg2su1tRw4H6NGwLEcLhCxBt HJDz3w1nOlgOrVb51KFuzRf0Ui6W8B53jeT0Sl6DYS9nGTpv/b0HEbWAA/2MyA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XXndY6D30z18ZT; Tue, 22 Oct 2024 09:56:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49M9unYN040507; Tue, 22 Oct 2024 09:56:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49M9uncK040504; Tue, 22 Oct 2024 09:56:49 GMT (envelope-from git) Date: Tue, 22 Oct 2024 09:56:49 GMT Message-Id: <202410220956.49M9uncK040504@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: a45dc2190f00 - main - security/py-krb5: Allow build with cython 0.29.* List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a45dc2190f0009deb593ceccdd88a7663c388dad Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a45dc2190f0009deb593ceccdd88a7663c388dad commit a45dc2190f0009deb593ceccdd88a7663c388dad Author: Po-Chuan Hsieh AuthorDate: 2024-10-22 09:48:56 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-10-22 09:48:56 +0000 security/py-krb5: Allow build with cython 0.29.* - Bump PORTREVISION for package change Obtained from: https://github.com/jborean93/pykrb5/commit/3caba43693520001ba6847ecbc1b378ea344a68f --- security/py-krb5/Makefile | 6 ++--- security/py-krb5/files/patch-cython | 51 +++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/security/py-krb5/Makefile b/security/py-krb5/Makefile index 782077d6dbb9..2878a0e79c2e 100644 --- a/security/py-krb5/Makefile +++ b/security/py-krb5/Makefile @@ -1,5 +1,6 @@ PORTNAME= krb5 PORTVERSION= 0.7.0 +PORTREVISION= 1 CATEGORIES= security python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,12 +12,11 @@ WWW= https://github.com/jborean93/pykrb5 LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython3>=0:lang/cython3@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}setuptools>=42.0.0:devel/py-setuptools@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=42.0.0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} USES= python ssl -USE_PYTHON= autoplist concurrent pep517 +USE_PYTHON= autoplist concurrent cython pep517 MAKE_ENV= KRB5_KRB5CONFIG=${KRB5CONFIG} diff --git a/security/py-krb5/files/patch-cython b/security/py-krb5/files/patch-cython new file mode 100644 index 000000000000..6bfdddadba97 --- /dev/null +++ b/security/py-krb5/files/patch-cython @@ -0,0 +1,51 @@ +Obtained from: https://github.com/jborean93/pykrb5/commit/3caba43693520001ba6847ecbc1b378ea344a68f + +--- src/krb5/_set_password.pyi.orig 2024-10-03 06:17:02 UTC ++++ src/krb5/_set_password.pyi +@@ -1,3 +1,8 @@ ++# Copyright: (c) 2024 Jordan Borean (@jborean93) ++# MIT License (see LICENSE or https://opensource.org/licenses/MIT) ++ ++from __future__ import annotations ++ + import enum + import typing + +@@ -57,7 +62,7 @@ def set_password( + context: Context, + creds: Creds, + newpw: bytes, +- change_password_for: typing.Optional[Principal] = None, ++ change_password_for: Principal | None = None, + ) -> SetPasswordResult: + """Set a password for a principal using specified credentials. + +@@ -87,7 +92,7 @@ def set_password_using_ccache( + context: Context, + ccache: CCache, + newpw: bytes, +- change_password_for: typing.Optional[Principal] = None, ++ change_password_for: Principal | None = None, + ) -> SetPasswordResult: + """Set a password for a principal using cached credentials. + +--- src/krb5/_set_password.pyx.orig 2024-10-03 06:17:02 UTC ++++ src/krb5/_set_password.pyx +@@ -74,7 +74,7 @@ def set_password( + Context context not None, + Creds creds not None, + const unsigned char[:] newpw not None, +- change_password_for: typing.Optional[Principal] = None, ++ Principal change_password_for = None, + ) -> SetPasswordResult: + cdef krb5_error_code err = 0 + cdef int result_code +@@ -134,7 +134,7 @@ def set_password_using_ccache( + Context context not None, + CCache ccache not None, + const unsigned char[:] newpw not None, +- change_password_for: typing.Optional[Principal] = None, ++ Principal change_password_for = None, + ) -> SetPasswordResult: + cdef krb5_error_code err = 0 + cdef int result_code