summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-09-23 21:20:51 +0100
committerSam James <sam@gentoo.org>2021-09-23 21:31:21 +0100
commit14d08304513db0d19e6b4720d747fbce302074c3 (patch)
tree5c90136a7897958c5ebc865a76f4ee7964f94bf2 /sys-cluster
parentdev-python/sphobjinv: add missing test dep on sphinx (diff)
downloadgentoo-14d08304513db0d19e6b4720d747fbce302074c3.tar.gz
gentoo-14d08304513db0d19e6b4720d747fbce302074c3.tar.bz2
gentoo-14d08304513db0d19e6b4720d747fbce302074c3.zip
sys-cluster/mpich: workaround build failure with GCC 10
Closes: https://bugs.gentoo.org/725842 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/mpich/mpich-3.3-r1.ebuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/sys-cluster/mpich/mpich-3.3-r1.ebuild b/sys-cluster/mpich/mpich-3.3-r1.ebuild
index 5aab7b8bb090..f3cd4b9f84da 100644
--- a/sys-cluster/mpich/mpich-3.3-r1.ebuild
+++ b/sys-cluster/mpich/mpich-3.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -6,7 +6,7 @@ EAPI=6
FORTRAN_NEEDED=fortran
FORTRAN_STANDARD="77 90"
-inherit fortran-2 multilib-minimal multilib autotools
+inherit fortran-2 multilib-minimal multilib flag-o-matic autotools
MY_PV=${PV/_/}
DESCRIPTION="A high performance and portable MPI implementation"
@@ -94,15 +94,22 @@ multilib_src_configure() {
c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
+ # GCC 10 compatibility workaround
+ # bug #725842
+ append-fflags $(test-flags-FC -fallow-argument-mismatch)
+
export MPICHLIB_CFLAGS="${CFLAGS}"
export MPICHLIB_CPPFLAGS="${CPPFLAGS}"
export MPICHLIB_CXXFLAGS="${CXXFLAGS}"
export MPICHLIB_FFLAGS="${FFLAGS}"
export MPICHLIB_FCFLAGS="${FCFLAGS}"
export MPICHLIB_LDFLAGS="${LDFLAGS}"
- unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
- ECONF_SOURCE=${S} econf \
+ # dropped w/ bug #725842 fix
+ #unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
+
+ # Forcing Bash as there's quite a few bashisms in the build system
+ CONFIG_SHELL="${BROOT}/bin/bash" ECONF_SOURCE=${S} econf \
--enable-shared \
--with-hwloc-prefix="${EPREFIX}/usr" \
--with-hwloc-libdir="$(get_libdir)" \