Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pythran/files/, dev-python/pythran/
Date: Fri, 05 Nov 2021 18:07:57
Message-Id: 1636135647.b16f59f577ac9a61054a3ccf0eb057ca98dc6875.sam@gentoo
1 commit: b16f59f577ac9a61054a3ccf0eb057ca98dc6875
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 5 18:07:27 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 5 18:07:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b16f59f5
7
8 dev-python/pythran: fix tests (drop -Werror)
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-python/pythran/files/pythran-0.10.0-tests-werror.patch | 11 +++++++++++
13 dev-python/pythran/pythran-0.10.0.ebuild | 4 ++++
14 2 files changed, 15 insertions(+)
15
16 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
17 new file mode 100644
18 index 00000000000..17c0630a5d1
19 --- /dev/null
20 +++ b/dev-python/pythran/files/pythran-0.10.0-tests-werror.patch
21 @@ -0,0 +1,11 @@
22 +--- a/pythran/tests/__init__.py
23 ++++ b/pythran/tests/__init__.py
24 +@@ -71,7 +71,7 @@ class TestEnv(unittest.TestCase):
25 +
26 + module = pytest.mark.module
27 + # default options used for the c++ compiler
28 +- PYTHRAN_CXX_FLAGS = ['-O0', '-Wall', '-Werror', '-UNDEBUG',
29 ++ PYTHRAN_CXX_FLAGS = ['-O0', '-Wall', '-UNDEBUG',
30 + '-Wno-unused-function',
31 + '-Wno-int-in-bool-context',
32 + '-Wno-unknown-warning-option',
33
34 diff --git a/dev-python/pythran/pythran-0.10.0.ebuild b/dev-python/pythran/pythran-0.10.0.ebuild
35 index 549382ff6f9..ce0bf29dc3f 100644
36 --- a/dev-python/pythran/pythran-0.10.0.ebuild
37 +++ b/dev-python/pythran/pythran-0.10.0.ebuild
38 @@ -36,6 +36,10 @@ BDEPEND="
39
40 distutils_enable_tests pytest
41
42 +PATCHES=(
43 + "${FILESDIR}"/${PN}-0.10.0-tests-werror.patch
44 +)
45 +
46 src_prepare() {
47 sed -i -e '/pytest-runner/d' setup.py || die
48 distutils-r1_src_prepare