commit:     c0c4bd65532c333ad6281bce5e2dc5c0aead8ed2
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Thu Sep 11 21:07:34 2025 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Thu Sep 11 21:14:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c0c4bd65

games-board/openriichi: append -Wno-int-conversion to fix build

Fix clang and gcc-{14.3.0,15.2.0} 'integer to pointer conversion'
build error the way used in Fedora Linux spec (see issue [1]).

[1] https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2340975

Closes: https://bugs.gentoo.org/887645
Closes: https://bugs.gentoo.org/945214

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 .../{openriichi-0.2.1.1.ebuild => openriichi-0.2.1.1-r1.ebuild}     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/games-board/openriichi/openriichi-0.2.1.1.ebuild 
b/games-board/openriichi/openriichi-0.2.1.1-r1.ebuild
similarity index 84%
rename from games-board/openriichi/openriichi-0.2.1.1.ebuild
rename to games-board/openriichi/openriichi-0.2.1.1-r1.ebuild
index 7aab0b7a3e..1636836baa 100644
--- a/games-board/openriichi/openriichi-0.2.1.1.ebuild
+++ b/games-board/openriichi/openriichi-0.2.1.1-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit desktop meson vala xdg
+inherit desktop flag-o-matic meson vala xdg
 
 Engine_sha="e495846970a1b38d00c81a3f74568030f976ed31"
 MY_PN="OpenRiichi"
@@ -40,6 +40,8 @@ src_prepare() {
        #switch vsync ON by default
        sed -i -e "s/v_sync = OnOffEnum.OFF/v_sync = OnOffEnum.ON/" 
"${S}/source/Game/Options.vala" || die
 
+       # bugs 887645, 945214 (fix clang, gcc-{14.3.0,15.2.0} 'integer to 
pointer conversion' build error)
+       append-cflags -Wno-int-conversion
        vala_setup
 }
 

Reply via email to