pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Patched an issue with sqlite3
Module Name: pkgsrc-wip
Committed By: weabot <weabot%protonmail.com@localhost>
Pushed By: weabot
Date: Thu Jan 12 08:44:07 2017 -0500
Changeset: 0d4f69f87fe05a25a4cb5207439174ac65a7d235
Modified Files:
clementine/distinfo
Added Files:
clementine/patches/patch-src_core_database.cpp
Log Message:
Patched an issue with sqlite3
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0d4f69f87fe05a25a4cb5207439174ac65a7d235
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
clementine/distinfo | 1 +
clementine/patches/patch-src_core_database.cpp | 24 ++++++++++++++++++++++++
2 files changed, 25 insertions(+)
diffs:
diff --git a/clementine/distinfo b/clementine/distinfo
index 0e2931d..c3d78d5 100644
--- a/clementine/distinfo
+++ b/clementine/distinfo
@@ -5,4 +5,5 @@ RMD160 (Clementine/1.3.1.tar.gz) = fb5780599a9af524b54c0e7b04f4721eb56ddae1
SHA512 (Clementine/1.3.1.tar.gz) = 1942a046be24a583b5e2095dd39dc736c1b14a47dc4aad61d6252c1fccf745c26d7b35da907a220d5dc8c0736f5b589d050ed9582de343aa3cb5abc607001790
Size (Clementine/1.3.1.tar.gz) = 8501827 bytes
SHA1 (patch-src_CMakeLists.txt) = 08e7dcf38751d557ed867d279226159210f7dfc1
+SHA1 (patch-src_core_database.cpp) = f8d68df17b1b3cafbbc1751f10ad34bbe1099d88
SHA1 (patch-src_musicbrainz_chromaprinter.cpp) = b2f9916aa77cbf8aa0b5929d6fe6c2b78e652301
diff --git a/clementine/patches/patch-src_core_database.cpp b/clementine/patches/patch-src_core_database.cpp
new file mode 100644
index 0000000..715b299
--- /dev/null
+++ b/clementine/patches/patch-src_core_database.cpp
@@ -0,0 +1,24 @@
+$NetBSD$
+
+This fixes an issue with sqlite that prevents clementine from updating
+its database.
+
+--- src/core/database.cpp.orig 2017-01-12 02:11:37.431771144 +0000
++++ src/core/database.cpp
+@@ -265,6 +265,16 @@ QSqlDatabase Database::Connect() {
+ StaticInit();
+
+ {
++#ifdef SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
++ QVariant v = db.driver()->handle();
++ if (!(v.isValid() && qstrcmp(v.typeName(), "sqlite3*"))) {
++ 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(
Home |
Main Index |
Thread Index |
Old Index