Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576728 - app-misc/tracker-1.6.1 incompatible with >=dev-db/sqlite-3.11:3
Summary: app-misc/tracker-1.6.1 incompatible with >=dev-db/sqlite-3.11:3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2016-03-07 21:27 UTC by Peter Bleszynski
Modified: 2016-06-24 20:43 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tracker-1.6.1-sqlite-3.11.patch (tracker-1.6.1-sqlite-3.11.patch,815 bytes, patch)
2016-03-11 14:43 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
tracker-1.6.2-r1.ebuild (tracker-1.6.2.ebuild,8.21 KB, text/plain)
2016-04-23 17:14 UTC, Pacho Ramos
Details
tracker-1.6.2-system-sqlite.patch (tracker-1.6.2-system-sqlite.patch,7.12 KB, patch)
2016-04-23 17:14 UTC, Pacho Ramos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Bleszynski 2016-03-07 21:27:31 UTC
Since dev-db/sqlite-3.11.1, tracker search does not work and syslog is hammered with messages of the type

org.freedesktop.Tracker1[2483]: (tracker-store:2656): Tracker-WARNING **: Could not create FTS delete statement: unknown tokenizer: TrackerTokenizer

Gnome Tracker 1.7.4 possibly fixes this issue by including support for FTS5.
https://bugzilla.gnome.org/show_bug.cgi?id=762226
Comment 1 Pacho Ramos gentoo-dev 2016-03-08 10:01:59 UTC
I think the changes are too big to try to backport them for 1.6.x cycle, we should probably wait for the next cycle (as upstream will do)
Comment 2 Arfrever Frehtes Taifersar Arahesis 2016-03-11 14:43:35 UTC
Created attachment 427976 [details, diff]
tracker-1.6.1-sqlite-3.11.patch

Untested but probably working patch.
Comment 3 Bernd Feige 2016-03-18 11:23:16 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #2)
> Created attachment 427976 [details, diff] [details, diff]
> tracker-1.6.1-sqlite-3.11.patch
> 
> Untested but probably working patch.

Tried it - applies cleanly and after restarting tracker, GTK searching now works - thanks!
Comment 4 Pacho Ramos gentoo-dev 2016-04-03 12:00:09 UTC
Please try with 1.6.2 version
Comment 5 Arfrever Frehtes Taifersar Arahesis 2016-04-03 16:58:50 UTC
Upstream of app-misc/tracker worked around problem by bundling SQLite 3.11.0 and building it with -DSQLITE_ENABLE_FTS3_TOKENIZER.

