GNOME Bugzilla – Bug 728520
folks cannot be build with tracker 1.0
Last modified: 2014-09-12 16:18:04 UTC
Created attachment 274700 [details] [review] Allow building with tracker 1.0 Attached patch to build against newer trackers.
Review of attachment 274700 [details] [review]: The code looks good but for some reason, it always ends up with 1.0 for me (even if I only have Tracker 0.16 installed). I have no idea where it's picking them up, but the PKG_CHECK_MODULES succeeds for 0.16, 0.18, and 1.0. I don't think there's even been tracker-sparql-0.18.pc in the wild. However, if I add bogus numbers to the list (eg, [fake] or [0.11]), the PKG_CHECK_MODULES correctly claims they were not found. So, not sure if you know what's going wrong, but we need to work out what's going on here.
Created attachment 286061 [details] [review] build: Allow building with Tracker 0.16, 0.18 and 1.0 Allow configuring against one of several versions of Tracker. This uses the chained PKG_CHECK_MODULES technique from https://www.flameeyes.eu/autotools-mythbuster/pkgconfig/pkg_check_modules.html#idm103041829189696 Based on a patch by Maciej Piechotka <uzytkownik2@gmail.com>.
m4_foreach() expands in-place, meaning there were essentially 3 sequential expansions of PKG_CHECK_MODULES(). So the final one would always end up setting TRACKER_SPARQL_[LIBS|CFLAGS], which would fail if Tracker 1.0 was not installed. The correct way to do this is with chained invocations. Attachment 286061 [details] pushed as 951b2aa - build: Allow building with Tracker 0.16, 0.18 and 1.0