commit:     f83903b06e8fe76fcb9d3e36d239a0a5f006a1e3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 13 08:58:02 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 13 08:58:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f83903b0

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 <sam <AT> gentoo.org>

 .../pcem/{pcem-17_p20241210.ebuild => pcem-17_p20241210-r1.ebuild} | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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 2431e3890c5a..ab975aba5164 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)"

Reply via email to