From 2de7ecd03ef9100b9fe520c2e9d403c5a98a33cc Mon Sep 17 00:00:00 2001 From: XuFei Date: Tue, 30 Jul 2024 15:12:14 +0000 Subject: [PATCH] update stratovirt.spec. set debug is true for build debug package and add rust to BuildRequires Signed-off-by: XuFei (cherry picked from commit 253bc7f5a3c405fc3f736c61b8746f3e4b09e5bb) --- stratovirt.spec | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/stratovirt.spec b/stratovirt.spec index 59d37e0..d715e31 100644 --- a/stratovirt.spec +++ b/stratovirt.spec @@ -6,10 +6,7 @@ Name: stratovirt Version: 2.4.0 -Release: 3 -Summary: StratoVirt is an opensource VMM(Virtual Machine Manager) which aims to perform next generation virtualization. - -License: MulanPSL-2.0 +Release: 4 URL: https://gitee.com/openeuler/stratovirt Source0: https://gitee.com/openeuler/stratovirt/releases/download/v%{version}/%{name}-%{version}.tar.gz @@ -81,6 +78,9 @@ sed -i '/\[source.local-registry\]/a directory = "vendor"' ./.cargo/config sed -i '/^rustflags/d' ./.cargo/config sed -i '/\[build\]/arustflags = \["-Copt-level=3", "-Cdebuginfo=2", "-Clink-arg=-Wl,-z,relro,-z,now", "-Ccodegen-units=1", "--cap-lints=warn", \]' ./.cargo/config +sed -i '$a\[profile.release\]' ./.cargo/config +sed -i '$adebug = true' ./.cargo/config + %ifarch aarch64 sed -i 's/rustflags = \[/&"-Clink-arg=-lgcc", /' ./.cargo/config %endif @@ -102,12 +102,16 @@ install -d %{buildroot}%{_libdir}/stratovirt/static install -D -m555 ./target/%{rust_musl_target}/release/stratovirt %{buildroot}%{_libdir}/stratovirt/static %changelog -* Wed Dec 11 2024 Mingwang Li - 2.4.0-3 +* Wed Dec 11 2024 Mingwang Li - 2.4.0-4 - bugfix VM run failed from memory snapshot -* Thu Nov 21 2024 jinyihua - 2.4.0-2 +* Thu Nov 21 2024 jinyihua - 2.4.0-3 - Micro fix the ioctl allow for aarch64 +* Tue Jul 30 2024 xufei - 2.4.0-2 +- set debug is true for build debug package +- add rust to BuildRequires + * Fri May 10 2024 wenyuanlau 2.4.0-1 - Update to StratoVirt 2.4.0