commit: 4c6b67e91af0d1159b3111caa5ee7f81845b11ce Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Sat Mar 7 19:18:25 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Mar 11 13:48:39 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c6b67e9
games-board/cgoban: Port to C23 Fix sighandler definition to follow declaration, no behaviour changes. Closes: https://bugs.gentoo.org/944043 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/245 Merges: https://codeberg.org/gentoo/gentoo/pulls/245 Signed-off-by: Sam James <sam <AT> gentoo.org> games-board/cgoban/cgoban-1.9.14-r3.ebuild | 41 ++++++++++++++++++++++ .../cgoban/files/cgoban-1.9.14-sighandler.patch | 23 ++++++++++++ 2 files changed, 64 insertions(+) diff --git a/games-board/cgoban/cgoban-1.9.14-r3.ebuild b/games-board/cgoban/cgoban-1.9.14-r3.ebuild new file mode 100644 index 000000000000..73a96879896d --- /dev/null +++ b/games-board/cgoban/cgoban-1.9.14-r3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools desktop + +DESCRIPTION="Go-frontend with a large set of go-related services" +HOMEPAGE="https://cgoban1.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/cgoban1/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + virtual/imagemagick-tools + x11-libs/libX11 + x11-libs/libXt" +DEPEND="${RDEPEND} + x11-base/xorg-proto" + +PATCHES=( + "${FILESDIR}"/${P}-cflags.patch + "${FILESDIR}"/${P}-sighandler.patch +) + +src_prepare() { + default + cp cgoban_icon.png ${PN}.png || die + + mv configure.{in,ac} || die + eautoreconf +} + +src_install() { + default + + doicon ${PN}.png + make_desktop_entry cgoban Cgoban +} diff --git a/games-board/cgoban/files/cgoban-1.9.14-sighandler.patch b/games-board/cgoban/files/cgoban-1.9.14-sighandler.patch new file mode 100644 index 000000000000..3a9ff6b4a6bd --- /dev/null +++ b/games-board/cgoban/files/cgoban-1.9.14-sighandler.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/944043 +Handler ignores arguments, adding ignored argument to signature +so it will conform to system one, is always correct. +--- a/src/main.c 2026-03-07 21:55:30.810539815 +0300 ++++ b/src/main.c 2026-03-07 21:56:18.365294853 +0300 +@@ -29,7 +29,7 @@ + **********************************************************************/ + static void stealth(int exitVal); + #if !DEBUG +-static RETSIGTYPE sigHandler(); ++static RETSIGTYPE sigHandler(int); + #endif /* !DEBUG */ + + +@@ -132,7 +132,7 @@ + + + #if !DEBUG +-static RETSIGTYPE sigHandler() { ++static RETSIGTYPE sigHandler(int) { + fprintf(stderr, "Signal caught.\n"); + abort(); + }
