Bug 2161343

Summary: tetrinetx: Use %_fortify_level instead of twiddling with optflags
Product: [Fedora] Fedora Reporter: Siddhesh Poyarekar <sipoyare>
Component: tetrinetxAssignee: Sergio Basto <sergio>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: sergio
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-31 19:56:53 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: 2158232    

Description Siddhesh Poyarekar 2023-01-16 16:35:09 UTC
Description of problem:
There is now a canonical way to disable fortification, see "Fortification level" in the build flags guide:

https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/buildflags.md#source-fortification

This way, one doesn't need to mess with RPM_OPT_FLAGS anymore to do this. The current sed approach will also not work since the flag has now changed to -Wp,-D_FORTIFY_SOURCE=3.

Comment 1 Sergio Basto 2023-01-30 23:36:28 UTC
please , can you send one pull request to tetrinetx package ? 

thank you

Comment 2 Siddhesh Poyarekar 2023-01-31 19:56:53 UTC
You already merged it :)

https://src.fedoraproject.org/rpms/tetrinetx/pull-request/1