Meson build requires tracker to be in the same prefix as tracker miners
meson.build
contains the following section for locating tracker ontologies & co.,
which requires tracker to be installed to the same location as tracker-miners. We could patch it as follows:
--- a/meson.build
+++ b/meson.build
@@ -25,15 +25,15 @@
#
# This check acts as a guard to make sure we are being configured with the
# right prefix, among other things.
- tracker_store = find_program(join_paths(get_option('prefix'), get_option('libexecdir'), 'tracker-store'))
+ tracker_store = find_program(join_paths(tracker_miner.get_pkgconfig_variable('prefix'), get_option('libexecdir'), 'tracker-store'))
tracker_store_path = tracker_store.path()
# If we are building against an installed version of tracker core rather than
# having it as a subproject, these 'uninstalled' locations point to the actual
# installed locations.
- tracker_uninstalled_domain_rule = join_paths(get_option('prefix'), get_option('datadir'), 'tracker', 'domain-ontologies', 'default.rule')
- tracker_uninstalled_nepomuk_ontologies_dir = join_paths(get_option('prefix'), get_option('datadir'), 'tracker', 'ontologies', 'nepomuk')
- tracker_uninstalled_stop_words_dir = join_paths(get_option('prefix'), get_option('datadir'), 'tracker', 'stop-words', 'default.rule')
+ tracker_uninstalled_domain_rule = join_paths(tracker_miner.get_pkgconfig_variable('prefix'), get_option('datadir'), 'tracker', 'domain-ontologies', 'default.rule')
+ tracker_uninstalled_nepomuk_ontologies_dir = join_paths(tracker_miner.get_pkgconfig_variable('prefix'), get_option('datadir'), 'tracker', 'ontologies', 'nepomuk')
+ tracker_uninstalled_stop_words_dir = join_paths(tracker_miner.get_pkgconfig_variable('prefix'), get_option('datadir'), 'tracker', 'stop-words', 'default.rule')
else
tracker_subproject = subproject('tracker',
default_options: [
but it would still require libexecdir
and other variables to be the same.
I propose adding dedicated tracker_store
, domain_rule
, nepomuk_ontologies_dir
and stop_words_dir
fields to tracker-miner-2.0.pc
. It could also simplify the else branch using fallback
kwarg once https://github.com/mesonbuild/meson/issues/3472 is fixed.
Edited by Jan Tojnar