commit:     1f7d2ab53952c3b003278d0eb3edb8ddc1ae45d4
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Mon Mar 25 04:47:55 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 25 09:20:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f7d2ab5

games-kids/memonix: mark as LTO-unsafe, strict-aliasing unsafe

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

 games-kids/memonix/memonix-1.6-r1.ebuild | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/games-kids/memonix/memonix-1.6-r1.ebuild 
b/games-kids/memonix/memonix-1.6-r1.ebuild
index f21368cfc488..9cb2034ef1ba 100644
--- a/games-kids/memonix/memonix-1.6-r1.ebuild
+++ b/games-kids/memonix/memonix-1.6-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 cmake desktop wrapper
+inherit cmake desktop flag-o-matic wrapper
 
 DESCRIPTION="Brain teasers, puzzle and memory games for kid's in one pack"
 HOMEPAGE="https://www.viewizard.com/memonix/";
@@ -21,6 +21,17 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
+src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/858782
+       #
+       # Upstream site has been taken down for a long time.
+       append-flags -fno-strict-aliasing
+       filter-lto
+
+       cmake_src_configure
+}
+
 src_install() {
        exeinto /usr/"$(get_libdir)"
        doexe ../${P}_build/Memonix

Reply via email to