commit:     85cc39629de3600762146f0c5b8061514caaa1b3
Author:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
AuthorDate: Tue Dec 23 07:24:22 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 24 16:34:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85cc3962

games-board/xboard: fix type error caught by gcc15

Signed-off-by: Jan-Espen Oversand <sigsegv <AT> radiotube.org>
Closes: https://bugs.gentoo.org/944179
Part-of: https://github.com/gentoo/gentoo/pull/45133
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/xboard-4.9.1-type-of-handler.patch       | 27 ++++++++++++++++++++++
 ...{xboard-4.9.1.ebuild => xboard-4.9.1-r1.ebuild} |  3 ++-
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/games-board/xboard/files/xboard-4.9.1-type-of-handler.patch 
b/games-board/xboard/files/xboard-4.9.1-type-of-handler.patch
new file mode 100644
index 000000000000..7416dc706f3d
--- /dev/null
+++ b/games-board/xboard/files/xboard-4.9.1-type-of-handler.patch
@@ -0,0 +1,27 @@
+https://savannah.gnu.org/patch/?10554
+diff --git a/gtk/xboard.c b/gtk/xboard.c
+index 485e9425..c53de93f 100644
+--- a/gtk/xboard.c
++++ b/gtk/xboard.c
+@@ -2086,7 +2086,7 @@ DisplayIcsInteractionTitle (String message)
+       Window win = (Window) atoi(wina);
+       Window root, parent, *children;
+       unsigned int nchildren;
+-      int (*oldHandler)() = XSetErrorHandler(NullXErrorCheck);
++      int (*oldHandler)(Display *, XErrorEvent *) = 
XSetErrorHandler(NullXErrorCheck);
+       for (;;) {
+       if (XFetchName(xDisplay, win, &oldICSInteractionTitle)) break;
+       if (!XQueryTree(xDisplay, win, &root, &parent,
+diff --git a/xaw/xboard.c b/xaw/xboard.c
+index 1c3ffc76..6af432ab 100644
+--- a/xaw/xboard.c
++++ b/xaw/xboard.c
+@@ -2171,7 +2171,7 @@ DisplayIcsInteractionTitle (String message)
+       Window win = (Window) atoi(wina);
+       Window root, parent, *children;
+       unsigned int nchildren;
+-      int (*oldHandler)() = XSetErrorHandler(NullXErrorCheck);
++      int (*oldHandler)(Display *, XErrorEvent *) = 
XSetErrorHandler(NullXErrorCheck);
+       for (;;) {
+       if (XFetchName(xDisplay, win, &oldICSInteractionTitle)) break;
+       if (!XQueryTree(xDisplay, win, &root, &parent,

diff --git a/games-board/xboard/xboard-4.9.1.ebuild 
b/games-board/xboard/xboard-4.9.1-r1.ebuild
similarity index 95%
rename from games-board/xboard/xboard-4.9.1.ebuild
rename to games-board/xboard/xboard-4.9.1-r1.ebuild
index 1c90240f5890..e0728addbc1b 100644
--- a/games-board/xboard/xboard-4.9.1.ebuild
+++ b/games-board/xboard/xboard-4.9.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -44,6 +44,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-4.8.0-gettext.patch
        "${FILESDIR}"/${PN}-4.8.0-gnuchess-default.patch
        "${FILESDIR}"/${PN}-4.9.1-gcc-10.patch
+       "${FILESDIR}"/${PN}-4.9.1-type-of-handler.patch
 )
 
 DOCS=( AUTHORS COPYRIGHT ChangeLog FAQ.html NEWS README TODO ics-parsing.txt )

Reply via email to