From 8ac4844ebd25817fc82f7faaa47e5d1115e1ff79 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 31 Mar 2024 16:29:13 -0400 Subject: sci-mathematics/singular: mark as LTO-unsafe, strict-aliasing unsafe Closes: https://bugs.gentoo.org/927675 Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- sci-mathematics/singular/singular-4.3.2_p10.ebuild | 10 +++++++++- sci-mathematics/singular/singular-4.3.2_p16.ebuild | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'sci-mathematics/singular') diff --git a/sci-mathematics/singular/singular-4.3.2_p10.ebuild b/sci-mathematics/singular/singular-4.3.2_p10.ebuild index 1d92185af2be..7a31bdc8b895 100644 --- a/sci-mathematics/singular/singular-4.3.2_p10.ebuild +++ b/sci-mathematics/singular/singular-4.3.2_p10.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit elisp-common +inherit elisp-common flag-o-matic MY_PN=Singular MY_PV=$(ver_rs 3 '') @@ -41,6 +41,14 @@ DEPEND="${RDEPEND}" SITEFILE=60${PN}-gentoo.el src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/927675 + # https://github.com/Singular/Singular/issues/1212 + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + local myconf=( --disable-debug --disable-doc diff --git a/sci-mathematics/singular/singular-4.3.2_p16.ebuild b/sci-mathematics/singular/singular-4.3.2_p16.ebuild index a6e8d0e023eb..1b8fee9d38a1 100644 --- a/sci-mathematics/singular/singular-4.3.2_p16.ebuild +++ b/sci-mathematics/singular/singular-4.3.2_p16.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit autotools elisp-common +inherit autotools elisp-common flag-o-matic MY_PN=Singular MY_PV=$(ver_rs 3 '') @@ -50,6 +50,14 @@ src_prepare() { } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/927675 + # https://github.com/Singular/Singular/issues/1212 + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + local myconf=( --disable-debug --disable-doc -- cgit v1.2.3-65-gdbad