Bug 1218294

Summary: Split hardened-cc1 and hardened-ld to a subpackage
Product: [Fedora] Fedora Reporter: Bohuslav "Slavek" Kabrda <bkabrda>
Component: redhat-rpm-configAssignee: Florian Festi <ffesti>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bgilbert, carl, ffesti, fschwarz, fweimer, jberan, jonathan, kloczko.tomasz, pmatilai, rdieter, vondruch
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-26 15:53:05 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: 1284684, 1217376    

Description Bohuslav "Slavek" Kabrda 2015-05-04 14:11:44 UTC
I'm opening this bug because of bug 1217376. tldr: Python saves the compilation/linking flags (used to build Python itself) to a module generated during the build. It then uses these flags as "best" flags to compile C code on the platform - most importantly, it uses them to compile Python C extensions using distutils.

As noted in bug 1217376 comment 3, I think this is right and we should make python-devel depend on redhat-rpm-config. The problem is however that redhat-rpm-config will also draw along some unnecessary deps (for our usecase), like ghc-srpm-macros, perl-srpm-macros etc. - I'd very much like to avoid these for people installing python-devel.

Therefore I'd like to ask you to split /usr/lib/rpm/redhat/redhat-hardened-cc1 and /usr/lib/rpm/redhat/redhat-hardened-ld to a separate subpackage that wouldn't depend on any other package. redhat-rpm-config can depend on this package (as can python-devel), so nothing will change for your use-cases.
Thanks!

Comment 1 Jan Kurik 2015-07-15 14:11:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

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

Comment 2 Robert Kuska 2016-01-14 09:15:34 UTC
Any update on this one?

Comment 3 Panu Matilainen 2016-11-07 14:33:37 UTC
The foo-srpm-macros packages are really small and should not bring in further dependencies (that'd be bug in them basically). This seems like pointless complication of things, redhat-rpm-config is basically expected to be installed just about everywhere.

Comment 4 Panu Matilainen 2016-11-08 10:31:38 UTC
That said, having just seen bug 1288717, there appears to be a common theme and maybe it needs more consideration.

Comment 5 Fedora End Of Life 2016-11-24 11:46:07 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. 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 Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Vít Ondruch 2017-07-13 05:31:45 UTC
Ping? Any updates?

Comment 7 Tomasz Kłoczko 2017-11-20 13:55:03 UTC
IMO slitting does not make any sense. It is not possible to use complier without linker and vice versa.
Things like using --as-needed in linker should be even part of the default ettings of the liner hardcoded into linker code.
The same is with -fpie.

Comment 8 Tomasz Kłoczko 2017-11-20 13:57:05 UTC
> I'm opening this bug because of bug 1217376. tldr: Python saves the compilation/linking flags (used to build Python itself) to a module generated during the build.

Such compiler adn linker options should be removed and not propagated as same as for example none of the pkgconfig files shoud be propagating linker and compiler fialgs.

Comment 9 Tomasz Kłoczko 2017-12-25 07:10:57 UTC
What I've wrote had nothing to do with propagating settings in pkgconfig files.
My comment was purely about default linker options.
If distutil has some problems only this package should be fixed.

Comment 10 Florian Weimer 2018-01-26 15:53:05 UTC
distutils needs to be fixed not to hard-code the build flags used at RPM build time because Python developers cannot be expected to have a fully instrumented Fedora build environment installed.  This needs to be fixed on the Python side, I'm afraid.

Comment 11 Vít Ondruch 2018-01-26 16:10:45 UTC
@Florian Ruby suffers similar issues. Would you mind to address my concerns in https://bugzilla.redhat.com/show_bug.cgi?id=1284684#c8 ? Thx.