All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] maliit: Import maliit recipes from meta-oe
@ 2013-09-28 22:25 Stefan Schmidt
  2013-09-28 22:25 ` [PATCH 2/6] maliit-framework-qt5: Build with qt5 Stefan Schmidt
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Stefan Schmidt @ 2013-09-28 22:25 UTC (permalink / raw)
  To: openembedded-devel

Imported from rev 13ae5105ee30410136beeae66ec41ee4a8a2e2b0

This is the first step to move these recipes over to qt5.
---
 ...INSTALL_PRF-to-allow-the-build-with-opene.patch | 34 ++++++++
 ...LUGIN_PATH-to-allow-openembedded-to-build.patch | 34 ++++++++
 ...k-to-libmaliit-1-0-in-inputcontext-plugin.patch | 23 ++++++
 .../maliit-framework-qt5/maliit-server.desktop     |  6 ++
 recipes-qt/maliit/maliit-framework-qt5_git.bb      | 96 ++++++++++++++++++++++
 recipes-qt/maliit/maliit-plugins-qt5_git.bb        | 33 ++++++++
 6 files changed, 226 insertions(+)
 create mode 100644 recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch
 create mode 100644 recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch
 create mode 100644 recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch
 create mode 100644 recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop
 create mode 100644 recipes-qt/maliit/maliit-framework-qt5_git.bb
 create mode 100644 recipes-qt/maliit/maliit-plugins-qt5_git.bb

diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch
new file mode 100644
index 0000000..acd9a57
--- /dev/null
+++ b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch
@@ -0,0 +1,34 @@
+From 33554f9b3fd493c7e28617fd01466ffa87251f27 Mon Sep 17 00:00:00 2001
+From: Samuel Stirtzel <s.stirtzel@googlemail.com>
+Date: Wed, 1 Aug 2012 13:21:51 +0200
+Subject: [PATCH] Fix MALIIT_INSTALL_PRF to allow the build with openembedded
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
+---
+ config.pri |    8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/config.pri b/config.pri
+index b037b8c..43409f3 100644
+--- a/config.pri
++++ b/config.pri
+@@ -161,9 +161,11 @@ contains(QT_MAJOR_VERSION, 4) {
+     QT_WIDGETS = gui widgets
+ }
+ 
+-MALIIT_INSTALL_PRF = $$[QT_INSTALL_DATA]/mkspecs/features
+-local-install {
+-    MALIIT_INSTALL_PRF = $$replace(MALIIT_INSTALL_PRF, $$[QT_INSTALL_PREFIX], $$PREFIX)
++isEmpty(MALIIT_INSTALL_PRF) {
++    MALIIT_INSTALL_PRF = $$[QT_INSTALL_DATA]/mkspecs/features
++    local-install {
++        MALIIT_INSTALL_PRF = $$replace(MALIIT_INSTALL_PRF, $$[QT_INSTALL_PREFIX], $$PREFIX)
++    }
+ }
+ 
+ defineTest(outputFile) {
+-- 
+1.7.9.5
+
diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch
new file mode 100644
index 0000000..830e6de
--- /dev/null
+++ b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch
@@ -0,0 +1,34 @@
+From fb6acbd2af9ed288c1c4f4200fc73d8d9955486a Mon Sep 17 00:00:00 2001
+From: Samuel Stirtzel <s.stirtzel@googlemail.com>
+Date: Wed, 1 Aug 2012 13:33:10 +0200
+Subject: [PATCH] Fix QT_IM_PLUGIN_PATH to allow openembedded to build Maliit
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
+---
+ input-context/input-context.pri |   10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/input-context/input-context.pri b/input-context/input-context.pri
+index d94e6a3..d460e70 100644
+--- a/input-context/input-context.pri
++++ b/input-context/input-context.pri
+@@ -25,8 +25,10 @@ for(OPTION,$$list($$lower($$COV_OPTION))){
+ 
+ QMAKE_CLEAN += $$OBJECTS_DIR/*.gcno $$OBJECTS_DIR/*.gcda
+ 
+-QT_IM_PLUGIN_PATH = $$[QT_INSTALL_PLUGINS]/inputmethods
+-QT_PREFIX = $$[QT_INSTALL_PREFIX]
+-local-install {
+-    QT_IM_PLUGIN_PATH = $$replace(QT_IM_PLUGIN_PATH, $$QT_PREFIX, $$PREFIX)
++isEmpty(QT_IM_PLUGIN_PATH) {
++    QT_IM_PLUGIN_PATH = $$[QT_INSTALL_PLUGINS]/inputmethods
++    QT_PREFIX = $$[QT_INSTALL_PREFIX]
++    local-install {
++        QT_IM_PLUGIN_PATH = $$replace(QT_IM_PLUGIN_PATH, $$QT_PREFIX, $$PREFIX)
++    }
+ }
+-- 
+1.7.9.5
+
diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch
new file mode 100644
index 0000000..c2291c6
--- /dev/null
+++ b/recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch
@@ -0,0 +1,23 @@
+From cc33efdedbec9e9a55e9a0c6756516fd84d42e53 Mon Sep 17 00:00:00 2001
+From: Samuel Stirtzel <s.stirtzel@googlemail.com>
+Date: Fri, 1 Mar 2013 11:31:41 +0100
+Subject: [PATCH] Link to libmaliit-1,0 in inputcontext plugin
+
+Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
+---
+ .../input-context-plugin/input-context-plugin.pro  |    2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/input-context/input-context-plugin/input-context-plugin.pro b/input-context/input-context-plugin/input-context-plugin.pro
+index eefbe93..296e2fa 100644
+--- a/input-context/input-context-plugin/input-context-plugin.pro
++++ b/input-context/input-context-plugin/input-context-plugin.pro
+@@ -15,3 +15,5 @@ CONFIG += plugin
+
+ INSTALLS    += target
+ target.path += $$QT_IM_PLUGIN_PATH
++
++LIBS += -L../../lib -l"maliit-1.0"
+--
+1.7.9.5
+
diff --git a/recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop b/recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop
new file mode 100644
index 0000000..24bdf9b
--- /dev/null
+++ b/recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=Maliit server
+Exec=/usr/bin/maliit-server
+Icon=
+Type=Application
+Categories=Utility;
diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
new file mode 100644
index 0000000..9f67452
--- /dev/null
+++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
@@ -0,0 +1,96 @@
+DESCRIPTION = "A virtual keyboard for touch-screen based user interfaces"
+HOMEPAGE = "https://wiki.maliit.org/Main_Page"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=5c917f6ce94ceb8d8d5e16e2fca5b9ad"
+
+#inherit autotools qt4x11 gtk-immodules-cache
+
+
+SRC_URI = "git://gitorious.org/maliit/maliit-framework.git;branch=master \
+    file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \
+    file://0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch \
+    file://0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch \
+    file://maliit-server.desktop \
+"
+
+SRCREV = "750842dec74a9b17dca91ef779c4fc5a43c4d9dc"
+PV = "0.92.3+git${SRCPV}"
+
+
+PACKAGES =+ "${PN}-gtk"
+GTKIMMODULES_PACKAGES = "${PN}-gtk"
+
+RDEPENDS_${PN} = "qt4-plugin-inputmethod-imsw-multi libqtsvg4"
+
+RRECOMMENDS_${PN} = "maliit-plugins"
+
+
+FILES_${PN} += "\
+    ${libdir}/maliit/plugins-*/factories/libmaliit-plugins-quick-factory-*.so \
+    ${libdir}/qt4/plugins/inputmethods/*.so \
+    ${datadir}/applications/maliit-server.desktop \
+"
+
+FILES_${PN}-dbg += "\
+    ${libdir}/maliit-framework-tests \
+    ${libdir}/gtk-*/*/immodules/.debug \
+    ${libdir}/maliit/plugins-*/factories/.debug \
+    ${libdir}/qt4/plugins/.debug \
+    ${libdir}/qt4/plugins/inputmethods/.debug \
+"
+
+FILES_${PN}-dev += "${datadir}/qt4"
+
+FILES_${PN}-gtk +="\
+    ${bindir}/maliit-exampleapp-gtk* \
+    \
+    ${libdir}/gtk-*/*/immodules/libim-maliit.so\
+"
+
+EXTRA_QMAKEVARS_PRE = "\
+    PREFIX=${prefix} \
+    LIBDIR=${libdir} \
+    QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
+    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
+    SCHEMADIR=${sysconfdir}/gconf/schemas \
+    CONFIG+=disable-gconf \
+    CONFIG+=disable-gtk-cache-update \
+    CONFIG+=local-install \
+    CONFIG+=nosdk \
+"
+
+EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
+
+do_install_append() {
+    #Fix absolute paths
+    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-framework.prf
+    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-plugins.prf
+
+    install -d ${D}${datadir}/applications
+    install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications
+}
+
+pkg_postinst_${PN} () {
+#!/bin/sh
+# should run online
+if [ "x$D" != "x" ]; then
+    exit 1
+fi
+echo "export QT_IM_MODULE=Maliit" >> /etc/xprofile
+ln -s /usr/share/applications/maliit-server.desktop /etc/xdg/autostart/maliit-server.desktop
+}
+
+pkg_postrm_${PN} () {
+#!/bin/sh
+# should run online
+if [ "x$D" = "x" ]; then
+    exit 1
+fi
+if [ -e "/etc/xprofile" ]; then
+    sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile
+fi
+rm -f /etc/xdg/autostart/maliit-server.desktop
+}
+
+S = "${WORKDIR}/git"
diff --git a/recipes-qt/maliit/maliit-plugins-qt5_git.bb b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
new file mode 100644
index 0000000..fdca8c0
--- /dev/null
+++ b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
@@ -0,0 +1,33 @@
+DESCRIPTION = "Plugins for a virtual keyboard for touch-screen based user interfaces"
+HOMEPAGE = "https://wiki.maliit.org/Main_Page"
+
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f29b21caa8e460097bfad9c026a33621"
+
+inherit autotools qt4x11
+
+DEPENDS = "maliit-framework-qt5"
+
+RDEPENDS_${PN} += "qt4-plugin-iconengine-svgicon qt4-plugin-imageformat-svg"
+
+SRC_URI = "git://gitorious.org/maliit/maliit-plugins.git;branch=master"
+
+SRCREV = "0760e585df494b394df1b887e5138ffef19c481f"
+PV = "0.92.3+git${SRCPV}"
+
+EXTRA_QMAKEVARS_PRE = "\
+    PREFIX=${prefix} \
+    LIBDIR=${libdir} \
+    CONFIG+=nodoc \
+"
+
+FILES_${PN} += "\
+    ${libdir}/maliit \
+    ${datadir} \
+"
+
+FILES_${PN}-dbg += "${libdir}/maliit/plugins-*/.debug"
+
+S= "${WORKDIR}/git"
+
+EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
-- 
1.8.4.rc3



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/6] maliit-framework-qt5: Build with qt5
  2013-09-28 22:25 [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt
@ 2013-09-28 22:25 ` Stefan Schmidt
  2013-09-28 22:25 ` [PATCH 3/6] maliit-plugins-qt5: " Stefan Schmidt
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Stefan Schmidt @ 2013-09-28 22:25 UTC (permalink / raw)
  To: openembedded-devel

* Switch to new github repo
* Update SRCREV and remove patches which now longer apply
* Disable doc generation and xcb
* Fix packaging
---
 recipes-qt/maliit/maliit-framework-qt5_git.bb | 36 +++++++++++++++------------
 1 file changed, 20 insertions(+), 16 deletions(-)

diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
index 9f67452..7b336ff 100644
--- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
@@ -4,43 +4,45 @@ HOMEPAGE = "https://wiki.maliit.org/Main_Page"
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=5c917f6ce94ceb8d8d5e16e2fca5b9ad"
 
-#inherit autotools qt4x11 gtk-immodules-cache
+inherit qmake5
 
+# Set path of qt5 headers as qmake5_base.bbclass sets this to just ${includedir}
+# but
+# actually it is ${includedir}/qt5
+OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}"
 
-SRC_URI = "git://gitorious.org/maliit/maliit-framework.git;branch=master \
+
+SRC_URI = "git://github.com/maliit/framework.git;branch=master \
     file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \
-    file://0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch \
-    file://0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch \
     file://maliit-server.desktop \
 "
 
-SRCREV = "750842dec74a9b17dca91ef779c4fc5a43c4d9dc"
-PV = "0.92.3+git${SRCPV}"
+SRCREV = "dbc0403f329d7f6ce2f5a09e6ff5adbd2548a8c9"
+PV = "0.99.0+git${SRCPV}"
 
 
 PACKAGES =+ "${PN}-gtk"
 GTKIMMODULES_PACKAGES = "${PN}-gtk"
 
-RDEPENDS_${PN} = "qt4-plugin-inputmethod-imsw-multi libqtsvg4"
-
-RRECOMMENDS_${PN} = "maliit-plugins"
+# FIXME: Do we need something like this with qt5?
+#RDEPENDS_${PN} = "qt4-plugin-inputmethod-imsw-multi libqtsvg4"
 
+RRECOMMENDS_${PN} = "maliit-plugins-qt5"
 
 FILES_${PN} += "\
-    ${libdir}/maliit/plugins-*/factories/libmaliit-plugins-quick-factory-*.so \
-    ${libdir}/qt4/plugins/inputmethods/*.so \
+    ${libdir}/*.so* \
+    ${libdir}/pkgconfig \
+    ${libdir}/qt5 \
+    ${bindir}/maliit-server \
+    ${includedir}/maliit \
     ${datadir}/applications/maliit-server.desktop \
 "
 
 FILES_${PN}-dbg += "\
     ${libdir}/maliit-framework-tests \
-    ${libdir}/gtk-*/*/immodules/.debug \
-    ${libdir}/maliit/plugins-*/factories/.debug \
-    ${libdir}/qt4/plugins/.debug \
-    ${libdir}/qt4/plugins/inputmethods/.debug \
 "
 
-FILES_${PN}-dev += "${datadir}/qt4"
+FILES_${PN}-dev += "${datadir}"
 
 FILES_${PN}-gtk +="\
     ${bindir}/maliit-exampleapp-gtk* \
@@ -58,6 +60,8 @@ EXTRA_QMAKEVARS_PRE = "\
     CONFIG+=disable-gtk-cache-update \
     CONFIG+=local-install \
     CONFIG+=nosdk \
+    CONFIG+=nodoc \
+    CONFIG+=noxcb \
 "
 
 EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
-- 
1.8.4.rc3



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/6] maliit-plugins-qt5: Build with qt5.
  2013-09-28 22:25 [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt
  2013-09-28 22:25 ` [PATCH 2/6] maliit-framework-qt5: Build with qt5 Stefan Schmidt
