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:)
Some discussion in PR 254. I'm working on a different approach.
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.
The problem persists with Fedora 40 (redhat-rpm-config-286-1.fc40.noarch)
Still there with redhat-rpm-config-293-1.fc41.noarch in Fedora 41
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42.