Description of problem: It would be nice if libraries shipping a .mod file didn't all have to own. %_libdir/gfortan %_libdir/gfortan/modules I think that it would better be owned by libgfortran since the .mod describe the ABI. See also http://fedoraproject.org/wiki/PackagingDrafts/FortranModulesDir Bug 483469 Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Given that the module format is gfortran version specific, sticking them into a directory not specific to gfortran version is IMHO very bad idea. Use /usr/lib/gcc/<target>/<version>/finclude directory instead, which is version specific and already searched by gfortran by default.
This is not the approach that was agreed upon when devising the guideline: http://fedoraproject.org/wiki/PackagingDrafts/FortranModulesDir At that time, the idea was that in reality the .mod files were not different each release, so depending on the gcc version and rebuilding each time was not useful. Do you disagree with the guideline (that is, the .mod file and the corresponding package should depend on the gcc-gfortran %version version)? This means a lot of rebuilds. Which package owns /usr/lib/gcc/<target>/<version>/finclude?
(In reply to comment #2) > Which package owns /usr/lib/gcc/<target>/<version>/finclude? # rpm -qf /usr/lib/gcc/i386-redhat-linux/4.3.2/finclude gcc-gfortran-4.3.2-7.i386 Not an unreasonable package to require if we indeed need to got the versioned directory route.
To version or not to version?
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
I think that we should version here. When the gcc maintainer says that the .mod files are specific to the gfortran version, I'm inclined to trust him. :)
So, how exactly is this going to work? Currently %_fmoddir is defined in /usr/lib/rpm/redhat/macros owned by redhat-rpm-config. If this is going to be a versioned directory that changes with gcc version, it should move to /etc/rpm/macros.gfortran owned by gcc-gfortran. Make sense? I'm happy to push this through since this has been stalled for 6 months, but folks might not like me touching gcc and redhat-rpm-config. :-)
The relevant guideline is now http://www.fedoraproject.org/wiki/Packaging:Fortran and the module dir should be owned by gfortran, since you only need modules for development.. Closing as duplicate. *** This bug has been marked as a duplicate of bug 513985 ***