From nobody Fri Jun 03 14:00:43 2022 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 DA6381B5B708; Fri, 3 Jun 2022 14:00:46 +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 4LF4KT1D2Nz3FSg; Fri, 3 Jun 2022 14:00:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654264845; 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=+m91JjQJW1/f/gJGaB4LNr0HJ45bvAK7Ll2INuNelRk=; b=CJK8XK0Ue6IZpttnL22EAuyHqoLhZHr6vZe+6101W70YYpAxAqPXzLeqMaMQwpyNt3Yv+e AEH76EOF2vu8VzgMAaH2wtKSUhLdUzgSuXndDkPIXpulQHVMEfeyJSd7Qnyrw0MpvNO+Jr pfBWtA6s1WCx6zDun8+aQxvprf1ptVZY61mBMl9a7V0Sg0MDMiAL1fsxoQGWGSi7UQO4Tl Fxi3p9R4NCNoX31iZ4nq0of2zYPn1pP5u01MtWLzjH7NBPtCaMrV+1nEHIFp1Sy3nCPhCR deqoa13sTAtbsqPmq6kI6EZgwKOY2nB359U3cfKg/VlsUO2kOxYBWs6El4QOtw== 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 E240524AA; Fri, 3 Jun 2022 14:00:43 +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 253E0hWD099394; Fri, 3 Jun 2022 14:00:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 253E0hNE099388; Fri, 3 Jun 2022 14:00:43 GMT (envelope-from git) Date: Fri, 3 Jun 2022 14:00:43 GMT Message-Id: <202206031400.253E0hNE099388@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: 993cd3a69926 - main - net/py-pcapy: Fix build with py-setuptools 61.0.0+ 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: 993cd3a699260225dda47d29584f84b123586882 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654264845; 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=+m91JjQJW1/f/gJGaB4LNr0HJ45bvAK7Ll2INuNelRk=; b=EnkBC4A0knveMP1dZdmGNnRJKOoXguPa0nBZYn6EO7j2vxvof3xWA+hazZq7TYXv497BnI itFk2LQON8s5LvS2zOLc2YrNNotFTF5fHsEOcyT1XmlkFhits3TZ7i92JOzX/fPIKHpzfC F/8gWeBHGPEAAlQKXFNaiZurlUYot7JkMUl7Ah2vwRVh0xDtZ+ZsJSwPGtCsmzi238aSjV wtlFv6MOMJkVwW9guqZUv2rk8YRupcfHKsxRM+cjd4XfO0Ze9Y5Gqg/tlh8TAwd31Lj9cE +3Uc2tlop73LBU5VYHlN2K4JEMwvUp5DkBOAXXko5mm6UOp9K04B8bhx1Z9jKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654264845; a=rsa-sha256; cv=none; b=xM+gaAZtKSTvJPr+me6CbBZ5mgII2S29PGPBcwl0UfPOVk1qBFtyMaG/lnOxrFzsX4qq5A oNCZgke/zuaX+cJQrjM8Q+OqlXQUI5dOvqaozBwUoGU+NeZUOVlYIeFC8rJfN9jvZqov8k nnNKEWcfxbtq8Erq6eyMW/kZanDy2RdkidTOcWtYHdPoNQa7+m3+7+mR5zNiXOsA5eCqMO kVc3bTfTSIA/HjQAKQn57f3e+1vaTCyKDy3tIsQ5U4JuDG/LZnuL+TMLoPbPViEZ1kAF+t N1Y+TJDKOOGsd7waL+LPLhI6DWxydFaEOcDQ4bOp5fQxVHtpMaSabkSV2YcqCw== 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=993cd3a699260225dda47d29584f84b123586882 commit 993cd3a699260225dda47d29584f84b123586882 Author: Po-Chuan Hsieh AuthorDate: 2022-06-03 13:58:12 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-06-03 13:59:16 +0000 net/py-pcapy: Fix build with py-setuptools 61.0.0+ With hat: python Obtained from: https://github.com/stamparm/pcapy-ng/commit/f6ce5248f78ac0a247d76e48cff152f4e3f26482 --- net/py-pcapy/files/patch-setup.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/net/py-pcapy/files/patch-setup.py b/net/py-pcapy/files/patch-setup.py index 7ece521ad7dc..99a86e60549c 100644 --- a/net/py-pcapy/files/patch-setup.py +++ b/net/py-pcapy/files/patch-setup.py @@ -1,5 +1,23 @@ ---- setup.py.orig 2017-02-09 00:45:41 UTC +--- setup.py.orig 2022-04-06 17:42:24 UTC +++ setup.py +@@ -43,13 +43,13 @@ if sys.platform == 'win32': + macros.append(('WIN32', '1')) + + # HACK replace linker gcc with g++ +-from distutils import sysconfig ++import sysconfig + save_init_posix = sysconfig._init_posix + + +-def my_init_posix(): +- save_init_posix() +- g = sysconfig._config_vars ++def my_init_posix(vars): ++ save_init_posix(vars) ++ g = sysconfig._CONFIG_VARS + compiler = g['LDSHARED'].split()[0] + flags = g['LDSHARED'].split()[1:] + if compiler == 'gcc': @@ -77,10 +77,6 @@ setup(name=PACKAGE_NAME, define_macros=macros, include_dirs=include_dirs,