After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657650 - Tracker backend assumes newer version of Tracker than required
Tracker backend assumes newer version of Tracker than required
Status: RESOLVED FIXED
Product: folks
Classification: Platform
Component: Tracker backend
git master
Other Linux
: Normal normal
: folks-0.6.2
Assigned To: folks-maint
folks-maint
Depends on:
Blocks:
 
 
Reported: 2011-08-29 18:49 UTC by Travis Reitter
Modified: 2011-09-01 23:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Travis Reitter 2011-08-29 18:49:29 UTC
The commit 1cfbeb84986f3e1072387a903b08acdd251b074d handles an error introduced by a newer version of Tracker than we require. This ends up causing a build warning if the available version of Tracker is > our minimum requirement but < the version of Tracker that introduces that error type.

Because git-based builds of Folks escalate warnings to errors, this causes a build failure.

Instead of bumping the Tracker requirement, we should just wrap this code with an #if SOME_VAR ... #endif and define SOME_VAR (with a reasonable name) in configure.ac and pass it along as a -D option in the Tracker backend CFLAGS.
Comment 1 Raul Gutierrez Segales 2011-09-01 23:14:46 UTC
commit e4c941605f6ce0d2708da468e89abacf2b01a629
Author: Raul Gutierrez Segales <rgs@collabora.co.uk>
Date:   Thu Sep 1 23:16:27 2011 +0100

    tracker: conditional compilation of GLib.SpawnError exception handling
    
    Starting Tracker 0.10.6, the GLib.SpawnError is exception is thrown
    when calling Tracker.Sparql.Connection.get (). So we need to test
    for the installed version and catch or not the exception, accordingly.
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=657650