[tracker] Revert "build: Do not link libtracker-data.so to libtracker-sparql.so"



commit 20b9f3673d16d07070619cb0ff770d0dabbcc74c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Oct 11 21:08:46 2018 +0200

    Revert "build: Do not link libtracker-data.so to libtracker-sparql.so"
    
    Works with meson 0.48.0, but not with the versions in CI/build.gnome.org.
    Not cool, meson. We'll have to linger with broken internal library
    dependencies till I restructure the src/libtracker-* mess, or 0.48.0 gets
    old.
    
    This reverts commit 6799d903e9767288b10b02e1f362e040a02f69ed.

 src/libtracker-data/meson.build   | 11 +++--------
 src/libtracker-fts/meson.build    |  2 +-
 src/libtracker-sparql/meson.build |  2 +-
 src/tracker-store/meson.build     |  3 ++-
 tests/libtracker-data/meson.build |  2 +-
 5 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/src/libtracker-data/meson.build b/src/libtracker-data/meson.build
index d5c384b2b..b5d4f3cb7 100644
--- a/src/libtracker-data/meson.build
+++ b/src/libtracker-data/meson.build
@@ -9,8 +9,7 @@ libtracker_data_vala = static_library('tracker-sparql-query',
     'tracker-sparql-scanner.vala',
     'tracker-turtle-reader.vala',
     '../libtracker-common/libtracker-common.vapi',
-    'libtracker-data.vapi',
-    tracker_sparql_vapi,
+    '../libtracker-data/libtracker-data.vapi',
     tracker_common_enum_header,
     c_args: tracker_c_args,
     vala_args: [
@@ -22,7 +21,7 @@ libtracker_data_vala = static_library('tracker-sparql-query',
     ],
     # This doesn't depend on tracker_common_dep because of
     # https://github.com/mesonbuild/meson/issues/671
-    dependencies: [glib, gio],
+    dependencies: [glib, gio, tracker_sparql_intermediate_dep],
     include_directories: [commoninc, configinc, srcinc],
 )
 
@@ -33,7 +32,7 @@ tracker_data_enums = gnome.mkenums('tracker-data-enum-types',
 )
 
 tracker_data_dependencies = [
-    tracker_common_dep, gvdb_dep, sqlite, uuid,
+    tracker_sparql_intermediate_dep, gvdb_dep, sqlite, uuid,
 ]
 
 if get_option('fts')
@@ -69,10 +68,6 @@ libtracker_data = library('tracker-data',
     # This doesn't depend on tracker_common_dep because of
     # https://github.com/mesonbuild/meson/issues/671
     link_with: [libtracker_data_vala],
-    # We do *not* want --no-undefined here, this library uses
-    # symbols from libtracker-sparql, but does not mean it should
-    # be linked to it.
-    override_options: ['b_lundef=false'],
     dependencies: tracker_data_dependencies + [unicode_library],
     include_directories: [commoninc, configinc, srcinc],
 )
diff --git a/src/libtracker-fts/meson.build b/src/libtracker-fts/meson.build
index 5ab4409f8..1392699f8 100644
--- a/src/libtracker-fts/meson.build
+++ b/src/libtracker-fts/meson.build
@@ -11,7 +11,7 @@ libtracker_fts = static_library('tracker-fts',
     'tracker-fts-config.c',
     'tracker-fts-tokenizer.c',
     libtracker_fts_fts5,
-    dependencies: [tracker_common_dep],
+    dependencies: [tracker_common_dep, tracker_sparql_intermediate_dep],
     c_args: tracker_c_args
 )
 
diff --git a/src/libtracker-sparql/meson.build b/src/libtracker-sparql/meson.build
index b74c4e337..90e10ec04 100644
--- a/src/libtracker-sparql/meson.build
+++ b/src/libtracker-sparql/meson.build
@@ -98,7 +98,7 @@ install_headers(
     subdir: 'tracker-@0@/libtracker-sparql'.format(tracker_api_version))
 
 # FIXME: we can't depend properly on the generated .vapi to do this.
-tracker_sparql_vapi = custom_target('tracker-sparql-' + tracker_api_version + '.vapi',
+custom_target('tracker-sparql-' + tracker_api_version + '.vapi',
     #input: 'tracker-sparql-intermediate-vala.vapi',
     output: 'tracker-sparql-' + tracker_api_version + '.vapi',
     command: [
diff --git a/src/tracker-store/meson.build b/src/tracker-store/meson.build
index 057dbb254..8d69ae572 100644
--- a/src/tracker-store/meson.build
+++ b/src/tracker-store/meson.build
@@ -26,7 +26,8 @@ tracker_store = executable('tracker-store',
     ],
     vala_args: [ '--pkg', 'posix' ],
     dependencies: [
-        tracker_common_dep, tracker_sparql_dep, tracker_data_dep, tracker_sparql_direct_dep, gio_unix
+        tracker_common_dep, tracker_data_dep, tracker_sparql_direct_dep,
+        gio_unix
     ],
     install: true,
     install_dir: join_paths(get_option('prefix'), get_option('libexecdir')),
diff --git a/tests/libtracker-data/meson.build b/tests/libtracker-data/meson.build
index 6ede0da47..37719cd1a 100644
--- a/tests/libtracker-data/meson.build
+++ b/tests/libtracker-data/meson.build
@@ -14,7 +14,7 @@ libtracker_data_slow_tests = [
 libtracker_data_test_environment = environment()
 libtracker_data_test_environment.set('TRACKER_LANGUAGE_STOP_WORDS_DIR', 
'@0@/src/libtracker-common/stop-words'.format(source_root))
 
-libtracker_data_test_deps = [tracker_common_dep, tracker_data_dep, tracker_sparql_dep]
+libtracker_data_test_deps = [tracker_common_dep, tracker_data_dep]
 
 foreach base_name: libtracker_data_tests
     source = 'tracker-@0@-test.c'.format(base_name)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]