From 0ffcd31e40170e29a86eb0aef5798fff4a5549e8 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Tue, 28 Jan 2020 22:23:45 +0100 Subject: games-board/polyglot: Fix compilation with -fno-common. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/706976 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Ulrich Müller --- .../polyglot/files/polyglot-1.4.70b-no-common.patch | 14 ++++++++++++++ games-board/polyglot/polyglot-1.4.70b-r2.ebuild | 15 --------------- games-board/polyglot/polyglot-1.4.70b-r3.ebuild | 16 ++++++++++++++++ 3 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 games-board/polyglot/files/polyglot-1.4.70b-no-common.patch delete mode 100644 games-board/polyglot/polyglot-1.4.70b-r2.ebuild create mode 100644 games-board/polyglot/polyglot-1.4.70b-r3.ebuild (limited to 'games-board') 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-r2.ebuild deleted file mode 100644 index 6a46f3f55963..000000000000 --- a/games-board/polyglot/polyglot-1.4.70b-r2.ebuild +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Protocol adapter to run UCI chess engines under xboard" -HOMEPAGE="http://hardy.uhasselt.be/Toga/" -# not entirely clear what the "b" in the version stands for -SRC_URI="http://hardy.uhasselt.be/Toga/${PN}-release/${P}.tar.gz" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DOCS="AUTHORS ChangeLog TODO" # README* installed by build system diff --git a/games-board/polyglot/polyglot-1.4.70b-r3.ebuild b/games-board/polyglot/polyglot-1.4.70b-r3.ebuild new file mode 100644 index 000000000000..23043395c452 --- /dev/null +++ b/games-board/polyglot/polyglot-1.4.70b-r3.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Protocol adapter to run UCI chess engines under xboard" +HOMEPAGE="http://hardy.uhasselt.be/Toga/" +# not entirely clear what the "b" in the version stands for +SRC_URI="http://hardy.uhasselt.be/Toga/${PN}-release/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( "${FILESDIR}"/${P}-no-common.patch ) +DOCS="AUTHORS ChangeLog TODO" # README* installed by build system -- cgit v1.2.3-65-gdbad