All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ofono: libqofono: Added libqofono recipe
@ 2013-09-30 17:16 Felipe F. Tonello
  2013-10-04 14:21 ` Martin Jansa
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe F. Tonello @ 2013-09-30 17:16 UTC (permalink / raw)
  To: openembedded-devel

From: "Felipe F. Tonello" <eu@felipetonello.com>

libqofono is a Qt library for oFono that provides easy to use Qt library and
QML components to use oFono.

OBS: This recipe provides the Qt4 support only, but the library also works
with Qt5.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
---
 meta-oe/recipes-qt/libqofono/libqofono_0.4.bb | 88 +++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)
 create mode 100644 meta-oe/recipes-qt/libqofono/libqofono_0.4.bb

diff --git a/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb b/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
new file mode 100644
index 0000000..7c34db2
--- /dev/null
+++ b/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
@@ -0,0 +1,88 @@
+DESCRIPTION = "Qt Library for oFono"
+HOMEPAGE = "https://github.com/nemomobile/libqofono"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://README;endline=3;md5=8a15bce3921d1238d9a9f23828612947"
+
+SECTION = "qt/lib"
+
+PR = "r0"
+
+inherit qt4x11 pkgconfig
+
+RDEPENDS_${PN} = "ofono"
+RDEPENDS_${PN}-plugin = "${PN}"
+
+PROVIDES += "${PN}-plugin"
+
+PACKAGES =+ "${PN}-plugin ${PN}-plugin-dbg ${PN}-test"
+RRECOMMENDS_${PN} = "${PN}-plugin"
+
+BRANCH = "master"
+TAG = "${PV}"
+
+SRC_URI = " \
+  git://github.com/nemomobile/${PN}.git;branch=${BRANCH};tag=${TAG} \
+"
+
+S = "${WORKDIR}/git"
+
+QT_IMPORTS_DIR = "${libdir}/qt4/imports"
+PLUGINS_TARGET = "${QT_IMPORTS_DIR}/MeeGo/QOfono"
+
+FILES_${PN} = " \
+  ${libdir}/libqofono${SOLIBS} \
+"
+
+FILES_${PN}-dev = " \
+  ${includedir}/qofono/* \
+  ${includedir}/qofono/dbus/* \
+  ${libdir}/libqofono${SOLIBSDEV} \
+  ${libdir}/libqofono.prl \
+  ${libdir}/pkgconfig/qofono.pc \
+  ${datadir}/qt4/mkspecs/features/qofono.prf \
+"
+
+FILES_${PN}-plugin = " \
+  ${PLUGINS_TARGET}/qmldir \
+  ${PLUGINS_TARGET}/lib*.so \
+"
+
+FILES_${PN}-plugin-dbg = " \
+  ${PLUGINS_TARGET}/.debug \
+"
+
+FILES_${PN}-test = " \
+  /opt/ofonotest/bin/ofonotest \
+  /opt/ofonotest/qml/ofonotest \
+  ${libdir}/libqofono/tests/tst_qofonotest \
+"
+
+FILES_${PN}-dbg += " \
+  /opt/ofonotest/bin/.debug \
+  ${libdir}/libqofono/tests/.debug \
+"
+
+EXTRA_QMAKEVARS_PRE = " \
+  PREFIX=${prefix} \
+"
+
+do_configure_prepend() {
+  # Hack *.pro variables
+  find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_IMPORTS\],${QT_IMPORTS_DIR},g' '{}' ';'
+  find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_PREFIX\],$$INSTALL_ROOT$$PREFIX,g' '{}' ';'
+}
+
+do_install() {
+  cd ${S} && (INSTALL_ROOT=${D} oe_runmake install)
+
+  cd ${D}/${datadir}/qt4/mkspecs/features
+
+  sed -i -e '/DEPENDPATH.*/d' qofono.prf
+  sed -i -e '/INCLUDEPATH.*/d' qofono.prf
+  sed -i -e '/LIBS.*/d' qofono.prf
+
+  # to make it work with the SDK
+  echo 'DEPENDPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> qofono.prf
+  echo 'INCLUDEPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> qofono.prf
+  echo 'LIBS += -lqofono' >> qofono.prf
+}
-- 
1.8.3.1



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

* Re: [PATCH] ofono: libqofono: Added libqofono recipe
  2013-09-30 17:16 [PATCH] ofono: libqofono: Added libqofono recipe Felipe F. Tonello
@ 2013-10-04 14:21 ` Martin Jansa
  2013-10-08 21:03   ` Felipe Tonello
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2013-10-04 14:21 UTC (permalink / raw)
  To: openembedded-devel

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

On Mon, Sep 30, 2013 at 10:16:40AM -0700, Felipe F. Tonello wrote:
> From: "Felipe F. Tonello" <eu@felipetonello.com>
> 
> libqofono is a Qt library for oFono that provides easy to use Qt library and
> QML components to use oFono.
> 
> OBS: This recipe provides the Qt4 support only, but the library also works
> with Qt5.
> 
> Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
> ---
>  meta-oe/recipes-qt/libqofono/libqofono_0.4.bb | 88 +++++++++++++++++++++++++++
>  1 file changed, 88 insertions(+)
>  create mode 100644 meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
> 
> diff --git a/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb b/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
> new file mode 100644
> index 0000000..7c34db2
> --- /dev/null
> +++ b/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
> @@ -0,0 +1,88 @@
> +DESCRIPTION = "Qt Library for oFono"
> +HOMEPAGE = "https://github.com/nemomobile/libqofono"
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://README;endline=3;md5=8a15bce3921d1238d9a9f23828612947"
> +
> +SECTION = "qt/lib"
> +
> +PR = "r0"
> +
> +inherit qt4x11 pkgconfig
> +
> +RDEPENDS_${PN} = "ofono"
> +RDEPENDS_${PN}-plugin = "${PN}"
> +
> +PROVIDES += "${PN}-plugin"
> +
> +PACKAGES =+ "${PN}-plugin ${PN}-plugin-dbg ${PN}-test"
> +RRECOMMENDS_${PN} = "${PN}-plugin"
> +
> +BRANCH = "master"
> +TAG = "${PV}"
> +
> +SRC_URI = " \
> +  git://github.com/nemomobile/${PN}.git;branch=${BRANCH};tag=${TAG} \
> +"
> +
> +S = "${WORKDIR}/git"
> +
> +QT_IMPORTS_DIR = "${libdir}/qt4/imports"
> +PLUGINS_TARGET = "${QT_IMPORTS_DIR}/MeeGo/QOfono"
> +
> +FILES_${PN} = " \
> +  ${libdir}/libqofono${SOLIBS} \
> +"
> +
> +FILES_${PN}-dev = " \
> +  ${includedir}/qofono/* \
> +  ${includedir}/qofono/dbus/* \
> +  ${libdir}/libqofono${SOLIBSDEV} \
> +  ${libdir}/libqofono.prl \
> +  ${libdir}/pkgconfig/qofono.pc \
> +  ${datadir}/qt4/mkspecs/features/qofono.prf \
> +"
> +
> +FILES_${PN}-plugin = " \
> +  ${PLUGINS_TARGET}/qmldir \
> +  ${PLUGINS_TARGET}/lib*.so \
> +"
> +
> +FILES_${PN}-plugin-dbg = " \
> +  ${PLUGINS_TARGET}/.debug \
> +"
> +
> +FILES_${PN}-test = " \
> +  /opt/ofonotest/bin/ofonotest \
> +  /opt/ofonotest/qml/ofonotest \
> +  ${libdir}/libqofono/tests/tst_qofonotest \
> +"
> +
> +FILES_${PN}-dbg += " \
> +  /opt/ofonotest/bin/.debug \
> +  ${libdir}/libqofono/tests/.debug \
> +"
> +
> +EXTRA_QMAKEVARS_PRE = " \
> +  PREFIX=${prefix} \
> +"
> +
> +do_configure_prepend() {
> +  # Hack *.pro variables
> +  find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_IMPORTS\],${QT_IMPORTS_DIR},g' '{}' ';'
> +  find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_PREFIX\],$$INSTALL_ROOT$$PREFIX,g' '{}' ';'
> +}
> +
> +do_install() {
> +  cd ${S} && (INSTALL_ROOT=${D} oe_runmake install)
> +
> +  cd ${D}/${datadir}/qt4/mkspecs/features
> +
> +  sed -i -e '/DEPENDPATH.*/d' qofono.prf
> +  sed -i -e '/INCLUDEPATH.*/d' qofono.prf
> +  sed -i -e '/LIBS.*/d' qofono.prf
> +
> +  # to make it work with the SDK
> +  echo 'DEPENDPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> qofono.prf
> +  echo 'INCLUDEPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> qofono.prf
> +  echo 'LIBS += -lqofono' >> qofono.prf
> +}

It's trying to install in root, do you know why?

NOTE: recipe libqofono-0.4-r0: task do_install: Started
ERROR: Function failed: do_install (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/libqofono/0.4-r0/temp/log.do_install.3606)
ERROR: Logfile of failure stored in: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/libqofono/0.4-r0/temp/log.do_install.3606
Log data follows:
| DEBUG: Executing shell function do_install
| NOTE: make -j 8 install
| cd src/ && make -f Makefile install
| make[1]: Entering directory `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/libqofono/0.4-r0/git/src'
| Makefile:1096: warning: overriding commands for target `install_target'
| Makefile:1074: warning: ignoring old commands for target `install_target'
| Makefile:1108: warning: overriding commands for target `uninstall_target'
| Makefile:1086: warning: ignoring old commands for target `uninstall_target'
| install -m 755 -p "libqofono.so.0.1.0" "/usr/lib/libqofono.so.0.1.0"
| install -m 644 -p /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/libqofono/0.4-r0/git/src/qofono.prf /usr/share/qt4/mkspecs/features/
| mkdir: cannot create directory `/usr/include/qofono/': Permission denied
| make[1]: *** [install_headers] Error 1
| make[1]: *** Waiting for unfinished jobs....
| mkdir: cannot create directory `/usr/include/qofono': Permission denied
| make[1]: *** [install_dbusheaders] Error 1
| mkdir: cannot create directory `/usr/include/qofono': Permission denied
| make[1]: *** [install_xmlfiles] Error 1
| install: cannot create regular file `/usr/lib/libqofono.so.0.1.0': Permission denied
| make[1]: [install_target] Error 1 (ignored)
| echo --strip-unneeded "/usr/lib/libqofono.so.0.1.0"
| install: cannot create regular file `/usr/share/qt4/mkspecs/features/qofono.prf': Permission denied
| make[1]: [install_qtconfig] Error 1 (ignored)
| --strip-unneeded /usr/lib/libqofono.so.0.1.0
| ln -f -s "libqofono.so.0.1.0" "/usr/lib/libqofono.so"
| ln: failed to create symbolic link `/usr/lib/libqofono.so': Permission denied
| make[1]: [install_target] Error 1 (ignored)
| ln -f -s "libqofono.so.0.1.0" "/usr/lib/libqofono.so.0"
| ln: failed to create symbolic link `/usr/lib/libqofono.so.0': Permission denied
| make[1]: [install_target] Error 1 (ignored)
| ln -f -s "libqofono.so.0.1.0" "/usr/lib/libqofono.so.0.1"
| ln: failed to create symbolic link `/usr/lib/libqofono.so.0.1': Permission denied
| make[1]: [install_target] Error 1 (ignored)
| install -m 644 -p "libqofono.prl" "/usr/lib/libqofono.prl"
| install: cannot create regular file `/usr/lib/libqofono.prl': Permission denied
| make[1]: [install_target] Error 1 (ignored)
| install -m 644 -p "pkgconfig/qofono.pc" "/usr/lib/pkgconfig/qofono.pc"
| install: cannot create regular file `/usr/lib/pkgconfig/qofono.pc': Permission denied
| make[1]: [install_target] Error 1 (ignored)
| make[1]: Leaving directory `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/libqofono/0.4-r0/git/src'
| make: *** [sub-src-install_subtargets-ordered] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/libqofono/0.4-r0/temp/log.do_install.3606)
NOTE: recipe libqofono-0.4-r0: task do_install: Failed

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

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

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

* Re: [PATCH] ofono: libqofono: Added libqofono recipe
  2013-10-04 14:21 ` Martin Jansa
