diff --git a/0012-remove-git-information-from-version-string.patch b/0012-remove-git-information-from-version-string.patch new file mode 100644 index 0000000000000000000000000000000000000000..84d13e880c81f9a1a8e43bdd8d591e30de632de3 --- /dev/null +++ b/0012-remove-git-information-from-version-string.patch @@ -0,0 +1,29 @@ +From 4f459fa0883d15eca2b1a2171facff379ab0c2ec Mon Sep 17 00:00:00 2001 +From: zhangshaoning +Date: Wed, 3 Sep 2025 13:54:16 +0800 +Subject: [PATCH] remove git information from version string + +--- + util/src/lib.rs | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/util/src/lib.rs b/util/src/lib.rs +index f861d6f..0015462 100644 +--- a/util/src/lib.rs ++++ b/util/src/lib.rs +@@ -53,11 +53,7 @@ use once_cell::sync::Lazy; + use vmm_sys_util::terminal::Terminal; + + /// Read the program version in `Cargo.toml` and concat with git commit id. +-pub const VERSION: &str = concat!( +- env!("CARGO_PKG_VERSION"), +- " commit-id ", +- include_str!(concat!(env!("OUT_DIR"), "/GIT_COMMIT")) +-); ++pub const VERSION: &str = env!("CARGO_PKG_VERSION"); + + pub static TERMINAL_MODE: Lazy>> = Lazy::new(|| Mutex::new(None)); + +-- +2.18.2 + diff --git a/stratovirt.spec b/stratovirt.spec index 27361b18c6ef01198d91e9e69d2755e5b40fd4b3..8a30a8667c805098e9d293706cc7228de419ea2a 100644 --- a/stratovirt.spec +++ b/stratovirt.spec @@ -6,7 +6,7 @@ Name: stratovirt Version: 2.4.0 -Release: 10 +Release: 11 Summary: StratoVirt is an opensource VMM(Virtual Machine Manager) which aims to perform next generation virtualization. License: MulanPSL-2.0 @@ -28,6 +28,7 @@ Patch008:0008-QMP-bugfix-the-error-in-the-return-result-of-query_c.patch Patch009:0009-QMP-add-query-cpus-fast.patch Patch010:0010-add-support-to-interconnecting-with-libvirt.patch Patch011:0011-virtio-net-do-not-delete-fd-which-has-not-been-added.patch +Patch012:0012-remove-git-information-from-version-string.patch ExclusiveArch: x86_64 aarch64 riscv64 @@ -133,6 +134,9 @@ install -D -m555 ./target/%{rust_musl_target}/release/stratovirt %{buildroot}%{_ %endif %changelog +* Wed Sep 03 2025 zhangshaoning - 2.4.0-11 +- Remove Git information from version string + * Thu Jun 19 2025 Yan Wang 2.4.0-10 - Do not delete fd which has not been added