[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/21] meson: use version_compare() to compare version
From: |
Paolo Bonzini |
Subject: |
[PATCH 03/21] meson: use version_compare() to compare version |
Date: |
Thu, 21 Dec 2023 18:19:40 +0100 |
While a simple lexicographic comparison usually works, it is less
robust than a more specific algorithm designed to compare versions.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
qga/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qga/meson.build b/qga/meson.build
index ff7a8496e48..a6af614891a 100644
--- a/qga/meson.build
+++ b/qga/meson.build
@@ -140,7 +140,7 @@ if targetos == 'windows'
qemu_ga_msi_vss = ['-D', 'InstallVss']
deps += qga_vss
endif
- if glib.version() < '2.73.2'
+ if glib.version().version_compare('<2.73.2')
libpcre = 'libpcre1'
else
libpcre = 'libpcre2'
--
2.43.0
- [PATCH 00/21] Build system cleanups for QEMU 9.0, Paolo Bonzini, 2023/12/21
- [PATCH 01/21] meson: fix type of "relocatable" option, Paolo Bonzini, 2023/12/21
- [PATCH 03/21] meson: use version_compare() to compare version,
Paolo Bonzini <=
- [PATCH 04/21] Makefile: clean qemu-iotests output, Paolo Bonzini, 2023/12/21
- [PATCH 05/21] configure: remove unnecessary subshell, Paolo Bonzini, 2023/12/21
- [PATCH 06/21] configure: unify again the case arms in probe_target_compiler, Paolo Bonzini, 2023/12/21
- [PATCH 07/21] meson: always probe u2f and canokey if the option is enabled, Paolo Bonzini, 2023/12/21
- [PATCH 02/21] meson: remove unused variable, Paolo Bonzini, 2023/12/21
- [PATCH 08/21] meson: remove OS definitions from config_targetos, Paolo Bonzini, 2023/12/21
- [PATCH 09/21] meson: remove CONFIG_POSIX and CONFIG_WIN32 from config_targetos, Paolo Bonzini, 2023/12/21
- [PATCH 10/21] meson: remove config_targetos, Paolo Bonzini, 2023/12/21