diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2019-04-05 07:10:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-04-05 07:38:48 +0700 |
commit | 360ec3028ebe4e90af4828f0df3a8be47b7ab77d (patch) | |
tree | 9f0d3e8466b1569afe24adaaef6d7fbfc2214dfa /system/tagainijisho/embed-sqlite.patch | |
parent | f0a6d4b7f984bb131ccbad8834dd0ba6f9a8daae (diff) | |
download | slackbuilds-360ec3028ebe4e90af4828f0df3a8be47b7ab77d.tar.gz slackbuilds-360ec3028ebe4e90af4828f0df3a8be47b7ab77d.tar.xz |
system/tagainijisho: Updated for version 1.0.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/tagainijisho/embed-sqlite.patch')
-rw-r--r-- | system/tagainijisho/embed-sqlite.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/system/tagainijisho/embed-sqlite.patch b/system/tagainijisho/embed-sqlite.patch deleted file mode 100644 index 14ef270a0e..0000000000 --- a/system/tagainijisho/embed-sqlite.patch +++ /dev/null @@ -1,50 +0,0 @@ -diff -u -r tagainijisho-1.0.1/src/sqlite/CMakeLists.txt tagainijisho-1.0.1-patched/src/sqlite/CMakeLists.txt ---- tagainijisho-1.0.1/src/sqlite/CMakeLists.txt 2013-11-18 23:32:01.000000000 +0000 -+++ tagainijisho-1.0.1-patched/src/sqlite/CMakeLists.txt 2016-04-11 15:44:13.408359228 +0100 -@@ -3,19 +3,15 @@ - - set(SQLITE_MIN_VERSION "3007004") - set(SQLITE_BLACKLIST "3007007;3007008;3008000") --set(SQLITE_DOWNLOAD_VERSION "3080100") -+set(SQLITE_DOWNLOAD_VERSION "3110100") - --set(SQLITE_SOURCE http://www.sqlite.org/2013/sqlite-amalgamation-${SQLITE_DOWNLOAD_VERSION}.zip) -+set(SQLITE_SOURCE http://www.sqlite.org/2016/sqlite-amalgamation-${SQLITE_DOWNLOAD_VERSION}.zip) - - option(SHARED_SQLITE_LIBRARY "Build the SQLite library as a shared library (loadable by SQLite's interpreter)" OFF) - - # Embed SQLite even if the system version looks good? --option(EMBED_SQLITE "Embed SQLite even if a system version is present and valid" OFF) -- --# Force embedded version on Apple --if (APPLE) -- set (EMBED_SQLITE "ON") --endif(APPLE) -+# This should be enabled by default as we require features (e.g. FTS3 tokenizer) that may not be enabled on the system -+option(EMBED_SQLITE "Embed SQLite even if a system version is present and valid" ON) - - # Look for system SQLite - find_path(SQLITE_INCLUDE_DIR sqlite3.h) -@@ -89,7 +85,7 @@ - endif() - - include_directories(${QT_INCLUDE_DIR}) --add_definitions(-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_OMIT_DEPRECATED) -+add_definitions(-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_ENABLE_FTS3_TOKENIZER) - - if(SHARED_SQLITE_LIBRARY) - add_library(tagaini_sqlite SHARED ${tagainijisho_sqlite_SRCS} ${tagainijisho_sqlite_MOC_SRCS}) -diff -u -r tagainijisho-1.0.1/src/sqlite/sqlite3ext.cc tagainijisho-1.0.1-patched/src/sqlite/sqlite3ext.cc ---- tagainijisho-1.0.1/src/sqlite/sqlite3ext.cc 2013-11-18 23:32:01.000000000 +0000 -+++ tagainijisho-1.0.1-patched/src/sqlite/sqlite3ext.cc 2016-04-11 15:44:10.505347246 +0100 -@@ -118,6 +118,10 @@ - sqlite3_stmt *pStmt; - const char *zSql = "SELECT fts3_tokenizer(?, ?)"; - -+#ifdef SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER -+ sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, NULL); -+#endif -+ - rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0); - if( rc!=SQLITE_OK ){ - return rc; |