Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/mpich2/
Date: Thu, 23 Sep 2021 20:31:36
Message-Id: 1632429082.4c2a5999e1c81c0fc121361463751f1e034edfdf.sam@gentoo
1 commit: 4c2a5999e1c81c0fc121361463751f1e034edfdf
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 23 20:23:35 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 23 20:31:22 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c2a5999
7
8 sys-cluster/mpich2: workaround build failures with GCC 10
9
10 Closes: https://bugs.gentoo.org/725722
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sys-cluster/mpich2/mpich2-1.5.ebuild | 14 +++++++++++---
14 1 file changed, 11 insertions(+), 3 deletions(-)
15
16 diff --git a/sys-cluster/mpich2/mpich2-1.5.ebuild b/sys-cluster/mpich2/mpich2-1.5.ebuild
17 index f73637a3bb1..9a764592cba 100644
18 --- a/sys-cluster/mpich2/mpich2-1.5.ebuild
19 +++ b/sys-cluster/mpich2/mpich2-1.5.ebuild
20 @@ -5,7 +5,7 @@ EAPI=5
21
22 FORTRAN_NEEDED=fortran
23
24 -inherit epatch fortran-2
25 +inherit epatch fortran-2 flag-o-matic
26
27 MY_PV=${PV/_/}
28 DESCRIPTION="A high performance and portable MPI implementation"
29 @@ -72,17 +72,25 @@ src_configure() {
30 c="${c} --enable-threads=single"
31 fi
32
33 +
34 + # GCC 10 compatibility workaround
35 + # bug #725722
36 + append-fflags $(test-flags-FC -fallow-argument-mismatch)
37 +
38 export MPICH2LIB_CFLAGS=${CFLAGS}
39 export MPICH2LIB_CPPFLAGS=${CPPFLAGS}
40 export MPICH2LIB_CXXFLAGS=${CXXFLAGS}
41 export MPICH2LIB_FFLAGS=${FFLAGS}
42 export MPICH2LIB_FCFLAGS=${FCFLAGS}
43 export MPICH2LIB_LDFLAGS=${LDFLAGS}
44 - unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
45 + # dropped w/ bug #725722 fix
46 + #unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
47
48 c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
49 c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
50 - econf ${c} \
51 +
52 + # Forcing Bash as there's quite a few bashisms in the build system
53 + CONFIG_SHELL="${BROOT}/bin/bash" econf \
54 --with-pm=hydra \
55 --disable-mpe \
56 --disable-fast \