public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-board/gnugo/files/, games-board/gnugo/
@ 2020-06-23 12:11 David Seifert
  0 siblings, 0 replies; only message in thread
From: David Seifert @ 2020-06-23 12:11 UTC (permalink / raw
  To: gentoo-commits

commit:     a7b1d2abcfa7bf07b7d1271731029aeec7e753f7
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 23 12:11:14 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Jun 23 12:11:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7b1d2ab

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 <AT> qdot.me>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../gnugo/files/gnugo-3.9.1-fno-common.patch       | 25 ++++++++++++++++++++++
 games-board/gnugo/gnugo-3.9.1-r2.ebuild            |  1 +
 2 files changed, 26 insertions(+)

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() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-23 12:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-23 12:11 [gentoo-commits] repo/gentoo:master commit in: games-board/gnugo/files/, games-board/gnugo/ David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox