Skip to content

Commit

Permalink
qt5: upgrade to latest revisions in 5.7 branches
Browse files Browse the repository at this point in the history
* these revisions are after v5.7.0-beta1 tags where available
* it's highly recommended to read:
  http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/
  to find out how you're affected check which files/tools are
  included in your builds, e.g. for qtwebengine:
  OE @ ~/projects/qt-project/qtwebengine $ git grep QT_BEGIN_LICENSE | sed 's/^[^:]*://g' | sort | uniq -c
     11 ## $QT_BEGIN_LICENSE:GPL-EXCEPT$
     67 ** $QT_BEGIN_LICENSE:BSD$
     17 ** $QT_BEGIN_LICENSE:FDL$
     61 ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
    261 ** $QT_BEGIN_LICENSE:LGPL$
* change in chromium's LICENSE is only copyright year update

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
  • Loading branch information
shr-project committed May 2, 2016
1 parent c1b0c9f commit bf2cafa
Show file tree
Hide file tree
Showing 66 changed files with 938 additions and 237 deletions.
704 changes: 704 additions & 0 deletions licenses/The-Qt-Company-GPL-Exception-1.0

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion recipes-qt/qt5/nativesdk-qtbase_git.bb
Expand Up @@ -257,4 +257,4 @@ fakeroot do_generate_qt_environment_file() {

addtask generate_qt_environment_file after do_install before do_package

SRCREV = "cec15a89d058424794978910cc8da65b43d71606"
SRCREV = "84330007e12122bf1b690a4e68b5ef8e973c7882"
7 changes: 2 additions & 5 deletions recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch
@@ -1,4 +1,4 @@
From 778d0c4515bae5bdeb650fb3e6b3e32a73722b51 Mon Sep 17 00:00:00 2001
From 16a6bfc8f93f8d4e0d4a6e09cdfb0c4a8412e38f Mon Sep 17 00:00:00 2001
From: Samuli Piippo <samuli.piippo@theqtcompany.com>
Date: Wed, 10 Feb 2016 09:02:09 +0200
Subject: [PATCH] Allow a tools-only build
Expand All @@ -8,7 +8,7 @@ Subject: [PATCH] Allow a tools-only build
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/qt3d.pro b/qt3d.pro
index a26e76d..263e3c4 100644
index a26e76d..016fb30 100644
--- a/qt3d.pro
+++ b/qt3d.pro
@@ -1,4 +1,4 @@
Expand All @@ -26,6 +26,3 @@ index a26e76d..263e3c4 100644
+ sub_tools.depends -= sub_src
+ SUBDIRS = sub_tools
+}
--
1.9.1

2 changes: 1 addition & 1 deletion recipes-qt/qt5/qt3d_git.bb
Expand Up @@ -27,6 +27,6 @@ FILES_${PN}-qmlplugins += " \
${OE_QMAKE_PATH_QML}/*/*/*.obj \
"

SRCREV = "7a208d76ed96bb506899becfe680df06f95451c7"
SRCREV = "be29a39ede4355a5aa18e93c27a75a1c3f81bde4"

BBCLASSEXTEND += "native nativesdk"
6 changes: 3 additions & 3 deletions recipes-qt/qt5/qt5-git.inc
@@ -1,8 +1,8 @@
# Copyright (C) 2012-2016 O.S. Systems Software LTDA.
# Copyright (C) 2013-2014 Martin Jansa <martin.jansa@gmail.com>
# Copyright (C) 2013-2016 Martin Jansa <martin.jansa@gmail.com>

QT_MODULE ?= "${BPN}"
QT_MODULE_BRANCH ?= "5.6"
QT_MODULE_BRANCH ?= "5.7"

# each module needs to define valid SRCREV
SRC_URI = " \
Expand All @@ -11,4 +11,4 @@ SRC_URI = " \

S = "${WORKDIR}/git"

PV = "5.6.0+git${SRCPV}"
PV = "5.6.99+5.7.0-beta+git${SRCPV}"
2 changes: 1 addition & 1 deletion recipes-qt/qt5/qtbase-native_git.bb
Expand Up @@ -117,4 +117,4 @@ do_install() {
ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt
}

SRCREV = "cec15a89d058424794978910cc8da65b43d71606"
SRCREV = "84330007e12122bf1b690a4e68b5ef8e973c7882"
65 changes: 22 additions & 43 deletions recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
@@ -1,4 +1,4 @@
From cabe9683b82493e2547e87ae0057f44f71efe519 Mon Sep 17 00:00:00 2001
From 79f881eaa0a4a980963ce4ea1bc4c5e26c640c9a Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Mon, 15 Apr 2013 04:29:32 +0200
Subject: [PATCH] Add linux-oe-g++ platform
Expand Down Expand Up @@ -47,19 +47,19 @@ Upstream-Status: Inappropriate [embedded specific]
Change-Id: I0591ed5da0d61d7cf1509d420e6b293582f1863c
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
configure | 71 ++++++++++++++++---------
configure | 55 ++++++++++++-------
mkspecs/features/configure.prf | 4 +-
mkspecs/linux-oe-g++/qmake.conf | 42 +++++++++++++++
mkspecs/linux-oe-g++/qplatformdefs.h | 100 +++++++++++++++++++++++++++++++++++
4 files changed, 189 insertions(+), 28 deletions(-)
4 files changed, 181 insertions(+), 20 deletions(-)
create mode 100644 mkspecs/linux-oe-g++/qmake.conf
create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h

diff --git a/configure b/configure
index 3e97c98..88a308d 100755
index b65c564..ffe6931 100755
--- a/configure
+++ b/configure
@@ -342,6 +342,16 @@ getQMakeConf()
@@ -339,6 +339,16 @@ getQMakeConf()
getSingleQMakeVariable "$1" "$specvals"
}

Expand All @@ -76,7 +76,7 @@ index 3e97c98..88a308d 100755
getXQMakeConf()
{
if [ -z "$xspecvals" ]; then
@@ -351,6 +361,16 @@ getXQMakeConf()
@@ -348,6 +358,16 @@ getXQMakeConf()
getSingleQMakeVariable "$1" "$xspecvals"
}

