sci-biology/mafft: Fix -fno-common / GCC 10
authorDavid Seifert <soap@gentoo.org>
Wed, 22 Apr 2020 09:29:40 +0000 (11:29 +0200)
committerDavid Seifert <soap@gentoo.org>
Wed, 22 Apr 2020 09:29:40 +0000 (11:29 +0200)
Closes: https://bugs.gentoo.org/707738
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Seifert <soap@gentoo.org>
sci-biology/mafft/files/mafft-7.305-fno-common.patch [new file with mode: 0644]
sci-biology/mafft/mafft-7.305.ebuild

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 (file)
index 0000000..0287b63
--- /dev/null
@@ -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;
index 9f9f631416b2cef3587ea816fa4999dac9fa22c1..f4863892571af63facebccef4520f1de640901ea 100644 (file)
@@ -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