commit:     f1f66b5d7d94c55af878a84c3712e8ab50950aa9
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Sun May 18 19:27:28 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 21:13:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1f66b5d

games-puzzle/xtris: fix build with gcc15

Closes: https://bugs.gentoo.org/943783
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/42148
Closes: https://github.com/gentoo/gentoo/pull/42148
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-puzzle/xtris/files/xtris-1.15-gcc15.patch             | 13 +++++++++++++
 .../xtris/{xtris-1.15-r1.ebuild => xtris-1.15-r2.ebuild}    |  5 +++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/games-puzzle/xtris/files/xtris-1.15-gcc15.patch 
b/games-puzzle/xtris/files/xtris-1.15-gcc15.patch
new file mode 100644
index 000000000000..23796c96f74c
--- /dev/null
+++ b/games-puzzle/xtris/files/xtris-1.15-gcc15.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/943783
+
+--- a/xtris.c
++++ b/xtris.c
+@@ -2731,7 +2731,7 @@ void connect2server(char *h) {
+   }
+ }
+ 
+-void sigchld() {
++void sigchld(int a) {
+ #ifdef NeXT
+   while (wait3(NULL, WNOHANG|WUNTRACED, NULL) > 0);
+ #else

diff --git a/games-puzzle/xtris/xtris-1.15-r1.ebuild 
b/games-puzzle/xtris/xtris-1.15-r2.ebuild
similarity index 85%
rename from games-puzzle/xtris/xtris-1.15-r1.ebuild
rename to games-puzzle/xtris/xtris-1.15-r2.ebuild
index b41708fe9214..99a173e173b9 100644
--- a/games-puzzle/xtris/xtris-1.15-r1.ebuild
+++ b/games-puzzle/xtris/xtris-1.15-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -18,7 +18,8 @@ DEPEND="x11-libs/libX11"
 RDEPEND="${DEPEND}"
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-1.15-implicit-function-decl-time.patch
+       "${FILESDIR}"/${P}-implicit-function-decl-time.patch
+       "${FILESDIR}"/${P}-gcc15.patch
 )
 
 src_compile() {

Reply via email to