Expand All @@ -93,7 +93,7 @@ index 3e97c98..88a308d 100755
compilerSupportsFlag()
{
cat >conftest.cpp <<EOF
@@ -557,24 +577,14 @@ fi
@@ -569,24 +589,14 @@ fi
# initalize variables
#-------------------------------------------------------------------------------

Expand Down Expand Up @@ -124,25 +124,25 @@ index 3e97c98..88a308d 100755
fi'`
eval "$cmd"
done
@@ -3418,7 +3428,7 @@ if [ "$XPLATFORM_MAC" = "yes" ]; then
[ "$CFG_QGTKSTYLE" = "auto" ] && CFG_QGTKSTYLE=no
@@ -3428,7 +3438,7 @@ if [ "$XPLATFORM_MAC" = "yes" ]; then
[ "$CFG_GTK" = "auto" ] && CFG_GTK=no
fi

-QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX`
+QMAKE_CONF_COMPILER=`getXQEvalMakeConf QMAKE_CXX`

TEST_COMPILER=$QMAKE_CONF_COMPILER

@@ -3475,7 +3485,7 @@ if [ "$XPLATFORM_SYMBIAN_SBSV2" = "no" ]; then
exit 1
@@ -3479,7 +3489,7 @@ if [ "$XPLATFORM_ANDROID" = "yes" ] ; then
fi
fi

-TEST_COMPILER_CXXFLAGS=`getXQMakeConf QMAKE_CXXFLAGS`
+TEST_COMPILER_CXXFLAGS=`getXQEvalMakeConf QMAKE_CXXFLAGS`

GCC_MACHINE_DUMP=
case "$TEST_COMPILER" in *g++) GCC_MACHINE_DUMP=$($TEST_COMPILER -dumpmachine);; esac
@@ -3976,6 +3986,14 @@ setBootstrapVariable()
@@ -3878,6 +3888,14 @@ setBootstrapVariable()
getQMakeConf "$1" | echo ${2-$1} = `if [ -n "$3" ]; then sed "$3"; else cat; fi` >> "$mkfile"
}

Expand All @@ -157,42 +157,19 @@ index 3e97c98..88a308d 100755
# build qmake
if true; then ###[ '!' -f "$outpath/bin/qmake" ];
echo "Creating qmake..."
@@ -4014,14 +4032,14 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
fi

[ "$CFG_SILENT" = "yes" ] && CC_TRANSFORM='s,^,\@,' || CC_TRANSFORM=
- setBootstrapVariable QMAKE_CC CC "$CC_TRANSFORM"
- setBootstrapVariable QMAKE_CXX CXX "$CC_TRANSFORM"
- setBootstrapVariable QMAKE_CFLAGS
- setBootstrapVariable QMAKE_CFLAGS_SPLIT_SECTIONS
- setBootstrapVariable QMAKE_CXXFLAGS
- setBootstrapVariable QMAKE_CXXFLAGS_SPLIT_SECTIONS
- setBootstrapVariable QMAKE_LFLAGS
- setBootstrapVariable QMAKE_LFLAGS_GCSECTIONS
+ setBootstrapEvalVariable QMAKE_CC CC "$CC_TRANSFORM"
+ setBootstrapEvalVariable QMAKE_CXX CXX "$CC_TRANSFORM"
+ setBootstrapEvalVariable QMAKE_CFLAGS
+ setBootstrapEvalVariable QMAKE_CFLAGS_SPLIT_SECTIONS
+ setBootstrapEvalVariable QMAKE_CXXFLAGS
+ setBootstrapEvalVariable QMAKE_CXXFLAGS_SPLIT_SECTIONS
+ setBootstrapEvalVariable QMAKE_LFLAGS
+ setBootstrapEvalVariable QMAKE_LFLAGS_GCSECTIONS

if [ "$CFG_RELEASE_TOOLS" = "yes" ]; then
setBootstrapVariable QMAKE_CFLAGS_RELEASE
@@ -4070,6 +4088,7 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
\"\$(SOURCE_PATH)/src/corelib/io/qfsfileengine_unix.cpp\" \
\"\$(SOURCE_PATH)/src/corelib/tools/qlocale_unix.cpp\""
@@ -3977,6 +3995,7 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
EXEEXT=
+ [ "$QT_CROSS_COMPILE" = "yes" ] && EXEEXT=-target
fi
;;
esac
+ [ "$QT_CROSS_COMPILE" = "yes" ] && EXEEXT=-target
if [ "$BUILD_ON_MAC" = "yes" ]; then
echo "COCOA_LFLAGS =-framework Foundation -framework CoreServices" >>"$mkfile"
echo "CARBON_LFLAGS =-framework ApplicationServices" >>"$mkfile"
diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf
index 6b37a04..dcf6025 100644
index 92c288c..f3019e0 100644
--- a/mkspecs/features/configure.prf
+++ b/mkspecs/features/configure.prf
@@ -63,12 +63,12 @@ defineTest(qtCompileTest) {
@@ -63,14 +63,14 @@ defineTest(qtCompileTest) {
}

# Clean up after previous run
Expand All @@ -201,7 +178,9 @@ index 6b37a04..dcf6025 100644

mkpath($$test_out_dir)|error("Aborting.")

qtRunLoggedCommand("$$test_cmd_base $$system_quote($$system_path($$QMAKE_QMAKE)) -spec $$QMAKESPEC $$qmake_configs $$shell_quote($$test_dir)") {
!isEmpty (QMAKE_QTCONF): qtconfarg = -qtconf $$QMAKE_QTCONF

qtRunLoggedCommand("$$test_cmd_base $$system_quote($$system_path($$QMAKE_QMAKE)) $$qtconfarg -spec $$QMAKESPEC $$qmake_configs $$shell_quote($$test_dir)") {
- qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE") {
+ qtRunLoggedCommand("$$test_cmd_base $$QMAKE_MAKE $$(QMAKE_MAKE_ARGS)") {
log("yes$$escape_expand(\\n)")
Expand Down
@@ -1,4 +1,4 @@
From 1edd17d452a7e9eeb2931b3c5697a4fc0ec4e6bc Mon Sep 17 00:00:00 2001
From aaa1675d3c9f0d100f596ca4e2ddf3bd25fae5b6 Mon Sep 17 00:00:00 2001
From: Holger Freyther <zecke@selfish.org>
Date: Wed, 26 Sep 2012 17:22:30 +0200
Subject: [PATCH] qlibraryinfo: allow to set qt.conf from the outside using the
Expand All @@ -19,10 +19,10 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
index 8bcacca..e1c87b5 100644
index 4582001..ff65ef9 100644
--- a/src/corelib/global/qlibraryinfo.cpp
+++ b/src/corelib/global/qlibraryinfo.cpp
@@ -157,7 +157,10 @@ void QLibrarySettings::load()
@@ -163,7 +163,10 @@ void QLibrarySettings::load()

QSettings *QLibraryInfoPrivate::findConfiguration()
{
Expand Down
66 changes: 34 additions & 32 deletions recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch
@@ -1,4 +1,4 @@
From 3ecdcb6a10d125f1440c42ad9c79f04d43c257e0 Mon Sep 17 00:00:00 2001
From 502b95b840a5f79e5a68e9bd5b10dbdc92485f1f Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Sat, 6 Apr 2013 13:15:07 +0200
Subject: [PATCH] Add -external-hostbindir option
Expand Down Expand Up @@ -26,37 +26,39 @@ Signed-off-by: Jonathan Liu <net147@gmail.com>

Conflicts:
configure

Change-Id: Iacaa1c5531cd6dcc094891610c351673db55d7b2
---
configure | 14 ++++++++++++++
mkspecs/features/qt_functions.prf | 6 +++++-
mkspecs/features/qt_tool.prf | 5 +++--
qtbase.pro | 13 ++++++++++---
mkspecs/features/qt_tool.prf | 4 +++-
qtbase.pro | 16 ++++++++++++++++
src/corelib/Qt5CoreConfigExtras.cmake.in | 6 +++---
src/dbus/Qt5DBusConfigExtras.cmake.in | 4 ++--
src/widgets/Qt5WidgetsConfigExtras.cmake.in | 2 +-
7 files changed, 38 insertions(+), 12 deletions(-)
7 files changed, 44 insertions(+), 8 deletions(-)

diff --git a/configure b/configure
index 88a308d..f2611ed 100755
index ffe6931..5aa87b4 100755
--- a/configure
+++ b/configure
@@ -810,6 +810,7 @@ QT_HOST_BINS=
@@ -825,6 +825,7 @@ QT_HOST_BINS=
QT_HOST_LIBS=
QT_HOST_DATA=
QT_EXT_PREFIX=
+QT_EXTERNAL_HOST_BINS=

#flags for SQL drivers
QT_CFLAGS_PSQL=
@@ -929,6 +930,7 @@ while [ "$#" -gt 0 ]; do
@@ -944,6 +945,7 @@ while [ "$#" -gt 0 ]; do
-testsdir| \
-hostdatadir| \
-hostbindir| \
+ -external-hostbindir| \
-hostlibdir| \
-extprefix| \
-sysroot| \
@@ -1159,6 +1161,9 @@ while [ "$#" -gt 0 ]; do
@@ -1176,6 +1178,9 @@ while [ "$#" -gt 0 ]; do
extprefix)
QT_EXT_PREFIX="$VAL"
;;
Expand All @@ -66,7 +68,7 @@ index 88a308d..f2611ed 100755
pkg-config)
if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
CFG_PKGCONFIG="$VAL"
@@ -2428,6 +2433,10 @@ Installation options:
@@ -2438,6 +2443,10 @@ Installation options:
-hostdatadir <dir> . Data used by qmake will be installed to <dir>
(default HOSTPREFIX)

Expand All @@ -77,7 +79,7 @@ index 88a308d..f2611ed 100755
Configure options:

The defaults (*) are usually acceptable. A plus (+) denotes a default value
@@ -3172,6 +3181,11 @@ fi
@@ -3196,6 +3205,11 @@ fi
# command line and environment validation
#-------------------------------------------------------------------------------

Expand All @@ -90,10 +92,10 @@ index 88a308d..f2611ed 100755
CFG_QCONFIG_PATH=$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h
case "$CFG_QCONFIG" in
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
index 8639695..d89d948 100644
index cfac583..41ca7f1 100644
--- a/mkspecs/features/qt_functions.prf
+++ b/mkspecs/features/qt_functions.prf
@@ -70,7 +70,11 @@ defineTest(qtHaveModule) {
@@ -71,7 +71,11 @@ defineTest(qtHaveModule) {
defineTest(qtPrepareTool) {
cmd = $$eval(QT_TOOL.$${2}.binary)
isEmpty(cmd) {
Expand All @@ -104,51 +106,51 @@ index 8639695..d89d948 100644
+ else: \
+ cmd = $$[QT_EXTERNAL_HOST_BINS]/$$2
exists($${cmd}.pl) {
$${1}_EXE = $${cmd}.pl
cmd = perl -w $$system_path($${cmd}.pl)
} else: contains(QMAKE_HOST.os, Windows) {
diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf
index 839c3d6..45934a0 100644
index bdeb59c..b8c539f 100644
--- a/mkspecs/features/qt_tool.prf
+++ b/mkspecs/features/qt_tool.prf
@@ -14,10 +14,11 @@ load(qt_app)
@@ -14,10 +14,12 @@ load(qt_app)
CONFIG += console
DEFINES *= QT_USE_QSTRINGBUILDER

+QT_EXTERNAL_HOST_BINS = $$[QT_EXTERNAL_HOST_BINS]
+
# If we are doing a prefix build, create a "module" pri which enables
# qtPrepareTool() to work with the non-installed build.
-# Non-bootstrapped tools always need this because of the environment setup.
-!build_pass:if(!host_build|!force_bootstrap|force_independent) {
+!build_pass:if(!host_build|!force_bootstrap|force_independent):isEmpty(QT_EXTERNAL_HOST_BINS) {
# Non-bootstrapped tools always need this because of the environment setup.
-!build_pass:if(!host_build|!force_bootstrap|force_independent|!isEmpty(HOST_QT_TOOLS)) {
+!build_pass:if(!host_build|!force_bootstrap|force_independent|!isEmpty(HOST_QT_TOOLS)):isEmpty(QT_EXTERNAL_HOST_BINS) {
isEmpty(MODULE):MODULE = $$TARGET

!host_build|!force_bootstrap: MODULE_DEPENDS = $$replace(QT, -private$, _private)
load(qt_build_paths)
diff --git a/qtbase.pro b/qtbase.pro
index 98ca86a..0eed475 100644
index 11cff9e..ec03669 100644
--- a/qtbase.pro
+++ b/qtbase.pro
@@ -37,12 +37,16 @@ CONFIG -= qt
@@ -38,6 +38,19 @@ CONFIG -= qt

### installations ####

+QT_EXTERNAL_HOST_BINS = $$[QT_EXTERNAL_HOST_BINS]
+
#qmake
qmake.path = $$[QT_HOST_BINS]
+#qmake
+qmake.path = $$[QT_HOST_BINS]
+qmake.files = $$OUT_PWD/bin/qmake
+!isEmpty(QT_EXTERNAL_HOST_BINS) {
+ qmake.files = $$[QT_EXTERNAL_HOST_BINS]/qmake
+}
equals(QMAKE_HOST.os, Windows) {
- qmake.files = $$OUT_PWD/bin/qmake.exe
-} else {
- qmake.files = $$OUT_PWD/bin/qmake
+equals(QMAKE_HOST.os, Windows) {
+ qmake.files = $${qmake.files}.exe
}
INSTALLS += qmake

@@ -59,6 +63,9 @@ INSTALLS += fixqt4headers
+}
+INSTALLS += qmake
+
#licheck
licheck.path = $$[QT_HOST_BINS]
licheck.files = $$PWD/bin/$$QT_LICHECK
@@ -51,6 +64,9 @@ INSTALLS += fixqt4headers
#syncqt
syncqt.path = $$[QT_HOST_BINS]
syncqt.files = $$PWD/bin/syncqt.pl
Expand All @@ -159,7 +161,7 @@ index 98ca86a..0eed475 100644

# If we are doing a prefix build, create a "module" pri which enables
diff --git a/src/corelib/Qt5CoreConfigExtras.cmake.in b/src/corelib/Qt5CoreConfigExtras.cmake.in
index 91a4eb6..25df27c 100644
index a5ed8b2..0e11a1e 100644
--- a/src/corelib/Qt5CoreConfigExtras.cmake.in
+++ b/src/corelib/Qt5CoreConfigExtras.cmake.in
@@ -5,7 +5,7 @@ if (NOT TARGET Qt5::qmake)
Expand Down

0 comments on commit bf2cafa

Please sign in to comment.