games-puzzle/freesweep: fix build with gcc15

Closes: https://bugs.gentoo.org/944183
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/42950
Closes: https://github.com/gentoo/gentoo/pull/42950
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alexey Sokolov
2025-07-10 21:32:48 +01:00
committed by Sam James
parent ff080c7f56
commit 5656e4bbbf
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
https://bugs.gentoo.org/944183
Since 1.0.2 the upstream code looks very different now
--- a/game.c
+++ b/game.c
@@ -414,7 +414,7 @@ int ParseArgs(GameStats* Game, int Argc, char** Argv)
{
StartCurses();
InitCharSet(Game,Game->LineDraw);
- PrintGPL(NULL);
+ PrintGPL();
clear();
noutrefresh();
doupdate();

View File

@@ -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=8
@@ -17,6 +17,10 @@ RDEPEND="sys-libs/ncurses:="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${P}"-gcc15.patch
)
src_prepare() {
default