[qmapshack] 03/03: Add patch to fix build failure with Qt5 < 5.4.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Apr 8 18:32:48 UTC 2016


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

sebastic pushed a commit to branch jessie-backports
in repository qmapshack.

commit 540b981535441d87291554b1f0a100d0a8e08647
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Apr 8 20:16:05 2016 +0200

    Add patch to fix build failure with Qt5 < 5.4.
---
 debian/changelog          |  1 +
 debian/patches/qt54.patch | 24 ++++++++++++++++++++++++
 debian/patches/series     |  1 +
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 87cc5c2..120ac9d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 qmapshack (1.6.1-2~bpo8+1) jessie-backports; urgency=medium
 
   * Rebuild for jessie-backports.
+  * Add patch to fix build failure with Qt5 < 5.4.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 01 Apr 2016 19:42:01 +0200
 
diff --git a/debian/patches/qt54.patch b/debian/patches/qt54.patch
new file mode 100644
index 0000000..d22e1ea
--- /dev/null
+++ b/debian/patches/qt54.patch
@@ -0,0 +1,24 @@
+Description: Fix build with Qt < 5.4.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/src/setup/CAppSetupMac.cpp
++++ b/src/setup/CAppSetupMac.cpp
+@@ -92,7 +92,11 @@ QString CAppSetupMac::defaultCachePath()
+ 
+ QString CAppSetupMac::userDataPath(QString subdir)
+ {
++#if QT_VERSION >= 0x050400
+     QString dataDir = QStandardPaths::standardLocations(QStandardPaths::AppLocalDataLocation).first();
++#else
++    QString dataDir = QStandardPaths::standardLocations(QStandardPaths::DataLocation).first();
++#endif
+     return IAppSetup::path(dataDir, subdir, false, 0);
+ }
+ 
+@@ -141,4 +145,4 @@ void CAppSetupMac::migrateDirContent(QSt
+             qDebug() << "error migrating directory" << dirSource;
+         }
+     }
+-}
+\ No newline at end of file
++}
diff --git a/debian/patches/series b/debian/patches/series
index 4ef6508..7d1b09a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 original-typo.patch
 kfreebsd.patch
 hurd.patch
+qt54.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/qmapshack.git



More information about the Pkg-grass-devel mailing list