Bug 2233093

Summary: redhat-rpm-config: improve --target noarch, --target x86_64_v* compatibility
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: redhat-rpm-configAssignee: Florian Weimer <fweimer>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: ajax, carl, code, davide, extras-qa, ffesti, fweimer, igor.raits, j, klember, marcdeop, mdomonko, mhroncok, michel, ngompa13, nickc, packaging-team-maint, pmatilai, sipoyare, torsava
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://kojipkgs.fedoraproject.org//work/tasks/4873/104524873/build.log
Whiteboard:
Fixed In Version: redhat-rpm-config-265-1.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2231727 Environment:
Last Closed: 2023-08-29 09:47:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florian Weimer 2023-08-21 12:24:12 UTC
Continuation of bug 2231727.

We should define more %optflags variants in such a way that users can override the distribution default using mock --target.

Comment 1 Panu Matilainen 2023-08-21 12:44:14 UTC
To be exact, %optflags should be defined for the (sub)architectures that rpm can detect, and the new ones to add are x86_64_v2, x86_64_v3 and x86_64_v4. Builds will continue to default to vanilla x86_64.