[Rpm-maint] [rpm-software-management/rpm] is_pentium3 is_pentium4 return bogus values on modern CPUs (Issue #2147)
Bruno Pitrus
notifications at github.com
Mon Aug 8 18:01:27 UTC 2022
The function is_pentium3 is_pentium4 in [lib/rpmrc.c](https://github.com/rpm-software-management/rpm/blob/master/lib/rpmrc.c) return false on modern (x64) or non-Intel CPUs, preventing building or installation of RPMs tagged with such an architecture.
I'm guessing that, to be useful, the `pentium3` RPM architecture should correspond to the presence of SSE extensions, and `pentium4` to SSE2 (as it does with [GCC](https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html), for instance), instead of hardcoding specific CPU models.
I also assume that `geode` is 3dNow and `athlon` is Pentium3 with 3dNow — in which case it's [incorrect to make athlon packages installable on x86_64](https://github.com/rpm-software-management/rpm/blob/master/rpmrc.in#L499), as not all 64-bit CPUs have 3dNow (while all have SSE2, for comparison)
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2147
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2147 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220808/5ce85536/attachment.html>
More information about the Rpm-maint
mailing list