Hello, The following diff updates py-cffi to 1.13.2. Tests never worked with the old version and still don't with this updated version because of the heavy use of ffi.callback() which needs W+X memory.
Nevertheless, this diff gives tests a chance to run if you allow W+X memory (but you don't want to). Otherwise the port runs fine ond amd64/arm64. Dependent ports compile tested: - devel/py-cairocffi - devel/py-gevent - net/napalm/py-napalm - net/py-cares - security/py-PyNaCl - security/py-bcrypt - security/py-cryptography - sysutils/py-augeas -m Index: Makefile =================================================================== RCS file: /cvs/ports/devel/py-cffi/Makefile,v retrieving revision 1.17 diff -u -p -u -p -r1.17 Makefile --- Makefile 12 Jul 2019 20:45:46 -0000 1.17 +++ Makefile 15 Jan 2020 13:41:19 -0000 @@ -5,7 +5,7 @@ COMMENT= Foreign Function Interface for Python calling C code -MODPY_EGG_VERSION= 1.12.3 +MODPY_EGG_VERSION= 1.13.2 DISTNAME= cffi-${MODPY_EGG_VERSION} PKGNAME= py-${DISTNAME} CATEGORIES= devel @@ -25,7 +25,14 @@ MODPY_SETUPTOOLS= Yes LIB_DEPENDS= devel/libffi RUN_DEPENDS= devel/py-cparser${MODPY_FLAVOR} + +# Tests use ffi.callback() requiring write+execute +# see https://cffi.readthedocs.io/en/latest/using.html#callbacks TEST_DEPENDS= devel/py-py${MODPY_FLAVOR} \ devel/py-test${MODPY_FLAVOR} + +TESTLIBDIR= ${WRKSRC}/lib.openbsd-${OSREV}-${ARCH}-${MODPY_VERSION}/cffi/ + +TEST_ENV= PYTHONPATH=${WRKSRC}/${TESTLIBDIR} .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/devel/py-cffi/distinfo,v retrieving revision 1.8 diff -u -p -u -p -r1.8 distinfo --- distinfo 4 May 2019 10:49:11 -0000 1.8 +++ distinfo 15 Jan 2020 13:41:19 -0000 @@ -1,2 +1,2 @@ -SHA256 (cffi-1.12.3.tar.gz) = BByBgi6fhLHZxAEYLhdJlvC66ZkfM3JdBZt3F0QpB3Q= -SIZE (cffi-1.12.3.tar.gz) = 456340 +SHA256 (cffi-1.13.2.tar.gz) = WZoej/BXrFMMmtF3gpPGZcuBp5FCH0aSLYCoZHPBM0Y= +SIZE (cffi-1.13.2.tar.gz) = 460243 Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/devel/py-cffi/pkg/PLIST,v retrieving revision 1.7 diff -u -p -u -p -r1.7 PLIST --- pkg/PLIST 4 May 2019 10:49:11 -0000 1.7 +++ pkg/PLIST 15 Jan 2020 13:41:19 -0000 @@ -1,5 +1,5 @@ @comment $OpenBSD: PLIST,v 1.7 2019/05/04 10:49:11 jasper Exp $ -lib/python${MODPY_VERSION}/site-packages/_cffi_backend.so +@so lib/python${MODPY_VERSION}/site-packages/_cffi_backend.so lib/python${MODPY_VERSION}/site-packages/cffi/ lib/python${MODPY_VERSION}/site-packages/cffi-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ lib/python${MODPY_VERSION}/site-packages/cffi-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO