From dbcc2248ed32ce2467688f394738a21b9ed91128 Mon Sep 17 00:00:00 2001 From: Dario Faggioli Date: Sat, 17 Feb 2024 23:55:09 +0100 Subject: [PATCH] [openSUSE][RPM] Fix handling of qemu-kvm legacy package for RISCV Create the (legacy) qemu-kvm link for RISCV as well. Note that the qemu-system-riscv64 binary, to which the symlink should point, is in the qemu-extra package. However, if we are on RISCV, qemu-extra is an hard dependency of qemu. Therefore, it's fine to ship the link and also set the Provides: and Obsoletes: tag in the qemu package itself. It'd be more correct to do that in the qemu-extra package, of course, but this would complicate the spec file and it's not worth it, considering this is all legacy and should very well go away soon. Fixes: 8ee1ae7ee5919b72a95bc05cbc04ad7b1da557ad Signed-off-by: Dario Faggioli --- rpm/qemu.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpm/qemu.spec b/rpm/qemu.spec index 2168c2cba1..90abac9ade 100644 --- a/rpm/qemu.spec +++ b/rpm/qemu.spec @@ -960,6 +960,9 @@ ln -s qemu-system-ppc64/ %{buildroot}%_bindir/qemu-kvm %ifarch s390x ln -s qemu-system-s390x/ %{buildroot}%_bindir/qemu-kvm %endif +%ifarch riscv64 +ln -s qemu-system-riscv64 %{buildroot}%_bindir/qemu-kvm +%endif %if %{kvm_available} install -D -m 0644 %{rpmfilesdir}/80-kvm.rules %{buildroot}/usr/lib/udev/rules.d/80-kvm.rules -- 2.51.1