commit: 8c8e5446966b720e8c28d153932d801764dab28a Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Tue Jan 16 05:18:55 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jan 16 05:47:45 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c8e5446
dev-python/scipy: filter LTO since it is unsafe The underlying issue is really just a lot of old fortran code. Not all compiled modules are actually LTO-unsafe. But handling this granularly requires good cooperation with the build system. I handled this upstream via https://github.com/scipy/scipy/pull/19857. While we wait for scipy 1.13.0 to be released, prevent older scipy versions from using LTO. Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/scipy/scipy-1.11.3-r1.ebuild | 5 ++++- dev-python/scipy/scipy-1.11.4.ebuild | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-python/scipy/scipy-1.11.3-r1.ebuild b/dev-python/scipy/scipy-1.11.3-r1.ebuild index 9f68cd59364e..53cfef682124 100644 --- a/dev-python/scipy/scipy-1.11.3-r1.ebuild +++ b/dev-python/scipy/scipy-1.11.3-r1.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 multiprocessing +inherit flag-o-matic fortran-2 distutils-r1 multiprocessing DESCRIPTION="Scientific algorithms library for Python" HOMEPAGE=" @@ -87,6 +87,9 @@ src_unpack() { } python_configure_all() { + # https://github.com/scipy/scipy/pull/19857 + # Fixed in 1.13.0 + filter-lto DISTUTILS_ARGS=( -Dblas=blas -Dlapack=lapack diff --git a/dev-python/scipy/scipy-1.11.4.ebuild b/dev-python/scipy/scipy-1.11.4.ebuild index eb69b66541e5..9d60b95cd5e7 100644 --- a/dev-python/scipy/scipy-1.11.4.ebuild +++ b/dev-python/scipy/scipy-1.11.4.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 multiprocessing +inherit flag-o-matic fortran-2 distutils-r1 multiprocessing DESCRIPTION="Scientific algorithms library for Python" HOMEPAGE=" @@ -87,6 +87,9 @@ src_unpack() { } python_configure_all() { + # https://github.com/scipy/scipy/pull/19857 + # Fixed in 1.13.0 + filter-lto DISTUTILS_ARGS=( -Dblas=blas -Dlapack=lapack
