From d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 26 Jan 2020 15:17:01 +0000 Subject: [PATCH] games-arcade/nibbles: tweak for gcc-10, bug #706446 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/706446 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich --- .../nibbles/files/nibbles-0.0.4-gcc-10.patch | 22 +++++++++++++++++++ games-arcade/nibbles/nibbles-0.0.4-r1.ebuild | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch diff --git a/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch b/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch new file mode 100644 index 000000000000..e70203f73c7e --- /dev/null +++ b/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch @@ -0,0 +1,22 @@ +--- a/scoring.c ++++ b/scoring.c +@@ -12,6 +12,8 @@ + #include + #include "scoring.h" + ++char highscoref[255]; ++ + int get_high_scores(struct highscoreent *highscores[], int *numscores) + { + FILE *scorefile; +--- a/scoring.h ++++ b/scoring.h +@@ -11,7 +11,7 @@ + /* Max number of high scores we store */ + #define MAXHIGHSCORES 20 + +-char highscoref[255]; ++extern char highscoref[255]; + + struct highscoreent { + char name[16]; diff --git a/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild b/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild index fb8b32293972..f0e888118245 100644 --- a/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild +++ b/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -24,6 +24,7 @@ GAMES_STATEDIR="/var/games/${PN}" PATCHES=( "${FILESDIR}"/${P}-as-needed.patch + "${FILESDIR}"/${P}-gcc-10.patch ) S="${WORKDIR}/${MY_P}" -- 2.26.2