[Pkg-cli-apps-commits] [banshee] 03/06: Import patch fixing likelihood support detection

Chow Loong Jin hyperair at debian.org
Wed May 11 17:39:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

hyperair pushed a commit to branch master
in repository banshee.

commit 57edbf7c9962cc238b088f65002699e9e6dea70a
Author: Chow Loong Jin <hyperair at debian.org>
Date:   Fri Apr 1 00:28:37 2016 +0800

    Import patch fixing likelihood support detection
    
    LP: #1534971
---
 .../Fix-sqlite-likelihood_support-detection.patch  | 31 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/Fix-sqlite-likelihood_support-detection.patch b/debian/patches/Fix-sqlite-likelihood_support-detection.patch
new file mode 100644
index 0000000..1eae558
--- /dev/null
+++ b/debian/patches/Fix-sqlite-likelihood_support-detection.patch
@@ -0,0 +1,31 @@
+From: Roderich Schupp <roderich.schupp at gmail.com>
+Date: Fri, 1 Apr 2016 00:23:15 +0800
+Subject: Fix sqlite likelihood_support detection
+
+"SELECT sqlite_version () >= '3.8.1'" does not return 1 when
+sqlite_version () is 3.10.x and above.
+
+Origin: https://bugzilla.gnome.org/attachment.cgi?id=318944
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=740879
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1534971
+---
+ src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs b/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs
+index 3ae0728..d9d5529 100644
+--- a/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs
++++ b/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs
+@@ -56,7 +56,11 @@ namespace Banshee.Database
+         public bool LikelihoodSupport {
+             get {
+                 if (!likelihood_support.HasValue) {
+-                    likelihood_support = Query<bool> ("SELECT sqlite_version () >= '3.8.1'");
++                    // emulate the SQLITE_VERSION_NUMBER macro
++                    string[] v = Query<string> ("SELECT sqlite_version ()").Split ('.');
++                    likelihood_support = (Int32.Parse (v[0]) * 1000000 +
++                                          Int32.Parse (v[1]) * 1000 +
++                                          Int32.Parse (v[2])) >= 3008001;
+                 }
+                 return likelihood_support.Value;
+             }
diff --git a/debian/patches/series b/debian/patches/series
index 3e8aa82..89b4b86 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -14,5 +14,6 @@ Use-new-style-GStreamer-1.0-raw-audio-caps-in-the-WA.patch
 Use-dbus-2.patch
 Remove-IDBusExportable-inheritance-from-exported-int.patch
 Database-fix-performance-for-the-new-SQLite-s-query-.patch
+Fix-sqlite-likelihood_support-detection.patch
 build-Remove-obsolete-check-for-gnome-desktop-2.0-2..patch
 mono-4.5.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cli-apps/packages/banshee.git



More information about the Pkg-cli-apps-commits mailing list