From nobody Mon Nov 01 21:29:41 2021 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 2ECD51820812; Mon, 1 Nov 2021 21:29:45 +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 4HjmQH1qVDz4vgH; Mon, 1 Nov 2021 21:29:43 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 AAC3418BE9; Mon, 1 Nov 2021 21:29:41 +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 1A1LTfH4072263; Mon, 1 Nov 2021 21:29:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1A1LTfT6072262; Mon, 1 Nov 2021 21:29:41 GMT (envelope-from git) Date: Mon, 1 Nov 2021 21:29:41 GMT Message-Id: <202111012129.1A1LTfT6072262@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: bda4fee6878a - main - devel/py-unicodedata2: Fix build with Python 3.10 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: 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: bda4fee6878af30a901d3d08e616cf1047cadb31 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=bda4fee6878af30a901d3d08e616cf1047cadb31 commit bda4fee6878af30a901d3d08e616cf1047cadb31 Author: Po-Chuan Hsieh AuthorDate: 2021-11-01 21:18:52 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-11-01 21:28:49 +0000 devel/py-unicodedata2: Fix build with Python 3.10 --- devel/py-unicodedata2/Makefile | 2 +- .../files/patch-unicodedata2-py3-unicodedata.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/devel/py-unicodedata2/Makefile b/devel/py-unicodedata2/Makefile index 0854dfb89019..5c373556c00a 100644 --- a/devel/py-unicodedata2/Makefile +++ b/devel/py-unicodedata2/Makefile @@ -13,7 +13,7 @@ COMMENT= Unicodedata backport and updates LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python:3.6-3.9 +USES= python:3.6+ USE_PYTHON= autoplist concurrent distutils post-install: diff --git a/devel/py-unicodedata2/files/patch-unicodedata2-py3-unicodedata.c b/devel/py-unicodedata2/files/patch-unicodedata2-py3-unicodedata.c new file mode 100644 index 000000000000..1b540f0c3b85 --- /dev/null +++ b/devel/py-unicodedata2/files/patch-unicodedata2-py3-unicodedata.c @@ -0,0 +1,15 @@ +--- unicodedata2/py3/unicodedata.c.orig 2020-03-20 18:40:50 UTC ++++ unicodedata2/py3/unicodedata.c +@@ -16,7 +16,12 @@ + #define PY_SSIZE_T_CLEAN + + #include "Python.h" ++#if PY_MINOR_VERSION < 10 + #include "ucnhash.h" ++#else ++#define Py_BUILD_CORE ++#include "internal/pycore_ucnhash.h" ++#endif + #include "structmember.h" + #include "unicodectype.h" +