commit:     9b7037e721c2a5ba7256a812de08be1c8b9f1c01
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon May 19 13:59:42 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May 19 14:00:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b7037e7

dev-python/cython: workaround crashes on musl

... via the usual fix/workaround.

Closes: https://bugs.gentoo.org/925318
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/cython/cython-3.1.1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-python/cython/cython-3.1.1.ebuild 
b/dev-python/cython/cython-3.1.1.ebuild
index 51b147eecc22..65b4160cf930 100644
--- a/dev-python/cython/cython-3.1.1.ebuild
+++ b/dev-python/cython/cython-3.1.1.ebuild
@@ -50,6 +50,11 @@ python_compile() {
        # Python gets confused when it is in sys.path before build.
        local -x PYTHONPATH=
 
+       if use elibc_musl ; then
+               # Workaround for bug #925318
+               local -x LDFLAGS="${LDFLAGS} -Wl,-z,stack-size=2097152"
+       fi
+
        distutils-r1_python_compile
 }
 

Reply via email to