GNOME Bugzilla – Bug 697759
Latest Gobject-introspection breaks Gnome-documents
Last modified: 2015-02-07 16:50:44 UTC
When using gobject-introspection from git, gnome-documents don't even start with the following error message: "Unable to connect to tracker database: TypeError: Tracker.SparqlConnection is undefined" Changing gobject-introspection back to release version 1.36.0 fixes the problem. I'll try to bisect the responsible commit and update here later. Let me know if you need any more information.
It seems like the commit 99a7287bb152 is the first to introduce the gnome-documents problem.
Note that commit originated from https://bugzilla.gnome.org/show_bug.cgi?id=696155 I'll take a look at this, but it'll be painful for me because I can't run gnome-documents in gnome-ostree at the moment due to its dependency on evince.
Can we revert this until it works ?
Ok, this is because tracker has two gir/typelib files: Tracker and TrackerMiner. Tracker is generated from *vala* directly. TrackerMiner comes from g-ir-scanner. The bottom line is that TrackerMiner has a correct c:prefix of Tracker, but Tracker doesn't, causing us to abort the search. We need to fix vala here.
Cloned to vala https://bugzilla.gnome.org/show_bug.cgi?id=697882
Ok this actually unearthed a chain of bugs. Two patches for g-i attached here.
Created attachment 241406 [details] [review] 0001-girparser-Also-honor-legacy-c-prefix.patch
Created attachment 241407 [details] [review] 0002-typelib-Also-ignore-typelibs-with-empty-c-prefix.patch
Review of attachment 241406 [details] [review]: ::: girepository/girparser.c @@ +2873,3 @@ shared_library = find_attribute ("shared-library", attribute_names, attribute_values); cprefix = find_attribute ("c:identifier-prefixes", attribute_names, attribute_values); + if (cprefix == NULL) Hmm, maybe a comment here indicating it's for backward compatibility? Otherwise OK for me
Review of attachment 241407 [details] [review]: OK
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]