@ 2013-10-08 21:03   ` Felipe Tonello
  2013-10-08 21:20     ` Martin Jansa
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe Tonello @ 2013-10-08 21:03 UTC (permalink / raw)
  To: openembedded-devel

Hi Martin,

On Fri, Oct 4, 2013 at 7:21 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> On Mon, Sep 30, 2013 at 10:16:40AM -0700, Felipe F. Tonello wrote:
>> From: "Felipe F. Tonello" <eu@felipetonello.com>
>>
>> libqofono is a Qt library for oFono that provides easy to use Qt library and
>> QML components to use oFono.
>>
>> OBS: This recipe provides the Qt4 support only, but the library also works
>> with Qt5.
>>
>> Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
>> ---
>>  meta-oe/recipes-qt/libqofono/libqofono_0.4.bb | 88 +++++++++++++++++++++++++++
>>  1 file changed, 88 insertions(+)
>>  create mode 100644 meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
>>
>> diff --git a/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb b/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
>> new file mode 100644
>> index 0000000..7c34db2
>> --- /dev/null
>> +++ b/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
>> @@ -0,0 +1,88 @@
>> +DESCRIPTION = "Qt Library for oFono"
>> +HOMEPAGE = "https://github.com/nemomobile/libqofono"
>> +LICENSE = "Apache-2.0"
>> +LIC_FILES_CHKSUM = "file://README;endline=3;md5=8a15bce3921d1238d9a9f23828612947"
>> +
>> +SECTION = "qt/lib"
>> +
>> +PR = "r0"
>> +
>> +inherit qt4x11 pkgconfig
>> +
>> +RDEPENDS_${PN} = "ofono"
>> +RDEPENDS_${PN}-plugin = "${PN}"
>> +
>> +PROVIDES += "${PN}-plugin"
>> +
>> +PACKAGES =+ "${PN}-plugin ${PN}-plugin-dbg ${PN}-test"
>> +RRECOMMENDS_${PN} = "${PN}-plugin"
>> +
>> +BRANCH = "master"
>> +TAG = "${PV}"
>> +
>> +SRC_URI = " \
>> +  git://github.com/nemomobile/${PN}.git;branch=${BRANCH};tag=${TAG} \
>> +"
>> +
>> +S = "${WORKDIR}/git"
>> +
>> +QT_IMPORTS_DIR = "${libdir}/qt4/imports"
>> +PLUGINS_TARGET = "${QT_IMPORTS_DIR}/MeeGo/QOfono"
>> +
>> +FILES_${PN} = " \
>> +  ${libdir}/libqofono${SOLIBS} \
>> +"
>> +
>> +FILES_${PN}-dev = " \
>> +  ${includedir}/qofono/* \
>> +  ${includedir}/qofono/dbus/* \
>> +  ${libdir}/libqofono${SOLIBSDEV} \
>> +  ${libdir}/libqofono.prl \
>> +  ${libdir}/pkgconfig/qofono.pc \
>> +  ${datadir}/qt4/mkspecs/features/qofono.prf \
>> +"
>> +
>> +FILES_${PN}-plugin = " \
>> +  ${PLUGINS_TARGET}/qmldir \
>> +  ${PLUGINS_TARGET}/lib*.so \
>> +"
>> +
>> +FILES_${PN}-plugin-dbg = " \
>> +  ${PLUGINS_TARGET}/.debug \
>> +"
>> +
>> +FILES_${PN}-test = " \
>> +  /opt/ofonotest/bin/ofonotest \
>> +  /opt/ofonotest/qml/ofonotest \
>> +  ${libdir}/libqofono/tests/tst_qofonotest \
>> +"
>> +
>> +FILES_${PN}-dbg += " \
>> +  /opt/ofonotest/bin/.debug \
>> +  ${libdir}/libqofono/tests/.debug \
>> +"
>> +
>> +EXTRA_QMAKEVARS_PRE = " \
>> +  PREFIX=${prefix} \
>> +"
>> +
>> +do_configure_prepend() {
>> +  # Hack *.pro variables
>> +  find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_IMPORTS\],${QT_IMPORTS_DIR},g' '{}' ';'
>> +  find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_PREFIX\],$$INSTALL_ROOT$$PREFIX,g' '{}' ';'
>> +}
>> +
>> +do_install() {
>> +  cd ${S} && (INSTALL_ROOT=${D} oe_runmake install)
>> +
>> +  cd ${D}/${datadir}/qt4/mkspecs/features
>> +
>> +  sed -i -e '/DEPENDPATH.*/d' qofono.prf
>> +  sed -i -e '/INCLUDEPATH.*/d' qofono.prf
>> +  sed -i -e '/LIBS.*/d' qofono.prf
>> +
>> +  # to make it work with the SDK
>> +  echo 'DEPENDPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> qofono.prf
>> +  echo 'INCLUDEPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> qofono.prf
>> +  echo 'LIBS += -lqofono' >> qofono.prf
>> +}
>
> It's trying to install in root, do you know why?

