commit:     852a312f7cea343a2ada68e427171954ca56b420
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 27 18:53:43 2024 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Jun 27 18:53:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=852a312f

dev-python/scipy: Filter LTO with numpy-2.0.0 (bug #932721)

Bug: https://bugs.gentoo.org/932721
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-python/scipy/scipy-1.14.0.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-python/scipy/scipy-1.14.0.ebuild 
b/dev-python/scipy/scipy-1.14.0.ebuild
index a37f5c5245cb..6d117893f18d 100644
--- a/dev-python/scipy/scipy-1.14.0.ebuild
+++ b/dev-python/scipy/scipy-1.14.0.ebuild
@@ -9,7 +9,7 @@ DISTUTILS_USE_PEP517=meson-python
 PYTHON_COMPAT=( pypy3 python3_{10..12} )
 PYTHON_REQ_USE="threads(+)"
 
-inherit fortran-2 distutils-r1
+inherit flag-o-matic fortran-2 distutils-r1
 
 DESCRIPTION="Scientific algorithms library for Python"
 HOMEPAGE="
@@ -95,6 +95,9 @@ python_configure_all() {
                -Duse-pythran=$(usex fortran true false)
        )
 
+       # https://bugs.gentoo.org/932721
+       has_version '>=dev-python/numpy-2.0.0' && filter-lto
+
        # hide real scipy, to prevent pythran crashing when scipy is being
        # rebuilt for new numpy ABI
        # https://github.com/serge-sans-paille/pythran/issues/2194

Reply via email to