[tracker/tracker-2.2: 22/32] Revert "build: libtracker-common should be a static library"



commit cd50ead744a06904b6519871a29fd0e7ccc5f2f2
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Jul 10 18:07:09 2019 +0100

    Revert "build: libtracker-common should be a static library"
    
    This reverts commit ac856befe3bc237b4817da0c63285d5098be4f3f.
    
    This commit broke tracker-miners, because if we statically link
    against libtracker-common then it conflicts with
    libtracker-miners-common and we end up with conflicts within GType
    like this:
    
        (tracker-extract:30499): GLib-GObject-WARNING **: 17:02:03.353: cannot register existing type 
'TrackerDomainOntology'
    
        (tracker-extract:30499): GLib-GObject-WARNING **: 17:02:03.353: cannot add private field to invalid 
(non-instantiatable) type '<invalid>'
    
        (tracker-extract:30499): GLib-GObject-CRITICAL **: 17:02:03.353: g_type_add_interface_static: 
assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
    
        (tracker-extract:30499): GLib-CRITICAL **: 17:02:03.353: g_once_init_leave: assertion 'result != 0' 
failed
    
        (tracker-extract:30499): GLib-GIO-CRITICAL **: 17:02:03.353: g_initable_new_valist: assertion 
'G_TYPE_IS_INITABLE (object_type)' faile

 src/libtracker-common/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-common/meson.build b/src/libtracker-common/meson.build
index 546f95afe..4287fee9c 100644
--- a/src/libtracker-common/meson.build
+++ b/src/libtracker-common/meson.build
@@ -39,11 +39,13 @@ if build_machine.system() == 'openbsd'
   tracker_common_dependencies += libkvm
 endif
 
-libtracker_common = static_library('tracker-common',
+libtracker_common = library('tracker-common',
   tracker_common_sources,
   dependencies: tracker_common_dependencies + [unicode_library],
   c_args: tracker_c_args,
   include_directories: [configinc, srcinc],
+  install: true,
+  install_dir: tracker_internal_libs_dir,
 )
 
 commoninc = include_directories('.')


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