pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/arpack-ng arpack-ng: fix build with gfortran 10



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e6eded24879e
branches:  trunk
changeset: 442172:e6eded24879e
user:      mcf <mcf%pkgsrc.org@localhost>
date:      Thu Nov 19 19:58:27 2020 +0000

description:
arpack-ng: fix build with gfortran 10

gfortran 10 rejects certain argument mismatches, causing build
errors. This issue is fixed upstream[0], but the commit modifies
40 files, so until the next release use -fallow-argument-mismatch
to downgrade these to warnings, as suggested by the gcc 10 porting
guide[1].

[0] https://github.com/opencollab/arpack-ng/commit/9418632214acf6d387896ab29a8f5bdff2d4e38a
[1] https://gcc.gnu.org/gcc-10/porting_to.html#argument-mismatch

diffstat:

 math/arpack-ng/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 256d2113c6ec -r e6eded24879e math/arpack-ng/Makefile
--- a/math/arpack-ng/Makefile   Thu Nov 19 19:28:49 2020 +0000
+++ b/math/arpack-ng/Makefile   Thu Nov 19 19:58:27 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2020/10/12 21:52:02 bacon Exp $
+# $NetBSD: Makefile,v 1.3 2020/11/19 19:58:27 mcf Exp $
 
 DISTNAME=      arpack-ng-3.7.0
 PKGREVISION=   1
@@ -13,6 +13,10 @@
 USE_LANGUAGES= c fortran
 USE_CMAKE=     yes
 
+# Required to build with gfortran 10. Fixed upstream in
+# https://github.com/opencollab/arpack-ng/commit/9418632214
+FFLAGS+=       -fallow-argument-mismatch
+
 OBJDIR=                obj
 
 CONFIGURE_DIRS=        ${OBJDIR}



Home | Main Index | Thread Index | Old Index