Hello,
Some time ago a guideline for gfortran modules directory was accepted: http://fedoraproject.org/wiki/PackagingDrafts/FortranModulesDir
First I think this should be in the guidelines, %_fmoddir is in since F10.
Second, there is an issue with directory ownership. The directories in that proposal, for .mod files, are not owned by any package: %_libdir/gfortan %_libdir/gfortan/modules One possibility could be to have libgfortran own them, that way libraries dynamically linked whould bring in libgfortran and the directories. However for libraries linked statically, this doesn't work since they don't depend explicitly on libgortran, but they depend on gcc-gfortran adding the right link information when doing the link. The guideline is not to require the compiler for -devel packages, unless I am missing something. As a side note, since gcc-gfortran is not in the minimal buildroot it has to be a BauildRequires, though.
I see 2 possibilities to solve that issue: * put %_libdir/gfortan %_libdir/gfortan/modules in filesystem * do an addition to the guideline PackagingDrafts/FortranModulesDir to have library linked statically by gfortran and installing .mod files have an explicit dependency on gcc-gfortran.
What's your opinion?
A bugzilla for directory ownership issue: https://bugzilla.redhat.com/show_bug.cgi?id=483469
-- Pat
On 2009-02-02 at 7:00:01 -0500, Patrice Dumas pertusus@free.fr wrote:
I see 2 possibilities to solve that issue:
- put %_libdir/gfortan %_libdir/gfortan/modules in filesystem
- do an addition to the guideline PackagingDrafts/FortranModulesDir to have library linked statically by gfortran and installing .mod files have an explicit dependency on gcc-gfortran.
A third possibility would be to permit each package that does not depend on gcc-gfortran to own those directories (and then have gcc-gfortran own them).
~spot
On Mon, Feb 02, 2009 at 01:21:44PM -0500, Tom spot Callaway wrote:
On 2009-02-02 at 7:00:01 -0500, Patrice Dumas pertusus@free.fr wrote:
I see 2 possibilities to solve that issue:
- put %_libdir/gfortan %_libdir/gfortan/modules in filesystem
- do an addition to the guideline PackagingDrafts/FortranModulesDir to have library linked statically by gfortran and installing .mod files have an explicit dependency on gcc-gfortran.
A third possibility would be to permit each package that does not depend on gcc-gfortran to own those directories (and then have gcc-gfortran own them).
Ok. It is better if it is libgfortran and not gcc-gfortran, I filled https://bugzilla.redhat.com/show_bug.cgi?id=483765
-- Pat
packaging@lists.fedoraproject.org