Maybe because you are using dash. This recipe doesn't work in dash,
you can fix it just by removing the INSTALL_ROOT=${D} on the same line
as the make command. Just add export INSTALL_ROOT=${D} one line above.

If you want I can fix it, or you can.. I don't mind.

BR

Felipe Tonello


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

* Re: [PATCH] ofono: libqofono: Added libqofono recipe
  2013-10-08 21:03   ` Felipe Tonello
@ 2013-10-08 21:20     ` Martin Jansa
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2013-10-08 21:20 UTC (permalink / raw)
  To: openembedded-devel

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

On Tue, Oct 08, 2013 at 02:03:33PM -0700, Felipe Tonello wrote:
> Hi Martin,
> 
> On Fri, Oct 4, 2013 at 7:21 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> > On Mon, Sep 30, 2013 at 10:16:40AM -0700, Felipe F. Tonello wrote:
> >> From: "Felipe F. Tonello" <eu@felipetonello.com>
> >>
> >> libqofono is a Qt library for oFono that provides easy to use Qt library and
> >> QML components to use oFono.
> >>
> >> OBS: This recipe provides the Qt4 support only, but the library also works
> >> with Qt5.
> >>
> >> Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
> >> ---
> >>  meta-oe/recipes-qt/libqofono/libqofono_0.4.bb | 88 +++++++++++++++++++++++++++
> >>  1 file changed, 88 insertions(+)
> >>  create mode 100644 meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
> >>
> >> diff --git a/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb b/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
> >> new file mode 100644
> >> index 0000000..7c34db2
> >> --- /dev/null
> >> +++ b/meta-oe/recipes-qt/libqofono/libqofono_0.4.bb
> >> @@ -0,0 +1,88 @@
> >> +DESCRIPTION = "Qt Library for oFono"
> >> +HOMEPAGE = "https://github.com/nemomobile/libqofono"
> >> +LICENSE = "Apache-2.0"
> >> +LIC_FILES_CHKSUM = "file://README;endline=3;md5=8a15bce3921d1238d9a9f23828612947"
> >> +
> >> +SECTION = "qt/lib"
> >> +
> >> +PR = "r0"
> >> +
> >> +inherit qt4x11 pkgconfig
> >> +
> >> +RDEPENDS_${PN} = "ofono"
> >> +RDEPENDS_${PN}-plugin = "${PN}"
> >> +
> >> +PROVIDES += "${PN}-plugin"
> >> +
> >> +PACKAGES =+ "${PN}-plugin ${PN}-plugin-dbg ${PN}-test"
> >> +RRECOMMENDS_${PN} = "${PN}-plugin"
> >> +
> >> +BRANCH = "master"
> >> +TAG = "${PV}"
> >> +
> >> +SRC_URI = " \
> >> +  git://github.com/nemomobile/${PN}.git;branch=${BRANCH};tag=${TAG} \
> >> +"
> >> +
> >> +S = "${WORKDIR}/git"
> >> +
> >> +QT_IMPORTS_DIR = "${libdir}/qt4/imports"
> >> +PLUGINS_TARGET = "${QT_IMPORTS_DIR}/MeeGo/QOfono"
> >> +
> >> +FILES_${PN} = " \
> >> +  ${libdir}/libqofono${SOLIBS} \
> >> +"
> >> +
> >> +FILES_${PN}-dev = " \
> >> +  ${includedir}/qofono/* \
> >> +  ${includedir}/qofono/dbus/* \
> >> +  ${libdir}/libqofono${SOLIBSDEV} \
> >> +  ${libdir}/libqofono.prl \
> >> +  ${libdir}/pkgconfig/qofono.pc \
> >> +  ${datadir}/qt4/mkspecs/features/qofono.prf \
> >> +"
> >> +
> >> +FILES_${PN}-plugin = " \
> >> +  ${PLUGINS_TARGET}/qmldir \
> >> +  ${PLUGINS_TARGET}/lib*.so \
> >> +"
> >> +
> >> +FILES_${PN}-plugin-dbg = " \
> >> +  ${PLUGINS_TARGET}/.debug \
> >> +"
> >> +
> >> +FILES_${PN}-test = " \
> >> +  /opt/ofonotest/bin/ofonotest \
> >> +  /opt/ofonotest/qml/ofonotest \
> >> +  ${libdir}/libqofono/tests/tst_qofonotest \
> >> +"
> >> +
> >> +FILES_${PN}-dbg += " \
> >> +  /opt/ofonotest/bin/.debug \
> >> +  ${libdir}/libqofono/tests/.debug \
> >> +"
> >> +
> >> +EXTRA_QMAKEVARS_PRE = " \
> >> +  PREFIX=${prefix} \
> >> +"
> >> +
> >> +do_configure_prepend() {
> >> +  # Hack *.pro variables
> >> +  find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_IMPORTS\],${QT_IMPORTS_DIR},g' '{}' ';'
> >> +  find . -iname '*.pro' -exec sed -i -e 's,$$\[QT_INSTALL_PREFIX\],$$INSTALL_ROOT$$PREFIX,g' '{}' ';'
> >> +}
> >> +
> >> +do_install() {
> >> +  cd ${S} && (INSTALL_ROOT=${D} oe_runmake install)
> >> +
> >> +  cd ${D}/${datadir}/qt4/mkspecs/features
> >> +
> >> +  sed -i -e '/DEPENDPATH.*/d' qofono.prf
> >> +  sed -i -e '/INCLUDEPATH.*/d' qofono.prf
> >> +  sed -i -e '/LIBS.*/d' qofono.prf
> >> +
> >> +  # to make it work with the SDK
> >> +  echo 'DEPENDPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> qofono.prf
> >> +  echo 'INCLUDEPATH += $(OE_QMAKE_INCDIR_QT)/../qofono' >> qofono.prf
> >> +  echo 'LIBS += -lqofono' >> qofono.prf
> >> +}
> >
> > It's trying to install in root, do you know why?
> 
> Maybe because you are using dash. This recipe doesn't work in dash,
> you can fix it just by removing the INSTALL_ROOT=${D} on the same line
> as the make command. Just add export INSTALL_ROOT=${D} one line above.
> 
> If you want I can fix it, or you can.. I don't mind.

Ah right, I'm using dash on jenkins slave to catch such issues :)

I'll fix it, because it's faster for me to amend commit than fetching
new one from patchwork and squashing it, thanks.

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

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

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

end of thread, other threads:[~2013-10-08 21:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-30 17:16 [PATCH] ofono: libqofono: Added libqofono recipe Felipe F. Tonello
2013-10-04 14:21 ` Martin Jansa
2013-10-08 21:03   ` Felipe Tonello
2013-10-08 21:20     ` Martin Jansa

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.