Bug 1113564 - gcc-gfortran should provide and own %{_fmoddir}
Summary: gcc-gfortran should provide and own %{_fmoddir}
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-26 12:30 UTC by Sandro Mani
Modified: 2016-01-06 21:18 UTC (History)
5 users (show)

Fixed In Version: gcc-5.3.1-3.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-06 21:18:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sandro Mani 2014-06-26 12:30:34 UTC
Description of problem:
The fortran packaging guidelines [1] state

For directory ownership any packages containing Fortran modules MUST Requires: gcc-gfortran%{_isa}. 

However, gcc-gfortran does not provide %{_fmoddir} aka %{_libdir}/gfortran/modules.


[1] http://fedoraproject.org/wiki/Packaging:Fortran


Version-Release number of selected component (if applicable):
gcc-gfortran-4.9.0-12.fc21

Comment 1 Jaroslav Reznik 2015-03-03 16:04:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 2 Sandro Mani 2015-11-17 10:12:21 UTC
Issue still applies.

Comment 3 Michael Schwendt 2015-12-25 05:46:51 UTC
See bug 513985 from 2009-07-27 and bug 983057.

After such a long time, it may be necessary to contact someone from FPC about it.

Comment 4 Orion Poplawski 2015-12-28 21:47:41 UTC
I'm going to commit this unless I hear otherwise from a gcc maintainer:

index 1be34c0..92e1acb 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -3,7 +3,7 @@
 %global gcc_version 5.3.1
 # Note, gcc_release must be integer, if you want to add suffixes to
 # %{release}, append them after %{gcc_release} on Release: line.
-%global gcc_release 2
+%global gcc_release 3
 %global _unpackaged_files_terminate_build 0
 %global _performance_build 1
 # Hardening slows the compiler way too much.
@@ -1171,6 +1171,9 @@ rm -f %{buildroot}%{_infodir}/dir
 gzip -9 %{buildroot}%{_infodir}/*.info*
 ln -sf gcc %{buildroot}%{_prefix}/bin/gnatgcc

+# Own %%{_fmoddir}
+mkdir -p %{buildroot}%{_fmoddir}
+
 %if %{build_go}
 mv %{buildroot}%{_prefix}/bin/go{,.gcc}
 mv %{buildroot}%{_prefix}/bin/gofmt{,.gcc}
@@ -2619,6 +2622,7 @@ fi
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/32/libgfortran.so
 %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/32/finclude
 %endif
+%dir %{_fmoddir}
 %doc rpm.doc/gfortran/*

 %files -n libgfortran
@@ -3097,6 +3101,9 @@ fi
 %doc rpm.doc/changelogs/libcc1/ChangeLog*

 %changelog
+* Mon Dec 28 2015 Orion Poplawski <orion.com> 5.3.1-3
+- Make gcc-gfortran own %%{_fmoddir} (#1113564)
+
 * Tue Dec  8 2015 Jakub Jelinek <jakub> 5.3.1-2
 - work around doxygen 1.8.10 bugs (#1279639)


Note You need to log in before you can comment on or make changes to this bug.