summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-01-28 22:23:45 +0100
committerUlrich Müller <ulm@gentoo.org>2020-01-28 22:24:19 +0100
commit0ffcd31e40170e29a86eb0aef5798fff4a5549e8 (patch)
tree1a74dd43e1fc0a157b3cdfcbd223720f04f77ffe /games-board/polyglot
parentmedia-plugins/kodi-vfs-sacd: 1.0.1 version bump (diff)
downloadgentoo-0ffcd31e40170e29a86eb0aef5798fff4a5549e8.tar.gz
gentoo-0ffcd31e40170e29a86eb0aef5798fff4a5549e8.tar.bz2
gentoo-0ffcd31e40170e29a86eb0aef5798fff4a5549e8.zip
games-board/polyglot: Fix compilation with -fno-common.
Closes: https://bugs.gentoo.org/706976 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'games-board/polyglot')
-rw-r--r--games-board/polyglot/files/polyglot-1.4.70b-no-common.patch14
-rw-r--r--games-board/polyglot/polyglot-1.4.70b-r3.ebuild (renamed from games-board/polyglot/polyglot-1.4.70b-r2.ebuild)5
2 files changed, 17 insertions, 2 deletions
diff --git a/games-board/polyglot/files/polyglot-1.4.70b-no-common.patch b/games-board/polyglot/files/polyglot-1.4.70b-no-common.patch
new file mode 100644
index 000000000000..96878a8bfc67
--- /dev/null
+++ b/games-board/polyglot/files/polyglot-1.4.70b-no-common.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/706976
+
+--- polyglot-1.4.70b-orig/pgheader.h
++++ polyglot-1.4.70b/pgheader.h
+@@ -10,9 +10,6 @@
+ #define PGHEADER_BAD_HEADER 6
+
+
+-const char * pgheader_version;
+-const char * pgheader_magic;
+-
+ /* This does some heuristic tests to make it reasonably sure we are dealing
+ with a Polyglot book.
+ */
diff --git a/games-board/polyglot/polyglot-1.4.70b-r2.ebuild b/games-board/polyglot/polyglot-1.4.70b-r3.ebuild
index 6a46f3f55963..23043395c452 100644
--- a/games-board/polyglot/polyglot-1.4.70b-r2.ebuild
+++ b/games-board/polyglot/polyglot-1.4.70b-r3.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
DESCRIPTION="Protocol adapter to run UCI chess engines under xboard"
HOMEPAGE="http://hardy.uhasselt.be/Toga/"
@@ -12,4 +12,5 @@ LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+PATCHES=( "${FILESDIR}"/${P}-no-common.patch )
DOCS="AUTHORS ChangeLog TODO" # README* installed by build system