diff options
author | leot <leot@pkgsrc.org> | 2018-07-29 10:48:14 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2018-07-29 10:48:14 +0000 |
commit | c3c6ffa4f141f08f252427e6ab3440e2d665ca0f (patch) | |
tree | da2612d74168fd20aa518cbf652ff18c1223ad11 | |
parent | ed28d4c3d09cd07fe37a2522d31adc986df59184 (diff) | |
download | pkgsrc-c3c6ffa4f141f08f252427e6ab3440e2d665ca0f.tar.gz |
py-cffi: Add a kludge to disable __thread on NetBSD aarch64
__thread ATM is problematic on NetBSD aarch64 and py-cffi users (e.g.
py-requests) ends up crashing due SIGILL at run time.
PKGREVISION++
-rw-r--r-- | devel/py-cffi/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/py-cffi/Makefile b/devel/py-cffi/Makefile index 83c8aa6a18c..5921dc358d8 100644 --- a/devel/py-cffi/Makefile +++ b/devel/py-cffi/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.33 2018/03/01 07:59:54 adam Exp $ +# $NetBSD: Makefile,v 1.34 2018/07/29 10:48:14 leot Exp $ DISTNAME= cffi-1.11.5 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +PKGREVISION= 1 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=c/cffi/} @@ -16,6 +17,15 @@ USE_TOOLS+= pkg-config DEPENDS+= ${PYPKGPREFIX}-cparser-[0-9]*:../../devel/py-cparser BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test +# +# XXX: Kludge to avoid __thread that at the moment is still not properly +# XXX: supported on NetBSD/evbarm aarch64. +# +.include "../../mk/bsd.prefs.mk" +.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "aarch64" +BUILDLINK_TRANSFORM+= rm:-DUSE__THREAD +.endif + DISTUTILS_BUILDDIR_IN_TEST_ENV= yes TEST_ENV+= TMPDIR=${WRKDIR}/tmp |