Skip to contentSkip to conversation

arago-daisy-config: switch meta-qt5 to master for qt-5.4

PATCH New Denys Dmytriyenko 1 participant 7 messages Nov 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arago-daisy-config: switch meta-qt5 to master for qt-5.4

From: Denys Dmytriyenko <[email protected]>

---
 configs/arago-daisy-config.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/arago-daisy-config.txt +1 -1
index 899ca46..ee2c227 100644
@@ -3,7 +3,7 @@
 
 bitbake,git://git.openembedded.org/bitbake,1.22,HEAD,layers=
 meta-arago,git://arago-project.org/git/meta-arago.git,master,HEAD,layers=meta-arago-distro:meta-arago-extras
-meta-qt5,git://github.com/meta-qt5/meta-qt5.git,daisy,HEAD,layers=
+meta-qt5,git://github.com/meta-qt5/meta-qt5.git,master,HEAD,layers=
 meta-openembedded,git://git.openembedded.org/meta-openembedded,daisy,HEAD,layers=toolchain-layer:meta-networking:meta-ruby:meta-oe
 meta-ti,git://arago-project.org/git/meta-ti.git,daisy,HEAD,layers=
 meta-linaro,git://git.linaro.org/openembedded/meta-linaro.git,daisy,HEAD,layers=meta-linaro-toolchain
Signature · 1 line
2.1.2
#1 lore raw

PATCH 1/6 leveldb: import from meta-oe

* Overlay from meta-oe/master since it's not available in daisy
* It's needed for newer qtwebkit-5.4

---
 .../leveldb/0001-Explicitly-disable-tcmalloc.patch | 48 ++++++++++++++++++++++
 .../recipes-extended/leveldb/leveldb_git.bb        | 27 ++++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 meta-arago-distro/recipes-extended/leveldb/leveldb/0001-Explicitly-disable-tcmalloc.patch
 create mode 100644 meta-arago-distro/recipes-extended/leveldb/leveldb_git.bb
