From nobody Fri Mar 25 13:50:57 2022 X-Original-To: dev-commits-ports-all@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 9F0131A34840; Fri, 25 Mar 2022 13:50:59 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KQ3QV6jr4z3hDV; Fri, 25 Mar 2022 13:50:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216259; 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=35g0OuqXkrfwXB5BDs3+zTGtzUINSLFkR9mA62PPPws=; b=sMHmyOLcoMOBqxMYh/L5AKV9S9kdTGdDB0VBSXnXv/vFC73e54CkhTvj4C0qSZjNg7T/+3 QhpQH+fkEErOewmFk8GqkYG+tnxzXvUN/Cfz524+UayiA4cPxIs0MhtACxe/DsQsKWTAWv as2Xruq7P9VwK+PCFOA2XKBhOfqJAv3qFpdYfIJ8f1OGnX1qUx6MsAviRPvMfDIv9WUMPd XwK04XCt4aSDwfgcfp9O3GzSIMKxxb1tcGgPADU5S9BjmQ+obhEzb5hlfjLsV0g7T6yo0s CpffK/uH50vzldMYFvUZyA4U7Jtc0O4f6rVwk/EvbEoMqmjdLDDWAhwsJJ2QYw== 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 EC09B595F; Fri, 25 Mar 2022 13:50:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22PDovXb037639; Fri, 25 Mar 2022 13:50:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDovYQ037638; Fri, 25 Mar 2022 13:50:57 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:50:57 GMT Message-Id: <202203251350.22PDovYQ037638@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: 9b17eb62a180 - main - security/py-tlslite: Fix build with setuptools 58.0.0+ List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 9b17eb62a1804d9e04fa41e3cb53fb1088da1c75 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216259; 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=35g0OuqXkrfwXB5BDs3+zTGtzUINSLFkR9mA62PPPws=; b=WfHGsz1RcpMbUSCiw6kzEqaMcbed1vCQ2OHxYXb4gB4htdfbqDrjXpgNarU6Dlg2a3Y7xA ySSNmlRnn3Rgc+O2i6t3nuYv+QbJSKZyjCKWgFcSKfRHA8kMTBjhfxkStMdHx7cgmoM11s mhHQ7zVO/AN4b3+hjOoTHkFcqgR3alOzWrLUftpBfx0ImWmZZXwWuvGfLI3+78Iuwygi+z unIgi4DArXFgmzauLX7k5ODmZc7+3PZF0XzQJGPVTda1EwkGStulGW/NcdMkyMVvvPN0CS yMhZc/wuyjg8T+oquR3+dMzn4D7Bx8dBo2M+I3ToqMDlfC7uAod6KK4mE7HEpQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648216259; a=rsa-sha256; cv=none; b=t3P/CB1UxE1uHknQ8z8d5vYct+ANIZbwLJkhfDknoD3NlOLZG/S3YHUSyzBm+OZG2ViVTW QUZW4UtzU/T8mqQD6gd87eOdfvgb9DGc2nZ2W7wnvzg9z0cALl78ystnjGqpAYQvdLs1I0 ykFDC4QcK61SBwbpj8p9Mh0x85qwasrcig1xZnrdyuKDiweijxWaMMfUQbiDJmsyFoPHtJ TqjACuOpawipzJzQuxiD/l3PFDBJvTYsQo2eZClDavAUE4T1RhRAUPWP1be0imDPA4E/0l TwLpyYhai5ym8L+tMHsI1NDDAj5B9CqAOwmAs2uxv6qBYhXwD52Vbh76fLuraA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=9b17eb62a1804d9e04fa41e3cb53fb1088da1c75 commit 9b17eb62a1804d9e04fa41e3cb53fb1088da1c75 Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 13:34:14 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:38:21 +0000 security/py-tlslite: Fix build with setuptools 58.0.0+ async is a reserved keyword since Python 3.7. Therefore, I change async to asynchronous to fix SyntaxError. With hat: python --- security/py-tlslite/files/patch-async | 89 +++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/security/py-tlslite/files/patch-async b/security/py-tlslite/files/patch-async new file mode 100644 index 000000000000..6a472d67dfab --- /dev/null +++ b/security/py-tlslite/files/patch-async @@ -0,0 +1,89 @@ +--- tlslite/tlsconnection.py.orig 2015-08-04 00:11:09 UTC ++++ tlslite/tlsconnection.py +@@ -68,7 +68,7 @@ class TLSConnection(TLSRecordLayer): + + def handshakeClientAnonymous(self, session=None, settings=None, + checker=None, serverName="", +- async=False): ++ asynchronous=False): + """Perform an anonymous handshake in the role of client. + + This function performs an SSL or TLS handshake using an +@@ -102,8 +102,8 @@ class TLSConnection(TLSRecordLayer): + @type serverName: string + @param serverName: The ServerNameIndication TLS Extension. + +- @type async: bool +- @param async: If False, this function will block until the ++ @type asynchronous: bool ++ @param asynchronous: If False, this function will block until the + handshake is completed. If True, this function will return a + generator. Successive invocations of the generator will + return 0 if it is waiting to read from the socket, 1 if it is +@@ -126,7 +126,7 @@ class TLSConnection(TLSRecordLayer): + settings=settings, + checker=checker, + serverName=serverName) +- if async: ++ if asynchronous: + return handshaker + for result in handshaker: + pass +@@ -134,7 +134,7 @@ class TLSConnection(TLSRecordLayer): + def handshakeClientSRP(self, username, password, session=None, + settings=None, checker=None, + reqTack=True, serverName="", +- async=False): ++ asynchronous=False): + """Perform an SRP handshake in the role of client. + + This function performs a TLS/SRP handshake. SRP mutually +@@ -179,8 +179,8 @@ class TLSConnection(TLSRecordLayer): + @type serverName: string + @param serverName: The ServerNameIndication TLS Extension. + +- @type async: bool +- @param async: If False, this function will block until the ++ @type asynchronous: bool ++ @param asynchronous: If False, this function will block until the + handshake is completed. If True, this function will return a + generator. Successive invocations of the generator will + return 0 if it is waiting to read from the socket, 1 if it is +@@ -208,7 +208,7 @@ class TLSConnection(TLSRecordLayer): + # + # If 'async' is True, the generator is returned to the caller, + # otherwise it is executed to completion here. +- if async: ++ if asynchronous: + return handshaker + for result in handshaker: + pass +@@ -216,7 +216,7 @@ class TLSConnection(TLSRecordLayer): + def handshakeClientCert(self, certChain=None, privateKey=None, + session=None, settings=None, checker=None, + nextProtos=None, reqTack=True, serverName="", +- async=False): ++ asynchronous=False): + """Perform a certificate-based handshake in the role of client. + + This function performs an SSL or TLS handshake. The server +@@ -273,8 +273,8 @@ class TLSConnection(TLSRecordLayer): + @type serverName: string + @param serverName: The ServerNameIndication TLS Extension. + +- @type async: bool +- @param async: If False, this function will block until the ++ @type asynchronous: bool ++ @param asynchronous: If False, this function will block until the + handshake is completed. If True, this function will return a + generator. Successive invocations of the generator will + return 0 if it is waiting to read from the socket, 1 if it is +@@ -303,7 +303,7 @@ class TLSConnection(TLSRecordLayer): + # + # If 'async' is True, the generator is returned to the caller, + # otherwise it is executed to completion here. +- if async: ++ if asynchronous: + return handshaker + for result in handshaker: + pass