Disable capstone for riscv64; add BR libatomic

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-07-13 14:02:26 +03:00
parent 9fda121878
commit 122e9d3bd7
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 10 additions and 1 deletions

View File

@ -146,10 +146,12 @@
%define have_capstone_devel 0
%if 0%{?fedora}
%ifnarch riscv64
# capstone-devel is only on Fedora. Use it if it's available, but
# if not, use the internal qemu submodule copy
%define have_capstone_devel 1
%endif
%endif
%define have_librdma 1
%ifarch %{arm}
@ -322,7 +324,7 @@ Obsoletes: %{name}-system-unicore32-core <= %{epoch}:%{version}-%{release}
Summary: QEMU is a FAST! processor emulator
Name: qemu
Version: 7.0.0
Release: %{baserelease}%{?rcrel}%{?dist}
Release: %{baserelease}%{?rcrel}.0.riscv64%{?dist}
Epoch: 2
License: GPLv2 and BSD and MIT and CC-BY
URL: http://www.qemu.org/
@ -415,6 +417,10 @@ BuildRequires: pkgconfig(gbm)
BuildRequires: perl-Test-Harness
BuildRequires: libslirp-devel
BuildRequires: libbpf-devel
%ifarch riscv64
# if -pthread is used GCC SPEC will add --as-needed -latomic --no-as-needed for linker
BuildRequires: libatomic-static
%endif
# Fedora specific
@ -2716,6 +2722,9 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
%changelog
* Wed Jul 13 2022 David Abdurachmanov <davidlt@rivosinc.com> - 7.0.0-6.0.riscv64
- Disable capstone on riscv64 and add BR libatomic
* Sat Jun 11 2022 Cole Robinson <crobinso@redhat.com> - 7.0.0-6
- Adjust for Xen dropping 32bit arches