[tracker-miners/wip/ernestask/32] build: Fix libcue version comparison
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/ernestask/32] build: Fix libcue version comparison
- Date: Sun, 7 Oct 2018 08:42:44 +0000 (UTC)
commit 6e281037a5f0abc12e5e8902e445f264200980b0
Author: Ernestas Kulik <ernestask gnome org>
Date: Sun Oct 7 11:40:41 2018 +0300
build: Fix libcue version comparison
It currently performs a string comparison, as opposed to using
version_compare(), which leads to results like
“unknown >= 2.0.0 == True” when the dependency was not found.
Fixes https://gitlab.gnome.org/GNOME/tracker-miners/issues/32
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 262f829ca..e7c5bc443 100644
--- a/meson.build
+++ b/meson.build
@@ -314,7 +314,7 @@ conf.set('GSTREAMER_BACKEND_DISCOVERER', gstreamer_backend_name == 'Discoverer')
conf.set('GSTREAMER_BACKEND_GUPNP_DLNA', gstreamer_backend_name == 'GUPnP-DLNA')
conf.set('HAVE_HAL', battery_detection_library_name == 'hal')
conf.set('HAVE_LIBCUE', libcue.found())
-conf.set('HAVE_LIBCUE2', libcue.version() >= '2.0.0')
+conf.set('HAVE_LIBCUE2', libcue.version().version_compare('>= 2.0.0'))
conf.set('HAVE_LIBICU_CHARSET_DETECTION', charset_library_name == 'icu')
conf.set('HAVE_LIBEXIF', libexif.found())
conf.set('HAVE_LIBIPTCDATA', libiptcdata.found())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]