mirror of
https://abf.rosa.ru/djam/clementine.git
synced 2025-02-23 15:02:55 +00:00
Add patch to support sqlite 3.12+
This commit is contained in:
parent
01f96c39fb
commit
d0f525122d
2 changed files with 22 additions and 1 deletions
19
clementine-1.3.1-sqlite-3.12.patch
Normal file
19
clementine-1.3.1-sqlite-3.12.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- a/src/core/database.cpp
|
||||
+++ b/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(
|
|
@ -16,7 +16,7 @@
|
|||
Summary: A cross-platform music player based on Amarok 1.4
|
||||
Name: clementine
|
||||
Version: 1.3.1
|
||||
Release: 1%{?extrarelsuffix}
|
||||
Release: 2%{?extrarelsuffix}
|
||||
License: GPLv3+
|
||||
Group: Sound
|
||||
Url: http://www.clementine-player.org/
|
||||
|
@ -39,6 +39,7 @@ Patch7: clementine-1.3-play-folder.patch
|
|||
# It's especially imported to fix after free access to DI.fm services was disabled
|
||||
# https://github.com/clementine-player/Clementine/commit/3ab20defce71a009bf180255642c18fa671650f9
|
||||
Patch8: clementine-1.3.1-rockradio-premium.patch
|
||||
Patch9: clementine-1.3.1-sqlite-3.12.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: qt4-linguist
|
||||
|
@ -129,6 +130,7 @@ Features:
|
|||
%patch6 -p1 -b .l10n~
|
||||
%patch7 -p1 -b .desktop~
|
||||
%patch8 -p1 -b .rockradio~
|
||||
%patch9 -p1 -b .sqlite312~
|
||||
|
||||
%build
|
||||
%cmake_qt4 \
|
||||
|
|
Loading…
Add table
Reference in a new issue