Bug 1578131

Summary: [epel-rpm-macros] add macros for new compiler/linker flags
Product: [Fedora] Fedora EPEL Reporter: Carl George 🤠 <carlwgeorge>
Component: epel-rpm-macrosAssignee: Jason Tibbitts <j>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: j, kevin, TicoTimo, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: epel-rpm-macros-6-20 epel-rpm-macros-7-18 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-02 21:22:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Carl George 🤠 2018-05-14 20:45:38 UTC
Description of problem:
Fedora's redhat-rpm-config has several compiler/linker flags macros that don't exist in RHEL's redhat-rpm-config [1].  Once a Fedora package start using these, it may fail to build on RHEL.  Please define some or all of these macros in epel-rpm-macros.

%build_cflags   %{optflags}
%build_cxxflags %{optflags}
%build_fflags   %{optflags} -I%{_fmoddir}
%build_ldflags  %{__global_ldflags}

[1]: https://src.fedoraproject.org/rpms/redhat-rpm-config/c/fa08f0e5a18d27663084a35e992083e8e38cc2a4

Comment 1 Fedora Update System 2018-05-14 22:13:43 UTC
epel-rpm-macros-6-20 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e341fc55aa

Comment 2 Fedora Update System 2018-05-14 22:13:51 UTC
epel-rpm-macros-7-18 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-bce5b00d61

Comment 3 Jason Tibbitts 2018-05-14 22:18:19 UTC
Note that %__global_ldflags is not defined on EL6, so I defined %build_ldflags to be empty there.

Buildroot overrides should very soon be active for both of these so it should be possible to use them in koji builds pretty much immediately.

Comment 4 Fedora Update System 2018-05-15 21:21:06 UTC
epel-rpm-macros-6-20 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e341fc55aa

Comment 5 Fedora Update System 2018-05-15 21:22:01 UTC
epel-rpm-macros-7-18 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-bce5b00d61

Comment 6 Fedora Update System 2018-06-02 21:22:18 UTC
epel-rpm-macros-6-20 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2018-06-02 22:00:56 UTC
epel-rpm-macros-7-18 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.