py-cffi: updated to 1.11.5 v1.11.5 * Issue 357_: fix ffi.emit_python_code() which generated a buggy Python file if you are using a struct with an anonymous union field or vice-versa. * Windows: ffi.dlopen() should now handle unicode filenames. * ABI mode: implemented ffi.dlclose() for the in-line case (it used to be present only in the out-of-line case). * Fixed a corner case for setup.py install --record=xx --root=yy with an out-of-line ABI module. Also fixed Issue 345_. * More hacks on Windows for running CFFI's own setup.py. * Issue 358_: in embedding, to protect against (the rare case of) Python initialization from several threads in parallel, we have to use a spin-lock. On CPython 3 it is worse because it might spin-lock for a long time (execution of Py_InitializeEx()). Sadly, recent changes to CPython make that solution needed on CPython 2 too. * CPython 3 on Windows: we no longer compile with Py_LIMITED_API by default because such modules cannot be used with virtualenv. Issue 350_ mentions a workaround if you still want that and are not concerned about virtualenv: pass a define_macros=[("Py_LIMITED_API", None)] to the ffibuilder.set_source() call.diff -r1.32 -r1.33 pkgsrc/devel/py-cffi/Makefile
(adam)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.32 2018/01/14 11:09:17 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.33 2018/03/01 07:59:54 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= cffi-1.11.4 | 3 | DISTNAME= cffi-1.11.5 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= devel python | 5 | CATEGORIES= devel python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=c/cffi/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=c/cffi/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://cffi.readthedocs.io/en/latest/ | 9 | HOMEPAGE= http://cffi.readthedocs.io/en/latest/ | |
10 | COMMENT= Foreign Function Interface for Python calling C code | 10 | COMMENT= Foreign Function Interface for Python calling C code | |
11 | LICENSE= mit | 11 | LICENSE= mit | |
12 | 12 | |||
13 | USE_LANGUAGES= c c++ | 13 | USE_LANGUAGES= c c++ | |
14 | USE_TOOLS+= pkg-config | 14 | USE_TOOLS+= pkg-config | |
15 | 15 | |||
16 | DEPENDS+= ${PYPKGPREFIX}-cparser-[0-9]*:../../devel/py-cparser | 16 | DEPENDS+= ${PYPKGPREFIX}-cparser-[0-9]*:../../devel/py-cparser |
@@ -1,8 +1,8 @@ | @@ -1,8 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.29 2018/01/14 11:09:17 adam Exp $ | 1 | $NetBSD: distinfo,v 1.30 2018/03/01 07:59:54 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (cffi-1.11.4.tar.gz) = d0c4f7d4b6af4c438a17b2f2334f2aa5ff7cc4db | 3 | SHA1 (cffi-1.11.5.tar.gz) = 1686e6689a691414d3d22626c837adeee3996dd9 | |
4 | RMD160 (cffi-1.11.4.tar.gz) = 6c84f2ac4a6c90f070f511e440ca6c3ed05763de | 4 | RMD160 (cffi-1.11.5.tar.gz) = d2dc3bae37502af50f756b2705d388777e7a541d | |
5 | SHA512 (cffi-1.11.4.tar.gz) = 184572ab8c1f7a72f00084c23894efe1691aa20f9e822a3f7184ebbed16e757586ac47e7f1d12dd7b14b4322bf5b88e35465dc3bc8b0caf0dc8e2b626a52615e | 5 | SHA512 (cffi-1.11.5.tar.gz) = 6770d5293cfd7405e733d60c96655641b5bcc5878fc66a737f4a8308f465d459ee0e3fcaa47893d8f57fb195e5534dd7e4728c868f33d7e657688f45e1fb1880 | |
6 | Size (cffi-1.11.4.tar.gz) = 436857 bytes | 6 | Size (cffi-1.11.5.tar.gz) = 438498 bytes | |
7 | SHA1 (patch-testing_cffi0_test__verify.py) = 9097ed364176f968d8c5084e1bc3d3d368d92714 | 7 | SHA1 (patch-testing_cffi0_test__verify.py) = 91e903aa6aa89f997aba1578cb9452e6ac160f50 | |
8 | SHA1 (patch-testing_cffi1_test__verify1.py) = 64a0c7073a446dd4ca7cd97086646959ad4fad08 | 8 | SHA1 (patch-testing_cffi1_test__verify1.py) = 72d564ff8422bc1c8ed8b7058fb95ca669b69529 |
@@ -1,13 +1,15 @@ | @@ -1,13 +1,15 @@ | |||
1 | $NetBSD: patch-testing_cffi0_test__verify.py,v 1.1 2017/07/03 18:17:45 joerg Exp $ | 1 | $NetBSD: patch-testing_cffi0_test__verify.py,v 1.2 2018/03/01 07:59:54 adam Exp $ | |
2 | ||||
3 | Add NetBSD support. | |||
2 | 4 | |||
3 | --- testing/cffi0/test_verify.py.orig 2017-07-03 17:44:02.180970759 +0000 | 5 | --- testing/cffi0/test_verify.py.orig 2017-07-03 17:44:02.180970759 +0000 | |
4 | +++ testing/cffi0/test_verify.py | 6 | +++ testing/cffi0/test_verify.py | |
5 | @@ -1798,7 +1798,7 @@ def test_callback_indirection(): | 7 | @@ -1798,7 +1798,7 @@ def test_callback_indirection(): | |
6 | #include <malloc.h> | 8 | #include <malloc.h> | |
7 | #define alloca _alloca | 9 | #define alloca _alloca | |
8 | #else | 10 | #else | |
9 | - # ifdef __FreeBSD__ | 11 | - # ifdef __FreeBSD__ | |
10 | + # if defined(__FreeBSD__) || defined(__NetBSD__) | 12 | + # if defined(__FreeBSD__) || defined(__NetBSD__) | |
11 | # include <stdlib.h> | 13 | # include <stdlib.h> | |
12 | # else | 14 | # else | |
13 | # include <alloca.h> | 15 | # include <alloca.h> |
@@ -1,13 +1,15 @@ | @@ -1,13 +1,15 @@ | |||
1 | $NetBSD: patch-testing_cffi1_test__verify1.py,v 1.1 2017/07/03 18:17:45 joerg Exp $ | 1 | $NetBSD: patch-testing_cffi1_test__verify1.py,v 1.2 2018/03/01 07:59:54 adam Exp $ | |
2 | ||||
3 | Add NetBSD support. | |||
2 | 4 | |||
3 | --- testing/cffi1/test_verify1.py.orig 2017-07-03 17:44:21.313824096 +0000 | 5 | --- testing/cffi1/test_verify1.py.orig 2017-07-03 17:44:21.313824096 +0000 | |
4 | +++ testing/cffi1/test_verify1.py | 6 | +++ testing/cffi1/test_verify1.py | |
5 | @@ -1767,7 +1767,7 @@ def test_callback_indirection(): | 7 | @@ -1767,7 +1767,7 @@ def test_callback_indirection(): | |
6 | #include <malloc.h> | 8 | #include <malloc.h> | |
7 | #define alloca _alloca | 9 | #define alloca _alloca | |
8 | #else | 10 | #else | |
9 | - # ifdef __FreeBSD__ | 11 | - # ifdef __FreeBSD__ | |
10 | + # if defined(__FreeBSD__) || defined(__NetBSD__) | 12 | + # if defined(__FreeBSD__) || defined(__NetBSD__) | |
11 | # include <stdlib.h> | 13 | # include <stdlib.h> | |
12 | # else | 14 | # else | |
13 | # include <alloca.h> | 15 | # include <alloca.h> |