Skip to contentSkip to conversation

qt-tstat: fix Makefile to support build outside of source, i.e. ${S} != ${B}

PATCH In review Denys Dmytriyenko 4 participants 18 messages Oct 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 qt-tstat: fix Makefile to support build outside of source, i.e. ${S} != ${B}

From: Denys Dmytriyenko <[email protected]>

---
 ...file.build-for-when-build-dir-is-not-the-.patch | 35 ++++++++++++++++++++++
 .../recipes-qt/qt-apps/qt-tstat_2.0.bb             |  9 ++++--
 2 files changed, 41 insertions(+), 3 deletions(-)
 create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update-Makefile.build-for-when-build-dir-is-not-the-.patch
meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update-Makefile.build-for-when-build-dir-is-not-the-.patch new file +35 -0
new file mode 100644
index 0000000..3ceb74a
@@ -0,0 +1,35 @@
+From 00666002c48ebbb21e73eb9fbe90615cef87cc11 Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:53:28 -0400
+Subject: [PATCH] Update Makefile.build for when build dir is not the same as
+ source dir
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ Makefile.build | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.build b/Makefile.build
+index 18892d4..72b8e34 100644
+--- a/Makefile.build
++++ b/Makefile.build
+@@ -2,6 +2,7 @@
+ 
+ ENV_SETUP ?= ../../linux-devkit/environment-setup
+ DESTDIR ?= 
++BUILDDIR ?= .
+ PLATFORM ?= 
+ MATRIX_APP_DIR ?= /usr/share/matrix-gui-2.0/apps/
+ PLATFORM_DEFINE ?= "Platform_${PLATFORM}"
+@@ -28,7 +29,7 @@ clean : ${SOURCES} qmake
+ 
+ install_common:
+ 	@install -d ${DESTDIR}/usr/bin 
+-	@install -m 0755 ThermostatDemo ${DESTDIR}/usr/bin/ThermostatDemo
++	@install -m 0755 ${BUILDDIR}/ThermostatDemo ${DESTDIR}/usr/bin/ThermostatDemo
+ 	@install -d ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
+ 	@cp -rf matrix-files/*  ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
+ 
+-- 
+1.8.3.2
+
meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +6 -3
index 19c29fb..198ef1f 100644
@@ -10,12 +10,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=93a105adb99011afa5baee932b560714 \
 
 require recipes-core/matrix/matrix-gui-paths.inc
 
-PR = "r3"
+PR = "r4"
 
 BRANCH ?= "master"
 SRCREV = "27e033a0ac59928cc3acbb45f4d9bc2101fcf024"
 
-SRC_URI = "git://gitorious.org/thermostat-demo/thermostat-demo.git;protocol=git"
+SRC_URI = " \
+	git://gitorious.org/thermostat-demo/thermostat-demo.git;protocol=git \
+	file://0001-Update-Makefile.build-for-when-build-dir-is-not-the-.patch \
+"
 
 S = "${WORKDIR}/git/"
 
@@ -23,7 +26,7 @@ inherit qt4e
 
 # use the make targets already created in the Makefile.build files
 do_install() {
-	make -f Makefile.build DESTDIR=${D} install_common
+	cd ${S} && make -f Makefile.build DESTDIR=${D} BUILDDIR=${B} install_common
 }
 
 PACKAGES += "matrix-gui-thermostat-demo"
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 2/5 qt-provider: expand with extra dependency variables for qtsvg and qtscript

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/classes/qt-provider.bbclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-arago-distro/classes/qt-provider.bbclass +5 -1
index 444c76a..c0f7184 100644
@@ -11,9 +11,13 @@ QT_PROVIDER ?= "qt4e"
 
 inherit ${QT_PROVIDER}
 
-# Build-time dependencies
+# Build-time dependencies - those are now separate modules in Qt5 and
+# require separate dependencies, unlike Qt4 that provides everything
+# in a single qt4-embedded/qt4-x11 recipe
 QT_DEPENDS_BASE = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtbase', 'qt4-embedded', d)}"
 QT_DEPENDS_WEBKIT = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtwebkit', '', d)}"
+QT_DEPENDS_SVG = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtsvg', '', d)}"
+QT_DEPENDS_SCRIPT = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtscript', '', d)}"
 
 # Run-time dependencies
 QT_RDEPENDS_FONTS = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtbase-fonts', 'qt4-embedded-fonts', d)}"
Signature · 1 line
1.8.3.2
Acked-by on v1 2/5
#2 lore raw

Re: [PATCH 2/5] qt-provider: expand with extra dependency variables for qtsvg and qtscript

Quoted 49 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Monday, October 14, 2013 10:22 PM
To: [email protected]
Subject: [meta-arago] [PATCH 2/5] qt-provider: expand with extra dependency variables for qtsvg and qtscript

From: Denys Dmytriyenko <[email protected]>

---
meta-arago-distro/classes/qt-provider.bbclass | 6 +++++-

1 file changed, 5 insertions(+), 1 deletion(-)
meta- renamed from meta-arago-distro/classes/qt-provider.bbclass +0 -0

arago-distro/classes/qt-provider.bbclass
index 444c76a..c0f7184 100644

meta-arago-distro/classes/qt-provider.bbclass +1 -1
@@ -11,9 +11,13 @@ QT_PROVIDER ?= "qt4e"
 
 inherit ${QT_PROVIDER}
 
-# Build-time dependencies
+# Build-time dependencies - those are now separate modules in Qt5

and
+# require separate dependencies, unlike Qt4 that provides everything
+# in a single qt4-embedded/qt4-x11 recipe QT_DEPENDS_BASE = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtbase', 'qt4-embedded', d)}"
QT_DEPENDS_WEBKIT = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtwebkit', '', d)}"
+QT_DEPENDS_SVG = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtsvg', '', d)}"
+QT_DEPENDS_SCRIPT = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtscript', '', d)}"

# Run-time dependencies
QT_RDEPENDS_FONTS = "${@base_conditional('QT_PROVIDER', 'qt5', 'qtbase-fonts', 'qt4-embedded-fonts', d)}"
--
1.8.3.2

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#3 lore raw

PATCH 3/5 qtbase: update bbappend to disable eglfs/gles for now

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Until Graphics SDK gets updated to work with 3.12 kernel.

Note: this effectively disables QtWebKit-based apps like matrix-browser, as that depends on QtDeclarative and hence QtQuick, which requires GLES.

---
 meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +1 -1
index eaf1433..d35a948 100644
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PACKAGECONFIG_GL = "gles2 icu linuxfb"
+PACKAGECONFIG_GL = "icu linuxfb"
 
 SRC_URI += " \
 	file://0001-qeglfswindow.cpp.patch \
Signature · 1 line
1.8.3.2
#4 lore raw

Re: [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 6 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Until Graphics SDK gets updated to work with 3.12 kernel.

Note: this effectively disables QtWebKit-based apps like matrix-browser, as that depends on QtDeclarative and hence QtQuick, which requires GLES.

BTW, I'll be adding conditional setting of this Qt5 PACKAGECONFIG in the global distro config based on "sgx" machine flag...

Quoted 20 lines
---
 meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +1 -1
index eaf1433..d35a948 100644
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PACKAGECONFIG_GL = "gles2 icu linuxfb"
+PACKAGECONFIG_GL = "icu linuxfb"
 
 SRC_URI += " \
 	file://0001-qeglfswindow.cpp.patch \
Signature · 1 line
1.8.3.2
#5 lore raw

Re: [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 10 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Monday, October 14, 2013 10:27 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

On Mon, Oct 14, 2013 at 11:21:55PM -0400, Denys Dmytriyenko wrote:

Quoted 8 lines
Quoted 5 lines

From: Denys Dmytriyenko <[email protected]>

Until Graphics SDK gets updated to work with 3.12 kernel.

Note: this effectively disables QtWebKit-based apps like matrix-

browser, as

Quoted 1 line

that depends on QtDeclarative and hence QtQuick, which requires

GLES.

Hold on. So QtWebKit won't work without GLES? If so then we still have a problem with Qt5 support by default since not all devices have an SGX right?

Quoted 32 lines

BTW, I'll be adding conditional setting of this Qt5 PACKAGECONFIG in the
global distro config based on "sgx" machine flag...

Review

Quoted 6 lines
---
 meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

qt/qt5/qtbase_5.1.1.bbappend b/meta-arago-distro/recipes- qt/qt5/qtbase_5.1.1.bbappend

Quoted 12 lines

index eaf1433..d35a948 100644

meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +1 -2
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PACKAGECONFIG_GL = "gles2 icu linuxfb"
+PACKAGECONFIG_GL = "icu linuxfb"
 
 SRC_URI += " \
 	file://0001-qeglfswindow.cpp.patch \
--
Quoted 2 lines

1.8.3.2

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#6 lore raw

Re: [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 25 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, October 15, 2013 10:42 AM
To: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Monday, October 14, 2013 10:27 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

On Mon, Oct 14, 2013 at 11:21:55PM -0400, Denys Dmytriyenko

Quoted 5 lines · wrote:
Quoted 5 lines

From: Denys Dmytriyenko <[email protected]>

Until Graphics SDK gets updated to work with 3.12 kernel.

Note: this effectively disables QtWebKit-based apps like

Quoted 8 lines

matrix-

Quoted 3 lines

browser, as

Quoted 1 line

that depends on QtDeclarative and hence QtQuick, which requires

GLES.

Hold on. So QtWebKit won't work without GLES? If so then we still have a problem with Qt5 support by default since not all devices have an SGX right?

Or was this dependency always there?

Quoted 37 lines
Quoted 24 lines

BTW, I'll be adding conditional setting of this Qt5 PACKAGECONFIG in the
global distro config based on "sgx" machine flag...

Review

Quoted 6 lines
---
 meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

qt/qt5/qtbase_5.1.1.bbappend b/meta-arago-distro/recipes- qt/qt5/qtbase_5.1.1.bbappend

Quoted 9 lines

index eaf1433..d35a948 100644

meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +1 -1
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PACKAGECONFIG_GL = "gles2 icu linuxfb"
+PACKAGECONFIG_GL = "icu linuxfb"
 
Quoted 9 lines
Quoted 5 lines
meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +0 -1
 SRC_URI += " \
 	file://0001-qeglfswindow.cpp.patch \
--

1.8.3.2

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#7 lore raw

Re: [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 27 lines · Chase
Quoted 27 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, October 15, 2013 10:42 AM
To: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Monday, October 14, 2013 10:27 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

On Mon, Oct 14, 2013 at 11:21:55PM -0400, Denys Dmytriyenko

Quoted 5 lines · wrote:
Quoted 5 lines

From: Denys Dmytriyenko <[email protected]>

Until Graphics SDK gets updated to work with 3.12 kernel.

Note: this effectively disables QtWebKit-based apps like

matrix-

Quoted 1 line

browser, as

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line

that depends on QtDeclarative and hence QtQuick, which requires

GLES.

Hold on. So QtWebKit won't work without GLES? If so then we still have a problem with Qt5 support by default since not all devices have an SGX right?

Or was this dependency always there?

Right, that's what we've been discussing with Prabu. Only plain QtWidgets can work w/o any GL now. QtQuick/QtDeclarative is where GL dependency comes from.

Also, in future versions of Qt5 they are moving away from WebKit to Chromium as a web renderer, so it will bring a whole new level of pain...

Quoted 35 lines
Quoted 35 lines
Quoted 22 lines

BTW, I'll be adding conditional setting of this Qt5 PACKAGECONFIG in the
global distro config based on "sgx" machine flag...

Review

Quoted 6 lines
---
 meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

qt/qt5/qtbase_5.1.1.bbappend b/meta-arago-distro/recipes- qt/qt5/qtbase_5.1.1.bbappend

Quoted 9 lines

index eaf1433..d35a948 100644

meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +1 -1
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PACKAGECONFIG_GL = "gles2 icu linuxfb"
+PACKAGECONFIG_GL = "icu linuxfb"
 
Quoted 9 lines
Quoted 5 lines
meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +0 -1
 SRC_URI += " \
 	file://0001-qeglfswindow.cpp.patch \
--

1.8.3.2

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#8 lore raw

Re: [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

In reply to Maupin, Chase
Quoted 43 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, October 15, 2013 10:43 AM
To: Maupin, Chase; Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 32 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, October 15, 2013 10:42 AM
To: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Monday, October 14, 2013 10:27 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

On Mon, Oct 14, 2013 at 11:21:55PM -0400, Denys Dmytriyenko

Quoted 5 lines · wrote:
Quoted 5 lines

From: Denys Dmytriyenko <[email protected]>

Until Graphics SDK gets updated to work with 3.12 kernel.

Note: this effectively disables QtWebKit-based apps like

matrix-

Quoted 3 lines

browser, as

Quoted 1 line

that depends on QtDeclarative and hence QtQuick, which requires

GLES.

Hold on. So QtWebKit won't work without GLES? If so then we still have a problem with Qt5 support by default since not all devices have an SGX right?

[Franklin] Agreed

Quoted 2 lines

Or was this dependency always there?

[Franklin] No. Good example is AM18x.

I'm curious if there is a option to disable gles support for Webkit 2 or after looking at this link (http://qt-project.org/doc/qt-5.0/qtwebkitexamples/qtwebkitexamples-index.html) if there is an option to use Webkit 1 which shouldn't have this dependency.

Quoted 41 lines
Quoted 33 lines
Quoted 24 lines

BTW, I'll be adding conditional setting of this Qt5 PACKAGECONFIG in the global distro config based on "sgx" machine flag...

Review

Quoted 6 lines
---
 meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

qt/qt5/qtbase_5.1.1.bbappend b/meta-arago-distro/recipes- qt/qt5/qtbase_5.1.1.bbappend

Quoted 9 lines

index eaf1433..d35a948 100644

meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +1 -1
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PACKAGECONFIG_GL = "gles2 icu linuxfb"
+PACKAGECONFIG_GL = "icu linuxfb"
 
Quoted 9 lines
Quoted 5 lines
meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +0 -1
 SRC_URI += " \
 	file://0001-qeglfswindow.cpp.patch \
--

1.8.3.2

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#9 lore raw

Re: [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 45 lines · Franklin
Quoted 43 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, October 15, 2013 10:43 AM
To: Maupin, Chase; Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 32 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Tuesday, October 15, 2013 10:42 AM
To: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Monday, October 14, 2013 10:27 PM
To: [email protected]
Subject: Re: [meta-arago] [PATCH 3/5] qtbase: update bbappend to disable eglfs/gles for now

On Mon, Oct 14, 2013 at 11:21:55PM -0400, Denys Dmytriyenko

Quoted 5 lines · wrote:
Quoted 5 lines

From: Denys Dmytriyenko <[email protected]>

Until Graphics SDK gets updated to work with 3.12 kernel.

Note: this effectively disables QtWebKit-based apps like

matrix-

Quoted 3 lines

browser, as

Quoted 1 line

that depends on QtDeclarative and hence QtQuick, which requires

GLES.

Hold on. So QtWebKit won't work without GLES? If so then we still have a problem with Qt5 support by default since not all devices have an SGX right?

[Franklin] Agreed

Quoted 1 line
Quoted 7 lines
Quoted 1 line

Or was this dependency always there?

[Franklin] No. Good example is AM18x.

I'm curious if there is a option to disable gles support for Webkit 2 or after looking at this link
(http://qt-project.org/doc/qt-5.0/qtwebkitexamples/qtwebkitexamples-index.html)
if there is an option to use Webkit 1 which shouldn't have this dependency.

I don't think it can be built separately. QtWebKit handles both WebKit1 and WebKit2. But the problem comes not from QtWebKit, but rather from QtDeclarative/QtQuick and there's a bug report for that:

https://bugreports.qt-project.org/browse/QTBUG-32587

Quoted 38 lines
Quoted 38 lines
Quoted 30 lines
Quoted 21 lines

BTW, I'll be adding conditional setting of this Qt5 PACKAGECONFIG in the global distro config based on "sgx" machine flag...

Review

Quoted 6 lines
---
 meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

qt/qt5/qtbase_5.1.1.bbappend b/meta-arago-distro/recipes- qt/qt5/qtbase_5.1.1.bbappend

Quoted 9 lines

index eaf1433..d35a948 100644

meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +1 -1
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PACKAGECONFIG_GL = "gles2 icu linuxfb"
+PACKAGECONFIG_GL = "icu linuxfb"
 
Quoted 9 lines
Quoted 5 lines
meta-arago-distro/recipes-qt/qt5/qtbase_5.1.1.bbappend +0 -1
 SRC_URI += " \
 	file://0001-qeglfswindow.cpp.patch \
--

1.8.3.2

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#10 lore raw

PATCH 4/5 qt-tstat: update recipe to be Qt4 and Qt5 compatible

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Uses qt-provider class to build against either Qt4 or Qt5 depending on global distro variable QT_PROVIDER.

---
 ...ui-with-QtWidgets-per-Qt5-migration-guide.patch | 232 +++++++++++++++++++++
 ...mAscii-toAscii-with-fromLatin1-toLatin1-p.patch |  71 +++++++
 .../recipes-qt/qt-apps/qt-tstat_2.0.bb             |  11 +-
 3 files changed, 311 insertions(+), 3 deletions(-)
 create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace-QtGui-with-QtWidgets-per-Qt5-migration-guide.patch
 create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace-fromAscii-toAscii-with-fromLatin1-toLatin1-p.patch
meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace-QtGui-with-QtWidgets-per-Qt5-migration-guide.patch new file +232 -0
new file mode 100644
index 0000000..d9bbba9
@@ -0,0 +1,232 @@
+From 90f70d188b5893fd86aab4f90ac96c9a69ae4e88 Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:35:30 -0400
+Subject: [PATCH] Replace QtGui with QtWidgets per Qt5 migration guide
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ awayscreen.h          | 2 +-
+ keyboard/keyboard.cpp | 2 +-
+ keyboard/keyboard.h   | 2 +-
+ main.cpp              | 2 +-
+ mainwindow.cpp        | 2 +-
+ mainwindow.h          | 2 +-
+ optionswidget.h       | 2 +-
+ schedulepoint.cpp     | 2 +-
+ schedulepoint.h       | 2 +-
+ schedulescreen.h      | 2 +-
+ settingscreen.cpp     | 2 +-
+ settingscreen.h       | 2 +-
+ thermostatdemo.h      | 2 +-
+ thermostatwidget.h    | 2 +-
+ weatherdatawidget.cpp | 2 +-
+ weatherwidget.h       | 2 +-
+ 16 files changed, 16 insertions(+), 16 deletions(-)
+
+diff --git a/awayscreen.h b/awayscreen.h
+index 2a2b040..b8827b9 100644
+--- a/awayscreen.h
++++ b/awayscreen.h
+@@ -1,7 +1,7 @@
+ #ifndef AWAYSCREEN_H
+ #define AWAYSCREEN_H
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ 
+ class GlobalSettings;
+ 
+diff --git a/keyboard/keyboard.cpp b/keyboard/keyboard.cpp
+index 9261031..0d14530 100644
+--- a/keyboard/keyboard.cpp
++++ b/keyboard/keyboard.cpp
+@@ -37,7 +37,7 @@
+ 
+ #include "keyboard.h"
+ #include "ui_keyboard.h"
+-#include <QtGui>
++#include <QtWidgets>
+ 
+ Keyboard::Keyboard(QWidget *parent) :
+     QWidget(parent),
+diff --git a/keyboard/keyboard.h b/keyboard/keyboard.h
+index 2d5c584..960915c 100644
+--- a/keyboard/keyboard.h
++++ b/keyboard/keyboard.h
+@@ -2,7 +2,7 @@
+ #define KEYBOARD_H
+ 
+ #include <QWidget>
+-#include <QtGui>
++#include <QtWidgets>
+ namespace Ui {
+ class Keyboard;
+ }
+diff --git a/main.cpp b/main.cpp
+index 18234c9..8e0df39 100644
+--- a/main.cpp
++++ b/main.cpp
+@@ -1,4 +1,4 @@
+-#include <QtGui>
++#include <QtWidgets>
+ 
+ #include "mainwindow.h"
+ #include "weatherwidget.h"
+diff --git a/mainwindow.cpp b/mainwindow.cpp
+index b3f8994..d8a0a57 100644
+--- a/mainwindow.cpp
++++ b/mainwindow.cpp
+@@ -9,7 +9,7 @@
+ #include "weatherdata.h"
+ #include "utilities.h"
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ 
+ #include <QtDebug>
+ 
+diff --git a/mainwindow.h b/mainwindow.h
+index f59d992..1d46fba 100644
+--- a/mainwindow.h
++++ b/mainwindow.h
+@@ -1,7 +1,7 @@
+ #ifndef MAINWINDOW_H
+ #define MAINWINDOW_H
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ #include "webdata.h"
+ 
+ 
+diff --git a/optionswidget.h b/optionswidget.h
+index b321280..c797ac2 100644
+--- a/optionswidget.h
++++ b/optionswidget.h
+@@ -1,7 +1,7 @@
+ #ifndef OPTIONSWIDGET_H
+ #define OPTIONSWIDGET_H
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ #include "awayscreen.h"
+ #include "schedulescreen.h"
+ #include "settingscreen.h"
+diff --git a/schedulepoint.cpp b/schedulepoint.cpp
+index cdaba40..99c7b18 100644
+--- a/schedulepoint.cpp
++++ b/schedulepoint.cpp
+@@ -4,7 +4,7 @@
+ #include "globalsettings.h"
+ #include "utilities.h"
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ 
+ 
+ #define MAXTEMP 100
+diff --git a/schedulepoint.h b/schedulepoint.h
+index 1f6d662..38d6acd 100644
+--- a/schedulepoint.h
++++ b/schedulepoint.h
+@@ -1,7 +1,7 @@
+ #ifndef SCHEDULEPOINT_H
+ #define SCHEDULEPOINT_H
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ #include <QApplication>
+ #include <QColor>
+ #include <QGraphicsItem>
+diff --git a/schedulescreen.h b/schedulescreen.h
+index 9bc0897..c424a3f 100644
+--- a/schedulescreen.h
++++ b/schedulescreen.h
+@@ -1,7 +1,7 @@
+ #ifndef SCHEDULESCREEN_H
+ #define SCHEDULESCREEN_H
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ #include "schedulepoint.h"
+ 
+ class GlobalSettings;
+diff --git a/settingscreen.cpp b/settingscreen.cpp
+index 2f19ae4..62b73b1 100644
+--- a/settingscreen.cpp
++++ b/settingscreen.cpp
+@@ -4,7 +4,7 @@
+ #include "qkeyboardlineedit.h"
+ #include "webdataengine/openweathermapdataengine.h"
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ 
+ #define MAXIMUM_CONTENT_HEIGHT 450
+ #define MAXIMUM_CONTENT_WIDTH 800
+diff --git a/settingscreen.h b/settingscreen.h
+index 4edf175..172dbe2 100644
+--- a/settingscreen.h
++++ b/settingscreen.h
+@@ -1,7 +1,7 @@
+ #ifndef SETTINGSCREEN_H
+ #define SETTINGSCREEN_H
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ 
+ class GlobalSettings;
+ class QKeyboardLineEdit;
+diff --git a/thermostatdemo.h b/thermostatdemo.h
+index 7223f0a..ca7b27e 100644
+--- a/thermostatdemo.h
++++ b/thermostatdemo.h
+@@ -1,7 +1,7 @@
+ #ifndef THERMOSTATDEMO_H
+ #define THERMOSTATDEMO_H
+ 
+-#include <QtGui/QMainWindow>
++#include <QtWidgets/QMainWindow>
+ 
+ class ThermostatDemo : public QMainWindow
+ {
+diff --git a/thermostatwidget.h b/thermostatwidget.h
+index ba8199b..bbe97ef 100644
+--- a/thermostatwidget.h
++++ b/thermostatwidget.h
+@@ -1,7 +1,7 @@
+ #ifndef THERMOSTATWIDGET_H
+ #define THERMOSTATWIDGET_H
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ 
+ class GlobalSettings;
+ 
+diff --git a/weatherdatawidget.cpp b/weatherdatawidget.cpp
+index 33e8185..20e8fe8 100644
+--- a/weatherdatawidget.cpp
++++ b/weatherdatawidget.cpp
+@@ -1,6 +1,6 @@
+ #include "weatherdatawidget.h"
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ #include "globalsettings.h"
+ #include "weatherdata.h"
+ #include "utilities.h"
+diff --git a/weatherwidget.h b/weatherwidget.h
+index bffb368..40a7916 100644
+--- a/weatherwidget.h
++++ b/weatherwidget.h
+@@ -1,7 +1,7 @@
+ #ifndef WEATHERWIDGET_H
+ #define WEATHERWIDGET_H
+ 
+-#include <QtGui>
++#include <QtWidgets>
+ 
+ #include <QtSvg/QSvgWidget>
+ 
+-- 
+1.8.3.2
+
meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace-fromAscii-toAscii-with-fromLatin1-toLatin1-p.patch new file +71 -0

71 lines not on this page · raw message

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +8 -3
index 198ef1f..8035537 100644
@@ -10,7 +10,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=93a105adb99011afa5baee932b560714 \
 
 require recipes-core/matrix/matrix-gui-paths.inc
 
-PR = "r4"
+inherit qt-provider
+
+PR = "r5"
+
+DEPENDS += "${QT_DEPENDS_SVG} ${QT_DEPENDS_SCRIPT}"
 
 BRANCH ?= "master"
 SRCREV = "27e033a0ac59928cc3acbb45f4d9bc2101fcf024"
@@ -20,9 +24,10 @@ SRC_URI = " \
 	file://0001-Update-Makefile.build-for-when-build-dir-is-not-the-.patch \
 "
 
-S = "${WORKDIR}/git/"
+SRC_URI += "${@base_conditional('QT_PROVIDER', 'qt5', 'file://0002-Replace-QtGui-with-QtWidgets-per-Qt5-migration-guide.patch \
+	file://0003-Replace-fromAscii-toAscii-with-fromLatin1-toLatin1-p.patch', '', d)}"
 
-inherit qt4e
+S = "${WORKDIR}/git/"
 
 # use the make targets already created in the Makefile.build files
 do_install() {
Signature · 1 line
1.8.3.2
Acked-by on v1 4/5
#11 lore raw

Re: [PATCH 4/5] qt-tstat: update recipe to be Qt4 and Qt5 compatible

Quoted 424 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Monday, October 14, 2013 10:22 PM
To: [email protected]
Subject: [meta-arago] [PATCH 4/5] qt-tstat: update recipe to be Qt4 and Qt5 compatible

From: Denys Dmytriyenko <[email protected]>

Uses qt-provider class to build against either Qt4 or Qt5 depending on global
distro variable QT_PROVIDER.

---
...ui-with-QtWidgets-per-Qt5-migration-guide.patch | 232
+++++++++++++++++++++

...mAscii-toAscii-with-fromLatin1-toLatin1-p.patch |  71 +++++++
.../recipes-qt/qt-apps/qt-tstat_2.0.bb             |  11 +-
3 files changed, 311 insertions(+), 3 deletions(-)

create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt- tstat/0002-Replace-QtGui-with-QtWidgets-per-Qt5-migration- guide.patch
create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt- tstat/0003-Replace-fromAscii-toAscii-with-fromLatin1-toLatin1- p.patch

(quoted diff) +0 -0

Replace-QtGui-with-QtWidgets-per-Qt5-migration-guide.patch b/meta- arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace-QtGui-with- QtWidgets-per-Qt5-migration-guide.patch
new file mode 100644
index 0000000..d9bbba9

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace- new file +0 -0

QtGui-with-QtWidgets-per-Qt5-migration-guide.patch

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace- new file +1 -0
@@ -0,0 +1,232 @@
+From 90f70d188b5893fd86aab4f90ac96c9a69ae4e88 Mon Sep 17 00:00:00

2001

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace- new file +3 -0
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:35:30 -0400
+Subject: [PATCH] Replace QtGui with QtWidgets per Qt5 migration

guide

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace- new file +228 -0
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ awayscreen.h          | 2 +-
+ keyboard/keyboard.cpp | 2 +-
+ keyboard/keyboard.h   | 2 +-
+ main.cpp              | 2 +-
+ mainwindow.cpp        | 2 +-
+ mainwindow.h          | 2 +-
+ optionswidget.h       | 2 +-
+ schedulepoint.cpp     | 2 +-
+ schedulepoint.h       | 2 +-
+ schedulescreen.h      | 2 +-
+ settingscreen.cpp     | 2 +-
+ settingscreen.h       | 2 +-
+ thermostatdemo.h      | 2 +-
+ thermostatwidget.h    | 2 +-
+ weatherdatawidget.cpp | 2 +-
+ weatherwidget.h       | 2 +-
+ 16 files changed, 16 insertions(+), 16 deletions(-)
+
+diff --git a/awayscreen.h b/awayscreen.h
+index 2a2b040..b8827b9 100644
+--- a/awayscreen.h
++++ b/awayscreen.h
+@@ -1,7 +1,7 @@
+ #ifndef AWAYSCREEN_H
+ #define AWAYSCREEN_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ class GlobalSettings;
+
+diff --git a/keyboard/keyboard.cpp b/keyboard/keyboard.cpp
+index 9261031..0d14530 100644
+--- a/keyboard/keyboard.cpp
++++ b/keyboard/keyboard.cpp
+@@ -37,7 +37,7 @@
+
+ #include "keyboard.h"
+ #include "ui_keyboard.h"
+-#include <QtGui>
++#include <QtWidgets>
+
+ Keyboard::Keyboard(QWidget *parent) :
+     QWidget(parent),
+diff --git a/keyboard/keyboard.h b/keyboard/keyboard.h
+index 2d5c584..960915c 100644
+--- a/keyboard/keyboard.h
++++ b/keyboard/keyboard.h
+@@ -2,7 +2,7 @@
+ #define KEYBOARD_H
+
+ #include <QWidget>
+-#include <QtGui>
++#include <QtWidgets>
+ namespace Ui {
+ class Keyboard;
+ }
+diff --git a/main.cpp b/main.cpp
+index 18234c9..8e0df39 100644
+--- a/main.cpp
++++ b/main.cpp
+@@ -1,4 +1,4 @@
+-#include <QtGui>
++#include <QtWidgets>
+
+ #include "mainwindow.h"
+ #include "weatherwidget.h"
+diff --git a/mainwindow.cpp b/mainwindow.cpp
+index b3f8994..d8a0a57 100644
+--- a/mainwindow.cpp
++++ b/mainwindow.cpp
+@@ -9,7 +9,7 @@
+ #include "weatherdata.h"
+ #include "utilities.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ #include <QtDebug>
+
+diff --git a/mainwindow.h b/mainwindow.h
+index f59d992..1d46fba 100644
+--- a/mainwindow.h
++++ b/mainwindow.h
+@@ -1,7 +1,7 @@
+ #ifndef MAINWINDOW_H
+ #define MAINWINDOW_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "webdata.h"
+
+
+diff --git a/optionswidget.h b/optionswidget.h
+index b321280..c797ac2 100644
+--- a/optionswidget.h
++++ b/optionswidget.h
+@@ -1,7 +1,7 @@
+ #ifndef OPTIONSWIDGET_H
+ #define OPTIONSWIDGET_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "awayscreen.h"
+ #include "schedulescreen.h"
+ #include "settingscreen.h"
+diff --git a/schedulepoint.cpp b/schedulepoint.cpp
+index cdaba40..99c7b18 100644
+--- a/schedulepoint.cpp
++++ b/schedulepoint.cpp
+@@ -4,7 +4,7 @@
+ #include "globalsettings.h"
+ #include "utilities.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+
+
+ #define MAXTEMP 100
+diff --git a/schedulepoint.h b/schedulepoint.h
+index 1f6d662..38d6acd 100644
+--- a/schedulepoint.h
++++ b/schedulepoint.h
+@@ -1,7 +1,7 @@
+ #ifndef SCHEDULEPOINT_H
+ #define SCHEDULEPOINT_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include <QApplication>
+ #include <QColor>
+ #include <QGraphicsItem>
+diff --git a/schedulescreen.h b/schedulescreen.h
+index 9bc0897..c424a3f 100644
+--- a/schedulescreen.h
++++ b/schedulescreen.h
+@@ -1,7 +1,7 @@
+ #ifndef SCHEDULESCREEN_H
+ #define SCHEDULESCREEN_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "schedulepoint.h"
+
+ class GlobalSettings;
+diff --git a/settingscreen.cpp b/settingscreen.cpp
+index 2f19ae4..62b73b1 100644
+--- a/settingscreen.cpp
++++ b/settingscreen.cpp
+@@ -4,7 +4,7 @@
+ #include "qkeyboardlineedit.h"
+ #include "webdataengine/openweathermapdataengine.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ #define MAXIMUM_CONTENT_HEIGHT 450
+ #define MAXIMUM_CONTENT_WIDTH 800
+diff --git a/settingscreen.h b/settingscreen.h
+index 4edf175..172dbe2 100644
+--- a/settingscreen.h
++++ b/settingscreen.h
+@@ -1,7 +1,7 @@
+ #ifndef SETTINGSCREEN_H
+ #define SETTINGSCREEN_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ class GlobalSettings;
+ class QKeyboardLineEdit;
+diff --git a/thermostatdemo.h b/thermostatdemo.h
+index 7223f0a..ca7b27e 100644
+--- a/thermostatdemo.h
++++ b/thermostatdemo.h
+@@ -1,7 +1,7 @@
+ #ifndef THERMOSTATDEMO_H
+ #define THERMOSTATDEMO_H
+
+-#include <QtGui/QMainWindow>
++#include <QtWidgets/QMainWindow>
+
+ class ThermostatDemo : public QMainWindow
+ {
+diff --git a/thermostatwidget.h b/thermostatwidget.h
+index ba8199b..bbe97ef 100644
+--- a/thermostatwidget.h
++++ b/thermostatwidget.h
+@@ -1,7 +1,7 @@
+ #ifndef THERMOSTATWIDGET_H
+ #define THERMOSTATWIDGET_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ class GlobalSettings;
+
+diff --git a/weatherdatawidget.cpp b/weatherdatawidget.cpp
+index 33e8185..20e8fe8 100644
+--- a/weatherdatawidget.cpp
++++ b/weatherdatawidget.cpp
+@@ -1,6 +1,6 @@
+ #include "weatherdatawidget.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "globalsettings.h"
+ #include "weatherdata.h"
+ #include "utilities.h"
+diff --git a/weatherwidget.h b/weatherwidget.h
+index bffb368..40a7916 100644
+--- a/weatherwidget.h
++++ b/weatherwidget.h
+@@ -1,7 +1,7 @@
+ #ifndef WEATHERWIDGET_H
+ #define WEATHERWIDGET_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ #include <QtSvg/QSvgWidget>
+
+--
+1.8.3.2
+
(quoted diff) +0 -0

Replace-fromAscii-toAscii-with-fromLatin1-toLatin1-p.patch b/meta- arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace-fromAscii- toAscii-with-fromLatin1-toLatin1-p.patch
new file mode 100644
index 0000000..28d2bee

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +0 -0

fromAscii-toAscii-with-fromLatin1-toLatin1-p.patch

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +1 -0
@@ -0,0 +1,71 @@
+From 3be273cead085ac9cf45bc59236f6d6ef18dc349 Mon Sep 17 00:00:00

2001

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +3 -0
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:39:27 -0400
+Subject: [PATCH] Replace fromAscii()/toAscii() with

fromLatin1()/toLatin1()
+ per Qt5 migration guide

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +12 -0
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ remoteaccessmanager.cpp                    | 10 +++++-----
+ webdataengine/openweathermapdataengine.cpp |  2 +-
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/remoteaccessmanager.cpp b/remoteaccessmanager.cpp
+index 5eebdef..5a6c547 100644
+--- a/remoteaccessmanager.cpp
++++ b/remoteaccessmanager.cpp
+@@ -103,7 +103,7 @@ void

RemoteAccessManager::processIncomingConnection()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +2 -0
+         }
+         else if(requestParser[1].contains(".jpg") ||

requestParser[1].contains(".png"))
+ {
+- QFile
imageFile(":"+QString::fromAscii(requestParser[1]));
++ QFile
imageFile(":"+QString::fromLatin1(requestParser[1]));

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+
+             if(!imageFile.open(QFile::ReadOnly))
+                 ba = "HTTP/1.1 404 NOT FOUND";
+@@ -119,7 +119,7 @@ void

RemoteAccessManager::processIncomingConnection()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+         }
+         else if(requestParser[1].contains(".js"))
+         {
+-            QFile

jsFile(":"+QString::fromAscii(requestParser[1]));
++ QFile
jsFile(":"+QString::fromLatin1(requestParser[1]));

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+
+             if(!jsFile.open(QFile::ReadOnly))
+                 ba = "HTTP/1.1 404 NOT FOUND";
+@@ -135,7 +135,7 @@ void

RemoteAccessManager::processIncomingConnection()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+         }
+         else if(requestParser[1].contains(".css"))
+         {
+-            QFile

cssFile(":"+QString::fromAscii(requestParser[1]));
++ QFile
cssFile(":"+QString::fromLatin1(requestParser[1]));

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+
+             if(!cssFile.open(QFile::ReadOnly))
+                 ba = "HTTP/1.1 404 NOT FOUND";
+@@ -213,9 +213,9 @@ QByteArray

RemoteAccessManager::hashToJSONByteArray(QHash<QString, QVariant> has

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+     {
+         it.next();
+         if(it.value().type() == QVariant::Hash)
+-

jsonByteArray+="\""+it.key().toAscii()+"\""+QByteArray::fromRawDat a(":",1)+""+hashToJSONByteArray(it.value().toHash())+","; ++ jsonByteArray+="\""+it.key().toLatin1()+"\""+QByteArray::fromRawDa ta(":",1)+""+hashToJSONByteArray(it.value().toHash())+",";
+ else
+- jsonByteArray +=
"\""+it.key().toAscii()+"\""+QByteArray::fromRawData(":",1)+"\""+i t.value().toByteArray()+"\""+QByteArray::fromRawData(",",1);
++ jsonByteArray +=
"\""+it.key().toLatin1()+"\""+QByteArray::fromRawData(":",1)+"\""+ it.value().toByteArray()+"\""+QByteArray::fromRawData(",",1);

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+     }
+
+     jsonByteArray = jsonByteArray.left(jsonByteArray.size()-1);
+diff --git a/webdataengine/openweathermapdataengine.cpp

b/webdataengine/openweathermapdataengine.cpp
+index 0286dd5..de39f48 100644
+--- a/webdataengine/openweathermapdataengine.cpp
++++ b/webdataengine/openweathermapdataengine.cpp
+@@ -67,7 +67,7 @@ void
OpenWeatherMapDataEngine::responseReceived()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+         QByteArray data = m_reply->readAll();
+         //qDebug() << data;
+
+-        m_cityId =

parseCityInformation(QString::fromAscii(data));
++ m_cityId =
parseCityInformation(QString::fromLatin1(data));
+ //docs say do not delete in the slot so well pass it off
to the event loop

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +5 -0
+         m_reply->deleteLater();
+         if(m_cityId == -1)
+--
+1.8.3.2
+
meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
index 198ef1f..8035537 100644
@@ -10,7 +10,11 @@ LIC_FILES_CHKSUM =
 "file://LICENSE;md5=93a105adb99011afa5baee932b560714 \
 

require recipes-core/matrix/matrix-gui-paths.inc

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +5 -1
-PR = "r4"
+inherit qt-provider
+
+PR = "r5"
+
+DEPENDS += "${QT_DEPENDS_SVG} ${QT_DEPENDS_SCRIPT}"

BRANCH ?= "master"
SRCREV = "27e033a0ac59928cc3acbb45f4d9bc2101fcf024"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
@@ -20,9 +24,10 @@ SRC_URI = " \
 	file://0001-Update-Makefile.build-for-when-build-dir-is-not-
 the-.patch \

"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-S = "${WORKDIR}/git/"
+SRC_URI += "${@base_conditional('QT_PROVIDER', 'qt5',

'file://0002-Replace-QtGui-with-QtWidgets-per-Qt5-migration- guide.patch \

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -0
+	file://0003-Replace-fromAscii-toAscii-with-fromLatin1-

toLatin1-p.patch', '', d)}"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-inherit qt4e
+S = "${WORKDIR}/git/"
# use the make targets already created in the Makefile.build
files
do_install() {
--
1.8.3.2

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#12 lore raw

Re: [PATCH 4/5] qt-tstat: update recipe to be Qt4 and Qt5 compatible

So, should I push these patches in? They don't change the fact that Qt4 is still the default setting...

Quoted 431 lines · Chase
Quoted 420 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Monday, October 14, 2013 10:22 PM
To: [email protected]
Subject: [meta-arago] [PATCH 4/5] qt-tstat: update recipe to be Qt4 and Qt5 compatible

From: Denys Dmytriyenko <[email protected]>

Uses qt-provider class to build against either Qt4 or Qt5 depending on global
distro variable QT_PROVIDER.

---
...ui-with-QtWidgets-per-Qt5-migration-guide.patch | 232
+++++++++++++++++++++

...mAscii-toAscii-with-fromLatin1-toLatin1-p.patch |  71 +++++++
.../recipes-qt/qt-apps/qt-tstat_2.0.bb             |  11 +-
3 files changed, 311 insertions(+), 3 deletions(-)

create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt- tstat/0002-Replace-QtGui-with-QtWidgets-per-Qt5-migration- guide.patch
create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt- tstat/0003-Replace-fromAscii-toAscii-with-fromLatin1-toLatin1- p.patch

(quoted diff) +0 -0

Replace-QtGui-with-QtWidgets-per-Qt5-migration-guide.patch b/meta- arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace-QtGui-with- QtWidgets-per-Qt5-migration-guide.patch
new file mode 100644
index 0000000..d9bbba9

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace- new file +0 -0

QtGui-with-QtWidgets-per-Qt5-migration-guide.patch

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace- new file +1 -0
@@ -0,0 +1,232 @@
+From 90f70d188b5893fd86aab4f90ac96c9a69ae4e88 Mon Sep 17 00:00:00

2001

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace- new file +3 -0
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:35:30 -0400
+Subject: [PATCH] Replace QtGui with QtWidgets per Qt5 migration

guide

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace- new file +228 -0
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ awayscreen.h          | 2 +-
+ keyboard/keyboard.cpp | 2 +-
+ keyboard/keyboard.h   | 2 +-
+ main.cpp              | 2 +-
+ mainwindow.cpp        | 2 +-
+ mainwindow.h          | 2 +-
+ optionswidget.h       | 2 +-
+ schedulepoint.cpp     | 2 +-
+ schedulepoint.h       | 2 +-
+ schedulescreen.h      | 2 +-
+ settingscreen.cpp     | 2 +-
+ settingscreen.h       | 2 +-
+ thermostatdemo.h      | 2 +-
+ thermostatwidget.h    | 2 +-
+ weatherdatawidget.cpp | 2 +-
+ weatherwidget.h       | 2 +-
+ 16 files changed, 16 insertions(+), 16 deletions(-)
+
+diff --git a/awayscreen.h b/awayscreen.h
+index 2a2b040..b8827b9 100644
+--- a/awayscreen.h
++++ b/awayscreen.h
+@@ -1,7 +1,7 @@
+ #ifndef AWAYSCREEN_H
+ #define AWAYSCREEN_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ class GlobalSettings;
+
+diff --git a/keyboard/keyboard.cpp b/keyboard/keyboard.cpp
+index 9261031..0d14530 100644
+--- a/keyboard/keyboard.cpp
++++ b/keyboard/keyboard.cpp
+@@ -37,7 +37,7 @@
+
+ #include "keyboard.h"
+ #include "ui_keyboard.h"
+-#include <QtGui>
++#include <QtWidgets>
+
+ Keyboard::Keyboard(QWidget *parent) :
+     QWidget(parent),
+diff --git a/keyboard/keyboard.h b/keyboard/keyboard.h
+index 2d5c584..960915c 100644
+--- a/keyboard/keyboard.h
++++ b/keyboard/keyboard.h
+@@ -2,7 +2,7 @@
+ #define KEYBOARD_H
+
+ #include <QWidget>
+-#include <QtGui>
++#include <QtWidgets>
+ namespace Ui {
+ class Keyboard;
+ }
+diff --git a/main.cpp b/main.cpp
+index 18234c9..8e0df39 100644
+--- a/main.cpp
++++ b/main.cpp
+@@ -1,4 +1,4 @@
+-#include <QtGui>
++#include <QtWidgets>
+
+ #include "mainwindow.h"
+ #include "weatherwidget.h"
+diff --git a/mainwindow.cpp b/mainwindow.cpp
+index b3f8994..d8a0a57 100644
+--- a/mainwindow.cpp
++++ b/mainwindow.cpp
+@@ -9,7 +9,7 @@
+ #include "weatherdata.h"
+ #include "utilities.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ #include <QtDebug>
+
+diff --git a/mainwindow.h b/mainwindow.h
+index f59d992..1d46fba 100644
+--- a/mainwindow.h
++++ b/mainwindow.h
+@@ -1,7 +1,7 @@
+ #ifndef MAINWINDOW_H
+ #define MAINWINDOW_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "webdata.h"
+
+
+diff --git a/optionswidget.h b/optionswidget.h
+index b321280..c797ac2 100644
+--- a/optionswidget.h
++++ b/optionswidget.h
+@@ -1,7 +1,7 @@
+ #ifndef OPTIONSWIDGET_H
+ #define OPTIONSWIDGET_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "awayscreen.h"
+ #include "schedulescreen.h"
+ #include "settingscreen.h"
+diff --git a/schedulepoint.cpp b/schedulepoint.cpp
+index cdaba40..99c7b18 100644
+--- a/schedulepoint.cpp
++++ b/schedulepoint.cpp
+@@ -4,7 +4,7 @@
+ #include "globalsettings.h"
+ #include "utilities.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+
+
+ #define MAXTEMP 100
+diff --git a/schedulepoint.h b/schedulepoint.h
+index 1f6d662..38d6acd 100644
+--- a/schedulepoint.h
++++ b/schedulepoint.h
+@@ -1,7 +1,7 @@
+ #ifndef SCHEDULEPOINT_H
+ #define SCHEDULEPOINT_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include <QApplication>
+ #include <QColor>
+ #include <QGraphicsItem>
+diff --git a/schedulescreen.h b/schedulescreen.h
+index 9bc0897..c424a3f 100644
+--- a/schedulescreen.h
++++ b/schedulescreen.h
+@@ -1,7 +1,7 @@
+ #ifndef SCHEDULESCREEN_H
+ #define SCHEDULESCREEN_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "schedulepoint.h"
+
+ class GlobalSettings;
+diff --git a/settingscreen.cpp b/settingscreen.cpp
+index 2f19ae4..62b73b1 100644
+--- a/settingscreen.cpp
++++ b/settingscreen.cpp
+@@ -4,7 +4,7 @@
+ #include "qkeyboardlineedit.h"
+ #include "webdataengine/openweathermapdataengine.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ #define MAXIMUM_CONTENT_HEIGHT 450
+ #define MAXIMUM_CONTENT_WIDTH 800
+diff --git a/settingscreen.h b/settingscreen.h
+index 4edf175..172dbe2 100644
+--- a/settingscreen.h
++++ b/settingscreen.h
+@@ -1,7 +1,7 @@
+ #ifndef SETTINGSCREEN_H
+ #define SETTINGSCREEN_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ class GlobalSettings;
+ class QKeyboardLineEdit;
+diff --git a/thermostatdemo.h b/thermostatdemo.h
+index 7223f0a..ca7b27e 100644
+--- a/thermostatdemo.h
++++ b/thermostatdemo.h
+@@ -1,7 +1,7 @@
+ #ifndef THERMOSTATDEMO_H
+ #define THERMOSTATDEMO_H
+
+-#include <QtGui/QMainWindow>
++#include <QtWidgets/QMainWindow>
+
+ class ThermostatDemo : public QMainWindow
+ {
+diff --git a/thermostatwidget.h b/thermostatwidget.h
+index ba8199b..bbe97ef 100644
+--- a/thermostatwidget.h
++++ b/thermostatwidget.h
+@@ -1,7 +1,7 @@
+ #ifndef THERMOSTATWIDGET_H
+ #define THERMOSTATWIDGET_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ class GlobalSettings;
+
+diff --git a/weatherdatawidget.cpp b/weatherdatawidget.cpp
+index 33e8185..20e8fe8 100644
+--- a/weatherdatawidget.cpp
++++ b/weatherdatawidget.cpp
+@@ -1,6 +1,6 @@
+ #include "weatherdatawidget.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "globalsettings.h"
+ #include "weatherdata.h"
+ #include "utilities.h"
+diff --git a/weatherwidget.h b/weatherwidget.h
+index bffb368..40a7916 100644
+--- a/weatherwidget.h
++++ b/weatherwidget.h
+@@ -1,7 +1,7 @@
+ #ifndef WEATHERWIDGET_H
+ #define WEATHERWIDGET_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ #include <QtSvg/QSvgWidget>
+
+--
+1.8.3.2
+
(quoted diff) +0 -0

Replace-fromAscii-toAscii-with-fromLatin1-toLatin1-p.patch b/meta- arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace-fromAscii- toAscii-with-fromLatin1-toLatin1-p.patch
new file mode 100644
index 0000000..28d2bee

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +0 -0

fromAscii-toAscii-with-fromLatin1-toLatin1-p.patch

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +1 -0
@@ -0,0 +1,71 @@
+From 3be273cead085ac9cf45bc59236f6d6ef18dc349 Mon Sep 17 00:00:00

2001

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +3 -0
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:39:27 -0400
+Subject: [PATCH] Replace fromAscii()/toAscii() with

fromLatin1()/toLatin1()
+ per Qt5 migration guide

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +12 -0
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ remoteaccessmanager.cpp                    | 10 +++++-----
+ webdataengine/openweathermapdataengine.cpp |  2 +-
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/remoteaccessmanager.cpp b/remoteaccessmanager.cpp
+index 5eebdef..5a6c547 100644
+--- a/remoteaccessmanager.cpp
++++ b/remoteaccessmanager.cpp
+@@ -103,7 +103,7 @@ void

RemoteAccessManager::processIncomingConnection()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +2 -0
+         }
+         else if(requestParser[1].contains(".jpg") ||

requestParser[1].contains(".png"))
+ {
+- QFile
imageFile(":"+QString::fromAscii(requestParser[1]));
++ QFile
imageFile(":"+QString::fromLatin1(requestParser[1]));

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+
+             if(!imageFile.open(QFile::ReadOnly))
+                 ba = "HTTP/1.1 404 NOT FOUND";
+@@ -119,7 +119,7 @@ void

RemoteAccessManager::processIncomingConnection()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+         }
+         else if(requestParser[1].contains(".js"))
+         {
+-            QFile

jsFile(":"+QString::fromAscii(requestParser[1]));
++ QFile
jsFile(":"+QString::fromLatin1(requestParser[1]));

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+
+             if(!jsFile.open(QFile::ReadOnly))
+                 ba = "HTTP/1.1 404 NOT FOUND";
+@@ -135,7 +135,7 @@ void

RemoteAccessManager::processIncomingConnection()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+         }
+         else if(requestParser[1].contains(".css"))
+         {
+-            QFile

cssFile(":"+QString::fromAscii(requestParser[1]));
++ QFile
cssFile(":"+QString::fromLatin1(requestParser[1]));

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+
+             if(!cssFile.open(QFile::ReadOnly))
+                 ba = "HTTP/1.1 404 NOT FOUND";
+@@ -213,9 +213,9 @@ QByteArray

RemoteAccessManager::hashToJSONByteArray(QHash<QString, QVariant> has

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+     {
+         it.next();
+         if(it.value().type() == QVariant::Hash)
+-

jsonByteArray+="\""+it.key().toAscii()+"\""+QByteArray::fromRawDat a(":",1)+""+hashToJSONByteArray(it.value().toHash())+","; ++ jsonByteArray+="\""+it.key().toLatin1()+"\""+QByteArray::fromRawDa ta(":",1)+""+hashToJSONByteArray(it.value().toHash())+",";
+ else
+- jsonByteArray +=
"\""+it.key().toAscii()+"\""+QByteArray::fromRawData(":",1)+"\""+i t.value().toByteArray()+"\""+QByteArray::fromRawData(",",1);
++ jsonByteArray +=
"\""+it.key().toLatin1()+"\""+QByteArray::fromRawData(":",1)+"\""+ it.value().toByteArray()+"\""+QByteArray::fromRawData(",",1);

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+     }
+
+     jsonByteArray = jsonByteArray.left(jsonByteArray.size()-1);
+diff --git a/webdataengine/openweathermapdataengine.cpp

b/webdataengine/openweathermapdataengine.cpp
+index 0286dd5..de39f48 100644
+--- a/webdataengine/openweathermapdataengine.cpp
++++ b/webdataengine/openweathermapdataengine.cpp
+@@ -67,7 +67,7 @@ void
OpenWeatherMapDataEngine::responseReceived()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +4 -0
+         QByteArray data = m_reply->readAll();
+         //qDebug() << data;
+
+-        m_cityId =

parseCityInformation(QString::fromAscii(data));
++ m_cityId =
parseCityInformation(QString::fromLatin1(data));
+ //docs say do not delete in the slot so well pass it off
to the event loop

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace- new file +5 -0
+         m_reply->deleteLater();
+         if(m_cityId == -1)
+--
+1.8.3.2
+
meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
index 198ef1f..8035537 100644
@@ -10,7 +10,11 @@ LIC_FILES_CHKSUM =
 "file://LICENSE;md5=93a105adb99011afa5baee932b560714 \
 

require recipes-core/matrix/matrix-gui-paths.inc

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +5 -1
-PR = "r4"
+inherit qt-provider
+
+PR = "r5"
+
+DEPENDS += "${QT_DEPENDS_SVG} ${QT_DEPENDS_SCRIPT}"

BRANCH ?= "master"
SRCREV = "27e033a0ac59928cc3acbb45f4d9bc2101fcf024"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
@@ -20,9 +24,10 @@ SRC_URI = " \
 	file://0001-Update-Makefile.build-for-when-build-dir-is-not-
 the-.patch \

"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-S = "${WORKDIR}/git/"
+SRC_URI += "${@base_conditional('QT_PROVIDER', 'qt5',

'file://0002-Replace-QtGui-with-QtWidgets-per-Qt5-migration- guide.patch \

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -0
+	file://0003-Replace-fromAscii-toAscii-with-fromLatin1-

toLatin1-p.patch', '', d)}"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-inherit qt4e
+S = "${WORKDIR}/git/"
# use the make targets already created in the Makefile.build
files
do_install() {
--
1.8.3.2
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#13 lore raw

Re: [PATCH 4/5] qt-tstat: update recipe to be Qt4 and Qt5 compatible

Seems fine

Quoted 469 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, October 15, 2013 1:57 PM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 4/5] qt-tstat: update recipe to be Qt4 and Qt5 compatible

So, should I push these patches in? They don't change the fact that Qt4 is
still the default setting...

Quoted 22 lines · Chase
Quoted 19 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Monday, October 14, 2013 10:22 PM
To: [email protected]
Subject: [meta-arago] [PATCH 4/5] qt-tstat: update recipe to be Qt4 and Qt5 compatible

From: Denys Dmytriyenko <[email protected]>

Uses qt-provider class to build against either Qt4 or Qt5 depending on global
distro variable QT_PROVIDER.

---
...ui-with-QtWidgets-per-Qt5-migration-guide.patch | 232
+++++++++++++++++++++
...mAscii-toAscii-with-fromLatin1-toLatin1-p.patch | 71

+++++++

Quoted 10 lines

Review

Quoted 10 lines

.../recipes-qt/qt-apps/qt-tstat_2.0.bb | 11 +-

3 files changed, 311 insertions(+), 3 deletions(-)

create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt- tstat/0002-Replace-QtGui-with-QtWidgets-per-Qt5-migration- guide.patch
create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt- tstat/0003-Replace-fromAscii-toAscii-with-fromLatin1-toLatin1- p.patch

(quoted diff) +0 -0

tstat/0002-

Quoted 1 line
Quoted 1 line

Replace-QtGui-with-QtWidgets-per-Qt5-migration-guide.patch

b/meta-

Quoted 1 line
Quoted 1 line

arago-extras/recipes-qt/qt-apps/qt-tstat/0002-Replace-QtGui-

with-

Quoted 5 lines

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-

Quoted 5 lines

QtWidgets-per-Qt5-migration-guide.patch
new file mode 100644
index 0000000..d9bbba9

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002- new file +0 -0

Replace-

Quoted 3 lines

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002- line 1

Quoted 3 lines

QtGui-with-QtWidgets-per-Qt5-migration-guide.patch

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002- new file +1 -0
@@ -0,0 +1,232 @@
+From 90f70d188b5893fd86aab4f90ac96c9a69ae4e88 Mon Sep 17

00:00:00

Quoted 4 lines

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002-

Quoted 4 lines

2001

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002- new file +3 -0
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:35:30 -0400
+Subject: [PATCH] Replace QtGui with QtWidgets per Qt5

migration

Quoted 222 lines
Quoted 222 lines

guide

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002- new file +221 -0
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ awayscreen.h          | 2 +-
+ keyboard/keyboard.cpp | 2 +-
+ keyboard/keyboard.h   | 2 +-
+ main.cpp              | 2 +-
+ mainwindow.cpp        | 2 +-
+ mainwindow.h          | 2 +-
+ optionswidget.h       | 2 +-
+ schedulepoint.cpp     | 2 +-
+ schedulepoint.h       | 2 +-
+ schedulescreen.h      | 2 +-
+ settingscreen.cpp     | 2 +-
+ settingscreen.h       | 2 +-
+ thermostatdemo.h      | 2 +-
+ thermostatwidget.h    | 2 +-
+ weatherdatawidget.cpp | 2 +-
+ weatherwidget.h       | 2 +-
+ 16 files changed, 16 insertions(+), 16 deletions(-)
+
+diff --git a/awayscreen.h b/awayscreen.h
+index 2a2b040..b8827b9 100644
+--- a/awayscreen.h
++++ b/awayscreen.h
+@@ -1,7 +1,7 @@
+ #ifndef AWAYSCREEN_H
+ #define AWAYSCREEN_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ class GlobalSettings;
+
+diff --git a/keyboard/keyboard.cpp b/keyboard/keyboard.cpp
+index 9261031..0d14530 100644
+--- a/keyboard/keyboard.cpp
++++ b/keyboard/keyboard.cpp
+@@ -37,7 +37,7 @@
+
+ #include "keyboard.h"
+ #include "ui_keyboard.h"
+-#include <QtGui>
++#include <QtWidgets>
+
+ Keyboard::Keyboard(QWidget *parent) :
+     QWidget(parent),
+diff --git a/keyboard/keyboard.h b/keyboard/keyboard.h
+index 2d5c584..960915c 100644
+--- a/keyboard/keyboard.h
++++ b/keyboard/keyboard.h
+@@ -2,7 +2,7 @@
+ #define KEYBOARD_H
+
+ #include <QWidget>
+-#include <QtGui>
++#include <QtWidgets>
+ namespace Ui {
+ class Keyboard;
+ }
+diff --git a/main.cpp b/main.cpp
+index 18234c9..8e0df39 100644
+--- a/main.cpp
++++ b/main.cpp
+@@ -1,4 +1,4 @@
+-#include <QtGui>
++#include <QtWidgets>
+
+ #include "mainwindow.h"
+ #include "weatherwidget.h"
+diff --git a/mainwindow.cpp b/mainwindow.cpp
+index b3f8994..d8a0a57 100644
+--- a/mainwindow.cpp
++++ b/mainwindow.cpp
+@@ -9,7 +9,7 @@
+ #include "weatherdata.h"
+ #include "utilities.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ #include <QtDebug>
+
+diff --git a/mainwindow.h b/mainwindow.h
+index f59d992..1d46fba 100644
+--- a/mainwindow.h
++++ b/mainwindow.h
+@@ -1,7 +1,7 @@
+ #ifndef MAINWINDOW_H
+ #define MAINWINDOW_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "webdata.h"
+
+
+diff --git a/optionswidget.h b/optionswidget.h
+index b321280..c797ac2 100644
+--- a/optionswidget.h
++++ b/optionswidget.h
+@@ -1,7 +1,7 @@
+ #ifndef OPTIONSWIDGET_H
+ #define OPTIONSWIDGET_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "awayscreen.h"
+ #include "schedulescreen.h"
+ #include "settingscreen.h"
+diff --git a/schedulepoint.cpp b/schedulepoint.cpp
+index cdaba40..99c7b18 100644
+--- a/schedulepoint.cpp
++++ b/schedulepoint.cpp
+@@ -4,7 +4,7 @@
+ #include "globalsettings.h"
+ #include "utilities.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+
+
+ #define MAXTEMP 100
+diff --git a/schedulepoint.h b/schedulepoint.h
+index 1f6d662..38d6acd 100644
+--- a/schedulepoint.h
++++ b/schedulepoint.h
+@@ -1,7 +1,7 @@
+ #ifndef SCHEDULEPOINT_H
+ #define SCHEDULEPOINT_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include <QApplication>
+ #include <QColor>
+ #include <QGraphicsItem>
+diff --git a/schedulescreen.h b/schedulescreen.h
+index 9bc0897..c424a3f 100644
+--- a/schedulescreen.h
++++ b/schedulescreen.h
+@@ -1,7 +1,7 @@
+ #ifndef SCHEDULESCREEN_H
+ #define SCHEDULESCREEN_H
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "schedulepoint.h"
+
+ class GlobalSettings;
+diff --git a/settingscreen.cpp b/settingscreen.cpp
+index 2f19ae4..62b73b1 100644
+--- a/settingscreen.cpp
++++ b/settingscreen.cpp
+@@ -4,7 +4,7 @@
+ #include "qkeyboardlineedit.h"
+ #include "webdataengine/openweathermapdataengine.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ #define MAXIMUM_CONTENT_HEIGHT 450
+ #define MAXIMUM_CONTENT_WIDTH 800
+diff --git a/settingscreen.h b/settingscreen.h
+index 4edf175..172dbe2 100644
+--- a/settingscreen.h
++++ b/settingscreen.h
+@@ -1,7 +1,7 @@
+ #ifndef SETTINGSCREEN_H
+ #define SETTINGSCREEN_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ class GlobalSettings;
+ class QKeyboardLineEdit;
+diff --git a/thermostatdemo.h b/thermostatdemo.h
+index 7223f0a..ca7b27e 100644
+--- a/thermostatdemo.h
++++ b/thermostatdemo.h
+@@ -1,7 +1,7 @@
+ #ifndef THERMOSTATDEMO_H
+ #define THERMOSTATDEMO_H
+
+-#include <QtGui/QMainWindow>
++#include <QtWidgets/QMainWindow>
+
+ class ThermostatDemo : public QMainWindow
+ {
+diff --git a/thermostatwidget.h b/thermostatwidget.h
+index ba8199b..bbe97ef 100644
+--- a/thermostatwidget.h
++++ b/thermostatwidget.h
+@@ -1,7 +1,7 @@
+ #ifndef THERMOSTATWIDGET_H
+ #define THERMOSTATWIDGET_H
+
+-#include <QtGui>
++#include <QtWidgets>
+
+ class GlobalSettings;
+
+diff --git a/weatherdatawidget.cpp b/weatherdatawidget.cpp
+index 33e8185..20e8fe8 100644
+--- a/weatherdatawidget.cpp
++++ b/weatherdatawidget.cpp
+@@ -1,6 +1,6 @@
+ #include "weatherdatawidget.h"
+
+-#include <QtGui>
++#include <QtWidgets>
+ #include "globalsettings.h"
+ #include "weatherdata.h"
+ #include "utilities.h"
+diff --git a/weatherwidget.h b/weatherwidget.h
+index bffb368..40a7916 100644
+--- a/weatherwidget.h
++++ b/weatherwidget.h
+@@ -1,7 +1,7 @@
+ #ifndef WEATHERWIDGET_H
+ #define WEATHERWIDGET_H
+
+-#include <QtGui>
Quoted 8 lines

Review

Quoted 8 lines

++#include <QtWidgets>

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0002- new file +6 -0
+
+ #include <QtSvg/QSvgWidget>
+
+--
+1.8.3.2
+
(quoted diff) +0 -0

tstat/0003-

Quoted 1 line
Quoted 1 line

Replace-fromAscii-toAscii-with-fromLatin1-toLatin1-p.patch

b/meta-

Quoted 1 line
Quoted 1 line

arago-extras/recipes-qt/qt-apps/qt-tstat/0003-Replace-

fromAscii-

Quoted 5 lines

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-

Quoted 5 lines

toAscii-with-fromLatin1-toLatin1-p.patch
new file mode 100644
index 0000000..28d2bee

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +0 -0

Replace-

Quoted 3 lines

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- line 1

Quoted 3 lines

fromAscii-toAscii-with-fromLatin1-toLatin1-p.patch

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +1 -0
@@ -0,0 +1,71 @@
+From 3be273cead085ac9cf45bc59236f6d6ef18dc349 Mon Sep 17

00:00:00

Quoted 48 lines
Quoted 48 lines

2001

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +3 -0
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:39:27 -0400
+Subject: [PATCH] Replace fromAscii()/toAscii() with

fromLatin1()/toLatin1()
+ per Qt5 migration guide

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +12 -0
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ remoteaccessmanager.cpp                    | 10 +++++-----
+ webdataengine/openweathermapdataengine.cpp |  2 +-
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/remoteaccessmanager.cpp b/remoteaccessmanager.cpp
+index 5eebdef..5a6c547 100644
+--- a/remoteaccessmanager.cpp
++++ b/remoteaccessmanager.cpp
+@@ -103,7 +103,7 @@ void

RemoteAccessManager::processIncomingConnection()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +2 -0
+         }
+         else if(requestParser[1].contains(".jpg") ||

requestParser[1].contains(".png"))
+ {
+- QFile
imageFile(":"+QString::fromAscii(requestParser[1]));
++ QFile
imageFile(":"+QString::fromLatin1(requestParser[1]));

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +4 -0
+
+             if(!imageFile.open(QFile::ReadOnly))
+                 ba = "HTTP/1.1 404 NOT FOUND";
+@@ -119,7 +119,7 @@ void

RemoteAccessManager::processIncomingConnection()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +4 -0
+         }
+         else if(requestParser[1].contains(".js"))
+         {
+-            QFile

jsFile(":"+QString::fromAscii(requestParser[1]));
++ QFile
jsFile(":"+QString::fromLatin1(requestParser[1]));

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +4 -0
+
+             if(!jsFile.open(QFile::ReadOnly))
+                 ba = "HTTP/1.1 404 NOT FOUND";
+@@ -135,7 +135,7 @@ void

RemoteAccessManager::processIncomingConnection()

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +4 -0
+         }
+         else if(requestParser[1].contains(".css"))
+         {
+-            QFile
Quoted 8 lines
Quoted 8 lines

cssFile(":"+QString::fromAscii(requestParser[1]));
++ QFile
cssFile(":"+QString::fromLatin1(requestParser[1]));

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +4 -0
+
+             if(!cssFile.open(QFile::ReadOnly))
+                 ba = "HTTP/1.1 404 NOT FOUND";
+@@ -213,9 +213,9 @@ QByteArray

RemoteAccessManager::hashToJSONByteArray(QHash<QString,

QVariant>

Quoted 7 lines

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-

Quoted 5 lines

has

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +4 -0
+     {
+         it.next();
+         if(it.value().type() == QVariant::Hash)
+-

jsonByteArray+="\""+it.key().toAscii()+"\""+QByteArray::fromRawDa

t

Quoted 4 lines
Quoted 2 lines

a(":",1)+""+hashToJSONByteArray(it.value().toHash())+","; ++

jsonByteArray+="\""+it.key().toLatin1()+"\""+QByteArray::fromRawD

a

Quoted 5 lines
Quoted 3 lines

ta(":",1)+""+hashToJSONByteArray(it.value().toHash())+",";
+ else
+- jsonByteArray +=

"\""+it.key().toAscii()+"\""+QByteArray::fromRawData(":",1)+"\""+

i

Quoted 4 lines
Quoted 2 lines

t.value().toByteArray()+"\""+QByteArray::fromRawData(",",1);
++ jsonByteArray +=

"\""+it.key().toLatin1()+"\""+QByteArray::fromRawData(":",1)+"\""

+

Quoted 4 lines

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003-

Quoted 4 lines

it.value().toByteArray()+"\""+QByteArray::fromRawData(",",1);

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +3 -0
+     }
+
+     jsonByteArray = jsonByteArray.left(jsonByteArray.size()-

1);

Quoted 7 lines
Quoted 7 lines

+diff --git a/webdataengine/openweathermapdataengine.cpp b/webdataengine/openweathermapdataengine.cpp +index 0286dd5..de39f48 100644
+--- a/webdataengine/openweathermapdataengine.cpp ++++ b/webdataengine/openweathermapdataengine.cpp +@@ -67,7 +67,7 @@ void OpenWeatherMapDataEngine::responseReceived()

Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +4 -0
+         QByteArray data = m_reply->readAll();
+         //qDebug() << data;
+
+-        m_cityId =

parseCityInformation(QString::fromAscii(data));
++ m_cityId =
parseCityInformation(QString::fromLatin1(data));
+ //docs say do not delete in the slot so well pass it

off

Quoted 7 lines

Review

Quoted 7 lines

to the event loop

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0003- new file +5 -0
+         m_reply->deleteLater();
+         if(m_cityId == -1)
+--
+1.8.3.2
+
(quoted diff) +0 -0

tstat_2.0.bb

Quoted 47 lines
Quoted 39 lines

b/meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb index 198ef1f..8035537 100644

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
@@ -10,7 +10,11 @@ LIC_FILES_CHKSUM =
 "file://LICENSE;md5=93a105adb99011afa5baee932b560714 \
 

require recipes-core/matrix/matrix-gui-paths.inc

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +5 -1
-PR = "r4"
+inherit qt-provider
+
+PR = "r5"
+
+DEPENDS += "${QT_DEPENDS_SVG} ${QT_DEPENDS_SCRIPT}"

BRANCH ?= "master"
SRCREV = "27e033a0ac59928cc3acbb45f4d9bc2101fcf024"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
@@ -20,9 +24,10 @@ SRC_URI = " \
 	file://0001-Update-Makefile.build-for-when-build-dir-is-not-
 the-.patch \

"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-S = "${WORKDIR}/git/"
+SRC_URI += "${@base_conditional('QT_PROVIDER', 'qt5',

'file://0002-Replace-QtGui-with-QtWidgets-per-Qt5-migration- guide.patch \

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -0
+	file://0003-Replace-fromAscii-toAscii-with-fromLatin1-

toLatin1-p.patch', '', d)}"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-inherit qt4e
+S = "${WORKDIR}/git/"
# use the make targets already created in the Makefile.build
files
do_install() {
--
1.8.3.2
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#14 lore raw

PATCH 5/5 arago-qt5-test-image: replace matrix-browser with qt-tstat demo

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

* As matrix-browser requires QtWebKit, which depends on QtDeclarative, that depends on QtQuick, which requires GLES to build and function.
* Instead, use QtWidgets based Thermostat demo app to showcase Qt 5.1.1 on framebuffer when GLES is not available.

---
 meta-arago-distro/recipes-core/images/arago-qt5-test-image.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/images/arago-qt5-test-image.bb +5 -2
index cd5c054..5fbbfd3 100644
@@ -8,9 +8,12 @@ IMAGE_INSTALL += "\
     packagegroup-arago-base \
     packagegroup-arago-console \
     packagegroup-arago-base-tisdk \
-    matrix-gui-browser \
-    qtwebkit-examples-examples \
     qtbase-plugins \
+    qt-tstat \
     "
 
+# These are now disabled due to gles dependency
+#    matrix-gui-browser
+#    qtwebkit-examples-examples
+
 export IMAGE_BASENAME = "arago-qt5-test-image"
Signature · 1 line
1.8.3.2
#15 lore raw
In reply to Denys Dmytriyenko
Quoted 28 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Monday, October 14, 2013 10:22 PM
To: [email protected]
Subject: [meta-arago] [PATCH 1/5] qt-tstat: fix Makefile to support build outside of source, i.e. ${S} != ${B}

From: Denys Dmytriyenko <[email protected]>

---
...file.build-for-when-build-dir-is-not-the-.patch | 35
++++++++++++++++++++++
.../recipes-qt/qt-apps/qt-tstat_2.0.bb | 9 ++++--

2 files changed, 41 insertions(+), 3 deletions(-)

create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt- tstat/0001-Update-Makefile.build-for-when-build-dir-is-not-the- .patch

(quoted diff) +0 -0

Update-Makefile.build-for-when-build-dir-is-not-the-.patch b/meta- arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- Makefile.build-for-when-build-dir-is-not-the-.patch
new file mode 100644
index 0000000..3ceb74a

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +0 -0
Quoted 1 line

Makefile.build-for-when-build-dir-is-not-the-.patch

Can we push this patch to the upstream project? I think we own this one right?

Quoted 85 lines
meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +1 -0
@@ -0,0 +1,35 @@
+From 00666002c48ebbb21e73eb9fbe90615cef87cc11 Mon Sep 17 00:00:00

2001

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +3 -0
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:53:28 -0400
+Subject: [PATCH] Update Makefile.build for when build dir is not

the same as
+ source dir

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +23 -0
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ Makefile.build | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.build b/Makefile.build
+index 18892d4..72b8e34 100644
+--- a/Makefile.build
++++ b/Makefile.build
+@@ -2,6 +2,7 @@
+
+ ENV_SETUP ?= ../../linux-devkit/environment-setup
+ DESTDIR ?=
++BUILDDIR ?= .
+ PLATFORM ?=
+ MATRIX_APP_DIR ?= /usr/share/matrix-gui-2.0/apps/
+ PLATFORM_DEFINE ?= "Platform_${PLATFORM}"
+@@ -28,7 +29,7 @@ clean : ${SOURCES} qmake
+
+ install_common:
+ 	@install -d ${DESTDIR}/usr/bin
+-	@install -m 0755 ThermostatDemo

${DESTDIR}/usr/bin/ThermostatDemo
++ @install -m 0755 ${BUILDDIR}/ThermostatDemo
${DESTDIR}/usr/bin/ThermostatDemo

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +6 -0
+ 	@install -d ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
+ 	@cp -rf matrix-files/*  ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
+
+--
+1.8.3.2
+
meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
index 19c29fb..198ef1f 100644
@@ -10,12 +10,15 @@ LIC_FILES_CHKSUM =
 "file://LICENSE;md5=93a105adb99011afa5baee932b560714 \
 

require recipes-core/matrix/matrix-gui-paths.inc

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-PR = "r3"
+PR = "r4"

BRANCH ?= "master"
SRCREV = "27e033a0ac59928cc3acbb45f4d9bc2101fcf024"

-SRC_URI = "git://gitorious.org/thermostat-demo/thermostat- demo.git;protocol=git"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +2 -0
+SRC_URI = " \
+	git://gitorious.org/thermostat-demo/thermostat-

demo.git;protocol=git \

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -0
+	file://0001-Update-Makefile.build-for-when-build-dir-is-not-

the-.patch \
+"

S = "${WORKDIR}/git/"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
@@ -23,7 +26,7 @@ inherit qt4e
 
 # use the make targets already created in the Makefile.build

files
do_install() {

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-	make -f Makefile.build DESTDIR=${D} install_common
+	cd ${S} && make -f Makefile.build DESTDIR=${D} BUILDDIR=${B}

install_common
}

PACKAGES += "matrix-gui-thermostat-demo"
--
1.8.3.2

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#16 lore raw
Quoted 20 lines · Chase
Quoted 20 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Monday, October 14, 2013 10:22 PM
To: [email protected]
Subject: [meta-arago] [PATCH 1/5] qt-tstat: fix Makefile to support build outside of source, i.e. ${S} != ${B}

From: Denys Dmytriyenko <[email protected]>

---
...file.build-for-when-build-dir-is-not-the-.patch | 35
++++++++++++++++++++++
.../recipes-qt/qt-apps/qt-tstat_2.0.bb | 9 ++++--

2 files changed, 41 insertions(+), 3 deletions(-)

create mode 100644 meta-arago-extras/recipes-qt/qt-apps/qt- tstat/0001-Update-Makefile.build-for-when-build-dir-is-not-the- .patch

Quoted 12 lines
Quoted 9 lines
(quoted diff) +0 -0

Update-Makefile.build-for-when-build-dir-is-not-the-.patch b/meta- arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- Makefile.build-for-when-build-dir-is-not-the-.patch
new file mode 100644
index 0000000..3ceb74a

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +0 -0

Makefile.build-for-when-build-dir-is-not-the-.patch

Can we push this patch to the upstream project? I think we own this one right?

Right, I separated this out from other Qt5 changes on purpose. We should definitely push it to upstream qt-tstat project. Franklin, any objections?

Quoted 89 lines
Quoted 77 lines
meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +1 -0
@@ -0,0 +1,35 @@
+From 00666002c48ebbb21e73eb9fbe90615cef87cc11 Mon Sep 17 00:00:00

2001

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +3 -0
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:53:28 -0400
+Subject: [PATCH] Update Makefile.build for when build dir is not

the same as
+ source dir

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +23 -0
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ Makefile.build | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.build b/Makefile.build
+index 18892d4..72b8e34 100644
+--- a/Makefile.build
++++ b/Makefile.build
+@@ -2,6 +2,7 @@
+
+ ENV_SETUP ?= ../../linux-devkit/environment-setup
+ DESTDIR ?=
++BUILDDIR ?= .
+ PLATFORM ?=
+ MATRIX_APP_DIR ?= /usr/share/matrix-gui-2.0/apps/
+ PLATFORM_DEFINE ?= "Platform_${PLATFORM}"
+@@ -28,7 +29,7 @@ clean : ${SOURCES} qmake
+
+ install_common:
+ 	@install -d ${DESTDIR}/usr/bin
+-	@install -m 0755 ThermostatDemo

${DESTDIR}/usr/bin/ThermostatDemo
++ @install -m 0755 ${BUILDDIR}/ThermostatDemo
${DESTDIR}/usr/bin/ThermostatDemo

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +6 -0
+ 	@install -d ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
+ 	@cp -rf matrix-files/*  ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
+
+--
+1.8.3.2
+
meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
index 19c29fb..198ef1f 100644
@@ -10,12 +10,15 @@ LIC_FILES_CHKSUM =
 "file://LICENSE;md5=93a105adb99011afa5baee932b560714 \
 

require recipes-core/matrix/matrix-gui-paths.inc

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-PR = "r3"
+PR = "r4"

BRANCH ?= "master"
SRCREV = "27e033a0ac59928cc3acbb45f4d9bc2101fcf024"

-SRC_URI = "git://gitorious.org/thermostat-demo/thermostat- demo.git;protocol=git"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +2 -0
+SRC_URI = " \
+	git://gitorious.org/thermostat-demo/thermostat-

demo.git;protocol=git \

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -0
+	file://0001-Update-Makefile.build-for-when-build-dir-is-not-

the-.patch \
+"

S = "${WORKDIR}/git/"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
@@ -23,7 +26,7 @@ inherit qt4e
 
 # use the make targets already created in the Makefile.build

files
do_install() {

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-	make -f Makefile.build DESTDIR=${D} install_common
+	cd ${S} && make -f Makefile.build DESTDIR=${D} BUILDDIR=${B}

install_common
}

Quoted 8 lines

PACKAGES += "matrix-gui-thermostat-demo"
--
1.8.3.2

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#17 lore raw

No issue. If you need me to push it please send it to me as an attachment.

Quoted 141 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Tuesday, October 15, 2013 10:48 AM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/5] qt-tstat: fix Makefile to support build outside of source, i.e. ${S} != ${B}

Quoted 20 lines · Chase
Quoted 20 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Monday, October 14, 2013 10:22 PM
To: [email protected]
Subject: [meta-arago] [PATCH 1/5] qt-tstat: fix Makefile to support build outside of source, i.e. ${S} != ${B}

From: Denys Dmytriyenko <[email protected]>

---
...file.build-for-when-build-dir-is-not-the-.patch | 35
++++++++++++++++++++++
.../recipes-qt/qt-apps/qt-tstat_2.0.bb | 9 ++++--

2 files changed, 41 insertions(+), 3 deletions(-)  create mode

100644 meta-arago-extras/recipes-qt/qt-apps/qt- tstat/0001-Update-Makefile.build-for-when-build-dir-is-not-the- .patch

Quoted 12 lines
Quoted 9 lines
(quoted diff) +0 -0

Update-Makefile.build-for-when-build-dir-is-not-the-.patch b/meta- arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- Makefile.build-for-when-build-dir-is-not-the-.patch
new file mode 100644
index 0000000..3ceb74a

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +0 -0

Makefile.build-for-when-build-dir-is-not-the-.patch

Can we push this patch to the upstream project? I think we own this one right?

Right, I separated this out from other Qt5 changes on purpose. We should definitely push it to upstream qt-tstat project. Franklin, any objections?

Quoted 2 lines

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- line 1

Quoted 2 lines
meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +1 -0
@@ -0,0 +1,35 @@
+From 00666002c48ebbb21e73eb9fbe90615cef87cc11 Mon Sep 17

00:00:00

Quoted 79 lines
Quoted 79 lines

2001

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +3 -0
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 14 Oct 2013 18:53:28 -0400
+Subject: [PATCH] Update Makefile.build for when build dir is not

the same as
+ source dir

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +23 -0
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ Makefile.build | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.build b/Makefile.build
+index 18892d4..72b8e34 100644
+--- a/Makefile.build
++++ b/Makefile.build
+@@ -2,6 +2,7 @@
+
+ ENV_SETUP ?= ../../linux-devkit/environment-setup
+ DESTDIR ?=
++BUILDDIR ?= .
+ PLATFORM ?=
+ MATRIX_APP_DIR ?= /usr/share/matrix-gui-2.0/apps/
+ PLATFORM_DEFINE ?= "Platform_${PLATFORM}"
+@@ -28,7 +29,7 @@ clean : ${SOURCES} qmake
+
+ install_common:
+ 	@install -d ${DESTDIR}/usr/bin
+-	@install -m 0755 ThermostatDemo

${DESTDIR}/usr/bin/ThermostatDemo
++ @install -m 0755 ${BUILDDIR}/ThermostatDemo
${DESTDIR}/usr/bin/ThermostatDemo

meta-arago-extras/recipes-qt/qt-apps/qt-tstat/0001-Update- new file +6 -0
+ 	@install -d ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
+ 	@cp -rf matrix-files/*  ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
+
+--
+1.8.3.2
+
meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
index 19c29fb..198ef1f 100644
@@ -10,12 +10,15 @@ LIC_FILES_CHKSUM =
 "file://LICENSE;md5=93a105adb99011afa5baee932b560714 \
 

require recipes-core/matrix/matrix-gui-paths.inc

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-PR = "r3"
+PR = "r4"

BRANCH ?= "master"
SRCREV = "27e033a0ac59928cc3acbb45f4d9bc2101fcf024"

-SRC_URI = "git://gitorious.org/thermostat-demo/thermostat- demo.git;protocol=git"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +2 -0
+SRC_URI = " \
+	git://gitorious.org/thermostat-demo/thermostat-

demo.git;protocol=git \

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -0
+	file://0001-Update-Makefile.build-for-when-build-dir-is-not-

the-.patch \
+"

S = "${WORKDIR}/git/"

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +0 -0
@@ -23,7 +26,7 @@ inherit qt4e
 
 # use the make targets already created in the Makefile.build

files
do_install() {

meta-arago-extras/recipes-qt/qt-apps/qt-tstat_2.0.bb +1 -1
-	make -f Makefile.build DESTDIR=${D} install_common
+	cd ${S} && make -f Makefile.build DESTDIR=${D} BUILDDIR=${B}

install_common
}

PACKAGES += "matrix-gui-thermostat-demo"
--
1.8.3.2

Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago