git: 993cd3a69926 - main - net/py-pcapy: Fix build with py-setuptools 61.0.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Jun 2022 14:00:43 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=993cd3a699260225dda47d29584f84b123586882 commit 993cd3a699260225dda47d29584f84b123586882 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-06-03 13:58:12 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> 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,