summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-02-19 12:55:34 +0000
committerSam James <sam@gentoo.org>2021-02-19 12:55:34 +0000
commite50e0cefd2bc8d32c19bd863a2a31affb44f0290 (patch)
treec8e327397b7cdeaad5abcc8cd8cf0db9c6c3dc06 /sci-libs
parentsci-astronomy/wcslib: workaround gcc 10 (fortran) failure (diff)
downloadgentoo-e50e0cefd2bc8d32c19bd863a2a31affb44f0290.tar.gz
gentoo-e50e0cefd2bc8d32c19bd863a2a31affb44f0290.tar.bz2
gentoo-e50e0cefd2bc8d32c19bd863a2a31affb44f0290.zip
sci-libs/cgcode: workaround gcc 10 (fortran) failure
Closes: https://bugs.gentoo.org/722000 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cgcode/cgcode-1.0-r2.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/sci-libs/cgcode/cgcode-1.0-r2.ebuild b/sci-libs/cgcode/cgcode-1.0-r2.ebuild
index 90160c444ea9..931a56954eb3 100644
--- a/sci-libs/cgcode/cgcode-1.0-r2.ebuild
+++ b/sci-libs/cgcode/cgcode-1.0-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-inherit eutils fortran-2 toolchain-funcs
+inherit eutils fortran-2 flag-o-matic toolchain-funcs
DESCRIPTION="Conjugate gradient Codes for large sparse linear systems"
HOMEPAGE="http://fetk.org/codes/cgcode/index.html"
@@ -23,6 +23,10 @@ S="${WORKDIR}"/${PN}
src_prepare() {
epatch "${FILESDIR}"/${PV}-gentoo.patch
+ # GCC 10 workaround
+ # bug #722000
+ append-fflags $(test-flags-FC -fallow-argument-mismatch)
+
cat >> make.inc <<- EOF
F77 = $(tc-getFC)
FFLAGS = ${FFLAGS}