However new versions of SQLite often contain fixes for security problems.
And such fixes are also in SQLite 3.12.0 (bug #578940).
Comment 6 Pacho Ramos gentoo-dev 2016-04-03 17:41:13 UTC
They did what they were able to do taking care our sqlite version is applying some custom patches to allow the other way :/
Comment 7 Pacho Ramos gentoo-dev 2016-04-03 17:43:07 UTC
(In reply to Pacho Ramos from comment #6)
> They did what they were able to do taking care our sqlite version is
> applying some custom patches to allow the other way :/

Are we still applying that patches in sqlite-3.12? If that is not the case and they can really rely on some official/upstream sqlite version they maybe could change it back to using the system copy
Comment 8 Pacho Ramos gentoo-dev 2016-04-03 17:43:48 UTC
Also, dropping the blockers are only causing to cause breakage on this as you are hiding the regression :|
Comment 9 Pacho Ramos gentoo-dev 2016-04-03 17:50:51 UTC
I have reported it to upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=764554
Comment 10 Arfrever Frehtes Taifersar Arahesis 2016-04-03 17:53:31 UTC
The patch in SQLite 3.11.0 and 3.11.1 is straight backport from SQLite upstream repository and is included in vanilla SQLite 3.12.0.


It seems that bundling of SQLite 3.11.0 is in Tracker 1.6.*, but not in Tracker 1.8.*.
https://git.gnome.org/browse/tracker/log/configure.ac?h=tracker-1.6
https://git.gnome.org/browse/tracker/commit/?h=tracker-1.6&id=49d0cb55c35a9c97c42ba815f7f52ba9f5416857
https://git.gnome.org/browse/tracker/log/configure.ac?h=tracker-1.8
Comment 11 Arfrever Frehtes Taifersar Arahesis 2016-04-03 17:57:20 UTC
dev-db/sqlite-3.11.1 is already stable on all architectures on which app-misc/tracker-1.6.1 is stable. (No other version of app-misc/tracker is stable on any architecture.)
Security fixes in dev-db/sqlite-3.12.0 are completely unrelated and no point in attempting to block stabilization of dev-db/sqlite-3.12.0.
Comment 12 Pacho Ramos gentoo-dev 2016-04-03 18:13:07 UTC
Only 1.8 included the real fixes from 1.7.x branch for not needing the DSQLITE_ENABLE_FTS3_TOKENIZER

(In reply to Arfrever Frehtes Taifersar Arahesis from comment #11)
> dev-db/sqlite-3.11.1 is already stable on all architectures on which
> app-misc/tracker-1.6.1 is stable.

right, I see arch teams simply ignored the block, I will need to remember to unCC them next time too :@
Comment 13 Arfrever Frehtes Taifersar Arahesis 2016-04-03 18:17:36 UTC
(In reply to Pacho Ramos from comment #12)
> Only 1.8 included the real fixes from 1.7.x branch for not needing the
> DSQLITE_ENABLE_FTS3_TOKENIZER

I recommend to add app-misc/tracker-1.8.0...


> (In reply to Arfrever Frehtes Taifersar Arahesis from comment #11)
> > dev-db/sqlite-3.11.1 is already stable on all architectures on which
> > app-misc/tracker-1.6.1 is stable.
> 
> right, I see arch teams simply ignored the block, I will need to remember to
> unCC them next time too :@

app-misc/tracker-1.6.1 is stable only on amd64 and x86.
Stabilization of dev-db/sqlite-3.11.1 on amd64 and x86 finished before block was added.
Comment 14 Pacho Ramos gentoo-dev 2016-04-03 18:27:00 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #13)
> (In reply to Pacho Ramos from comment #12)
> > Only 1.8 included the real fixes from 1.7.x branch for not needing the
> > DSQLITE_ENABLE_FTS3_TOKENIZER
> 
> I recommend to add app-misc/tracker-1.8.0...

I disagree with now pushing 1.8.x (and the changes that upstream decided to not apply to older tracker versions as they wanted them to be tested in 1.7.x cycle) without thinking in reverse tracker deps and, then, moving the breakage to other apps :|

Lets see if upstream refixes the older branches to handle this in a better way (it should do as all the other distributions are still needing to have a fixed tracker-1.6 too)
Comment 15 Pacho Ramos gentoo-dev 2016-04-18 09:27:05 UTC
I will try to revert the upstream configure changes to let us use system sqlite again and apply Arfrever patch since upstream looks to not care :S
Comment 16 Pacho Ramos gentoo-dev 2016-04-23 17:14:05 UTC
Created attachment 431718 [details]
tracker-1.6.2-r1.ebuild

ebuild trying to use system sqlite
Comment 17 Pacho Ramos gentoo-dev 2016-04-23 17:14:33 UTC
Created attachment 431720 [details, diff]
tracker-1.6.2-system-sqlite.patch
Comment 18 Pacho Ramos gentoo-dev 2016-04-23 17:15:44 UTC
I have tried but tracker fails at runtime:
abr 23 19:12:24 belkin5 org.freedesktop.Tracker1[637]: (tracker-store:1606): Tracker-CRITICAL **: Cannot initialize database: Could not open sqlite3 database:'/home/pacho/.cache/tracker/meta.db': library routine called out of
 name='org.freedesktop.Tracker1'
Comment 19 Pacho Ramos gentoo-dev 2016-06-24 20:43:34 UTC
1.6.2 and 1.8.0 in the tree for this