commit: bf8caa832024ebee54c4f30fb6c7ba38d459e4fe Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Mon Mar 18 05:44:38 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Mar 18 07:20:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf8caa83
games-roguelike/scourge: mark as LTO-unsafe, strict-aliasing unsafe Closes: https://bugs.gentoo.org/859211 Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> games-roguelike/scourge/scourge-0.21.1-r1.ebuild | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/games-roguelike/scourge/scourge-0.21.1-r1.ebuild b/games-roguelike/scourge/scourge-0.21.1-r1.ebuild index a0ae342f3b0e..e9033cb3d9ff 100644 --- a/games-roguelike/scourge/scourge-0.21.1-r1.ebuild +++ b/games-roguelike/scourge/scourge-0.21.1-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit autotools desktop +inherit autotools desktop flag-o-matic DESCRIPTION="A graphical rogue-like adventure game" HOMEPAGE="https://sourceforge.net/projects/scourge/" @@ -57,6 +57,15 @@ src_prepare() { } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/859211 + # Upstream sourceforge last updated in 2015, and that appears to have + # been uploading existing files. svn last updated 2011. No bug filed. ;) + # + # Do not trust it for LTO either. + append-flags -fno-strict-aliasing + filter-lto + econf \ --disable-rpath \ --with-data-dir="${EPREFIX}"/usr/share/${PN}