[Rpm-maint] [rpm-software-management/rpm] rpmrc: Fix how x86 models are derived (PR #2536)

2023-06-07 Thread Arun Ajith S
The code to autodetect x86 CPU model runs the cpuid instruction after setting up 1 in eax. This gives the processor signature back in eax which encodes the model number. As per Intel Application Note 485 and AMD publication #25481, when deriving model, we should look at both the base model in e

[Rpm-maint] [rpm-software-management/rpm] 32-bit rpm misdetecting Icelake CPUs as Pentium 3 (Issue #2535)

2023-06-07 Thread Arun Ajith S
We've rpm.i686 installed in a chroot on an Icelake host. And on trying to install a `x86_64` rpm with `setarch x86_64 rpm -i` we're getting a `is intended for a different architecture` error. ``` # setarch x86_64 rpm -i glibc.x86_64.rpm nss-softokn-freebl.x86_64.rpm warning: nss-softokn-freebl.x8