diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2016-03-16 01:42:39 +0100 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2016-03-16 01:48:36 +0100 |
commit | bd4a5b8e468ba801b5f6d5f790af73d0cbc84c52 (patch) | |
tree | 1382428c07abd146047e61e5fd7dab55585a63a3 /media-sound/clementine/files | |
parent | x11-wm/jwm: revbump to add missing desktop file (diff) | |
download | gentoo-bd4a5b8e468ba801b5f6d5f790af73d0cbc84c52.tar.gz gentoo-bd4a5b8e468ba801b5f6d5f790af73d0cbc84c52.tar.bz2 gentoo-bd4a5b8e468ba801b5f6d5f790af73d0cbc84c52.zip |
media-sound/clementine: fix tokenizer segfault
Package-Manager: portage-2.2.28
Diffstat (limited to 'media-sound/clementine/files')
-rw-r--r-- | media-sound/clementine/files/clementine-1.3_rc1-fix-tokenizer.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/media-sound/clementine/files/clementine-1.3_rc1-fix-tokenizer.patch b/media-sound/clementine/files/clementine-1.3_rc1-fix-tokenizer.patch new file mode 100644 index 000000000000..6413bf77de3f --- /dev/null +++ b/media-sound/clementine/files/clementine-1.3_rc1-fix-tokenizer.patch @@ -0,0 +1,21 @@ +https://github.com/clementine-player/Clementine/issues/5297 + +--- src/core/database.cpp ++++ src/core/database.cpp +@@ -265,6 +265,16 @@ + StaticInit(); + + { ++#ifdef SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER ++ QVariant v = db.driver()->handle(); ++ if (v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0) { ++ sqlite3* handle = *static_cast<sqlite3**>(v.data()); ++ if (handle) { ++ sqlite3_db_config(handle, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, NULL); ++ } ++ } ++#endif ++ + QSqlQuery set_fts_tokenizer("SELECT fts3_tokenizer(:name, :pointer)", db); + set_fts_tokenizer.bindValue(":name", "unicode"); + set_fts_tokenizer.bindValue( |