commit: 37468e9dd3773e0ac5c963d44167a880cf67dc49
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 31 23:06:01 2025 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Thu Jul 31 23:06:01 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37468e9d
sci-mathematics/petsc: Fix compilation with sys-cluster/openmpi-5
With openpmi-5 onwards we run into a problem that #include "mpif.h" does
not find subsequent includes, such as "mpif-config.h" under
/usr/include. Work around this issue by manually specifying /usr/include
as an include directory.
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
sci-mathematics/petsc/petsc-3.23.4.ebuild | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sci-mathematics/petsc/petsc-3.23.4.ebuild
b/sci-mathematics/petsc/petsc-3.23.4.ebuild
index 6e581ebc0167..6e36f143f9c5 100644
--- a/sci-mathematics/petsc/petsc-3.23.4.ebuild
+++ b/sci-mathematics/petsc/petsc-3.23.4.ebuild
@@ -139,8 +139,8 @@ src_configure() {
CPPFLAGS="${CPPFLAGS}" \
CXXFLAGS="${CXXFLAGS} -fPIC" \
CXXOPTFLAGS="${CXXFLAGS} -fPIC" \
- FCFLAGS="${FCFLAGS} -fPIC" \
- FFLAGS="${FFLAGS} -fPIC" \
+ FCFLAGS="${FCFLAGS} -I/usr/include -fPIC" \
+ FFLAGS="${FFLAGS} -I/usr/include -fPIC" \
LDFLAGS="${LDFLAGS}" \
MAKEFLAGS="${MAKEFLAGS}" \
RANLIB="${RANLIB}" \
@@ -164,14 +164,14 @@ src_configure() {
$(petsc_select complex-scalars scalar-type complex real) \
$(petsc_select mpi cc mpicc $(tc-getCC)) \
$(petsc_select mpi cxx mpicxx $(tc-getCXX)) \
- $(petsc_select mpi fc mpif90 $(tc-getFC)) \
+ $(petsc_select mpi fc mpif90 $(tc-getF90)) \
$(petsc_with afterimage afterimage /usr/include/libAfterImage
-lAfterImage) \
$(petsc_with hypre hypre /usr/include/hypre -lHYPRE) \
$(petsc_with superlu superlu /usr/include/superlu -lsuperlu) \
$(petsc_with scotch ptscotch /usr/include/scotch
[-lptesmumps,-lptscotch,-lptscotcherr,-lscotch,-lscotcherr]) \
$(petsc_with mumps scalapack /usr/include/scalapack
-lscalapack) \
$(petsc_with mumps mumps /usr/include
[-lcmumps,-ldmumps,-lsmumps,-lzmumps,-lmumps_common,-lpord]) \
- $(use fortran && echo "$(petsc_select mpi fc mpif77
$(tc-getF77))") \
+ $(use fortran && echo "$(petsc_select mpi fc mpif90
$(tc-getF90))") \
$(use int64 && echo "--with-index-size=64") \
$(use_with boost) \
$(use_with fftw) \