1 |
commit: d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 26 15:17:01 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 26 15:17:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d32a3e02 |
7 |
|
8 |
games-arcade/nibbles: tweak for gcc-10, bug #706446 |
9 |
|
10 |
Reported-by: Toralf Förster |
11 |
Closes: https://bugs.gentoo.org/706446 |
12 |
Package-Manager: Portage-2.3.85, Repoman-2.3.20 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
.../nibbles/files/nibbles-0.0.4-gcc-10.patch | 22 ++++++++++++++++++++++ |
16 |
games-arcade/nibbles/nibbles-0.0.4-r1.ebuild | 3 ++- |
17 |
2 files changed, 24 insertions(+), 1 deletion(-) |
18 |
|
19 |
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 |
20 |
new file mode 100644 |
21 |
index 00000000000..e70203f73c7 |
22 |
--- /dev/null |
23 |
+++ b/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch |
24 |
@@ -0,0 +1,22 @@ |
25 |
+--- a/scoring.c |
26 |
++++ b/scoring.c |
27 |
+@@ -12,6 +12,8 @@ |
28 |
+ #include <time.h> |
29 |
+ #include "scoring.h" |
30 |
+ |
31 |
++char highscoref[255]; |
32 |
++ |
33 |
+ int get_high_scores(struct highscoreent *highscores[], int *numscores) |
34 |
+ { |
35 |
+ FILE *scorefile; |
36 |
+--- a/scoring.h |
37 |
++++ b/scoring.h |
38 |
+@@ -11,7 +11,7 @@ |
39 |
+ /* Max number of high scores we store */ |
40 |
+ #define MAXHIGHSCORES 20 |
41 |
+ |
42 |
+-char highscoref[255]; |
43 |
++extern char highscoref[255]; |
44 |
+ |
45 |
+ struct highscoreent { |
46 |
+ char name[16]; |
47 |
|
48 |
diff --git a/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild b/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild |
49 |
index fb8b3229397..f0e88811824 100644 |
50 |
--- a/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild |
51 |
+++ b/games-arcade/nibbles/nibbles-0.0.4-r1.ebuild |
52 |
@@ -1,4 +1,4 @@ |
53 |
-# Copyright 1999-2019 Gentoo Authors |
54 |
+# Copyright 1999-2020 Gentoo Authors |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
|
57 |
EAPI=7 |
58 |
@@ -24,6 +24,7 @@ GAMES_STATEDIR="/var/games/${PN}" |
59 |
|
60 |
PATCHES=( |
61 |
"${FILESDIR}"/${P}-as-needed.patch |
62 |
+ "${FILESDIR}"/${P}-gcc-10.patch |
63 |
) |
64 |
|
65 |
S="${WORKDIR}/${MY_P}" |