qtwebkit: fix QA issue (bad RPATH)

Building qtwebkit causes a QA issue such that QtWebPluginProcess and
QtWebProcess contain bad RPATHs which point into the build location. This fix
adds a patch to not include the rpath.prf which causes this problem.

Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
devshell: include PATH for qt5 native applications

If you perform a "bitbake -c devshell <some qt5 recipe>" and then try "which
qmake" in the devshell, you'll find your host's qmake is found (which is most
likely to be based on qt4) rather than the one that is built as part of
meta-qt5. The reason for this is that the qt5 items are installed to
${STAGING_DIR_NATIVE}/usr/bin/qt5 and not ${STAGING_DIR_NATIVE}/usr/bin. The
reason for the extra "qt5" directory at the end is so that qt4-based items
that are built in OE can live side-by-side with things from meta-qt5 without
interfering with each other.

This patch prepends ${STAGING_DIR_NATIVE}/usr/bin/qt5 to the devshell's PATH
so that the qt5-based native tools which are built as part of meta-qt5 will be
found before the host's.

Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
maliit: Import maliit recipes from meta-oe

Imported from rev 13ae5105ee30410136beeae66ec41ee4a8a2e2b0

This is the first step to move these recipes over to qt5.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
maliit-framework-qt5: Build with qt5

* Switch to new github repo
* Update SRCREV and remove patches which now longer apply
* Disable doc generation and xcb
* Fix packaging

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
maliit-plugins-qt5: Build with qt5.

* Switch to new github repo
* Update SRCREV and PV
* Fix packaging

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
maliit-*-qt5: Adjust MKSPEC path

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

>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

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
meta-framework-qt5: Cleanup packaging and enable dbus activation.

* Move pkgconfig files, headers and spec files into dev.
* Cleanup packaging rules
* Enable dbus activation to start maliit server on demand

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
maliit-plugins-qt5: Set MALIIT_PLUGINS_DATA_DIR to avoid path leakage from host

If not overriden here MALIIT_PLUGINS_DATA_DIR would point to some host
paths resulting in e.g. qml files not being found.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>