summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt-apps/qmmp
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-qt/qt-apps/qmmp')
-rw-r--r--meta/recipes-qt/qt-apps/qmmp/no-host-paths.patch25
-rw-r--r--meta/recipes-qt/qt-apps/qmmp/no-sessionmanager.patch21
2 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt-apps/qmmp/no-host-paths.patch b/meta/recipes-qt/qt-apps/qmmp/no-host-paths.patch
new file mode 100644
index 0000000000..de17b4ef0b
--- /dev/null
+++ b/meta/recipes-qt/qt-apps/qmmp/no-host-paths.patch
@@ -0,0 +1,25 @@
1Do not include /usr/include host paths
2
3These were added upstream apparently for freebsd support, but trigger
4compiler warnings during the build and could be dangerous, so remove
5them.
6
7Upstream-Status: Inappropriate [cross]
8
9Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10
11--- a/CMakeLists.txt
12+++ b/CMakeLists.txt
13@@ -1,12 +1,5 @@
14 cmake_minimum_required(VERSION 2.6.0)
15
16-#freebsd support
17-include_directories(SYSTEM /usr/local/include)
18-link_directories(/usr/local/lib)
19-link_directories(/usr/local/lib32)
20-link_directories(/usr/local/lib64)
21-SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} /usr/local/include)
22-
23 #extract version from qmmp.h
24 FILE(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/src/qmmp/qmmp.h"
25 QMMP_VERSION_DATA REGEX "^#define[ \t]+QMMP_VERSION_[A-Z]+[ \t]+[0-9]+.*$")
diff --git a/meta/recipes-qt/qt-apps/qmmp/no-sessionmanager.patch b/meta/recipes-qt/qt-apps/qmmp/no-sessionmanager.patch
new file mode 100644
index 0000000000..5e2978b658
--- /dev/null
+++ b/meta/recipes-qt/qt-apps/qmmp/no-sessionmanager.patch
@@ -0,0 +1,21 @@
1Don't call session manager function if not enabled
2
3If session management has been disabled we will get a compilation
4failure if we try to call QApplication::commitData() so don't do so if
5it is disabled.
6
7Upstream-Status: Pending
8
9Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
10
11--- a/src/app/qmmpapplication.cpp
12+++ b/src/app/qmmpapplication.cpp
13@@ -29,6 +29,8 @@ void QmmpApplication::commitData(QSessionManager &manager)
14 {
15 if(UiHelper::instance())
16 UiHelper::instance()->exit();
17+#ifndef QT_NO_SESSIONMANAGER
18 else
19 QApplication::commitData(manager);
20+#endif
21 }