diff --git a/0001-Enable-debug-symbols.patch b/0001-Enable-debug-symbols.patch new file mode 100644 index 0000000000000000000000000000000000000000..37a8427bfe590d285c15d9d8d36e8455f0c09afb --- /dev/null +++ b/0001-Enable-debug-symbols.patch @@ -0,0 +1,21 @@ +From d7389979677624199f1ea8297402f5aa77fa3309 Mon Sep 17 00:00:00 2001 +From: yanjianqing +Date: Sun, 21 Jul 2024 16:47:44 +0800 +Subject: [PATCH] Enable debug symbols + +--- + Cargo.toml | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Cargo.toml b/Cargo.toml +index a82f9b7..b00a2da 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -55,3 +55,4 @@ panic = "abort" + [profile.release] + panic = "abort" + lto = true ++debug = true +-- +2.44.0.windows.1 + diff --git a/stratovirt.spec b/stratovirt.spec index ff2b0da679fc4e1eba63361de8b3da01f534b16e..b73f936705d04ad34dde207a13689964b24f3c53 100644 --- a/stratovirt.spec +++ b/stratovirt.spec @@ -6,13 +6,13 @@ Name: stratovirt Version: 2.4.0 -Release: 1 +Release: 2 Summary: StratoVirt is an opensource VMM(Virtual Machine Manager) which aims to perform next generation virtualization. License: MulanPSL-2.0 URL: https://gitee.com/openeuler/stratovirt Source0: https://gitee.com/openeuler/stratovirt/releases/download/v%{version}/%{name}-%{version}.tar.gz - +Patch0: 0001-Enable-debug-symbols.patch ExclusiveArch: x86_64 aarch64 @@ -100,10 +100,13 @@ install -d %{buildroot}%{_libdir}/stratovirt/static install -D -m555 ./target/%{rust_musl_target}/release/stratovirt %{buildroot}%{_libdir}/stratovirt/static %changelog -* Fri May 10 2024 wenyuanlau 2.4.0-1 +* Sun Jul 21 2024 yanjianqing - 2.4.0-2 +- Enable debug symbols + +* Fri May 10 2024 wenyuanlau - 2.4.0-1 - Update to StratoVirt 2.4.0 -* Mon Sep 11 2023 yezengruan 2.2.0-16 +* Mon Sep 11 2023 yezengruan - 2.2.0-16 - Add README.md * Fri Sep 8 2023 ganqixin - 2.2.0-15