rpm-software-management / dnf5

Next-generation RPM package management system
Other
250 stars 86 forks source link

Cannot set `--forcearch=x86_64_v3` #1468

Open hvenev opened 6 months ago

hvenev commented 6 months ago
$ sudo dnf5 install my-package --forcearch=x86_64_v3
Unsupported architecture "x86_64_v3". Please choose one from "aarch64", "alpha", "alphaev4", "alphaev45", "alphaev5", "alphaev56", "alphaev6", "alphaev67", "alphaev68", "alphaev7", "alphapca56", "amd64", "armv5tejl", "armv5tel", "armv5tl", "armv6hl", "armv6l", "armv7hl", "armv7hnl", "armv7l", "armv8hcnl", "armv8hl", "armv8hnl", "armv8l", "athlon", "geode", "i386", "i486", "i586", "i686", "ia32e", "ia64", "loongarch64", "mips", "mips64", "mips64el", "mipsel", "noarch", "ppc", "ppc64", "ppc64iseries", "ppc64le", "ppc64p7", "ppc64pseries", "riscv128", "riscv32", "riscv64", "s390", "s390x", "sh3", "sh4", "sh4a", "sparc", "sparc64", "sparc64v", "sparcv8", "sparcv9", "sparcv9v", "x86_64". Add "--help" for more information about the arguments.

Maybe it needs to get added to libdnf5/rpm/arch_private.hpp?

ppisar commented 6 months ago

I confirm this issue. rpm added it, among other architectures, in https://github.com/rpm-software-management/rpm/commit/cd46c1704ccd8eeb9b600729a0a1c8738b66b847.

Comparing rpm's macros.in, DNF5 is missing: x86_64_v2, x86_64_v3, x86_64_v4, em64t.

m-blaha commented 6 months ago

I've briefly checked libsolv and x86_64_v2, _v3, and _v4 are supported there. I don't see em64t though. https://github.com/openSUSE/libsolv/blob/master/src/poolarch.c