From b2e205cd00f9cf8b4e13e159750a68f964b4862a Mon Sep 17 00:00:00 2001 From: David Seifert Date: Wed, 22 Apr 2020 11:29:40 +0200 Subject: [PATCH] sci-biology/mafft: Fix -fno-common / GCC 10 Closes: https://bugs.gentoo.org/707738 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: David Seifert --- sci-biology/mafft/files/mafft-7.305-fno-common.patch | 8 ++++++++ sci-biology/mafft/mafft-7.305.ebuild | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sci-biology/mafft/files/mafft-7.305-fno-common.patch diff --git a/sci-biology/mafft/files/mafft-7.305-fno-common.patch b/sci-biology/mafft/files/mafft-7.305-fno-common.patch new file mode 100644 index 000000000000..0287b6367f8b --- /dev/null +++ b/sci-biology/mafft/files/mafft-7.305-fno-common.patch @@ -0,0 +1,8 @@ +--- a/core/mltaln.h ++++ b/core/mltaln.h +@@ -336,4 +336,4 @@ + + extern double sueff_global; + extern double lenfaca, lenfacb, lenfacc, lenfacd; +-int maxl, tsize; ++extern int maxl, tsize; diff --git a/sci-biology/mafft/mafft-7.305.ebuild b/sci-biology/mafft/mafft-7.305.ebuild index 9f9f631416b2..f4863892571a 100644 --- a/sci-biology/mafft/mafft-7.305.ebuild +++ b/sci-biology/mafft/mafft-7.305.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -17,6 +17,7 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" IUSE="threads" S="${WORKDIR}/${P}${EXTENSIONS}" +PATCHES=( "${FILESDIR}"/${PN}-7.305-fno-common.patch ) src_prepare() { default -- 2.26.2