commit:     5c6938cabc43d900fa8e1090cf580b521c7e8bec
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun May 12 17:58:38 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 12 22:38:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c6938ca

games-fps/quake2-icculus: mark as LTO-unsafe, strict-aliasing unsafe

Upstream is dead since 2006, no use reporting anything. Even then, their
last act was to convert CVS to SVN.

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

 games-fps/quake2-icculus/quake2-icculus-0.16.1-r2.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/games-fps/quake2-icculus/quake2-icculus-0.16.1-r2.ebuild 
b/games-fps/quake2-icculus/quake2-icculus-0.16.1-r2.ebuild
index ef6f7b8b34a4..29ebfee4ab85 100644
--- a/games-fps/quake2-icculus/quake2-icculus-0.16.1-r2.ebuild
+++ b/games-fps/quake2-icculus/quake2-icculus-0.16.1-r2.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 desktop toolchain-funcs
+inherit desktop flag-o-matic toolchain-funcs
 
 MY_P="quake2-r${PV}"
 DESCRIPTION="The icculus.org Linux port of iD's Quake 2 engine"
@@ -102,6 +102,14 @@ yesno() {
 }
 
 src_compile() {
+       # -Werror=strict-aliasing, also -Werror=lto-type-mismatch
+       # https://bugs.gentoo.org/858752
+       #
+       # Upstream last committed changes in 2006, and that was "Switch from 
CVS to SVN".
+       # Effectively no mailing list discussion since then (sporadic posts 
from users).
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        # xatrix fails to build
        # rogue fails to build
        local libsuffix

Reply via email to