@ 2013-09-28 22:25 ` Stefan Schmidt
  2013-09-28 22:25 ` [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path Stefan Schmidt
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Stefan Schmidt @ 2013-09-28 22:25 UTC (permalink / raw)
  To: openembedded-devel

* Switch to new github repo
* Update SRCREV and PV
* Fix packaging
---
 recipes-qt/maliit/maliit-plugins-qt5_git.bb | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/recipes-qt/maliit/maliit-plugins-qt5_git.bb b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
index fdca8c0..9d5b0e2 100644
--- a/recipes-qt/maliit/maliit-plugins-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
@@ -4,16 +4,22 @@ HOMEPAGE = "https://wiki.maliit.org/Main_Page"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f29b21caa8e460097bfad9c026a33621"
 
-inherit autotools qt4x11
+inherit qmake5
+
+# Set path of qt5 headers as qmake5_base.bbclass sets this to just ${includedir}
+# but
+# actually it is ${includedir}/qt5
+OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}"
 
 DEPENDS = "maliit-framework-qt5"
 
-RDEPENDS_${PN} += "qt4-plugin-iconengine-svgicon qt4-plugin-imageformat-svg"
+# FIXME: Do we need something like this with qt5?
+#RDEPENDS_${PN} += "qt4-plugin-iconengine-svgicon qt4-plugin-imageformat-svg"
 
