From f83903b06e8fe76fcb9d3e36d239a0a5f006a1e3 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 13 Mar 2025 08:58:02 +0000 Subject: [PATCH] app-emulation/pcem: pass -fno-strict-aliasing as upstream intended Using RelWithDebInfo as the CMake release type instead of Release means this flag doesn't get added as upstream intended. Closes: https://bugs.gentoo.org/948388 Signed-off-by: Sam James --- ...cem-17_p20241210.ebuild => pcem-17_p20241210-r1.ebuild} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename app-emulation/pcem/{pcem-17_p20241210.ebuild => pcem-17_p20241210-r1.ebuild} (91%) diff --git a/app-emulation/pcem/pcem-17_p20241210.ebuild b/app-emulation/pcem/pcem-17_p20241210-r1.ebuild similarity index 91% rename from app-emulation/pcem/pcem-17_p20241210.ebuild rename to app-emulation/pcem/pcem-17_p20241210-r1.ebuild index 2431e3890c5a4..ab975aba51648 100644 --- a/app-emulation/pcem/pcem-17_p20241210.ebuild +++ b/app-emulation/pcem/pcem-17_p20241210-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -6,7 +6,7 @@ EAPI=8 EGIT_COMMIT="bd1283b91282d522617ac6d29eb0f271ded83ffc" WX_GTK_VER="3.2-gtk3" -inherit cmake desktop wxwidgets +inherit cmake desktop flag-o-matic wxwidgets DESCRIPTION="A PC emulator that specializes in running old operating systems and software" HOMEPAGE="https://github.com/sarah-walker-pcem/pcem/" @@ -40,6 +40,9 @@ src_prepare() { src_configure() { setup-wxwidgets + # Using RelWithDebInfo bypasses upstream's default (bug #948388) + append-flags -fno-strict-aliasing + local mycmakeargs=( -DFORCE_X11=$(usex !wayland) -DPCEM_LIB_DIR="$(get_libdir)"