Bug 2177253 - redhat-rpm-config injects invalid flags to gfortran
Summary: redhat-rpm-config injects invalid flags to gfortran
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: 43
Hardware: noarch
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-10 15:35 UTC by nvwarr
Modified: 2026-02-05 11:27 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources redhat-rpm-config pull-request 254 0 None None None 2023-07-05 10:50:08 UTC

Description nvwarr 2023-03-10 15:35:33 UTC
Description of problem:

redhat-rpm-config injects flags to gfortran, which are appropriate for the C/C++ compiler and/or preprocessor but not for Fortran.

Version-Release number of selected component (if applicable):

redhat-rpm-config-252-1.fc38.noarch

How reproducible:

always

Steps to Reproduce:
1. build an rpm containing Fortran code

Actual results:

three warnings are generated, which are not generated outside of rpmbuild

f951: Warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for Fortran
f951: Warning: -D_FORTIFY_SOURCE not defined
annobin: test.f: Warning: -D_GLIBCXX_ASSERTIONS not defined

Expected results:

should not pass -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS to gfortran.

Additional info:

this has actually been around for a while, but has only just crossed my annoyance threshold:)

Comment 1 Florian Weimer 2023-07-05 10:50:09 UTC
Some discussion in PR 254. I'm working on a different approach.

Comment 2 Aoife Moloney 2024-05-07 15:59:38 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 nvwarr 2024-05-08 10:32:20 UTC
The problem persists with Fedora 40 (redhat-rpm-config-286-1.fc40.noarch)

Comment 4 nvwarr 2024-11-22 13:20:53 UTC
Still there with redhat-rpm-config-293-1.fc41.noarch in Fedora 41

Comment 5 Aoife Moloney 2025-02-26 12:53:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.


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