From e8ca61a243b9e7a7313621d584be6c7fc50e8591 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 23 Nov 2024 10:31:23 +0100 Subject: [PATCH] common: Use broader gio dependency in parser modules In builds using glib as a subproject, these modules indirectly rely on headers pulling gio.h, which indirectly pulls gmodule.h. Since in the subproject gmodule.h will not be in the same place as glib.h, we will fail to see it since we do not explicitly link to gmodule. Use the more honest gio dependency, which will pull gobject and gmodule dependencies and add the necessary -Isubprojects/glib/gmodule/ path. --- src/libtracker-common/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtracker-common/meson.build b/src/libtracker-common/meson.build index 72c2ae073..c77e70024 100644 --- a/src/libtracker-common/meson.build +++ b/src/libtracker-common/meson.build @@ -12,7 +12,7 @@ if unicode_library_name == 'icu' 'tracker-parser-libicu.c', 'tracker-parser-utils.c', 'tracker-language.c', - dependencies: [gobject,libstemmer, icu_uc, icu_i18n], + dependencies: [gio, libstemmer, icu_uc, icu_i18n], c_args: tracker_c_args + [ '-include', join_paths(build_root, 'config.h'), '-DMODULE', @@ -27,7 +27,7 @@ else 'tracker-parser-libunistring.c', 'tracker-parser-utils.c', 'tracker-language.c', - dependencies: [gobject,libstemmer, libunistring], + dependencies: [gio, libstemmer, libunistring], c_args: tracker_c_args + [ '-include', join_paths(build_root, 'config.h'), '-DMODULE', -- GitLab