1 |
commit: a69d2ddf9372db201cd62a6f72ffc56628c04a30 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 29 11:07:43 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 29 11:13:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a69d2ddf |
7 |
|
8 |
dev-python/cython: Build tests with -fno-strict-overflow |
9 |
|
10 |
Pass -fno-strict-overflow to work around test failures. |
11 |
|
12 |
Bug: https://github.com/cython/cython/issues/1911 |
13 |
|
14 |
dev-python/cython/cython-0.28.2.ebuild | 2 ++ |
15 |
1 file changed, 2 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/cython/cython-0.28.2.ebuild b/dev-python/cython/cython-0.28.2.ebuild |
18 |
index 23c25226c41..eecc7a4ba32 100644 |
19 |
--- a/dev-python/cython/cython-0.28.2.ebuild |
20 |
+++ b/dev-python/cython/cython-0.28.2.ebuild |
21 |
@@ -52,6 +52,8 @@ python_compile_all() { |
22 |
|
23 |
python_test() { |
24 |
tc-export CC |
25 |
+ # https://github.com/cython/cython/issues/1911 |
26 |
+ local -x CFLAGS="${CFLAGS} -fno-strict-overflow" |
27 |
"${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ |
28 |
|| die "Tests fail with ${EPYTHON}" |
29 |
} |