-SRC_URI = "git://gitorious.org/maliit/maliit-plugins.git;branch=master"
+SRC_URI = "git://github.com/maliit/plugins.git;branch=master"
 
-SRCREV = "0760e585df494b394df1b887e5138ffef19c481f"
-PV = "0.92.3+git${SRCPV}"
+SRCREV = "c6a348592607248a771a3dde5a0e33dc3c433a2a"
+PV = "0.99.0+git${SRCPV}"
 
 EXTRA_QMAKEVARS_PRE = "\
     PREFIX=${prefix} \
@@ -26,7 +32,7 @@ FILES_${PN} += "\
     ${datadir} \
 "
 
-FILES_${PN}-dbg += "${libdir}/maliit/plugins-*/.debug"
+FILES_${PN}-dbg += "${libdir}/maliit/plugins/.debug"
 
 S= "${WORKDIR}/git"
 
-- 
1.8.4.rc3



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path
  2013-09-28 22:25 [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt
  2013-09-28 22:25 ` [PATCH 2/6] maliit-framework-qt5: Build with qt5 Stefan Schmidt
  2013-09-28 22:25 ` [PATCH 3/6] maliit-plugins-qt5: " Stefan Schmidt
@ 2013-09-28 22:25 ` Stefan Schmidt
  2013-09-29  7:08   ` Martin Jansa
  2013-09-28 22:25 ` [PATCH 5/6] meta-framework-qt5: Cleanup packaging and enable dbus activation Stefan Schmidt
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Stefan Schmidt @ 2013-09-28 22:25 UTC (permalink / raw)
  To: openembedded-devel

---
 recipes-qt/maliit/maliit-framework-qt5_git.bb | 7 ++++---
 recipes-qt/maliit/maliit-plugins-qt5_git.bb   | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
index 7b336ff..4f2da19 100644
--- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
@@ -54,7 +54,7 @@ EXTRA_QMAKEVARS_PRE = "\
     PREFIX=${prefix} \
     LIBDIR=${libdir} \
     QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
-    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
+    MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
     SCHEMADIR=${sysconfdir}/gconf/schemas \
     CONFIG+=disable-gconf \
     CONFIG+=disable-gtk-cache-update \
@@ -68,8 +68,9 @@ EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
 
 do_install_append() {
     #Fix absolute paths
-    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-framework.prf
-    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-plugins.prf
+    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-framework.prf
+    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-plugins.prf
+    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-defines.prf
 
     install -d ${D}${datadir}/applications
     install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications
diff --git a/recipes-qt/maliit/maliit-plugins-qt5_git.bb b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
index 9d5b0e2..6b019ef 100644
--- a/recipes-qt/maliit/maliit-plugins-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
@@ -23,6 +23,7 @@ PV = "0.99.0+git${SRCPV}"
 
 EXTRA_QMAKEVARS_PRE = "\
     PREFIX=${prefix} \
+    MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
     LIBDIR=${libdir} \
     CONFIG+=nodoc \
 "
-- 
1.8.4.rc3



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 5/6] meta-framework-qt5: Cleanup packaging and enable dbus activation.
  2013-09-28 22:25 [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt
                   ` (2 preceding siblings ...)
  2013-09-28 22:25 ` [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path Stefan Schmidt
@ 2013-09-28 22:25 ` Stefan Schmidt
  2013-09-28 22:25 ` [PATCH 6/6] maliit-plugins-qt5: Set MALIIT_PLUGINS_DATA_DIR to avoid path leakage from host Stefan Schmidt
  2013-09-28 22:33 ` [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt
  5 siblings, 0 replies; 11+ messages in thread
From: Stefan Schmidt @ 2013-09-28 22:25 UTC (permalink / raw)
  To: openembedded-devel

* Move pkgconfig files, headers and spec files into dev.
* Cleanup packaging rules
* Enable dbus activation to start maliit server on demand
---
 recipes-qt/maliit/maliit-framework-qt5_git.bb | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
index 4f2da19..be3b1c1 100644
--- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
@@ -31,23 +31,19 @@ RRECOMMENDS_${PN} = "maliit-plugins-qt5"
 
 FILES_${PN} += "\
     ${libdir}/*.so* \
-    ${libdir}/pkgconfig \
-    ${libdir}/qt5 \
-    ${bindir}/maliit-server \
-    ${includedir}/maliit \
+    ${bindir} \
     ${datadir}/applications/maliit-server.desktop \
+    ${datadir}/dbus-1 \
 "
 
 FILES_${PN}-dbg += "\
     ${libdir}/maliit-framework-tests \
 "
 
-FILES_${PN}-dev += "${datadir}"
-
-FILES_${PN}-gtk +="\
-    ${bindir}/maliit-exampleapp-gtk* \
-    \
-    ${libdir}/gtk-*/*/immodules/libim-maliit.so\
+FILES_${PN}-dev += "\
+    ${includedir}/maliit \
+    ${libdir}/pkgconfig \
+    ${libdir}/qt5 \
 "
 
 EXTRA_QMAKEVARS_PRE = "\
@@ -62,6 +58,7 @@ EXTRA_QMAKEVARS_PRE = "\
     CONFIG+=nosdk \
     CONFIG+=nodoc \
     CONFIG+=noxcb \
+    CONFIG+=enable-dbus-activation \
 "
 
 EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
-- 
1.8.4.rc3



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 6/6] maliit-plugins-qt5: Set MALIIT_PLUGINS_DATA_DIR to avoid path leakage from host
  2013-09-28 22:25 [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt
                   ` (3 preceding siblings ...)
  2013-09-28 22:25 ` [PATCH 5/6] meta-framework-qt5: Cleanup packaging and enable dbus activation Stefan Schmidt
@ 2013-09-28 22:25 ` Stefan Schmidt
  2013-09-28 22:33 ` [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt
  5 siblings, 0 replies; 11+ messages in thread
From: Stefan Schmidt @ 2013-09-28 22:25 UTC (permalink / raw)
  To: openembedded-devel

If not overriden here MALIIT_PLUGINS_DATA_DIR would point to some host
paths resulting in e.g. qml files not being found.
---
 recipes-qt/maliit/maliit-plugins-qt5_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-qt/maliit/maliit-plugins-qt5_git.bb b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
index 6b019ef..fa3d1fd 100644
--- a/recipes-qt/maliit/maliit-plugins-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
@@ -24,6 +24,7 @@ PV = "0.99.0+git${SRCPV}"
 EXTRA_QMAKEVARS_PRE = "\
     PREFIX=${prefix} \
     MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
+    MALIIT_PLUGINS_DATA_DIR=${datadir} \
     LIBDIR=${libdir} \
     CONFIG+=nodoc \
 "
-- 
1.8.4.rc3



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/6] maliit: Import maliit recipes from meta-oe
  2013-09-28 22:25 [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt
                   ` (4 preceding siblings ...)
  2013-09-28 22:25 ` [PATCH 6/6] maliit-plugins-qt5: Set MALIIT_PLUGINS_DATA_DIR to avoid path leakage from host Stefan Schmidt
@ 2013-09-28 22:33 ` Stefan Schmidt
  5 siblings, 0 replies; 11+ messages in thread
From: Stefan Schmidt @ 2013-09-28 22:33 UTC (permalink / raw)
  To: Stefan Schmidt; +Cc: openembedded-devel

Hello.

Seems my git send-email skills got rusty.

This should have had a meta-qt5 prefix and and cover-letter containing
something like this:

These recipes offer the maliit virtual keyboard for qt5.

The recipes origin from meta-oe and have been adapted to the new git
repo, new packaging and some upstream changes. Details are listed in
the individual commits. Pull from:

git://github.com:Stefan-Schmidt/meta-qt5.git maliit5

regards
Stefan Schmidt

On Sat, 2013-09-28 at 23:25, Stefan Schmidt wrote:
> Imported from rev 13ae5105ee30410136beeae66ec41ee4a8a2e2b0
> 
> This is the first step to move these recipes over to qt5.
> ---
>  ...INSTALL_PRF-to-allow-the-build-with-opene.patch | 34 ++++++++
>  ...LUGIN_PATH-to-allow-openembedded-to-build.patch | 34 ++++++++
>  ...k-to-libmaliit-1-0-in-inputcontext-plugin.patch | 23 ++++++
>  .../maliit-framework-qt5/maliit-server.desktop     |  6 ++
>  recipes-qt/maliit/maliit-framework-qt5_git.bb      | 96 ++++++++++++++++++++++
>  recipes-qt/maliit/maliit-plugins-qt5_git.bb        | 33 ++++++++
>  6 files changed, 226 insertions(+)
>  create mode 100644 recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch
>  create mode 100644 recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch
>  create mode 100644 recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch
>  create mode 100644 recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop
>  create mode 100644 recipes-qt/maliit/maliit-framework-qt5_git.bb
>  create mode 100644 recipes-qt/maliit/maliit-plugins-qt5_git.bb
> 
> diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch
> new file mode 100644
> index 0000000..acd9a57
> --- /dev/null
> +++ b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch
> @@ -0,0 +1,34 @@
> +From 33554f9b3fd493c7e28617fd01466ffa87251f27 Mon Sep 17 00:00:00 2001
> +From: Samuel Stirtzel <s.stirtzel@googlemail.com>
> +Date: Wed, 1 Aug 2012 13:21:51 +0200
> +Subject: [PATCH] Fix MALIIT_INSTALL_PRF to allow the build with openembedded
> +
> +Upstream-Status: Inappropriate [configuration]
> +
> +Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
> +---
> + config.pri |    8 +++++---
> + 1 file changed, 5 insertions(+), 3 deletions(-)
> +
> +diff --git a/config.pri b/config.pri
> +index b037b8c..43409f3 100644
> +--- a/config.pri
> ++++ b/config.pri
> +@@ -161,9 +161,11 @@ contains(QT_MAJOR_VERSION, 4) {
> +     QT_WIDGETS = gui widgets
> + }
> + 
> +-MALIIT_INSTALL_PRF = $$[QT_INSTALL_DATA]/mkspecs/features
> +-local-install {
> +-    MALIIT_INSTALL_PRF = $$replace(MALIIT_INSTALL_PRF, $$[QT_INSTALL_PREFIX], $$PREFIX)
> ++isEmpty(MALIIT_INSTALL_PRF) {
> ++    MALIIT_INSTALL_PRF = $$[QT_INSTALL_DATA]/mkspecs/features
> ++    local-install {
> ++        MALIIT_INSTALL_PRF = $$replace(MALIIT_INSTALL_PRF, $$[QT_INSTALL_PREFIX], $$PREFIX)
> ++    }
> + }
> + 
> + defineTest(outputFile) {
> +-- 
> +1.7.9.5
> +
> diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch
> new file mode 100644
> index 0000000..830e6de
> --- /dev/null
> +++ b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch
> @@ -0,0 +1,34 @@
> +From fb6acbd2af9ed288c1c4f4200fc73d8d9955486a Mon Sep 17 00:00:00 2001
> +From: Samuel Stirtzel <s.stirtzel@googlemail.com>
> +Date: Wed, 1 Aug 2012 13:33:10 +0200
> +Subject: [PATCH] Fix QT_IM_PLUGIN_PATH to allow openembedded to build Maliit
> +
> +Upstream-Status: Inappropriate [configuration]
> +
> +Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
> +---
> + input-context/input-context.pri |   10 ++++++----
> + 1 file changed, 6 insertions(+), 4 deletions(-)
> +
> +diff --git a/input-context/input-context.pri b/input-context/input-context.pri
> +index d94e6a3..d460e70 100644
> +--- a/input-context/input-context.pri
> ++++ b/input-context/input-context.pri
> +@@ -25,8 +25,10 @@ for(OPTION,$$list($$lower($$COV_OPTION))){
> + 
> + QMAKE_CLEAN += $$OBJECTS_DIR/*.gcno $$OBJECTS_DIR/*.gcda
> + 
> +-QT_IM_PLUGIN_PATH = $$[QT_INSTALL_PLUGINS]/inputmethods
> +-QT_PREFIX = $$[QT_INSTALL_PREFIX]
> +-local-install {
> +-    QT_IM_PLUGIN_PATH = $$replace(QT_IM_PLUGIN_PATH, $$QT_PREFIX, $$PREFIX)
> ++isEmpty(QT_IM_PLUGIN_PATH) {
> ++    QT_IM_PLUGIN_PATH = $$[QT_INSTALL_PLUGINS]/inputmethods
> ++    QT_PREFIX = $$[QT_INSTALL_PREFIX]
> ++    local-install {
> ++        QT_IM_PLUGIN_PATH = $$replace(QT_IM_PLUGIN_PATH, $$QT_PREFIX, $$PREFIX)
> ++    }
> + }
> +-- 
> +1.7.9.5
> +
> diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch
> new file mode 100644
> index 0000000..c2291c6
> --- /dev/null
> +++ b/recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch
> @@ -0,0 +1,23 @@
> +From cc33efdedbec9e9a55e9a0c6756516fd84d42e53 Mon Sep 17 00:00:00 2001
> +From: Samuel Stirtzel <s.stirtzel@googlemail.com>
> +Date: Fri, 1 Mar 2013 11:31:41 +0100
> +Subject: [PATCH] Link to libmaliit-1,0 in inputcontext plugin
> +
> +Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
> +---
> + .../input-context-plugin/input-context-plugin.pro  |    2 ++
> + 1 file changed, 2 insertions(+)
> +
> +diff --git a/input-context/input-context-plugin/input-context-plugin.pro b/input-context/input-context-plugin/input-context-plugin.pro
> +index eefbe93..296e2fa 100644
> +--- a/input-context/input-context-plugin/input-context-plugin.pro
> ++++ b/input-context/input-context-plugin/input-context-plugin.pro
> +@@ -15,3 +15,5 @@ CONFIG += plugin
> +
> + INSTALLS    += target
> + target.path += $$QT_IM_PLUGIN_PATH
> ++
> ++LIBS += -L../../lib -l"maliit-1.0"
> +--
> +1.7.9.5
> +
> diff --git a/recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop b/recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop
> new file mode 100644
> index 0000000..24bdf9b
> --- /dev/null
> +++ b/recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop
> @@ -0,0 +1,6 @@
> +[Desktop Entry]
> +Name=Maliit server
> +Exec=/usr/bin/maliit-server
> +Icon=
> +Type=Application
> +Categories=Utility;
> diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> new file mode 100644
> index 0000000..9f67452
> --- /dev/null
> +++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> @@ -0,0 +1,96 @@
> +DESCRIPTION = "A virtual keyboard for touch-screen based user interfaces"
> +HOMEPAGE = "https://wiki.maliit.org/Main_Page"
> +
> +LICENSE = "LGPLv2.1"
> +LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=5c917f6ce94ceb8d8d5e16e2fca5b9ad"
> +
> +#inherit autotools qt4x11 gtk-immodules-cache
> +
> +
> +SRC_URI = "git://gitorious.org/maliit/maliit-framework.git;branch=master \
> +    file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \
> +    file://0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch \
> +    file://0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch \
> +    file://maliit-server.desktop \
> +"
> +
> +SRCREV = "750842dec74a9b17dca91ef779c4fc5a43c4d9dc"
> +PV = "0.92.3+git${SRCPV}"
> +
> +
> +PACKAGES =+ "${PN}-gtk"
> +GTKIMMODULES_PACKAGES = "${PN}-gtk"
> +
> +RDEPENDS_${PN} = "qt4-plugin-inputmethod-imsw-multi libqtsvg4"
> +
> +RRECOMMENDS_${PN} = "maliit-plugins"
> +
> +
> +FILES_${PN} += "\
> +    ${libdir}/maliit/plugins-*/factories/libmaliit-plugins-quick-factory-*.so \
> +    ${libdir}/qt4/plugins/inputmethods/*.so \
> +    ${datadir}/applications/maliit-server.desktop \
> +"
> +
> +FILES_${PN}-dbg += "\
> +    ${libdir}/maliit-framework-tests \
> +    ${libdir}/gtk-*/*/immodules/.debug \
> +    ${libdir}/maliit/plugins-*/factories/.debug \
> +    ${libdir}/qt4/plugins/.debug \
> +    ${libdir}/qt4/plugins/inputmethods/.debug \
> +"
> +
> +FILES_${PN}-dev += "${datadir}/qt4"
> +
> +FILES_${PN}-gtk +="\
> +    ${bindir}/maliit-exampleapp-gtk* \
> +    \
> +    ${libdir}/gtk-*/*/immodules/libim-maliit.so\
> +"
> +
> +EXTRA_QMAKEVARS_PRE = "\
> +    PREFIX=${prefix} \
> +    LIBDIR=${libdir} \
> +    QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
> +    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
> +    SCHEMADIR=${sysconfdir}/gconf/schemas \
> +    CONFIG+=disable-gconf \
> +    CONFIG+=disable-gtk-cache-update \
> +    CONFIG+=local-install \
> +    CONFIG+=nosdk \
> +"
> +
> +EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
> +
> +do_install_append() {
> +    #Fix absolute paths
> +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-framework.prf
> +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-plugins.prf
> +
> +    install -d ${D}${datadir}/applications
> +    install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications
> +}
> +
> +pkg_postinst_${PN} () {
> +#!/bin/sh
> +# should run online
> +if [ "x$D" != "x" ]; then
> +    exit 1
> +fi
> +echo "export QT_IM_MODULE=Maliit" >> /etc/xprofile
> +ln -s /usr/share/applications/maliit-server.desktop /etc/xdg/autostart/maliit-server.desktop
> +}
> +
> +pkg_postrm_${PN} () {
> +#!/bin/sh
> +# should run online
> +if [ "x$D" = "x" ]; then
> +    exit 1
> +fi
> +if [ -e "/etc/xprofile" ]; then
> +    sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile
> +fi
> +rm -f /etc/xdg/autostart/maliit-server.desktop
> +}
> +
> +S = "${WORKDIR}/git"
> diff --git a/recipes-qt/maliit/maliit-plugins-qt5_git.bb b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
> new file mode 100644
> index 0000000..fdca8c0
> --- /dev/null
> +++ b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
> @@ -0,0 +1,33 @@
> +DESCRIPTION = "Plugins for a virtual keyboard for touch-screen based user interfaces"
> +HOMEPAGE = "https://wiki.maliit.org/Main_Page"
> +
> +LICENSE = "BSD"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=f29b21caa8e460097bfad9c026a33621"
> +
> +inherit autotools qt4x11
> +
> +DEPENDS = "maliit-framework-qt5"
> +
> +RDEPENDS_${PN} += "qt4-plugin-iconengine-svgicon qt4-plugin-imageformat-svg"
> +
> +SRC_URI = "git://gitorious.org/maliit/maliit-plugins.git;branch=master"
> +
> +SRCREV = "0760e585df494b394df1b887e5138ffef19c481f"
> +PV = "0.92.3+git${SRCPV}"
> +
> +EXTRA_QMAKEVARS_PRE = "\
> +    PREFIX=${prefix} \
> +    LIBDIR=${libdir} \
> +    CONFIG+=nodoc \
> +"
> +
> +FILES_${PN} += "\
> +    ${libdir}/maliit \
> +    ${datadir} \
> +"
> +
> +FILES_${PN}-dbg += "${libdir}/maliit/plugins-*/.debug"
> +
> +S= "${WORKDIR}/git"
> +
> +EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
> -- 
> 1.8.4.rc3
> 


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path
  2013-09-28 22:25 ` [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path Stefan Schmidt
@ 2013-09-29  7:08   ` Martin Jansa
  2013-09-29  9:48     ` Stefan Schmidt
  0 siblings, 1 reply; 11+ messages in thread
From: Martin Jansa @ 2013-09-29  7:08 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2549 bytes --]

On Sat, Sep 28, 2013 at 11:25:17PM +0100, Stefan Schmidt wrote:
> ---
>  recipes-qt/maliit/maliit-framework-qt5_git.bb | 7 ++++---
>  recipes-qt/maliit/maliit-plugins-qt5_git.bb   | 1 +
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> index 7b336ff..4f2da19 100644
> --- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
> +++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> @@ -54,7 +54,7 @@ EXTRA_QMAKEVARS_PRE = "\
>      PREFIX=${prefix} \
>      LIBDIR=${libdir} \
>      QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
> -    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
> +    MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
>      SCHEMADIR=${sysconfdir}/gconf/schemas \
>      CONFIG+=disable-gconf \
>      CONFIG+=disable-gtk-cache-update \
> @@ -68,8 +68,9 @@ EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
>  
>  do_install_append() {
>      #Fix absolute paths
> -    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-framework.prf
> -    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-plugins.prf
> +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-framework.prf
> +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-plugins.prf
> +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-defines.prf

Why not use QMAKE_MKSPEC_PATH here as well?

>  
>      install -d ${D}${datadir}/applications
>      install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications
> diff --git a/recipes-qt/maliit/maliit-plugins-qt5_git.bb b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
> index 9d5b0e2..6b019ef 100644
> --- a/recipes-qt/maliit/maliit-plugins-qt5_git.bb
> +++ b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
> @@ -23,6 +23,7 @@ PV = "0.99.0+git${SRCPV}"
>  
>  EXTRA_QMAKEVARS_PRE = "\
>      PREFIX=${prefix} \
> +    MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
>      LIBDIR=${libdir} \
>      CONFIG+=nodoc \
>  "
> -- 
> 1.8.4.rc3
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path
  2013-09-29  7:08   ` Martin Jansa
@ 2013-09-29  9:48     ` Stefan Schmidt
  2013-09-29 22:02       ` Martin Jansa
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Schmidt @ 2013-09-29  9:48 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2118 bytes --]

Hello.

On Sun, 2013-09-29 at 09:08, Martin Jansa wrote:
> On Sat, Sep 28, 2013 at 11:25:17PM +0100, Stefan Schmidt wrote:
> > ---
> >  recipes-qt/maliit/maliit-framework-qt5_git.bb | 7 ++++---
> >  recipes-qt/maliit/maliit-plugins-qt5_git.bb   | 1 +
> >  2 files changed, 5 insertions(+), 3 deletions(-)
> > 
> > diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> > index 7b336ff..4f2da19 100644
> > --- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
> > +++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> > @@ -54,7 +54,7 @@ EXTRA_QMAKEVARS_PRE = "\
> >      PREFIX=${prefix} \
> >      LIBDIR=${libdir} \
> >      QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
> > -    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
> > +    MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
> >      SCHEMADIR=${sysconfdir}/gconf/schemas \
> >      CONFIG+=disable-gconf \
> >      CONFIG+=disable-gtk-cache-update \
> > @@ -68,8 +68,9 @@ EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
> >  
> >  do_install_append() {
> >      #Fix absolute paths
> > -    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-framework.prf
> > -    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-plugins.prf
> > +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-framework.prf
> > +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-plugins.prf
> > +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-defines.prf
> 
> Why not use QMAKE_MKSPEC_PATH here as well?

Because it does not work. I tried to use it initially. Just checked
again it fails with:
sed: can't read /data/WebOS/webos-ports-env/webos-ports/tmp-eglibc/sysroots/maguro/usr/lib/qt5/mkspecs/features/maliit-framework.prf: No such file or directory

At this stage the files are in ${D} but not in the maguro sysroot.

regards
Stefan Schmidt

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 258 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path
  2013-09-29  9:48     ` Stefan Schmidt
@ 2013-09-29 22:02       ` Martin Jansa
  2013-09-30 17:19         ` Stefan Schmidt
  0 siblings, 1 reply; 11+ messages in thread
From: Martin Jansa @ 2013-09-29 22:02 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2702 bytes --]

On Sun, Sep 29, 2013 at 10:48:28AM +0100, Stefan Schmidt wrote:
> Hello.
> 
> On Sun, 2013-09-29 at 09:08, Martin Jansa wrote:
> > On Sat, Sep 28, 2013 at 11:25:17PM +0100, Stefan Schmidt wrote:
> > > ---
> > >  recipes-qt/maliit/maliit-framework-qt5_git.bb | 7 ++++---
> > >  recipes-qt/maliit/maliit-plugins-qt5_git.bb   | 1 +
> > >  2 files changed, 5 insertions(+), 3 deletions(-)
> > > 
> > > diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> > > index 7b336ff..4f2da19 100644
> > > --- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
> > > +++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> > > @@ -54,7 +54,7 @@ EXTRA_QMAKEVARS_PRE = "\
> > >      PREFIX=${prefix} \
> > >      LIBDIR=${libdir} \
> > >      QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
> > > -    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
> > > +    MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
> > >      SCHEMADIR=${sysconfdir}/gconf/schemas \
> > >      CONFIG+=disable-gconf \
> > >      CONFIG+=disable-gtk-cache-update \
> > > @@ -68,8 +68,9 @@ EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
> > >  
> > >  do_install_append() {
> > >      #Fix absolute paths
> > > -    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-framework.prf
> > > -    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-plugins.prf
> > > +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-framework.prf
> > > +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-plugins.prf
> > > +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-defines.prf
> > 
> > Why not use QMAKE_MKSPEC_PATH here as well?
> 
> Because it does not work. I tried to use it initially. Just checked
> again it fails with:
> sed: can't read /data/WebOS/webos-ports-env/webos-ports/tmp-eglibc/sysroots/maguro/usr/lib/qt5/mkspecs/features/maliit-framework.prf: No such file or directory

Ah sorry, I looks like I've already forgot what's in QMAKE_MKSPEC_PATH,
what you can use is:
${libdir}/${QT_DIR_NAME} instead of /usr/lib/qt5/

Regards,


> 
> At this stage the files are in ${D} but not in the maguro sysroot.
> 
> regards
> Stefan Schmidt



> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path
  2013-09-29 22:02       ` Martin Jansa
@ 2013-09-30 17:19         ` Stefan Schmidt
  0 siblings, 0 replies; 11+ messages in thread
From: Stefan Schmidt @ 2013-09-30 17:19 UTC (permalink / raw)
  To: openembedded-devel


[-- Attachment #1.1: Type: text/plain, Size: 2653 bytes --]

Hello.

On Mon, 2013-09-30 at 00:02, Martin Jansa wrote:
> On Sun, Sep 29, 2013 at 10:48:28AM +0100, Stefan Schmidt wrote:
> > Hello.
> > 
> > On Sun, 2013-09-29 at 09:08, Martin Jansa wrote:
> > > On Sat, Sep 28, 2013 at 11:25:17PM +0100, Stefan Schmidt wrote:
> > > > ---
> > > >  recipes-qt/maliit/maliit-framework-qt5_git.bb | 7 ++++---
> > > >  recipes-qt/maliit/maliit-plugins-qt5_git.bb   | 1 +
> > > >  2 files changed, 5 insertions(+), 3 deletions(-)
> > > > 
> > > > diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> > > > index 7b336ff..4f2da19 100644
> > > > --- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
> > > > +++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
> > > > @@ -54,7 +54,7 @@ EXTRA_QMAKEVARS_PRE = "\
> > > >      PREFIX=${prefix} \
> > > >      LIBDIR=${libdir} \
> > > >      QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
> > > > -    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
> > > > +    MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
> > > >      SCHEMADIR=${sysconfdir}/gconf/schemas \
> > > >      CONFIG+=disable-gconf \
> > > >      CONFIG+=disable-gtk-cache-update \
> > > > @@ -68,8 +68,9 @@ EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
> > > >  
> > > >  do_install_append() {
> > > >      #Fix absolute paths
> > > > -    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-framework.prf
> > > > -    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-plugins.prf
> > > > +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-framework.prf
> > > > +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-plugins.prf
> > > > +    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/usr/lib/qt5/mkspecs/features/maliit-defines.prf
> > > 
> > > Why not use QMAKE_MKSPEC_PATH here as well?
> > 
> > Because it does not work. I tried to use it initially. Just checked
> > again it fails with:
> > sed: can't read /data/WebOS/webos-ports-env/webos-ports/tmp-eglibc/sysroots/maguro/usr/lib/qt5/mkspecs/features/maliit-framework.prf: No such file or directory
> 
> Ah sorry, I looks like I've already forgot what's in QMAKE_MKSPEC_PATH,
> what you can use is:
> ${libdir}/${QT_DIR_NAME} instead of /usr/lib/qt5/

Fair enough. Changed it and attched the updated patch. Pushed it into
the branch as well. I can also re-submit the whole lot if you want and
if you are happy with rest.

regards
Stefan Schmidt

[-- Attachment #1.2: 0004-maliit-qt5-Adjust-MKSPEC-path.patch --]
[-- Type: text/x-diff, Size: 2339 bytes --]

From f2ba7e0875f9dc5ed468628566a748fed9371722 Mon Sep 17 00:00:00 2001
From: Stefan Schmidt <stefan@datenfreihafen.org>
Date: Thu, 19 Sep 2013 21:35:51 +0100
Subject: [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path

---
 recipes-qt/maliit/maliit-framework-qt5_git.bb | 7 ++++---
 recipes-qt/maliit/maliit-plugins-qt5_git.bb   | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
index 7b336ff..35415a9 100644
--- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
@@ -54,7 +54,7 @@ EXTRA_QMAKEVARS_PRE = "\
     PREFIX=${prefix} \
     LIBDIR=${libdir} \
     QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
-    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
+    MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
     SCHEMADIR=${sysconfdir}/gconf/schemas \
     CONFIG+=disable-gconf \
     CONFIG+=disable-gtk-cache-update \
@@ -68,8 +68,9 @@ EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
 
 do_install_append() {
     #Fix absolute paths
-    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-framework.prf
-    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${datadir}/qt4/mkspecs/features/maliit-plugins.prf
+    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${libdir}/${QT_DIR_NAME}/mkspecs/features/maliit-framework.prf
+    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${libdir}/${QT_DIR_NAME}/mkspecs/features/maliit-plugins.prf
+    sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${libdir}/${QT_DIR_NAME}/mkspecs/features/maliit-defines.prf
 
     install -d ${D}${datadir}/applications
     install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications
diff --git a/recipes-qt/maliit/maliit-plugins-qt5_git.bb b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
index 9d5b0e2..6b019ef 100644
--- a/recipes-qt/maliit/maliit-plugins-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-plugins-qt5_git.bb
@@ -23,6 +23,7 @@ PV = "0.99.0+git${SRCPV}"
 
 EXTRA_QMAKEVARS_PRE = "\
     PREFIX=${prefix} \
+    MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \
     LIBDIR=${libdir} \
     CONFIG+=nodoc \
 "
-- 
1.8.4.rc3


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 258 bytes --]

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-09-30 17:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-28 22:25 [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt
2013-09-28 22:25 ` [PATCH 2/6] maliit-framework-qt5: Build with qt5 Stefan Schmidt
2013-09-28 22:25 ` [PATCH 3/6] maliit-plugins-qt5: " Stefan Schmidt
2013-09-28 22:25 ` [PATCH 4/6] maliit-*-qt5: Adjust MKSPEC path Stefan Schmidt
2013-09-29  7:08   ` Martin Jansa
2013-09-29  9:48     ` Stefan Schmidt
2013-09-29 22:02       ` Martin Jansa
2013-09-30 17:19         ` Stefan Schmidt
2013-09-28 22:25 ` [PATCH 5/6] meta-framework-qt5: Cleanup packaging and enable dbus activation Stefan Schmidt
2013-09-28 22:25 ` [PATCH 6/6] maliit-plugins-qt5: Set MALIIT_PLUGINS_DATA_DIR to avoid path leakage from host Stefan Schmidt
2013-09-28 22:33 ` [PATCH 1/6] maliit: Import maliit recipes from meta-oe Stefan Schmidt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.