From: David Seifert Date: Wed, 22 Apr 2020 09:29:40 +0000 (+0200) Subject: sci-biology/mafft: Fix -fno-common / GCC 10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b2e205cd00f9cf8b4e13e159750a68f964b4862a;p=gentoo.git 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 --- 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