Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: The guidelines https://fedoraproject.org/wiki/Packaging:MPI require mod to be placed under: MPI_FORTRAN_MOD_DIR %{_fmoddir}/%{name} MPI stack specific Fortran module directory When doing a search I see: $ dnf provides "/usr/include/*-x86_64/*.mod" | grep '\.fc' | sort | uniq hdf5-mpich-devel-1.8.17-1.fc25.x86_64 : HDF5 mpich development files hdf5-mpich-devel-1.8.17-2.fc25.x86_64 : HDF5 mpich development files hdf5-openmpi-devel-1.8.17-1.fc25.x86_64 : HDF5 openmpi development files hdf5-openmpi-devel-1.8.17-2.fc25.x86_64 : HDF5 openmpi development files netcdf-fortran-mpich-devel-4.4.4-1.fc25.x86_64 : NetCDF Fortran mpich netcdf-fortran-openmpi-devel-4.4.4-1.fc25.x86_64 : NetCDF Fortran openmpi and: $ dnf provides /usr/lib64/gfortran/modules/*/*.mod | grep '\.fc' | sort | uniq elpa-mpich-devel-2015.11.001-1.fc25.x86_64 : Development files for ELPA (MPICH elpa-openmpi-devel-2015.11.001-1.fc25.x86_64 : Development files for ELPA mpich-devel-3.2-6.fc25.x86_64 : Development files for mpich openmpi-devel-1.10.4-4.fc25.x86_64 : Development files for openmpi What are the consequences from moving the modules from %{_includedir}/%{name}-%{_arch} to %{_fmoddir}/%{name}? Do all applications which use mod will have to do -I${MPI_FORTRAN_MOD_DIR}? Note that the solution should cover both Fedora and RHEL. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Related bug #1409230
Another related bug #1301533
How is this affected by bug #983057 ?
One more related bug #1409235
Fixed in hdf5-1.8.18-3.fc26. Yes, packages depending on MPI Fortran modules will need to specify -I${MPI_FORTRAN_MOD_DIR}.
-I${MPI_FORTRAN_MOD_DIR} does not work on RHEL6/RHEL7 (see bug #1409235) Fedora and RHEL use different value for MPI_FORTRAN_MOD_DIR in the modulefiles under /etc/modulefiles/mpi*, but the fortran mod files are installed under %{_fmoddir}/%{name} on both Fedora/RHEL Fedora: MPI_FORTRAN_MOD_DIR %{_fmoddir}/%{name} RHEL: MPI_FORTRAN_MOD_DIR %{_fmoddir}/%{name}-%{_arch} This means on EPEL one cannot use MPI_FORTRAN_MOD_DIR directly and instead -I%{_fmoddir}/%{name}
bug #1409304 bug #1409305 bug #1409306 bug #1409307