[tracker/tracker-1.12] build: Mandate that sqlite3 >= 3.20.0 has fts5 builtin
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-1.12] build: Mandate that sqlite3 >= 3.20.0 has fts5 builtin
- Date: Tue, 22 Aug 2017 12:03:50 +0000 (UTC)
commit c80f8a80db3538b74fed2035ba163e091300cecf
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 21 22:04:28 2017 +0200
build: Mandate that sqlite3 >= 3.20.0 has fts5 builtin
That sqlite3 version brought incompatibilities in the fts5 interface,
fts5 modules generated from < 3.20.0 trees won't work with sqlite3
>= 3.20.0, and viceversa.
Since it's not feasible nor desirable to include an additional fts5
module copy nor an embedded sqlite3 amalgamation copy, mandate that
SQLite was compiled with --enable-fts5 if >= 3.20.0 is found.
The current copy of the fts5 module is kept around for sqlite3 < 3.20.0,
so we don't make this a mandatory requirement for earlier versions.
https://bugzilla.gnome.org/show_bug.cgi?id=785883
configure.ac | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 56f7614..e50a4e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -837,6 +837,13 @@ if test "x$have_tracker_fts" = "xyes"; then
else
have_builtin_fts5="no"
+ # Sqlite 3.20 broke compatibility of the fts5 module both ways, demand
+ # that it's builtin into sqlite from that version on.
+ PKG_CHECK_EXISTS([sqlite3 >= 3.20.0], sqlite_builtin_fts5_forced=yes, sqlite_builtin_fts5_forced=no)
+ if test "x$sqlite_builtin_fts5_forced" == "xyes"; then
+ AC_MSG_ERROR([sqlite3 >= 3.20.0 must be compiled with --enable-fts5])
+ fi
+
# Make sure SQLite has extension loading enabled
AX_SQLITE_AUTO_EXTENSION
if test "x$ax_cv_sqlite_auto_extension" != "xyes"; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]