pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-cffi py-cffi: Add a kludge to disable __threa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d1c5449bc180
branches:  trunk
changeset: 310996:d1c5449bc180
user:      leot <leot%pkgsrc.org@localhost>
date:      Sun Jul 29 10:48:14 2018 +0000

description:
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++

diffstat:

 devel/py-cffi/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r e1d147e5d1c3 -r d1c5449bc180 devel/py-cffi/Makefile
--- a/devel/py-cffi/Makefile    Sun Jul 29 10:04:00 2018 +0000
+++ b/devel/py-cffi/Makefile    Sun Jul 29 10:48:14 2018 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index