Thu Mar 1 07:59:54 2018 UTC ()
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.


(adam)
diff -r1.32 -r1.33 pkgsrc/devel/py-cffi/Makefile
diff -r1.29 -r1.30 pkgsrc/devel/py-cffi/distinfo
diff -r1.1 -r1.2 pkgsrc/devel/py-cffi/patches/patch-testing_cffi0_test__verify.py
diff -r1.1 -r1.2 pkgsrc/devel/py-cffi/patches/patch-testing_cffi1_test__verify1.py

cvs diff -r1.32 -r1.33 pkgsrc/devel/py-cffi/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-cffi/Makefile 2018/01/14 11:09:17 1.32
+++ pkgsrc/devel/py-cffi/Makefile 2018/03/01 07:59:54 1.33
@@ -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
3DISTNAME= cffi-1.11.4 3DISTNAME= cffi-1.11.5
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=c/cffi/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=c/cffi/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://cffi.readthedocs.io/en/latest/ 9HOMEPAGE= http://cffi.readthedocs.io/en/latest/
10COMMENT= Foreign Function Interface for Python calling C code 10COMMENT= Foreign Function Interface for Python calling C code
11LICENSE= mit 11LICENSE= mit
12 12
13USE_LANGUAGES= c c++ 13USE_LANGUAGES= c c++
14USE_TOOLS+= pkg-config 14USE_TOOLS+= pkg-config
15 15
16DEPENDS+= ${PYPKGPREFIX}-cparser-[0-9]*:../../devel/py-cparser 16DEPENDS+= ${PYPKGPREFIX}-cparser-[0-9]*:../../devel/py-cparser

cvs diff -r1.29 -r1.30 pkgsrc/devel/py-cffi/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-cffi/distinfo 2018/01/14 11:09:17 1.29
+++ pkgsrc/devel/py-cffi/distinfo 2018/03/01 07:59:54 1.30
@@ -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
3SHA1 (cffi-1.11.4.tar.gz) = d0c4f7d4b6af4c438a17b2f2334f2aa5ff7cc4db 3SHA1 (cffi-1.11.5.tar.gz) = 1686e6689a691414d3d22626c837adeee3996dd9
4RMD160 (cffi-1.11.4.tar.gz) = 6c84f2ac4a6c90f070f511e440ca6c3ed05763de 4RMD160 (cffi-1.11.5.tar.gz) = d2dc3bae37502af50f756b2705d388777e7a541d
5SHA512 (cffi-1.11.4.tar.gz) = 184572ab8c1f7a72f00084c23894efe1691aa20f9e822a3f7184ebbed16e757586ac47e7f1d12dd7b14b4322bf5b88e35465dc3bc8b0caf0dc8e2b626a52615e 5SHA512 (cffi-1.11.5.tar.gz) = 6770d5293cfd7405e733d60c96655641b5bcc5878fc66a737f4a8308f465d459ee0e3fcaa47893d8f57fb195e5534dd7e4728c868f33d7e657688f45e1fb1880
6Size (cffi-1.11.4.tar.gz) = 436857 bytes 6Size (cffi-1.11.5.tar.gz) = 438498 bytes
7SHA1 (patch-testing_cffi0_test__verify.py) = 9097ed364176f968d8c5084e1bc3d3d368d92714 7SHA1 (patch-testing_cffi0_test__verify.py) = 91e903aa6aa89f997aba1578cb9452e6ac160f50
8SHA1 (patch-testing_cffi1_test__verify1.py) = 64a0c7073a446dd4ca7cd97086646959ad4fad08 8SHA1 (patch-testing_cffi1_test__verify1.py) = 72d564ff8422bc1c8ed8b7058fb95ca669b69529

cvs diff -r1.1 -r1.2 pkgsrc/devel/py-cffi/patches/patch-testing_cffi0_test__verify.py (expand / switch to unified diff)

--- pkgsrc/devel/py-cffi/patches/patch-testing_cffi0_test__verify.py 2017/07/03 18:17:45 1.1
+++ pkgsrc/devel/py-cffi/patches/patch-testing_cffi0_test__verify.py 2018/03/01 07:59:54 1.2
@@ -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
 3Add 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>

cvs diff -r1.1 -r1.2 pkgsrc/devel/py-cffi/patches/patch-testing_cffi1_test__verify1.py (expand / switch to unified diff)

--- pkgsrc/devel/py-cffi/patches/patch-testing_cffi1_test__verify1.py 2017/07/03 18:17:45 1.1
+++ pkgsrc/devel/py-cffi/patches/patch-testing_cffi1_test__verify1.py 2018/03/01 07:59:54 1.2
@@ -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
 3Add 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>