meta-arago-distro/recipes-extended/leveldb/leveldb/0001-Explicitly-disable-tcmalloc.patch new file +48 -0
new file mode 100644
index 0000000..4b76dd0
@@ -0,0 +1,48 @@
+From d6daac04dab4b3acf4b88f16742d1b402cdc3d83 Mon Sep 17 00:00:00 2001
+From: Martin Jansa <[email protected]>
+Date: Wed, 1 Oct 2014 18:54:04 +0200
+Subject: [PATCH] Explicitly disable tcmalloc
+
+Without this change leveldb autodetects tcmalloc from sysroot and
+sometimes became dependant on gperftools
+
+Disable autodetection without TCMALLOC_ENABLED=true pased to make
+
+Upstream-Status: Pending
+Signed-off-by: Martin Jansa <[email protected]>
+---
+ build_detect_platform | 16 +++++++++-------
+ 1 file changed, 9 insertions(+), 7 deletions(-)
+
+diff --git a/build_detect_platform b/build_detect_platform
+index bb76c4f..a586364 100755
+--- a/build_detect_platform
++++ b/build_detect_platform
+@@ -201,15 +201,17 @@ EOF
+         PLATFORM_LIBS="$PLATFORM_LIBS -lsnappy"
+     fi
+ 
+-    # Test whether tcmalloc is available
+-    $CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT -ltcmalloc 2>/dev/null  <<EOF
+-      int main() {}
++    if [ "$TCMALLOC_ENABLED" = "true" ]; then
++        # Test whether tcmalloc is available
++        $CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT -ltcmalloc 2>/dev/null  <<EOF
++          int main() {}
+ EOF
+-    if [ "$?" = 0 ]; then
+-        PLATFORM_LIBS="$PLATFORM_LIBS -ltcmalloc"
+-    fi
++        if [ "$?" = 0 ]; then
++            PLATFORM_LIBS="$PLATFORM_LIBS -ltcmalloc"
++        fi
+ 
+-    rm -f $CXXOUTPUT 2>/dev/null
++        rm -f $CXXOUTPUT 2>/dev/null
++    fi
+ fi
+ 
+ PLATFORM_CCFLAGS="$PLATFORM_CCFLAGS $COMMON_FLAGS"
+-- 
+2.1.1
+
meta-arago-distro/recipes-extended/leveldb/leveldb_git.bb new file +27 -0
new file mode 100644
index 0000000..a6a3024
@@ -0,0 +1,27 @@
+SUMMARY = "LevelDB is a fast key-value storage library"
+DESCRIPTION = "LevelDB is a fast key-value storage library that provides an ordered mapping from string keys to string values"
+HOMEPAGE = "http://leveldb.googlecode.com"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=92d1b128950b11ba8495b64938fc164d"
+
+SRCREV = "803d69203a62faf50f1b77897310a3a1fcae712b"
+PV = "1.18+git${SRCPV}"
+
+SRC_URI = "git://github.com/google/${BPN}.git \
+    file://0001-Explicitly-disable-tcmalloc.patch \
+"
+
+S = "${WORKDIR}/git"
+
+do_compile() {
+    # do not use oe_runmake. oe_runmake pass to make compilation arguments and override
+    # leveldb makefile variable CFLAGS and broke leveldb build.
+    CFLAGS="${CFLAGS}" make || die
+}
+
+do_install() {
+    install -d ${D}${libdir}
+    oe_libinstall -C ${S} -so libleveldb ${D}${libdir}
+    install -d ${D}${includedir}/leveldb
+    install -m 644 ${S}/include/leveldb/*.h ${D}${includedir}/leveldb/
+}
Signature · 1 line
2.1.2
#2 lore raw

PATCH 2/6 qtwayland: move patches from extras to distro

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 .../recipes-qt/qt5/qtwayland/0001-Fix-touch-with-Weston.patch             | 0
 .../0001-Wayland-can-drag-a-window-by-its-titlebar-using-the-.patch       | 0
 .../recipes-qt/qt5/qtwayland/0001-Wayland-correct-touch-location.patch    | 0
 3 files changed, 0 insertions(+), 0 deletions(-)
 rename {meta-arago-extras => meta-arago-distro}/recipes-qt/qt5/qtwayland/0001-Fix-touch-with-Weston.patch (100%)
 rename {meta-arago-extras => meta-arago-distro}/recipes-qt/qt5/qtwayland/0001-Wayland-can-drag-a-window-by-its-titlebar-using-the-.patch (100%)
 rename {meta-arago-extras => meta-arago-distro}/recipes-qt/qt5/qtwayland/0001-Wayland-correct-touch-location.patch (100%)
meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Fix-touch-with-Weston.patch renamed from meta-arago-extras/recipes-qt/qt5/qtwayland/0001-Fix-touch-with-Weston.patch +0 -0
similarity index 100%
rename from meta-arago-extras/recipes-qt/qt5/qtwayland/0001-Fix-touch-with-Weston.patch
rename to meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Fix-touch-with-Weston.patch
meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Wayland-can-drag-a-window-by-its-titlebar-using-the-.patch renamed from meta-arago-extras/recipes-qt/qt5/qtwayland/0001-Wayland-can-drag-a-window-by-its-titlebar-using-the-.patch +0 -0
similarity index 100%
rename from meta-arago-extras/recipes-qt/qt5/qtwayland/0001-Wayland-can-drag-a-window-by-its-titlebar-using-the-.patch
rename to meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Wayland-can-drag-a-window-by-its-titlebar-using-the-.patch
meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Wayland-correct-touch-location.patch renamed from meta-arago-extras/recipes-qt/qt5/qtwayland/0001-Wayland-correct-touch-location.patch +0 -0
similarity index 100%
rename from meta-arago-extras/recipes-qt/qt5/qtwayland/0001-Wayland-correct-touch-location.patch
rename to meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Wayland-correct-touch-location.patch
Signature · 1 line
2.1.2
#3 lore raw

PATCH 3/6 qtwayland: remove bbappends to checkout the right version

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Patches fixing touchscreen issues were moved to distro location and need to be re-validated if something is still needed with 5.4, but they don't apply as is any more.

---
 .../recipes-qt/qt5/qtwayland-native_git.bbappend              |  3 ---
 meta-arago-extras/recipes-qt/qt5/qtwayland_git.bbappend       | 11 -----------
 2 files changed, 14 deletions(-)
 delete mode 100644 meta-arago-extras/recipes-qt/qt5/qtwayland-native_git.bbappend
 delete mode 100644 meta-arago-extras/recipes-qt/qt5/qtwayland_git.bbappend
meta-arago-extras/recipes-qt/qt5/qtwayland-native_git.bbappend deleted +0 -3
deleted file mode 100644
index 64de589..0000000
@@ -1,3 +0,0 @@
-PR_append = "-arago1"
-
-QT_MODULE_BRANCH = "5.4"
meta-arago-extras/recipes-qt/qt5/qtwayland_git.bbappend deleted +0 -11
deleted file mode 100644
index 1911a9e..0000000
@@ -1,11 +0,0 @@
-PR_append = "-arago3"
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-SRC_URI += "file://0001-Fix-touch-with-Weston.patch \
-            file://0001-Wayland-correct-touch-location.patch \
-            file://0001-Wayland-can-drag-a-window-by-its-titlebar-using-the-.patch \
-"
-
-
-QT_MODULE_BRANCH = "5.4"
Signature · 1 line
2.1.2
#4 lore raw

PATCH 4/6 qtbase, qtwebkit: update bbappends for version 5.4

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Drop some patches that no longer apply to qtwebkit

---
 .../recipes-qt/qt5/{qtbase_5.2.1.bbappend => qtbase_git.bbappend}       | 0
 .../recipes-qt/qt5/{qtwebkit_5.2.1.bbappend => qtwebkit_git.bbappend}   | 2 --
 2 files changed, 2 deletions(-)
 rename meta-arago-distro/recipes-qt/qt5/{qtbase_5.2.1.bbappend => qtbase_git.bbappend} (100%)
 rename meta-arago-distro/recipes-qt/qt5/{qtwebkit_5.2.1.bbappend => qtwebkit_git.bbappend} (78%)
meta-arago-distro/recipes-qt/qt5/qtbase_git.bbappend renamed from meta-arago-distro/recipes-qt/qt5/qtbase_5.2.1.bbappend +0 -0
similarity index 100%
rename from meta-arago-distro/recipes-qt/qt5/qtbase_5.2.1.bbappend
rename to meta-arago-distro/recipes-qt/qt5/qtbase_git.bbappend
meta-arago-distro/recipes-qt/qt5/qtwebkit_git.bbappend renamed from meta-arago-distro/recipes-qt/qt5/qtwebkit_5.2.1.bbappend +0 -2
similarity index 78%
rename from meta-arago-distro/recipes-qt/qt5/qtwebkit_5.2.1.bbappend
rename to meta-arago-distro/recipes-qt/qt5/qtwebkit_git.bbappend
index 63461f5..1085f20 100644
@@ -1,10 +1,8 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 SRC_URI += " \
-	file://GraphicsContext3DQt.cpp.patch \
 	file://GraphicsSurfaceGL_NoX.cpp.patch \
 	file://GraphicsSurfaceToken.h.patch \
-	file://qttestbrowser.cpp.patch \
 	file://0001-Target.pri-update-to-use-GL_NoX-version-of-GraphicsS.patch \
 	file://WebCore.pri.patch \
 "
Signature · 1 line
2.1.2
#5 lore raw

PATCH 5/6 packagegroup*: HACK: qt-tstat fails packaging with qt-5.4

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Disable for now, fix later

---
 .../recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb     | 2 +-
 .../packagegroups/packagegroup-arago-tisdk-qte-sdk-host.bb            | 4 ++--
 .../recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb        | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb +1 -1
index 084811b..0fe7bc5 100644
@@ -29,9 +29,9 @@ MATRIX_COMMON_APPS = "              \
 
 MATRIX_QT_APPS = "                  \
     ${@base_conditional('QT_PROVIDER', 'qt5', 'matrix-gui-qt5-demos', 'matrix-gui-qt4-demos', d)} \
-    matrix-gui-thermostat-demo      \
     ${@base_conditional('ARAGO_QT_PROVIDER','qt4-embedded-gles','matrix-gui-apps-quick-playground','', d)} \
 "
+#    matrix-gui-thermostat-demo      
 
 MATRIX_SGX_DEMOS = "                \
     matrix-3d-demo-chameleon        \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-qte-sdk-host.bb +2 -2
index 3615cd4..1f541cc 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to add Qt embedded related sources into the sdk"
 LICENSE = "MIT"
-PR = "r4"
+PR = "r5"
 
 inherit packagegroup
 
@@ -11,8 +11,8 @@ QT4_DEMOS = "\
 "
 
 QT_DEMOS = "\
-    qt-tstat-src \
 "
+#    qt-tstat-src 
 
 RDEPENDS_${PN} = "\
     ${@base_conditional('QT_PROVIDER', 'qt5', '', "${QT4_DEMOS}", d)} \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb +2 -2
index 3cc26b1..b439949 100644
@@ -1,6 +1,6 @@
 DESCRIPTION = "Task to add Qt embedded related packages"
 LICENSE = "MIT"
-PR = "r7"
+PR = "r8"
 
 inherit packagegroup
 
@@ -23,8 +23,8 @@ QT5_DEMOS = "\
 "
 
 QT_DEMOS = "\
-    qt-tstat \
 "
+#    qt-tstat 
 
 RDEPENDS_${PN} = "\
     packagegroup-arago-qte \
Signature · 1 line
2.1.2
#6 lore raw

PATCH 6/6 arago.conf: select version 5.4 of Qt

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/conf/distro/arago.conf | 1 +
 1 file changed, 1 insertion(+)
meta-arago-distro/conf/distro/arago.conf +1 -0
index cc49224..5965ceb 100644
@@ -24,6 +24,7 @@ DISTRO_FEATURES += "pam"
 
 # Set preferred Qt version
 QT_PROVIDER = "qt5"
+QT5_VERSION = "5.3.99+5.4.0-beta1+git%"
 
 # Distro-specific package configuration
 # Weston - use fbdev compositor and provide launcher
Signature · 1 line
2.1.2