Red Hat Bugzilla – Bug 483765
please have libgfortran own %_libdir/gfortan %_libdir/gfortan/modules
Last modified: 2009-10-25 18:29:09 EDT
Description of problem:
It would be nice if libraries shipping a .mod file didn't all have to own.
I think that it would better be owned by libgfortran since the .mod describe the ABI.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Given that the module format is gfortran version specific, sticking them into a directory not specific to gfortran version is IMHO very bad idea.
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:
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
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:
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
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 ***