From 6579c1e3f27bdcf07cc200f0dc4011a8559eaff9 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 12 Aug 2025 20:41:12 -0400 Subject: [PATCH] games-emulation/melonds: mark as strict-aliasing unsafe, LTO-unsafe Closes: https://bugs.gentoo.org/959632 Signed-off-by: Eli Schwartz --- games-emulation/melonds/melonds-1.0.ebuild | 8 +++++++- games-emulation/melonds/melonds-1.0_rc.ebuild | 8 +++++++- games-emulation/melonds/melonds-9999.ebuild | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/games-emulation/melonds/melonds-1.0.ebuild b/games-emulation/melonds/melonds-1.0.ebuild index 70eb307c79f64..38d25d364487d 100644 --- a/games-emulation/melonds/melonds-1.0.ebuild +++ b/games-emulation/melonds/melonds-1.0.ebuild @@ -7,7 +7,7 @@ REAL_PN="melonDS" REAL_PV="${PV/_rc/rc}" REAL_P="${REAL_PN}-${REAL_PV}" -inherit cmake readme.gentoo-r1 toolchain-funcs xdg +inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg DESCRIPTION="Nintendo DS emulator, sorta" HOMEPAGE="http://melonds.kuribo64.net @@ -65,6 +65,12 @@ Place them in ~/.config/melonDS Those files can be extracted from devices or found somewhere on the Internet ;-)" src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/959632 + # https://github.com/melonDS-emu/melonDS/issues/2349 + append-flags -fno-strict-aliasing + filter-lto + local -a mycmakeargs=( -DUSE_CCACHE="OFF" diff --git a/games-emulation/melonds/melonds-1.0_rc.ebuild b/games-emulation/melonds/melonds-1.0_rc.ebuild index 582290394b829..ef8370e74f5b6 100644 --- a/games-emulation/melonds/melonds-1.0_rc.ebuild +++ b/games-emulation/melonds/melonds-1.0_rc.ebuild @@ -7,7 +7,7 @@ REAL_PN="melonDS" REAL_PV="${PV/_rc/rc}" REAL_P="${REAL_PN}-${REAL_PV}" -inherit cmake readme.gentoo-r1 toolchain-funcs xdg +inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg DESCRIPTION="Nintendo DS emulator, sorta" HOMEPAGE="http://melonds.kuribo64.net @@ -65,6 +65,12 @@ Place them in ~/.config/melonDS Those files can be extracted from devices or found somewhere on the Internet ;-)" src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/959632 + # https://github.com/melonDS-emu/melonDS/issues/2349 + append-flags -fno-strict-aliasing + filter-lto + local -a mycmakeargs=( -DUSE_CCACHE="OFF" diff --git a/games-emulation/melonds/melonds-9999.ebuild b/games-emulation/melonds/melonds-9999.ebuild index 70eb307c79f64..38d25d364487d 100644 --- a/games-emulation/melonds/melonds-9999.ebuild +++ b/games-emulation/melonds/melonds-9999.ebuild @@ -7,7 +7,7 @@ REAL_PN="melonDS" REAL_PV="${PV/_rc/rc}" REAL_P="${REAL_PN}-${REAL_PV}" -inherit cmake readme.gentoo-r1 toolchain-funcs xdg +inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg DESCRIPTION="Nintendo DS emulator, sorta" HOMEPAGE="http://melonds.kuribo64.net @@ -65,6 +65,12 @@ Place them in ~/.config/melonDS Those files can be extracted from devices or found somewhere on the Internet ;-)" src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/959632 + # https://github.com/melonDS-emu/melonDS/issues/2349 + append-flags -fno-strict-aliasing + filter-lto + local -a mycmakeargs=( -DUSE_CCACHE="OFF"