commit:     7b005b8564d8f8fe41971bafdc9d2f88c009d720
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 16 00:06:57 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 00:06:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b005b85

dev-python/numpy: filter LTO, add bug references

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

 dev-python/numpy/numpy-1.26.4.ebuild       | 3 +++
 dev-python/numpy/numpy-2.0.0_rc2-r1.ebuild | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/dev-python/numpy/numpy-1.26.4.ebuild 
b/dev-python/numpy/numpy-1.26.4.ebuild
index dd1f528958aa..36d602fc4380 100644
--- a/dev-python/numpy/numpy-1.26.4.ebuild
+++ b/dev-python/numpy/numpy-1.26.4.ebuild
@@ -54,6 +54,9 @@ EPYTEST_XDIST=1
 distutils_enable_tests pytest
 
 python_prepare_all() {
+       # bug #922457
+       filter-lto
+       # https://github.com/numpy/numpy/issues/25004
        append-flags -fno-strict-aliasing
 
        distutils-r1_python_prepare_all

diff --git a/dev-python/numpy/numpy-2.0.0_rc2-r1.ebuild 
b/dev-python/numpy/numpy-2.0.0_rc2-r1.ebuild
index 7d3724a3aaa3..d33733489b22 100644
--- a/dev-python/numpy/numpy-2.0.0_rc2-r1.ebuild
+++ b/dev-python/numpy/numpy-2.0.0_rc2-r1.ebuild
@@ -57,6 +57,9 @@ python_prepare_all() {
                "${FILESDIR}/${P}-gcc14.patch"
        )
 
+       # bug #922457
+       filter-lto
+       # https://github.com/numpy/numpy/issues/25004
        append-flags -fno-strict-aliasing
 
        distutils-r1_python_prepare_all

Reply via email to