Mail archive
alpine-aports

[alpine-aports] [PATCH 2/3] main/sqlite: Enabled FTS3

From: Marian Buschsieweke <marian.buschsieweke_at_ovgu.de>
Date: Fri, 28 Dec 2018 09:00:16 +0100

SQLITE_ENABLE_FTS3 is already defined via `-DSQLITE_ENABLE_FTS3` in
`CFLAGS`, however this approach does not work (compile source below to
verify). Adding `--enable-fts3` as parameter did the trick. FTS3 is required
e.g. by Firefox.

        #include <stdio.h>
        #include "sqlite3.h"

        int main(int argc, char **argv){
                if (sqlite3_compileoption_used("SQLITE_ENABLE_FTS3"))
                        puts("yes");
                else
                        puts("no");

                return 0;
        }
---
 main/sqlite/APKBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main/sqlite/APKBUILD b/main/sqlite/APKBUILD
index 92fbdf247a..e690a80344 100644
--- a/main/sqlite/APKBUILD
+++ b/main/sqlite/APKBUILD
_at_@ -57,7 +57,8 @@ build() {
 		--enable-threadsafe \
 		--enable-readline \
 		--enable-static \
-		--enable-dynamic-extensions
+		--enable-dynamic-extensions \
+		--enable-fts3
 
 	# rpath removal
 	sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
-- 
2.20.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Dec 28 2018 - 09:00:16 UTC