Bug 1409229

Summary: hdf5: is packaging mod under /usr/include/{openmpi,mpich}-x86_64 correct?
Product: [Fedora] Fedora Reporter: marcindulak <Marcin.Dulak>
Component: hdf5Assignee: Orion Poplawski <orion>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: c.david86, orion
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hdf5-1.8.18-3.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-31 03:28:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description marcindulak 2016-12-30 13:31:34 UTC
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:

Comment 1 marcindulak 2016-12-30 13:36:40 UTC
Related bug #1409230

Comment 2 marcindulak 2016-12-30 13:43:22 UTC
Another related bug #1301533

Comment 3 marcindulak 2016-12-30 13:51:36 UTC
How is this affected by bug #983057 ?

Comment 4 marcindulak 2016-12-30 14:56:30 UTC
One more related bug #1409235

Comment 5 Orion Poplawski 2016-12-31 03:28:51 UTC
Fixed in hdf5-1.8.18-3.fc26.  Yes, packages depending on MPI Fortran modules will need to specify -I${MPI_FORTRAN_MOD_DIR}.

Comment 6 marcindulak 2016-12-31 12:05:42 UTC
-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}

Comment 7 marcindulak 2016-12-31 12:29:34 UTC
bug #1409304
bug #1409305
bug #1409306
bug #1409307