diff options
author | Sam James <sam@gentoo.org> | 2021-10-03 00:20:14 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-10-03 00:20:14 +0100 |
commit | 35c266ba8249c82cd3a15349e3e8697cf28fb1aa (patch) | |
tree | ee7d7d07a7a6c85dbe958d9b1065e3b4e8185146 | |
parent | dev-python/cython: Stabilize 0.29.24-r1 arm, #808282 (diff) | |
download | gentoo-35c266ba8249c82cd3a15349e3e8697cf28fb1aa.tar.gz gentoo-35c266ba8249c82cd3a15349e3e8697cf28fb1aa.tar.bz2 gentoo-35c266ba8249c82cd3a15349e3e8697cf28fb1aa.zip |
dev-python/cython: backport test warning (causing failure) patch
Closes: https://bugs.gentoo.org/739516
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | dev-python/cython/cython-0.29.24-r1.ebuild | 1 | ||||
-rw-r--r-- | dev-python/cython/files/cython-0.29.24-test-failure-warning.patch | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/dev-python/cython/cython-0.29.24-r1.ebuild b/dev-python/cython/cython-0.29.24-r1.ebuild index 648882ae269e..35647f5cd194 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 000000000000..64202a93ecad --- /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 <stefan_ml@behnel.de> +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): + |