From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1253005-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id A248A13835A
	for <garchives@archives.gentoo.org>; Fri, 19 Feb 2021 13:03:00 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B162BE0D6C;
	Fri, 19 Feb 2021 13:02:59 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9D4FBE0D6C
	for <gentoo-commits@lists.gentoo.org>; Fri, 19 Feb 2021 13:02:59 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 2A4DA340F8A
	for <gentoo-commits@lists.gentoo.org>; Fri, 19 Feb 2021 13:02:58 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 75E474E9
	for <gentoo-commits@lists.gentoo.org>; Fri, 19 Feb 2021 13:02:56 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1613739334.e50e0cefd2bc8d32c19bd863a2a31affb44f0290.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cgcode/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sci-libs/cgcode/cgcode-1.0-r2.ebuild
X-VCS-Directories: sci-libs/cgcode/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: e50e0cefd2bc8d32c19bd863a2a31affb44f0290
X-VCS-Branch: master
Date: Fri, 19 Feb 2021 13:02:56 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 13650abc-dc0b-4d00-a88c-d2bb3c8bcd66
X-Archives-Hash: 8e23c88e72d789d16f4e6da2b43efc47

commit:     e50e0cefd2bc8d32c19bd863a2a31affb44f0290
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 19 12:55:34 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 19 12:55:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e50e0cef

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 <AT> gentoo.org>

 sci-libs/cgcode/cgcode-1.0-r2.ebuild | 8 ++++++--
 1 file 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 90160c444ea..931a56954eb 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}