commit:     570a3e436ff2a642f9470809fdc8ef63ce560494
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May  7 23:53:29 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May  7 23:53:49 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=570a3e43

dev-libs/gmp: strip-flags & filter-lto for miscompilation

Miscompiled on arm64 with LTO at least. strip-flags as well because gmp is so
brittle (see e.g. the past configure mess).

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

 dev-libs/gmp/gmp-6.2.1-r2.ebuild | 5 +++++
 dev-libs/gmp/gmp-6.2.1-r5.ebuild | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/dev-libs/gmp/gmp-6.2.1-r2.ebuild b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
index 6cabb0d5213b..4fc7e6093e5d 100644
--- a/dev-libs/gmp/gmp-6.2.1-r2.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r2.ebuild
@@ -66,6 +66,11 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+       # Generally a very fragile package
+       strip-flags
+       # Miscompiled with LTO at least on arm64, bug #889948
+       filter-lto
+
        # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
        # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
        if [[ ${CHOST} == hppa2.0-* ]] ; then

diff --git a/dev-libs/gmp/gmp-6.2.1-r5.ebuild b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
index a3c223b16e40..48ef9cdfac29 100644
--- a/dev-libs/gmp/gmp-6.2.1-r5.ebuild
+++ b/dev-libs/gmp/gmp-6.2.1-r5.ebuild
@@ -94,6 +94,11 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+       # Generally a very fragile package
+       strip-flags
+       # Miscompiled with LTO at least on arm64, bug #889948
+       filter-lto
+
        # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
        # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
        if [[ ${CHOST} == hppa2.0-* ]] ; then

Reply via email to