From cab670c1b341bc66d2da114ee05583a4e5af5873 Mon Sep 17 00:00:00 2001 From: NHOrus Date: Fri, 13 Feb 2026 16:16:22 +0300 Subject: [PATCH] games-arcade/bumprace: Port to C23 Function that takes no arguments was given an argument Closes: https://bugs.gentoo.org/966631 Signed-off-by: NHOrus Part-of: https://github.com/gentoo/gentoo/pull/45798 Closes: https://github.com/gentoo/gentoo/pull/45798 Signed-off-by: James Le Cuirot --- games-arcade/bumprace/bumprace-1.5.8.ebuild | 4 +++- .../bumprace/files/bumprace-1.5.8-C23.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 games-arcade/bumprace/files/bumprace-1.5.8-C23.patch diff --git a/games-arcade/bumprace/bumprace-1.5.8.ebuild b/games-arcade/bumprace/bumprace-1.5.8.ebuild index f9962244a2184..7f95ce5a70b11 100644 --- a/games-arcade/bumprace/bumprace-1.5.8.ebuild +++ b/games-arcade/bumprace/bumprace-1.5.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -22,6 +22,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}/${P}-C23.patch" ) + src_install() { default make_desktop_entry bumprace BumpRace diff --git a/games-arcade/bumprace/files/bumprace-1.5.8-C23.patch b/games-arcade/bumprace/files/bumprace-1.5.8-C23.patch new file mode 100644 index 0000000000000..506502b4b425d --- /dev/null +++ b/games-arcade/bumprace/files/bumprace-1.5.8-C23.patch @@ -0,0 +1,13 @@ +StartText doesn't take an argument +https://bugs.gentoo.org/966631 +--- a/src/bumprace.c 2026-02-13 16:02:19.108518662 +0300 ++++ b/src/bumprace.c 2026-02-13 16:05:19.152697531 +0300 +@@ -1178,7 +1178,7 @@ + sprintf(text,"%s/font.scl",DATAPATH); + Font=LoadImage("font.png",3); + InitFont(Font); +- if (final) StartText(i); ++ if (final) StartText(); + //load data + printf("** Loading Data **\n"); + #ifdef SOUND