Qmmp fix
cover Qmmp fix
The following change since commit 3b1beb8b15b8e3e397b3aa8320490103d4f29bac:
dropbear: fix RPROVIDES (2013-02-04 23:19:55 +0000)
is available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/qmmp
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/qmmp
Paul Eggleton (1):
qmmp: update to 0.6.6 and fix
meta/recipes-qt/qt-apps/qmmp/no-host-paths.patch | 25 +++++++++++++
.../qt-apps/qmmp/no-sessionmanager.patch | 21 +++++++++++
.../qt-apps/{qmmp_0.6.1.bb => qmmp_0.6.6.bb} | 39 ++++++++++++++++----
3 files changed, 77 insertions(+), 8 deletions(-)
create mode 100644 meta/recipes-qt/qt-apps/qmmp/no-host-paths.patch
create mode 100644 meta/recipes-qt/qt-apps/qmmp/no-sessionmanager.patch
rename meta/recipes-qt/qt-apps/{qmmp_0.6.1.bb => qmmp_0.6.6.bb} (56%)Signature · 1 line
1.7.10.4
PATCH 1/1 qmmp: update to 0.6.6 and fix
* Update to 0.6.6
* Fix compilation failure due to call to QApplication::commitData()
* Disable /usr/local host paths to avoid compilation warnings
* Force use of the cmake configure instead of qmake as the latter is not dynamic with Qmmp and doesn't let you disable certain dependencies (e.g. enca)
* Add libsndfile1 and libsamplerate0 to DEPENDS since their use will be non-deterministic otherwise
* Explicitly disable library-requiring options that we don't have available in OE-Core so that they don't get used if they happen to be in the sysroot
* Update LIC_FILES_CHKSUM since there were cosmetic changes to the license file (mostly reformatting and change of references to LGPL from "Library" to "Lesser".)
Fixes [YOCTO #3882].
---
meta/recipes-qt/qt-apps/qmmp/no-host-paths.patch | 25 +++++++++++++
.../qt-apps/qmmp/no-sessionmanager.patch | 21 +++++++++++
.../qt-apps/{qmmp_0.6.1.bb => qmmp_0.6.6.bb} | 39 ++++++++++++++++----
3 files changed, 77 insertions(+), 8 deletions(-)
create mode 100644 meta/recipes-qt/qt-apps/qmmp/no-host-paths.patch
create mode 100644 meta/recipes-qt/qt-apps/qmmp/no-sessionmanager.patch
rename meta/recipes-qt/qt-apps/{qmmp_0.6.1.bb => qmmp_0.6.6.bb} (56%)meta/recipes-qt/qt-apps/qmmp/no-host-paths.patch new file +25 -0
@@ -0,0 +1,25 @@ +Do not include /usr/include host paths + +These were added upstream apparently for freebsd support, but trigger +compiler warnings during the build and could be dangerous, so remove +them. + +Upstream-Status: Inappropriate [cross] + +Signed-off-by: Paul Eggleton <[email protected]> + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,12 +1,5 @@ + cmake_minimum_required(VERSION 2.6.0) + +-#freebsd support +-include_directories(SYSTEM /usr/local/include) +-link_directories(/usr/local/lib) +-link_directories(/usr/local/lib32) +-link_directories(/usr/local/lib64) +-SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} /usr/local/include) +- + #extract version from qmmp.h + FILE(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/src/qmmp/qmmp.h" + QMMP_VERSION_DATA REGEX "^#define[ \t]+QMMP_VERSION_[A-Z]+[ \t]+[0-9]+.*$")
meta/recipes-qt/qt-apps/qmmp/no-sessionmanager.patch new file +21 -0
@@ -0,0 +1,21 @@ +Don't call session manager function if not enabled + +If session management has been disabled we will get a compilation +failure if we try to call QApplication::commitData() so don't do so if +it is disabled. + +Upstream-Status: Pending + +Signed-off-by: Paul Eggleton <[email protected]> + +--- a/src/app/qmmpapplication.cpp ++++ b/src/app/qmmpapplication.cpp +@@ -29,6 +29,8 @@ void QmmpApplication::commitData(QSessionManager &manager) + { + if(UiHelper::instance()) + UiHelper::instance()->exit(); ++#ifndef QT_NO_SESSIONMANAGER + else + QApplication::commitData(manager); ++#endif + }
meta/recipes-qt/qt-apps/qmmp_0.6.6.bb renamed from meta/recipes-qt/qt-apps/qmmp_0.6.1.bb +31 -8
@@ -2,20 +2,37 @@ DESCRIPTION = "Qmmp (Qt-based Multimedia Player) is an audio-player, written wit HOMEPAGE = "http://qmmp.ylsoftware.com" LICENSE = "GPLv2" LICENSE_FLAGS = "commercial" -LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SECTION = "multimedia" -PR = "r1" +DEPENDS = "taglib libmad libvorbis libogg alsa-lib libsndfile1 libsamplerate0 curl" -DEPENDS = "taglib libmad libvorbis libogg alsa-lib" +SRC_URI = "http://qmmp.ylsoftware.com/files/${BPN}-${PV}.tar.bz2 \ + file://no-host-paths.patch \ + file://no-sessionmanager.patch" -SRC_URI = "http://qmmp.ylsoftware.com/files/${BPN}-${PV}.tar.bz2" - -SRC_URI[md5sum] = "23a1a3aa924da901ebc8327ea76135d4" -SRC_URI[sha256sum] = "b48be8c0e3882088919a77ce7b619cfc99d32af29cc688ba8749a58cbb25fb6f" +SRC_URI[md5sum] = "0131a9bf7b98737c1a6fd6e1a897e2b2" +SRC_URI[sha256sum] = "dfa973cca80c020a85a11bb66701a3804f9fde326440abb179559c98bf3b5b99" inherit cmake qt4x11 +QMMP_PLUGIN_OPTIONS ??= "\ + -DUSE_MMS:BOOL=FALSE \ + -DUSE_MPC:BOOL=FALSE \ + -DUSE_MODPLUG:BOOL=FALSE \ + -DUSE_WAVPACK:BOOL=FALSE \ + -DUSE_FFMPEG:BOOL=FALSE \ + -DUSE_AAC:BOOL=FALSE \ + -DUSE_CDA:BOOL=FALSE \ + -DUSE_MIDI:BOOL=FALSE \ + -DUSE_GME:BOOL=FALSE \ + -DUSE_OSS4:BOOL=FALSE \ + -DUSE_JACK:BOOL=FALSE \ + -DUSE_BS2B:BOOL=FALSE \ + -DUSE_PROJECTM:BOOL=FALSE \ + -DUSE_ENCA:BOOL=FALSE \ + " + export EXTRA_OECMAKE = "-DQT_QMAKE_EXECUTABLE=${OE_QMAKE_QMAKE} \ -DQT_LRELEASE_EXECUTABLE=${OE_QMAKE_LRELEASE} \ -DQT_MOC_EXECUTABLE=${OE_QMAKE_MOC} \
@@ -24,9 +41,15 @@ export EXTRA_OECMAKE = "-DQT_QMAKE_EXECUTABLE=${OE_QMAKE_QMAKE} \ -DQT_LIBRARY_DIR=${OE_QMAKE_LIBDIR_QT} \ -DQT_HEADERS_DIR=${OE_QMAKE_INCDIR_QT} \ -DQT_QTCORE_INCLUDE_DIR=${OE_QMAKE_INCDIR_QT}/QtCore \ + ${QMMP_PLUGIN_OPTIONS} \ " -PACKAGES_DYNAMIC += "^qmmp-plugin-.* " +do_configure() { + # Ensure we get the cmake configure and not qmake + cmake_do_configure +} + +PACKAGES_DYNAMIC += "^qmmp-plugin-.* " python populate_packages_prepend () { qmmp_libdir = d.expand('${libdir}/qmmp')
Signature · 1 line
1.7.10.4
Re: [PATCH 1/1] qmmp: update to 0.6.6 and fix
Quoted 15 lines · On Tuesday 05 February 2013 17:09:58 Paul Eggleton wrote:
* Update to 0.6.6
* Fix compilation failure due to call toQApplication::commitData()
* Disable/usr/localhost paths to avoid compilation warnings
* Force use of the cmake configure instead of qmake as the latter is not dynamic with Qmmp and doesn't let you disable certain dependencies (e.g. enca)
* Add libsndfile1 and libsamplerate0 to DEPENDS since their use will be non-deterministic otherwise
* Explicitly disable library-requiring options that we don't have available in OE-Core so that they don't get used if they happen to be in the sysroot
* UpdateLIC_FILES_CHKSUMsince there were cosmetic changes to the license file (mostly reformatting and change of references to LGPL from "Library" to "Lesser".)
Quoted 1 line
Fixes [YOCTO #3882].
Actually it's bug #3822. I've fixed the commit message on the branch.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre