commit: 35c266ba8249c82cd3a15349e3e8697cf28fb1aa Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Oct 2 23:20:14 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Oct 2 23:20:14 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35c266ba
dev-python/cython: backport test warning (causing failure) patch Closes: https://bugs.gentoo.org/739516 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/cython/cython-0.29.24-r1.ebuild | 1 + .../files/cython-0.29.24-test-failure-warning.patch | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/dev-python/cython/cython-0.29.24-r1.ebuild b/dev-python/cython/cython-0.29.24-r1.ebuild index 648882ae269..35647f5cd19 100644 --- a/dev-python/cython/cython-0.29.24-r1.ebuild +++ b/dev-python/cython/cython-0.29.24-r1.ebuild @@ -32,6 +32,7 @@ PATCHES=( "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch" "${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch" "${FILESDIR}/${PN}-0.29.24-unaligned-format.patch" + "${FILESDIR}/${PN}-0.29.24-test-failure-warning.patch" ) SITEFILE=50cython-gentoo.el diff --git a/dev-python/cython/files/cython-0.29.24-test-failure-warning.patch b/dev-python/cython/files/cython-0.29.24-test-failure-warning.patch new file mode 100644 index 00000000000..64202a93eca --- /dev/null +++ b/dev-python/cython/files/cython-0.29.24-test-failure-warning.patch @@ -0,0 +1,20 @@ +https://github.com/cython/cython/commit/bf4979e2441ffbc9aaeb88f5c67608578040588f +https://bugs.gentoo.org/739516 + +From: Stefan Behnel <[email protected]> +Date: Sat, 3 Apr 2021 08:23:44 +0200 +Subject: [PATCH] Make a helper function in a C++ test correctly propagate + exceptions so that it won't have to spit out compiler warnings. + +--- a/tests/run/cpp_stl_conversion.pyx ++++ b/tests/run/cpp_stl_conversion.pyx +@@ -15,7 +15,7 @@ py_set = set + py_xrange = xrange + py_unicode = unicode + +-cdef string add_strings(string a, string b): ++cdef string add_strings(string a, string b) except *: + return a + b + + def normalize(bytes b): +
