commit:     b16f59f577ac9a61054a3ccf0eb057ca98dc6875
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  5 18:07:27 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov  5 18:07:27 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b16f59f5

dev-python/pythran: fix tests (drop -Werror)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pythran/files/pythran-0.10.0-tests-werror.patch | 11 +++++++++++
 dev-python/pythran/pythran-0.10.0.ebuild                   |  4 ++++
 2 files changed, 15 insertions(+)

diff --git a/dev-python/pythran/files/pythran-0.10.0-tests-werror.patch 
b/dev-python/pythran/files/pythran-0.10.0-tests-werror.patch
new file mode 100644
index 00000000000..17c0630a5d1
--- /dev/null
+++ b/dev-python/pythran/files/pythran-0.10.0-tests-werror.patch
@@ -0,0 +1,11 @@
+--- a/pythran/tests/__init__.py
++++ b/pythran/tests/__init__.py
+@@ -71,7 +71,7 @@ class TestEnv(unittest.TestCase):
+ 
+     module = pytest.mark.module
+     # default options used for the c++ compiler
+-    PYTHRAN_CXX_FLAGS = ['-O0', '-Wall', '-Werror', '-UNDEBUG',
++    PYTHRAN_CXX_FLAGS = ['-O0', '-Wall', '-UNDEBUG',
+                          '-Wno-unused-function',
+                          '-Wno-int-in-bool-context',
+                          '-Wno-unknown-warning-option',

diff --git a/dev-python/pythran/pythran-0.10.0.ebuild 
b/dev-python/pythran/pythran-0.10.0.ebuild
index 549382ff6f9..ce0bf29dc3f 100644
--- a/dev-python/pythran/pythran-0.10.0.ebuild
+++ b/dev-python/pythran/pythran-0.10.0.ebuild
@@ -36,6 +36,10 @@ BDEPEND="
 
 distutils_enable_tests pytest
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.10.0-tests-werror.patch
+)
+
 src_prepare() {
        sed -i -e '/pytest-runner/d' setup.py || die
        distutils-r1_src_prepare

Reply via email to