commit:     a69d2ddf9372db201cd62a6f72ffc56628c04a30
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 29 11:07:43 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 29 11:13:23 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a69d2ddf

dev-python/cython: Build tests with -fno-strict-overflow

Pass -fno-strict-overflow to work around test failures.

Bug: https://github.com/cython/cython/issues/1911

 dev-python/cython/cython-0.28.2.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-python/cython/cython-0.28.2.ebuild 
b/dev-python/cython/cython-0.28.2.ebuild
index 23c25226c41..eecc7a4ba32 100644
--- a/dev-python/cython/cython-0.28.2.ebuild
+++ b/dev-python/cython/cython-0.28.2.ebuild
@@ -52,6 +52,8 @@ python_compile_all() {
 
 python_test() {
        tc-export CC
+       # https://github.com/cython/cython/issues/1911
+       local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
        "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
                || die "Tests fail with ${EPYTHON}"
 }

Reply via email to