summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-06-23 14:11:14 +0200
committerDavid Seifert <soap@gentoo.org>2020-06-23 14:11:14 +0200
commita7b1d2abcfa7bf07b7d1271731029aeec7e753f7 (patch)
treeae824cbbe359ba3afb2c92a5ac36724136553d2e /games-board
parentgames-board/gnugo: [QA] Call AM_PROG_AR (diff)
downloadgentoo-a7b1d2abcfa7bf07b7d1271731029aeec7e753f7.tar.gz
gentoo-a7b1d2abcfa7bf07b7d1271731029aeec7e753f7.tar.bz2
gentoo-a7b1d2abcfa7bf07b7d1271731029aeec7e753f7.zip
games-board/gnugo: Fix building against GCC 10
Closes: https://bugs.gentoo.org/707772 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Suggested-by: Tom Mloduchowski <q@qdot.me> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-board')
-rw-r--r--games-board/gnugo/files/gnugo-3.9.1-fno-common.patch25
-rw-r--r--games-board/gnugo/gnugo-3.9.1-r2.ebuild1
2 files changed, 26 insertions, 0 deletions
diff --git a/games-board/gnugo/files/gnugo-3.9.1-fno-common.patch b/games-board/gnugo/files/gnugo-3.9.1-fno-common.patch
new file mode 100644
index 00000000000..db8215ecf90
--- /dev/null
+++ b/games-board/gnugo/files/gnugo-3.9.1-fno-common.patch
@@ -0,0 +1,25 @@
+--- a/engine/globals.c
++++ b/engine/globals.c
+@@ -136,6 +136,9 @@
+ * move generation is enabled.
+ */
+
++int meaningless_white_moves[BOARDMAX];
++int meaningless_black_moves[BOARDMAX];
++
+ float best_move_values[10];
+ int best_moves[10];
+ float white_score;
+--- a/engine/liberty.h
++++ b/engine/liberty.h
+@@ -859,8 +859,8 @@
+ extern struct worm_data worm[BOARDMAX];
+
+ /* Unconditionally meaningless moves. */
+-int meaningless_black_moves[BOARDMAX];
+-int meaningless_white_moves[BOARDMAX];
++extern int meaningless_black_moves[BOARDMAX];
++extern int meaningless_white_moves[BOARDMAX];
+
+ /* Surround cache (see surround.c) */
+
diff --git a/games-board/gnugo/gnugo-3.9.1-r2.ebuild b/games-board/gnugo/gnugo-3.9.1-r2.ebuild
index 0bafb2715fd..b0bf4b8a827 100644
--- a/games-board/gnugo/gnugo-3.9.1-r2.ebuild
+++ b/games-board/gnugo/gnugo-3.9.1-r2.ebuild
@@ -23,6 +23,7 @@ PATCHES=(
"${FILESDIR}"/${P}-invalid-move.patch
"${FILESDIR}"/${P}-format-security.patch
"${FILESDIR}"/${P}-autotools.patch
+ "${FILESDIR}"/${P}-fno-common.patch
)
src_prepare() {