commit:     e886fb559492e6f472ff70aa2794c33e5225c59e
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Mar  5 21:39:55 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar  6 03:36:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e886fb55

media-gfx/arss: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/859604
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/arss/arss-0.2.3-r1.ebuild | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/media-gfx/arss/arss-0.2.3-r1.ebuild 
b/media-gfx/arss/arss-0.2.3-r1.ebuild
index a194c54b448f..04680a5ffea3 100644
--- a/media-gfx/arss/arss-0.2.3-r1.ebuild
+++ b/media-gfx/arss/arss-0.2.3-r1.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 CMAKE_IN_SOURCE_BUILD="true"
 MY_P="${P}-src"
-inherit cmake
+inherit cmake flag-o-matic
 
 DESCRIPTION="Analysis & Resynthesis Sound Spectrograph"
 HOMEPAGE="https://arss.sourceforge.net";
@@ -22,3 +22,15 @@ RDEPEND="${DEPEND}"
 PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
 
 DOCS=( ../AUTHORS ../ChangeLog )
+
+src_compile() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/859604
+       # Upstream is on sourceforge, inactive since 2009. No bug filed.
+       #
+       # Do not trust it for LTO either.
+       append-flags -fno-strict-aliasing
+       filter-lto
+
+       default
+}

Reply via email to