Bug 1543858

Summary: netpbm: Does not use Fedora build flags
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: netpbmAssignee: Josef Ridky <jridky>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: jridky, phracek, rdossant
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: netpbm-10.83.01-1.fc27 netpbm-10.83.01-1.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-24 07:10:48 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:
Bug Depends On:    
Bug Blocks: 1539083    

Description Florian Weimer 2018-02-09 12:37:14 UTC
netpbm-10.81.00-2.fc28 does not use the Fedora build flags.  For example, /usr/bin/jpegtopnm is not linked with the LDFLAGS from redhat-rpm-config.

If I change the RPM spec file to use the proper LDFLAGS, linking fails on x86_64 because the CFLAGS injection is incomplete as well:

gcc -o typegen -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld typegen.o
/usr/bin/ld: typegen.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output

More information about RPM macros to set CFLAGS and LDFLAGS is available here:
https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md

Comment 1 Fedora End Of Life 2018-02-20 15:22:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 3 Fedora Update System 2018-06-05 07:04:41 UTC
netpbm-10.82.00-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-664840259f

Comment 4 Fedora Update System 2018-06-05 07:04:58 UTC
netpbm-10.82.00-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-525b048212

Comment 5 Fedora Update System 2018-06-05 14:50:37 UTC
netpbm-10.82.00-3.fc28 has been pushed to the Fedora 28 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-2018-525b048212

Comment 6 Fedora Update System 2018-06-05 15:23:32 UTC
netpbm-10.82.00-3.fc27 has been pushed to the Fedora 27 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-2018-664840259f

Comment 7 Fedora Update System 2018-07-24 09:52:03 UTC
netpbm-10.83.01-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b96c798490

Comment 8 Fedora Update System 2018-07-24 09:52:34 UTC
netpbm-10.83.01-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b71ffc1714

Comment 9 Fedora Update System 2018-07-24 15:12:02 UTC
netpbm-10.83.01-1.fc27 has been pushed to the Fedora 27 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-2018-b96c798490

Comment 10 Fedora Update System 2018-07-24 17:21:42 UTC
netpbm-10.83.01-1.fc28 has been pushed to the Fedora 28 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-2018-b71ffc1714

Comment 11 Fedora Update System 2018-08-24 07:10:48 UTC
netpbm-10.83.01-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2018-08-24 08:03:04 UTC
netpbm-10.83.01-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.