[Rpm-maint] [rpm-software-management/rpm] RFC: Add x86-64 architecture levels (v2-v4) as architectures (PR #2315)
Fabian Vogt
notifications at github.com
Thu Dec 15 11:03:26 UTC 2022
> > For backward-compatibility and to avoid surprises, default to building x86_64 even on v2+ capable machines.
> > Tested by running rpm --eval %_target_cpu and using rpmbuild with various BuildArch values on a x86_64_v3 host.
>
> Looks like my fix for the platform macros generation broke that part a bit. While with `BuildArch: x86_64_v3` it spits out an `x86_64_v3` RPM, it uses the `x86_64` optflags still. The only way to end up with `x86_64_vX` optflags is by using `--target x86_64_vX`. What's the best way to end up with better semantics?
The reason for that is that `BuildArch` only sets `%_target_cpu`, but not anything else like `%_target` or `%optflags`:
https://github.com/rpm-software-management/rpm/blob/e2c504c08381519c81774791fe6b82eb064a072e/build/parseSpec.c#L1012-L1025
IMO this can be treated as a separate bug (or is this intentional?). Opinions?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2315#issuecomment-1352898530
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2315/c1352898530 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20221215/4403b1f6/attachment.html>
More information about the Rpm-maint
mailing list