commit:     56b74153c2b5838bac693d99e1805f32a8bac9e5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 19 13:09:44 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 19 13:09:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56b74153

sci-physics/xfoil: workaround gcc 10 (fortran) failure

Closes: https://bugs.gentoo.org/722194
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-physics/xfoil/xfoil-6.99.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/sci-physics/xfoil/xfoil-6.99.ebuild 
b/sci-physics/xfoil/xfoil-6.99.ebuild
index 8826b940814..36047f4e3d5 100644
--- a/sci-physics/xfoil/xfoil-6.99.ebuild
+++ b/sci-physics/xfoil/xfoil-6.99.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit fortran-2 toolchain-funcs
+inherit fortran-2 flag-o-matic toolchain-funcs
 
 DESCRIPTION="Design and analysis of subsonic isolated airfoils"
 HOMEPAGE="http://raphael.mit.edu/xfoil/";
@@ -28,6 +28,10 @@ src_prepare() {
        [[ $(tc-getFC) == *gfortran ]] && PATCHES+=( 
"${FILESDIR}"/${PN}-6.96-gfortran.patch )
        default
 
+       # GCC 10 workaround
+       # bug #722194
+       append-fflags $(test-flags-FC -fallow-argument-mismatch)
+
        sed \
                -e '/^FC/d' \
                -e '/^CC/d' \

Reply via email to