dnf5 icon indicating copy to clipboard operation
dnf5 copied to clipboard

Cannot set `--forcearch=x86_64_v3`

Open hvenev opened this issue 1 year ago • 2 comments

$ 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?

hvenev avatar May 03 '24 17:05 hvenev

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.

ppisar avatar May 06 '24 07:05 ppisar

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

m-blaha avatar May 07 '24 05:05 m-blaha