From nobody Sun Feb 18 14:50:31 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 4Td7rS1n9Yz59sjK; Sun, 18 Feb 2024 14:50:32 +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 4Td7rR6mGZz42cy; Sun, 18 Feb 2024 14:50:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708267831; 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=tqPvRYotzLuMDmJHlAI33iG9AE57KodTlhQ6+4grEPY=; b=X0efFfJbK9qZISQHRMCXwwk7AqFx7lQmX6OBZVZR8/weL0GkHjfTut+EavBDqrKfmv15Yi FID0qwoZYyBU6lGrKF/rlr28JSQJMvtNVshYhq4TevyalpOlUd3veRtIf6dyYvr/QZ5Enl kU4Z6W7CEd16bsTpcC+yi8Of579du0iUnuW4apzYzfek9iF186ixj27QzIE9X83pAiowhL xmhA5dDW0A7GBl+7p7zcgsJVLW3UjUzW93pSU3Z2B6HWhwl0+decgli4F98FcUxUqGlMty qq16PsWDNOPcsO1Tw0q4jCQDYwkTqxT9uTENaiimj23ninq0+c8Mar1qB+bxrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708267831; 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=tqPvRYotzLuMDmJHlAI33iG9AE57KodTlhQ6+4grEPY=; b=P1XnyDztirFw2h7KydDwRi9Dv8Oc8N9/dhFCAbeoDJYs7BjBfTToR1CRfajBvnQ1Wn/9Ur sW+OUtLCrM0dLOOjxBTqk2+uwk7zKTKclNrD01OI3MNTQD+p7Cylv6jUBueER/kPfQeUII jiy7rnr5kcv9JJQuCC3MiLRCGrIVlV/9LozTO3yDcPYQ772grU9LKo/kUDSTy9DZhBa14U KUWiNj/IClmhEdjPTaTCV71ASw5aNMbANaVusAU0LO2loFRg5WLyu0FmPZ0gQa7HGAKiat acsC6LypLnGRtd74SSnnKaySkgeNoaC+ABChT1baxB4YocVi/LvCFdGVHdsnDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708267831; a=rsa-sha256; cv=none; b=QjP5N32M4JaKN2g0y8g+ZvCJjmW8NQ9PBiJCGALGqqlwdTs9Bi4CoolUD+54i26XWD4vCc AUkkKpXw6hrjMVm0TnqP6tcOVPkC6U1/xIjSXLlVaEC8fpWhMJcpnA1NFpjQvyBZZFnjA0 fwflhDJG/c6STTPBQZHO2uIaPZICg13flolCIz8Y/6W0UZgDh/C1vOhq8qrmX8q10nLaBA 3Ev14erOxYDzLp3MaaMkd+VP1hkBMmWCXYtQPT9FePb1KTpbb3RUk88mvA6YRKIcwm1pqs 38GZzWdE9gFVZ3FS2E5oXg3au3L6YrOc8f9HujsWLhziQr9oUbRFJy37SOC5Wg== 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 4Td7rR5sTdzvvg; Sun, 18 Feb 2024 14:50:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41IEoVbB066854; Sun, 18 Feb 2024 14:50:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41IEoVp9066851; Sun, 18 Feb 2024 14:50:31 GMT (envelope-from git) Date: Sun, 18 Feb 2024 14:50:31 GMT Message-Id: <202402181450.41IEoVp9066851@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ruslan Makhmatkhanov Subject: git: 0f936531a1e4 - main - devel/py-gyp: fix for python 3.11 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: rm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0f936531a1e45c8b66892a1a7793ac84e32c90fe Auto-Submitted: auto-generated The branch main has been updated by rm: URL: https://cgit.FreeBSD.org/ports/commit/?id=0f936531a1e45c8b66892a1a7793ac84e32c90fe commit 0f936531a1e45c8b66892a1a7793ac84e32c90fe Author: Ruslan Makhmatkhanov AuthorDate: 2024-02-18 14:49:14 +0000 Commit: Ruslan Makhmatkhanov CommitDate: 2024-02-18 14:49:14 +0000 devel/py-gyp: fix for python 3.11 This patch is fixing runtime on python 3.11 and allows to build japanese/mozc-server and japanese/mozc-tool with python3.11 PR: 276707 PR: 275494 Approved by: hrs (maintainer timout, 14d+) --- devel/py-gyp/Makefile | 1 + devel/py-gyp/files/patch-pylib_gyp_common.py | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/devel/py-gyp/Makefile b/devel/py-gyp/Makefile index ad2ffa3a7fa4..2eefdf628e41 100644 --- a/devel/py-gyp/Makefile +++ b/devel/py-gyp/Makefile @@ -1,5 +1,6 @@ PORTNAME= gyp PORTVERSION= 20200512 +PORTREVISION= 1 CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-gyp/files/patch-pylib_gyp_common.py b/devel/py-gyp/files/patch-pylib_gyp_common.py new file mode 100644 index 000000000000..d712c8ddd0ae --- /dev/null +++ b/devel/py-gyp/files/patch-pylib_gyp_common.py @@ -0,0 +1,23 @@ +--- pylib/gyp/common.py.orig 2020-05-12 14:59:53 UTC ++++ pylib/gyp/common.py +@@ -12,6 +12,11 @@ import sys + import tempfile + import sys + ++if sys.version_info.major == 3 and sys.version_info.minor >= 10: ++ from collections.abc import MutableSet ++ collections.MutableSet = collections.abc.MutableSet ++else: ++ from collections import MutableSet + + # A minimal memoizing decorator. It'll blow up if the args aren't immutable, + # among other "problems". +@@ -494,7 +499,7 @@ def uniquer(seq, idfun=None): + + + # Based on http://code.activestate.com/recipes/576694/. +-class OrderedSet(collections.MutableSet): ++class OrderedSet(MutableSet): + def __init__(self, iterable=None): + self.end = end = [] + end += [None, end, end] # sentinel node for doubly linked list