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. Also since this is conditional for the arm32 architecture, maybe the whole block can be dropped given that Fedora doesn't support arm anymore?
FEDORA-2023-271925bf5f has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-271925bf5f
FEDORA-2023-271925bf5f has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.