summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0001-Add-linux-oe-g-platform.patch2
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch4
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0003-Add-external-hostbindir-option.patch2
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0004-qmake-is-already-built-in-qtbase-native.patch2
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0005-Allow-building-a-separate-qmake-for-the-target.patch2
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch2
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch30
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0009-qt_module-Fix-pkgconfig-replacement.patch67
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch34
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch61
-rw-r--r--recipes-qt/qt5/qtbase-git/0001-Add-linux-oe-g-platform.patch6
-rw-r--r--recipes-qt/qt5/qtbase-git/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch6
-rw-r--r--recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch16
-rw-r--r--recipes-qt/qt5/qtbase-git/0004-qmake-is-already-built-in-qtbase-native.patch6
-rw-r--r--recipes-qt/qt5/qtbase-git/0005-Allow-building-a-separate-qmake-for-the-target.patch4
-rw-r--r--recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch8
-rw-r--r--recipes-qt/qt5/qtbase-git/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch29
-rw-r--r--recipes-qt/qt5/qtbase-git/0009-qt_module-Fix-pkgconfig-replacement.patch67
-rw-r--r--recipes-qt/qt5/qtbase-git/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch33
-rw-r--r--recipes-qt/qt5/qtbase-git/0011-qt_module-Fix-paths-in-.prl-files.patch61
-rw-r--r--recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch2
-rw-r--r--recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch4
-rw-r--r--recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch4
-rw-r--r--recipes-qt/qt5/qtbase/0004-qmake-is-already-built-in-qtbase-native.patch2
-rw-r--r--recipes-qt/qt5/qtbase/0005-Allow-building-a-separate-qmake-for-the-target.patch2
-rw-r--r--recipes-qt/qt5/qtbase/0006-qt_functions-temporary-remove-isEmpty-check.patch2
-rw-r--r--recipes-qt/qt5/qtbase/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch5
-rw-r--r--recipes-qt/qt5/qtbase/0009-qt_module-Fix-pkgconfig-replacement.patch4
-rw-r--r--recipes-qt/qt5/qtbase/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch7
-rw-r--r--recipes-qt/qt5/qtbase/0011-qt_module-Fix-paths-in-.prl-files.patch2
30 files changed, 431 insertions, 45 deletions
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0001-Add-linux-oe-g-platform.patch b/recipes-qt/qt5/qtbase-5.0.2/0001-Add-linux-oe-g-platform.patch
index bdbdd9fc..7a6b1e74 100644
--- a/recipes-qt/qt5/qtbase-5.0.2/0001-Add-linux-oe-g-platform.patch
+++ b/recipes-qt/qt5/qtbase-5.0.2/0001-Add-linux-oe-g-platform.patch
@@ -1,7 +1,7 @@
1From 9de9d0ccfacbac39d3eb171efe3e8c74a2417ae3 Mon Sep 17 00:00:00 2001 1From 9de9d0ccfacbac39d3eb171efe3e8c74a2417ae3 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Mon, 15 Apr 2013 04:29:32 +0200 3Date: Mon, 15 Apr 2013 04:29:32 +0200
4Subject: [PATCH 1/6] Add linux-oe-g++ platform 4Subject: [PATCH 01/11] Add linux-oe-g++ platform
5 5
6* This qmake.conf unlike other platforms reads most variables from 6* This qmake.conf unlike other platforms reads most variables from
7 shell environment, because it's easier for qt recipes to export 7 shell environment, because it's easier for qt recipes to export
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
index 5bcc22e7..1834beea 100644
--- a/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
+++ b/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
@@ -1,8 +1,8 @@
1From 41257668e0cb03056d79b2917d54a6e01bf2ed36 Mon Sep 17 00:00:00 2001 1From 41257668e0cb03056d79b2917d54a6e01bf2ed36 Mon Sep 17 00:00:00 2001
2From: Holger Freyther <zecke@selfish.org> 2From: Holger Freyther <zecke@selfish.org>
3Date: Wed, 26 Sep 2012 17:22:30 +0200 3Date: Wed, 26 Sep 2012 17:22:30 +0200
4Subject: [PATCH 2/6] qlibraryinfo: allow to set qt.conf from the outside using 4Subject: [PATCH 02/11] qlibraryinfo: allow to set qt.conf from the outside
5 the environment 5 using the environment
6 6
7Allow to set a qt.conf from the outside using the environment. This allows 7Allow to set a qt.conf from the outside using the environment. This allows
8to inject new prefixes and other paths into qmake. This is needed when using 8to inject new prefixes and other paths into qmake. This is needed when using
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0003-Add-external-hostbindir-option.patch b/recipes-qt/qt5/qtbase-5.0.2/0003-Add-external-hostbindir-option.patch
index b31ebabe..e44d7381 100644
--- a/recipes-qt/qt5/qtbase-5.0.2/0003-Add-external-hostbindir-option.patch
+++ b/recipes-qt/qt5/qtbase-5.0.2/0003-Add-external-hostbindir-option.patch
@@ -1,7 +1,7 @@
1From 79f1b015148779b92dc6e65dffd297b8b9522f79 Mon Sep 17 00:00:00 2001 1From 79f1b015148779b92dc6e65dffd297b8b9522f79 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 6 Apr 2013 13:15:07 +0200 3Date: Sat, 6 Apr 2013 13:15:07 +0200
4Subject: [PATCH 3/6] Add -external-hostbindir option 4Subject: [PATCH 03/11] Add -external-hostbindir option
5 5
6* when cross-compiling it's sometimes useful to use existing tools from machine 6* when cross-compiling it's sometimes useful to use existing tools from machine
7 (or in OpenEmbedded built with separate native recipe) when building for target 7 (or in OpenEmbedded built with separate native recipe) when building for target
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0004-qmake-is-already-built-in-qtbase-native.patch b/recipes-qt/qt5/qtbase-5.0.2/0004-qmake-is-already-built-in-qtbase-native.patch
index 03eb9d58..93cd334d 100644
--- a/recipes-qt/qt5/qtbase-5.0.2/0004-qmake-is-already-built-in-qtbase-native.patch
+++ b/recipes-qt/qt5/qtbase-5.0.2/0004-qmake-is-already-built-in-qtbase-native.patch
@@ -1,7 +1,7 @@
1From 1dd6ee9bb2aafb8d77d9c7e465b9cf6d778bc283 Mon Sep 17 00:00:00 2001 1From 1dd6ee9bb2aafb8d77d9c7e465b9cf6d778bc283 Mon Sep 17 00:00:00 2001
2From: Michael Krelin <hacker@klever.net> 2From: Michael Krelin <hacker@klever.net>
3Date: Mon, 29 Oct 2012 20:07:49 -0700 3Date: Mon, 29 Oct 2012 20:07:49 -0700
4Subject: [PATCH 4/6] qmake is already built in qtbase-native 4Subject: [PATCH 04/11] qmake is already built in qtbase-native
5 5
6Ported from OE by: Yu Ke <ke.yu@intel.com> 6Ported from OE by: Yu Ke <ke.yu@intel.com>
7Upstream-Status: Inappropriate [configuration] 7Upstream-Status: Inappropriate [configuration]
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0005-Allow-building-a-separate-qmake-for-the-target.patch b/recipes-qt/qt5/qtbase-5.0.2/0005-Allow-building-a-separate-qmake-for-the-target.patch
index 13bfad45..3889ab13 100644
--- a/recipes-qt/qt5/qtbase-5.0.2/0005-Allow-building-a-separate-qmake-for-the-target.patch
+++ b/recipes-qt/qt5/qtbase-5.0.2/0005-Allow-building-a-separate-qmake-for-the-target.patch
@@ -1,7 +1,7 @@
1From 41ee07272cea21621c26ddeb02a3756e94b29f9a Mon Sep 17 00:00:00 2001 1From 41ee07272cea21621c26ddeb02a3756e94b29f9a Mon Sep 17 00:00:00 2001
2From: Paul Eggleton <paul.eggleton@linux.intel.com> 2From: Paul Eggleton <paul.eggleton@linux.intel.com>
3Date: Mon, 29 Oct 2012 20:26:36 -0700 3Date: Mon, 29 Oct 2012 20:26:36 -0700
4Subject: [PATCH 5/6] Allow building a separate qmake for the target 4Subject: [PATCH 05/11] Allow building a separate qmake for the target
5 5
6Upstream-Status: Inappropriate [config] 6Upstream-Status: Inappropriate [config]
7 7
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch b/recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch
index 87595341..ff5bc0c1 100644
--- a/recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch
+++ b/recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch
@@ -1,7 +1,7 @@
1From 753924949e1d72c63283ecc904e2134fa76888d7 Mon Sep 17 00:00:00 2001 1From 753924949e1d72c63283ecc904e2134fa76888d7 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Wed, 17 Apr 2013 18:06:25 +0200 3Date: Wed, 17 Apr 2013 18:06:25 +0200
4Subject: [PATCH 6/6] qt_functions: temporary remove isEmpty check 4Subject: [PATCH 06/11] qt_functions: temporary remove isEmpty check
5 5
6* now we assume that every build will provide QT_EXTERNAL_HOST_BINS value 6* now we assume that every build will provide QT_EXTERNAL_HOST_BINS value
7 7
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch b/recipes-qt/qt5/qtbase-5.0.2/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch
new file mode 100644
index 00000000..c7c418fd
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-5.0.2/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch
@@ -0,0 +1,30 @@
1From c6909ce9ed3e65833ae835d89b346fbb158a1127 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 22:33:33 +0200
4Subject: [PATCH 08/11] configureapp: Prefix default LIBDIRS and INCDIRS with
5 SYSROOT
6
7Change-Id: I275b30f67bc477d8e9a008f4894198859ec45017
8Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
9---
10 tools/configure/configureapp.cpp | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
14index cfc6f97..d0e17fa 100644
15--- a/tools/configure/configureapp.cpp
16+++ b/tools/configure/configureapp.cpp
17@@ -3087,8 +3087,8 @@ void Configure::generateQConfigPri()
18 configStream << "QT_HOST_CPU_FEATURES = " << dictionary["QT_HOST_CPU_FEATURES"] << endl;
19 if (dictionary.contains("XQMAKESPEC") && !dictionary["XQMAKESPEC"].startsWith("wince")) {
20 // FIXME: add detection
21- configStream << "QMAKE_DEFAULT_LIBDIRS = /lib /usr/lib" << endl;
22- configStream << "QMAKE_DEFAULT_INCDIRS = /usr/include /usr/local/include" << endl;
23+ configStream << "QMAKE_DEFAULT_LIBDIRS = $$[QT_SYSROOT]/lib $$[QT_SYSROOT]/usr/lib" << endl;
24+ configStream << "QMAKE_DEFAULT_INCDIRS = $$[QT_SYSROOT]/usr/include $$[QT_SYSROOT]/usr/local/include" << endl;
25 }
26 if (dictionary["QT_EDITION"].contains("OPENSOURCE"))
27 configStream << "QT_EDITION = " << QLatin1String("OpenSource") << endl;
28--
291.8.2.1
30
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0009-qt_module-Fix-pkgconfig-replacement.patch b/recipes-qt/qt5/qtbase-5.0.2/0009-qt_module-Fix-pkgconfig-replacement.patch
new file mode 100644
index 00000000..a9f66b7c
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-5.0.2/0009-qt_module-Fix-pkgconfig-replacement.patch
@@ -0,0 +1,67 @@
1From 0bd37923dec93270066fc4362db7e443475a4b06 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 23:15:37 +0200
4Subject: [PATCH 09/11] qt_module: Fix pkgconfig replacement
5
6* in situation like this:
7 QT_SYSROOT:/OE/oe-core/tmp-eglibc/sysroots/qemuarm
8 QT_INSTALL_LIBS:/OE/oe-core/tmp-eglibc/sysroots/qemuarm/usr/lib
9 QT_INSTALL_LIBS/raw:/usr/lib
10 QT_INSTALL_LIBS/get:/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/lib
11
12 I don't want the replacement like this:
13 sed
14 -e "s,/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/include,/usr/include/qt5,g"
15 -e "s,/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/lib,/usr/lib,g"
16 "../../lib/pkgconfig/Qt5Core.pc"
17 >"/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/image/OE/oe-core/tmp-eglibc/sysroots/qemuarm/usr/lib/pkgconfig/Qt5Core.pc"
18 because that way I'll end with -L/usr/lib in .pc file which is
19 cross-compile unfriendly, keeping ${libdir}/${includedir} works better
20 in my case
21
22Change-Id: Id0f9143c012b7fe7bb7bab0055687f4e0517f653
23Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
24---
25 mkspecs/features/qt_module.prf | 16 ++++++++++++++--
26 1 file changed, 14 insertions(+), 2 deletions(-)
27
28diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
29index 1132943..7fbfd8d 100644
30--- a/mkspecs/features/qt_module.prf
31+++ b/mkspecs/features/qt_module.prf
32@@ -128,18 +128,30 @@ unix|win32-g++* {
33 rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]*
34 else: \
35 rplbase = $$MODULE_BASE_OUTDIR
36+ pkgconfig_include_replace.match = $$rplbase/include
37+ pkgconfig_include_replace.replace = "\$$\\{includedir}"
38+ pkgconfig_lib_replace.match = $$rplbase/lib
39+ pkgconfig_lib_replace.replace = "\$$\\{libdir}"
40 include_replace.match = $$rplbase/include
41 include_replace.replace = $$[QT_INSTALL_HEADERS/raw]
42 lib_replace.match = $$rplbase/lib
43 lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
44- QMAKE_PKGCONFIG_INSTALL_REPLACE += include_replace lib_replace
45+ lafile_replace.match = $$rplbase
46+ lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]"
47+
48+ !isEmpty(SYSROOT): \
49+ rplbase = $$[SYSROOT] \
50+ lafile_replace.match = $$rplbase \
51+ lafile_replace.replace = "=" \
52+
53+ QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace pkgconfig_lib_replace
54 QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
55 }
56
57 unix {
58 CONFIG += create_libtool explicitlib
59 QMAKE_LIBTOOL_LIBDIR = $$[QT_INSTALL_LIBS/raw]
60- QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace
61+ QMAKE_LIBTOOL_INSTALL_REPLACE += lafile_replace
62 }
63
64 unix|win32-g++* {
65--
661.8.2.1
67
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch b/recipes-qt/qt5/qtbase-5.0.2/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch
new file mode 100644
index 00000000..d5a31acf
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-5.0.2/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch
@@ -0,0 +1,34 @@
1From 10dde2fe0b7d8fe9ca7b4aa21d351b5dc01341c0 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 22:51:54 +0200
4Subject: [PATCH 10/11] qmake/property: rename QT_INSTALL_CONFIGURATION to
5 QT_INSTALL_SETTINGS
6
7* this variable is referenced from configure and configureapp.cpp as QT_INSTALL_SETTINGS
8 property.cpp was only place using name QT_INSTALL_CONFIGURATION
9
10Upstream-Status: Submitted
11https://codereview.qt-project.org/54912
12
13Change-Id: I0f3c3b5c0527d22c0171674710cdbb32f10e990f
14Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
15---
16 qmake/property.cpp | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/qmake/property.cpp b/qmake/property.cpp
20index c1b7a9f..af2eacf 100644
21--- a/qmake/property.cpp
22+++ b/qmake/property.cpp
23@@ -68,7 +68,7 @@ static const struct {
24 { "QT_INSTALL_IMPORTS", QLibraryInfo::ImportsPath, false },
25 { "QT_INSTALL_QML", QLibraryInfo::Qml2ImportsPath, false },
26 { "QT_INSTALL_TRANSLATIONS", QLibraryInfo::TranslationsPath, false },
27- { "QT_INSTALL_CONFIGURATION", QLibraryInfo::SettingsPath, false },
28+ { "QT_INSTALL_SETTINGS", QLibraryInfo::SettingsPath, false },
29 { "QT_INSTALL_EXAMPLES", QLibraryInfo::ExamplesPath, false },
30 { "QT_INSTALL_DEMOS", QLibraryInfo::ExamplesPath, false }, // Just backwards compat
31 { "QT_HOST_PREFIX", QLibraryInfo::HostPrefixPath, true },
32--
331.8.2.1
34
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch b/recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch
new file mode 100644
index 00000000..19523084
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-5.0.2/0011-qt_module-Fix-paths-in-.prl-files.patch
@@ -0,0 +1,61 @@
1From 851960243212ffe0ac25d0fea236b7a8bc0e5dc5 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sun, 28 Apr 2013 12:56:55 +0200
4Subject: [PATCH 11/11] qt_module: Fix paths in .prl files
5
6* qmake does not prefix them with QT_SYSROOT when using them
7 so e.g. when building qtdeclarative we get -L/usr/lib to LINKAGE
8 variable, which is unsafe for cross-compilation
9* writting QT_SYSROOT in .prl files is dangerous for sstate when
10 builds are in different directories, so we need
11 SSTATE_SCAN_FILES += "*.pri *.prl"
12 to make them relocateble
13
14Change-Id: I4b66dcad539a3ba876d8e4ee2eb2ccd626cd03ea
15Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
16---
17 mkspecs/features/qt_module.prf | 28 +++++++++++++++++-----------
18 1 file changed, 17 insertions(+), 11 deletions(-)
19
20diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
21index 7fbfd8d..226119f 100644
22--- a/mkspecs/features/qt_module.prf
23+++ b/mkspecs/features/qt_module.prf
24@@ -132,17 +132,23 @@ unix|win32-g++* {
25 pkgconfig_include_replace.replace = "\$$\\{includedir}"
26 pkgconfig_lib_replace.match = $$rplbase/lib
27 pkgconfig_lib_replace.replace = "\$$\\{libdir}"
28- include_replace.match = $$rplbase/include
29- include_replace.replace = $$[QT_INSTALL_HEADERS/raw]
30- lib_replace.match = $$rplbase/lib
31- lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
32- lafile_replace.match = $$rplbase
33- lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]"
34-
35- !isEmpty(SYSROOT): \
36- rplbase = $$[SYSROOT] \
37- lafile_replace.match = $$rplbase \
38- lafile_replace.replace = "=" \
39+ !exists($$[QT_SYSROOT]) {
40+ include_replace.match = $$rplbase/include
41+ include_replace.replace = $$[QT_INSTALL_HEADERS/raw]
42+ lib_replace.match = $$rplbase/lib
43+ lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
44+ lafile_replace.match = $$rplbase
45+ lafile_replace.replace = "$$[QT_INSTALL_PREFIX/raw]"
46+ } else {
47+ # include_replace and lib_replace are duplicate, but we don't want to
48+ # make QMAKE_PKGCONFIG_INSTALL_REPLACE, QMAKE_PRL_INSTALL_REPLACE conditional
49+ include_replace.match = $$rplbase
50+ include_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw]
51+ lib_replace.match = $$rplbase
52+ lib_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw]
53+ lafile_replace.match = $$rplbase
54+ lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]"
55+ }
56
57 QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace pkgconfig_lib_replace
58 QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
59--
601.8.2.1
61
diff --git a/recipes-qt/qt5/qtbase-git/0001-Add-linux-oe-g-platform.patch b/recipes-qt/qt5/qtbase-git/0001-Add-linux-oe-g-platform.patch
index 0a0eca43..1b4ed742 100644
--- a/recipes-qt/qt5/qtbase-git/0001-Add-linux-oe-g-platform.patch
+++ b/recipes-qt/qt5/qtbase-git/0001-Add-linux-oe-g-platform.patch
@@ -1,7 +1,7 @@
1From 21001bb1c68fdc22ee243c562549f7b3a8a8ed84 Mon Sep 17 00:00:00 2001 1From 0cdd1297e98edd3368a6b923923ff6cf0684d800 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Mon, 15 Apr 2013 04:29:32 +0200 3Date: Mon, 15 Apr 2013 04:29:32 +0200
4Subject: [PATCH 1/6] Add linux-oe-g++ platform 4Subject: [PATCH 01/11] Add linux-oe-g++ platform
5 5
6* This qmake.conf unlike other platforms reads most variables from 6* This qmake.conf unlike other platforms reads most variables from
7 shell environment, because it's easier for qt recipes to export 7 shell environment, because it's easier for qt recipes to export
@@ -41,7 +41,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
41 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h 41 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h
42 42
43diff --git a/configure b/configure 43diff --git a/configure b/configure
44index 55a643a..666576f 100755 44index 9c86fa1..7dea731 100755
45--- a/configure 45--- a/configure
46+++ b/configure 46+++ b/configure
47@@ -284,6 +284,16 @@ getQMakeConf() 47@@ -284,6 +284,16 @@ getQMakeConf()
diff --git a/recipes-qt/qt5/qtbase-git/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase-git/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
index d1108133..f1447597 100644
--- a/recipes-qt/qt5/qtbase-git/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
+++ b/recipes-qt/qt5/qtbase-git/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
@@ -1,8 +1,8 @@
1From 80cdde4c31e6e5f534ca5e218b9b5cc5fd079b9a Mon Sep 17 00:00:00 2001 1From a256652b730e88566eb04dd7cdc39d5a1281c7fe Mon Sep 17 00:00:00 2001
2From: Holger Freyther <zecke@selfish.org> 2From: Holger Freyther <zecke@selfish.org>
3Date: Wed, 26 Sep 2012 17:22:30 +0200 3Date: Wed, 26 Sep 2012 17:22:30 +0200
4Subject: [PATCH 2/6] qlibraryinfo: allow to set qt.conf from the outside using 4Subject: [PATCH 02/11] qlibraryinfo: allow to set qt.conf from the outside
5 the environment 5 using the environment
6 6
7Allow to set a qt.conf from the outside using the environment. This allows 7Allow to set a qt.conf from the outside using the environment. This allows
8to inject new prefixes and other paths into qmake. This is needed when using 8to inject new prefixes and other paths into qmake. This is needed when using
diff --git a/recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch b/recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch
index b99eb1cf..e1c56ac3 100644
--- a/recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch
+++ b/recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch
@@ -1,7 +1,7 @@
1From e8fe1934151a47fd3ec86fb0054e137237fa69b7 Mon Sep 17 00:00:00 2001 1From c244c6a89f6f70a2443748475f482cc97e3ac118 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 6 Apr 2013 13:15:07 +0200 3Date: Sat, 6 Apr 2013 13:15:07 +0200
4Subject: [PATCH 3/6] Add -external-hostbindir option 4Subject: [PATCH 03/11] Add -external-hostbindir option
5 5
6* when cross-compiling it's sometimes useful to use existing tools from machine 6* when cross-compiling it's sometimes useful to use existing tools from machine
7 (or in OpenEmbedded built with separate native recipe) when building for target 7 (or in OpenEmbedded built with separate native recipe) when building for target
@@ -21,7 +21,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
21 8 files changed, 42 insertions(+), 8 deletions(-) 21 8 files changed, 42 insertions(+), 8 deletions(-)
22 22
23diff --git a/configure b/configure 23diff --git a/configure b/configure
24index 666576f..93dbfab 100755 24index 7dea731..65f4d26 100755
25--- a/configure 25--- a/configure
26+++ b/configure 26+++ b/configure
27@@ -1034,6 +1034,7 @@ CFG_GCC_SYSROOT="yes" 27@@ -1034,6 +1034,7 @@ CFG_GCC_SYSROOT="yes"
@@ -98,10 +98,10 @@ index 8cd2473..876f657 100644
98 exists($$eval($$1).bat) { 98 exists($$eval($$1).bat) {
99 $$1 = $$eval($$1).bat 99 $$1 = $$eval($$1).bat
100diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf 100diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf
101index 46d031f..5758604 100644 101index 0a58880..c110ea5 100644
102--- a/mkspecs/features/qt_tool.prf 102--- a/mkspecs/features/qt_tool.prf
103+++ b/mkspecs/features/qt_tool.prf 103+++ b/mkspecs/features/qt_tool.prf
104@@ -37,7 +37,7 @@ load(qt_common) 104@@ -16,7 +16,7 @@ CONFIG += console
105 # If we are doing a prefix build, create a "module" pri which enables 105 # If we are doing a prefix build, create a "module" pri which enables
106 # qtPrepareTool() to work with the non-installed build. 106 # qtPrepareTool() to work with the non-installed build.
107 # Non-bootstrapped tools always need this because of the environment setup. 107 # Non-bootstrapped tools always need this because of the environment setup.
@@ -189,10 +189,10 @@ index 1a00a14..7e4829c 100644
189 HostSpecPath, 189 HostSpecPath,
190 LastHostPath = HostSpecPath, 190 LastHostPath = HostSpecPath,
191diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp 191diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
192index dc11c0d..6d79631 100644 192index a18aac3..57409b1 100644
193--- a/tools/configure/configureapp.cpp 193--- a/tools/configure/configureapp.cpp
194+++ b/tools/configure/configureapp.cpp 194+++ b/tools/configure/configureapp.cpp
195@@ -1167,6 +1167,13 @@ void Configure::parseCmdLine() 195@@ -1173,6 +1173,13 @@ void Configure::parseCmdLine()
196 dictionary[ "QT_HOST_DATA" ] = configCmdLine.at(i); 196 dictionary[ "QT_HOST_DATA" ] = configCmdLine.at(i);
197 } 197 }
198 198
@@ -206,7 +206,7 @@ index dc11c0d..6d79631 100644
206 else if (configCmdLine.at(i) == "-make-tool") { 206 else if (configCmdLine.at(i) == "-make-tool") {
207 ++i; 207 ++i;
208 if (i == argCount) 208 if (i == argCount)
209@@ -3763,6 +3770,7 @@ void Configure::generateQConfigCpp() 209@@ -3775,6 +3782,7 @@ void Configure::generateQConfigCpp()
210 << " \"qt_hpfxpath=" << formatPath(dictionary["QT_HOST_PREFIX"]) << "\"," << endl 210 << " \"qt_hpfxpath=" << formatPath(dictionary["QT_HOST_PREFIX"]) << "\"," << endl
211 << " \"qt_hbinpath=" << formatPath(dictionary["QT_HOST_BINS"]) << "\"," << endl 211 << " \"qt_hbinpath=" << formatPath(dictionary["QT_HOST_BINS"]) << "\"," << endl
212 << " \"qt_hdatpath=" << formatPath(dictionary["QT_HOST_DATA"]) << "\"," << endl 212 << " \"qt_hdatpath=" << formatPath(dictionary["QT_HOST_DATA"]) << "\"," << endl
diff --git a/recipes-qt/qt5/qtbase-git/0004-qmake-is-already-built-in-qtbase-native.patch b/recipes-qt/qt5/qtbase-git/0004-qmake-is-already-built-in-qtbase-native.patch
index 4b8dd912..285c8a46 100644
--- a/recipes-qt/qt5/qtbase-git/0004-qmake-is-already-built-in-qtbase-native.patch
+++ b/recipes-qt/qt5/qtbase-git/0004-qmake-is-already-built-in-qtbase-native.patch
@@ -1,7 +1,7 @@
1From 915a980742cd072df6faa386daf3f937f5b5b215 Mon Sep 17 00:00:00 2001 1From d0f322cf4ee9ead48997bb3e3a2c137bba91141b Mon Sep 17 00:00:00 2001
2From: Michael Krelin <hacker@klever.net> 2From: Michael Krelin <hacker@klever.net>
3Date: Mon, 29 Oct 2012 20:07:49 -0700 3Date: Mon, 29 Oct 2012 20:07:49 -0700
4Subject: [PATCH 4/6] qmake is already built in qtbase-native 4Subject: [PATCH 04/11] qmake is already built in qtbase-native
5 5
6Ported from OE by: Yu Ke <ke.yu@intel.com> 6Ported from OE by: Yu Ke <ke.yu@intel.com>
7Upstream-Status: Inappropriate [configuration] 7Upstream-Status: Inappropriate [configuration]
@@ -13,7 +13,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
13 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
14 14
15diff --git a/configure b/configure 15diff --git a/configure b/configure
16index 93dbfab..dd5e646 100755 16index 65f4d26..dbf99a9 100755
17--- a/configure 17--- a/configure
18+++ b/configure 18+++ b/configure
19@@ -3938,7 +3938,7 @@ setBootstrapEvalVariable() 19@@ -3938,7 +3938,7 @@ setBootstrapEvalVariable()
diff --git a/recipes-qt/qt5/qtbase-git/0005-Allow-building-a-separate-qmake-for-the-target.patch b/recipes-qt/qt5/qtbase-git/0005-Allow-building-a-separate-qmake-for-the-target.patch
index 6cc968bb..b239fd5b 100644
--- a/recipes-qt/qt5/qtbase-git/0005-Allow-building-a-separate-qmake-for-the-target.patch
+++ b/recipes-qt/qt5/qtbase-git/0005-Allow-building-a-separate-qmake-for-the-target.patch
@@ -1,7 +1,7 @@
1From f1246cedac44bfacb5a475d4ed247a3ac00c67d0 Mon Sep 17 00:00:00 2001 1From a6a15ff0150ca685909782f0ca861fa4336f33b3 Mon Sep 17 00:00:00 2001
2From: Paul Eggleton <paul.eggleton@linux.intel.com> 2From: Paul Eggleton <paul.eggleton@linux.intel.com>
3Date: Mon, 29 Oct 2012 20:26:36 -0700 3Date: Mon, 29 Oct 2012 20:26:36 -0700
4Subject: [PATCH 5/6] Allow building a separate qmake for the target 4Subject: [PATCH 05/11] Allow building a separate qmake for the target
5 5
6Upstream-Status: Inappropriate [config] 6Upstream-Status: Inappropriate [config]
7 7
diff --git a/recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch b/recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch
index 210e367d..a2b1e5e8 100644
--- a/recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch
+++ b/recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch
@@ -1,7 +1,7 @@
1From 6d1c296d6df2c5efd8aec3272e7eacae1c093885 Mon Sep 17 00:00:00 2001 1From e356895802c2a1e596882c79161994ebbf361d65 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Wed, 17 Apr 2013 18:06:25 +0200 3Date: Wed, 17 Apr 2013 18:06:25 +0200
4Subject: [PATCH 6/6] qt_functions: temporary remove isEmpty check 4Subject: [PATCH 06/11] qt_functions: temporary remove isEmpty check
5 5
6* now we assume that every build will provide QT_EXTERNAL_HOST_BINS value 6* now we assume that every build will provide QT_EXTERNAL_HOST_BINS value
7 7
@@ -29,10 +29,10 @@ index 876f657..0e094a8 100644
29 } 29 }
30 contains(QMAKE_HOST.os, Windows):!contains($$1, .*\\.(exe|bat)$) { 30 contains(QMAKE_HOST.os, Windows):!contains($$1, .*\\.(exe|bat)$) {
31diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf 31diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf
32index 5758604..37b50d4 100644 32index c110ea5..34ee9ca 100644
33--- a/mkspecs/features/qt_tool.prf 33--- a/mkspecs/features/qt_tool.prf
34+++ b/mkspecs/features/qt_tool.prf 34+++ b/mkspecs/features/qt_tool.prf
35@@ -36,8 +36,7 @@ load(qt_common) 35@@ -15,8 +15,7 @@ CONFIG += console
36 36
37 # If we are doing a prefix build, create a "module" pri which enables 37 # If we are doing a prefix build, create a "module" pri which enables
38 # qtPrepareTool() to work with the non-installed build. 38 # qtPrepareTool() to work with the non-installed build.
diff --git a/recipes-qt/qt5/qtbase-git/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch b/recipes-qt/qt5/qtbase-git/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch
new file mode 100644
index 00000000..90d6f75a
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-git/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch
@@ -0,0 +1,29 @@
1From 6c494ea0e73c9ef60f45e7fdc0de40bb51ad5ac6 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 22:33:33 +0200
4Subject: [PATCH 08/11] configureapp: Prefix default LIBDIRS and INCDIRS with
5 SYSROOT
6
7Change-Id: I464c25888ab8b99ced6bd669b5c6448d491725a8
8---
9 tools/configure/configureapp.cpp | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
13index 57409b1..f443007 100644
14--- a/tools/configure/configureapp.cpp
15+++ b/tools/configure/configureapp.cpp
16@@ -3172,8 +3172,8 @@ void Configure::generateQConfigPri()
17 configStream << "QT_HOST_CPU_FEATURES = " << dictionary["QT_HOST_CPU_FEATURES"] << endl;
18 if (dictionary.contains("XQMAKESPEC") && !dictionary["XQMAKESPEC"].startsWith("wince")) {
19 // FIXME: add detection
20- configStream << "QMAKE_DEFAULT_LIBDIRS = /lib /usr/lib" << endl;
21- configStream << "QMAKE_DEFAULT_INCDIRS = /usr/include /usr/local/include" << endl;
22+ configStream << "QMAKE_DEFAULT_LIBDIRS = $$[QT_SYSROOT]/lib $$[QT_SYSROOT]/usr/lib" << endl;
23+ configStream << "QMAKE_DEFAULT_INCDIRS = $$[QT_SYSROOT]/usr/include $$[QT_SYSROOT]/usr/local/include" << endl;
24 }
25 if (dictionary["QT_EDITION"].contains("OPENSOURCE"))
26 configStream << "QT_EDITION = " << QLatin1String("OpenSource") << endl;
27--
281.8.2.1
29
diff --git a/recipes-qt/qt5/qtbase-git/0009-qt_module-Fix-pkgconfig-replacement.patch b/recipes-qt/qt5/qtbase-git/0009-qt_module-Fix-pkgconfig-replacement.patch
new file mode 100644
index 00000000..67769b33
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-git/0009-qt_module-Fix-pkgconfig-replacement.patch
@@ -0,0 +1,67 @@
1From 72f1087fef0e506b9ab015498f5c7a4b3161c6f3 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 23:15:37 +0200
4Subject: [PATCH 09/11] qt_module: Fix pkgconfig replacement
5
6* in situation like this:
7 QT_SYSROOT:/OE/oe-core/tmp-eglibc/sysroots/qemuarm
8 QT_INSTALL_LIBS:/OE/oe-core/tmp-eglibc/sysroots/qemuarm/usr/lib
9 QT_INSTALL_LIBS/raw:/usr/lib
10 QT_INSTALL_LIBS/get:/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/lib
11
12 I don't want the replacement like this:
13 sed
14 -e "s,/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/include,/usr/include/qt5,g"
15 -e "s,/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/lib,/usr/lib,g"
16 "../../lib/pkgconfig/Qt5Core.pc"
17 >"/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/image/OE/oe-core/tmp-eglibc/sysroots/qemuarm/usr/lib/pkgconfig/Qt5Core.pc"
18 because that way I'll end with -L/usr/lib in .pc file which is
19 cross-compile unfriendly, keeping ${libdir}/${includedir} works better
20 in my case
21
22Change-Id: Id0f9143c012b7fe7bb7bab0055687f4e0517f653
23Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
24---
25 mkspecs/features/qt_module.prf | 16 ++++++++++++++--
26 1 file changed, 14 insertions(+), 2 deletions(-)
27
28diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
29index 3531d28..1c43972 100644
30--- a/mkspecs/features/qt_module.prf
31+++ b/mkspecs/features/qt_module.prf
32@@ -136,18 +136,30 @@ unix|win32-g++* {
33 rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]*
34 else: \
35 rplbase = $$MODULE_BASE_OUTDIR
36+ pkgconfig_include_replace.match = $$rplbase/include
37+ pkgconfig_include_replace.replace = "\$$\\{includedir}"
38+ pkgconfig_lib_replace.match = $$rplbase/lib
39+ pkgconfig_lib_replace.replace = "\$$\\{libdir}"
40 include_replace.match = $$rplbase/include
41 include_replace.replace = $$[QT_INSTALL_HEADERS/raw]
42 lib_replace.match = $$rplbase/lib
43 lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
44- QMAKE_PKGCONFIG_INSTALL_REPLACE += include_replace lib_replace
45+ lafile_replace.match = $$rplbase
46+ lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]"
47+
48+ !isEmpty(SYSROOT): \
49+ rplbase = $$[SYSROOT] \
50+ lafile_replace.match = $$rplbase \
51+ lafile_replace.replace = "=" \
52+
53+ QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace pkgconfig_lib_replace
54 QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
55 }
56
57 unix {
58 CONFIG += create_libtool explicitlib
59 QMAKE_LIBTOOL_LIBDIR = $$[QT_INSTALL_LIBS/raw]
60- QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace
61+ QMAKE_LIBTOOL_INSTALL_REPLACE += lafile_replace
62 }
63
64 unix|win32-g++* {
65--
661.8.2.1
67
diff --git a/recipes-qt/qt5/qtbase-git/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch b/recipes-qt/qt5/qtbase-git/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch
new file mode 100644
index 00000000..4fa772cd
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-git/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch
@@ -0,0 +1,33 @@
1From 6d816874a95cb85bdf96e06f763e21c098d92b89 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 22:51:54 +0200
4Subject: [PATCH 10/11] qmake/property: rename QT_INSTALL_CONFIGURATION to
5 QT_INSTALL_SETTINGS
6
7* this variable is referenced from configure and configureapp.cpp as QT_INSTALL_SETTINGS
8 property.cpp was only place using name QT_INSTALL_CONFIGURATION
9
10Upstream-Status: Submitted
11https://codereview.qt-project.org/54912
12
13Change-Id: I3ba40d5f8773fe9aea728c5b2418aa55cecc92da
14---
15 qmake/property.cpp | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/qmake/property.cpp b/qmake/property.cpp
19index c1b7a9f..af2eacf 100644
20--- a/qmake/property.cpp
21+++ b/qmake/property.cpp
22@@ -68,7 +68,7 @@ static const struct {
23 { "QT_INSTALL_IMPORTS", QLibraryInfo::ImportsPath, false },
24 { "QT_INSTALL_QML", QLibraryInfo::Qml2ImportsPath, false },
25 { "QT_INSTALL_TRANSLATIONS", QLibraryInfo::TranslationsPath, false },
26- { "QT_INSTALL_CONFIGURATION", QLibraryInfo::SettingsPath, false },
27+ { "QT_INSTALL_SETTINGS", QLibraryInfo::SettingsPath, false },
28 { "QT_INSTALL_EXAMPLES", QLibraryInfo::ExamplesPath, false },
29 { "QT_INSTALL_DEMOS", QLibraryInfo::ExamplesPath, false }, // Just backwards compat
30 { "QT_HOST_PREFIX", QLibraryInfo::HostPrefixPath, true },
31--
321.8.2.1
33
diff --git a/recipes-qt/qt5/qtbase-git/0011-qt_module-Fix-paths-in-.prl-files.patch b/recipes-qt/qt5/qtbase-git/0011-qt_module-Fix-paths-in-.prl-files.patch
new file mode 100644
index 00000000..65fd4f5e
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-git/0011-qt_module-Fix-paths-in-.prl-files.patch
@@ -0,0 +1,61 @@
1From 57da761a8e1995a20250c6600bc99937a7b203b4 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sun, 28 Apr 2013 12:56:55 +0200
4Subject: [PATCH 11/11] qt_module: Fix paths in .prl files
5
6* qmake does not prefix them with QT_SYSROOT when using them
7 so e.g. when building qtdeclarative we get -L/usr/lib to LINKAGE
8 variable, which is unsafe for cross-compilation
9* writting QT_SYSROOT in .prl files is dangerous for sstate when
10 builds are in different directories, so we need
11 SSTATE_SCAN_FILES += "*.pri *.prl"
12 to make them relocateble
13
14Change-Id: I4b66dcad539a3ba876d8e4ee2eb2ccd626cd03ea
15Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
16---
17 mkspecs/features/qt_module.prf | 28 +++++++++++++++++-----------
18 1 file changed, 17 insertions(+), 11 deletions(-)
19
20diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
21index 1c43972..feec2d5 100644
22--- a/mkspecs/features/qt_module.prf
23+++ b/mkspecs/features/qt_module.prf
24@@ -140,17 +140,23 @@ unix|win32-g++* {
25 pkgconfig_include_replace.replace = "\$$\\{includedir}"
26 pkgconfig_lib_replace.match = $$rplbase/lib
27 pkgconfig_lib_replace.replace = "\$$\\{libdir}"
28- include_replace.match = $$rplbase/include
29- include_replace.replace = $$[QT_INSTALL_HEADERS/raw]
30- lib_replace.match = $$rplbase/lib
31- lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
32- lafile_replace.match = $$rplbase
33- lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]"
34-
35- !isEmpty(SYSROOT): \
36- rplbase = $$[SYSROOT] \
37- lafile_replace.match = $$rplbase \
38- lafile_replace.replace = "=" \
39+ !exists($$[QT_SYSROOT]) {
40+ include_replace.match = $$rplbase/include
41+ include_replace.replace = $$[QT_INSTALL_HEADERS/raw]
42+ lib_replace.match = $$rplbase/lib
43+ lib_replace.replace = $$[QT_INSTALL_LIBS/raw]
44+ lafile_replace.match = $$rplbase
45+ lafile_replace.replace = "$$[QT_INSTALL_PREFIX/raw]"
46+ } else {
47+ # include_replace and lib_replace are duplicate, but we don't want to
48+ # make QMAKE_PKGCONFIG_INSTALL_REPLACE, QMAKE_PRL_INSTALL_REPLACE conditional
49+ include_replace.match = $$rplbase
50+ include_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw]
51+ lib_replace.match = $$rplbase
52+ lib_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw]
53+ lafile_replace.match = $$rplbase
54+ lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]"
55+ }
56
57 QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace pkgconfig_lib_replace
58 QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace
59--
601.8.2.1
61
diff --git a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
index 2d9d539b..49244bef 100644
--- a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
+++ b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
@@ -1,7 +1,7 @@
1From f5d5c9778031fbb807753c67133ddda35f9a0e30 Mon Sep 17 00:00:00 2001 1From f5d5c9778031fbb807753c67133ddda35f9a0e30 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Mon, 15 Apr 2013 04:29:32 +0200 3Date: Mon, 15 Apr 2013 04:29:32 +0200
4Subject: [PATCH 1/6] Add linux-oe-g++ platform 4Subject: [PATCH 01/11] Add linux-oe-g++ platform
5 5
6* This qmake.conf unlike other platforms reads most variables from 6* This qmake.conf unlike other platforms reads most variables from
7 shell environment, because it's easier for qt recipes to export 7 shell environment, because it's easier for qt recipes to export
diff --git a/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
index f2a6efca..fc71a653 100644
--- a/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
+++ b/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
@@ -1,8 +1,8 @@
1From 29812cee9589dedd10a94b66ed5279549ed62f36 Mon Sep 17 00:00:00 2001 1From 29812cee9589dedd10a94b66ed5279549ed62f36 Mon Sep 17 00:00:00 2001
2From: Holger Freyther <zecke@selfish.org> 2From: Holger Freyther <zecke@selfish.org>
3Date: Wed, 26 Sep 2012 17:22:30 +0200 3Date: Wed, 26 Sep 2012 17:22:30 +0200
4Subject: [PATCH 2/6] qlibraryinfo: allow to set qt.conf from the outside using 4Subject: [PATCH 02/11] qlibraryinfo: allow to set qt.conf from the outside
5 the environment 5 using the environment
6 6
7Allow to set a qt.conf from the outside using the environment. This allows 7Allow to set a qt.conf from the outside using the environment. This allows
8to inject new prefixes and other paths into qmake. This is needed when using 8to inject new prefixes and other paths into qmake. This is needed when using
diff --git a/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch b/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch
index 338b1c32..14d5d52f 100644
--- a/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch
+++ b/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch
@@ -1,7 +1,7 @@
1From 72d8aaf00e3d722b56b66bd5fa1f1f3d3e8a8552 Mon Sep 17 00:00:00 2001 1From 72d8aaf00e3d722b56b66bd5fa1f1f3d3e8a8552 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 6 Apr 2013 13:15:07 +0200 3Date: Sat, 6 Apr 2013 13:15:07 +0200
4Subject: [PATCH 3/6] Add -external-hostbindir option 4Subject: [PATCH 03/11] Add -external-hostbindir option
5 5
6* when cross-compiling it's sometimes useful to use existing tools from machine 6* when cross-compiling it's sometimes useful to use existing tools from machine
7 (or in OpenEmbedded built with separate native recipe) when building for target 7 (or in OpenEmbedded built with separate native recipe) when building for target
@@ -118,7 +118,7 @@ index bbd4734..dca0c58 100644
118 { "QT_HOST_PREFIX", QLibraryInfo::HostPrefixPath, true }, 118 { "QT_HOST_PREFIX", QLibraryInfo::HostPrefixPath, true },
119 { "QT_HOST_DATA", QLibraryInfo::HostDataPath, true }, 119 { "QT_HOST_DATA", QLibraryInfo::HostDataPath, true },
120 { "QT_HOST_BINS", QLibraryInfo::HostBinariesPath, true }, 120 { "QT_HOST_BINS", QLibraryInfo::HostBinariesPath, true },
121+ { "QT_EXTERNAL_HOST_BINS", QLibraryInfo::ExternalHostBinariesPath, false }, 121+ { "QT_EXTERNAL_HOST_BINS", QLibraryInfo::ExternalHostBinariesPath, true },
122 { "QMAKE_SPEC", QLibraryInfo::HostSpecPath, true }, 122 { "QMAKE_SPEC", QLibraryInfo::HostSpecPath, true },
123 { "QMAKE_XSPEC", QLibraryInfo::TargetSpecPath, true }, 123 { "QMAKE_XSPEC", QLibraryInfo::TargetSpecPath, true },
124 }; 124 };
diff --git a/recipes-qt/qt5/qtbase/0004-qmake-is-already-built-in-qtbase-native.patch b/recipes-qt/qt5/qtbase/0004-qmake-is-already-built-in-qtbase-native.patch
index 91709741..f934cf1d 100644
--- a/recipes-qt/qt5/qtbase/0004-qmake-is-already-built-in-qtbase-native.patch
+++ b/recipes-qt/qt5/qtbase/0004-qmake-is-already-built-in-qtbase-native.patch
@@ -1,7 +1,7 @@
1From 956195c897287787b545e570ee976d1d2917eca8 Mon Sep 17 00:00:00 2001 1From 956195c897287787b545e570ee976d1d2917eca8 Mon Sep 17 00:00:00 2001
2From: Michael Krelin <hacker@klever.net> 2From: Michael Krelin <hacker@klever.net>
3Date: Mon, 29 Oct 2012 20:07:49 -0700 3Date: Mon, 29 Oct 2012 20:07:49 -0700
4Subject: [PATCH 4/6] qmake is already built in qtbase-native 4Subject: [PATCH 04/11] qmake is already built in qtbase-native
5 5
6Ported from OE by: Yu Ke <ke.yu@intel.com> 6Ported from OE by: Yu Ke <ke.yu@intel.com>
7Upstream-Status: Inappropriate [configuration] 7Upstream-Status: Inappropriate [configuration]
diff --git a/recipes-qt/qt5/qtbase/0005-Allow-building-a-separate-qmake-for-the-target.patch b/recipes-qt/qt5/qtbase/0005-Allow-building-a-separate-qmake-for-the-target.patch
index 4d163443..af8eb463 100644
--- a/recipes-qt/qt5/qtbase/0005-Allow-building-a-separate-qmake-for-the-target.patch
+++ b/recipes-qt/qt5/qtbase/0005-Allow-building-a-separate-qmake-for-the-target.patch
@@ -1,7 +1,7 @@
1From d33f33aed6744b5c4c561e6c6527d784481604f5 Mon Sep 17 00:00:00 2001 1From d33f33aed6744b5c4c561e6c6527d784481604f5 Mon Sep 17 00:00:00 2001
2From: Paul Eggleton <paul.eggleton@linux.intel.com> 2From: Paul Eggleton <paul.eggleton@linux.intel.com>
3Date: Mon, 29 Oct 2012 20:26:36 -0700 3Date: Mon, 29 Oct 2012 20:26:36 -0700
4Subject: [PATCH 5/6] Allow building a separate qmake for the target 4Subject: [PATCH 05/11] Allow building a separate qmake for the target
5 5
6Upstream-Status: Inappropriate [config] 6Upstream-Status: Inappropriate [config]
7 7
diff --git a/recipes-qt/qt5/qtbase/0006-qt_functions-temporary-remove-isEmpty-check.patch b/recipes-qt/qt5/qtbase/0006-qt_functions-temporary-remove-isEmpty-check.patch
index d1cacd3e..ed238bcc 100644
--- a/recipes-qt/qt5/qtbase/0006-qt_functions-temporary-remove-isEmpty-check.patch
+++ b/recipes-qt/qt5/qtbase/0006-qt_functions-temporary-remove-isEmpty-check.patch
@@ -1,7 +1,7 @@
1From 5856e25a0653313b8f80a5a92a7817fe8eb39dc8 Mon Sep 17 00:00:00 2001 1From 5856e25a0653313b8f80a5a92a7817fe8eb39dc8 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Wed, 17 Apr 2013 18:06:25 +0200 3Date: Wed, 17 Apr 2013 18:06:25 +0200
4Subject: [PATCH 6/6] qt_functions: temporary remove isEmpty check 4Subject: [PATCH 06/11] qt_functions: temporary remove isEmpty check
5 5
6* now we assume that every build will provide QT_EXTERNAL_HOST_BINS value 6* now we assume that every build will provide QT_EXTERNAL_HOST_BINS value
7 7
diff --git a/recipes-qt/qt5/qtbase/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch b/recipes-qt/qt5/qtbase/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch
index b9f8cb73..3229e14b 100644
--- a/recipes-qt/qt5/qtbase/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch
+++ b/recipes-qt/qt5/qtbase/0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch
@@ -1,9 +1,10 @@
1From 1548dbf04ab1dbc45e514478fb82b4a0827140b1 Mon Sep 17 00:00:00 2001 1From 4ba11842fa29ba28a05b3e8e511432fe360b4957 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 22:33:33 +0200 3Date: Sat, 27 Apr 2013 22:33:33 +0200
4Subject: [PATCH 8/8] configureapp: Prefix default LIBDIRS and INCDIRS with 4Subject: [PATCH 08/11] configureapp: Prefix default LIBDIRS and INCDIRS with
5 SYSROOT 5 SYSROOT
6 6
7Change-Id: I275b30f67bc477d8e9a008f4894198859ec45017
7--- 8---
8 tools/configure/configureapp.cpp | 4 ++-- 9 tools/configure/configureapp.cpp | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-) 10 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes-qt/qt5/qtbase/0009-qt_module-Fix-pkgconfig-replacement.patch b/recipes-qt/qt5/qtbase/0009-qt_module-Fix-pkgconfig-replacement.patch
index e833cc5c..0574ca89 100644
--- a/recipes-qt/qt5/qtbase/0009-qt_module-Fix-pkgconfig-replacement.patch
+++ b/recipes-qt/qt5/qtbase/0009-qt_module-Fix-pkgconfig-replacement.patch
@@ -1,7 +1,7 @@
1From 1120258fc6a60972523186e85c2c762b79e7a6c2 Mon Sep 17 00:00:00 2001 1From 4ba266bc0a7e4841cfd06d555b39888928a6e3a5 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 23:15:37 +0200 3Date: Sat, 27 Apr 2013 23:15:37 +0200
4Subject: [PATCH 9/9] qt_module: Fix pkgconfig replacement 4Subject: [PATCH 09/11] qt_module: Fix pkgconfig replacement
5 5
6* in situation like this: 6* in situation like this:
7 QT_SYSROOT:/OE/oe-core/tmp-eglibc/sysroots/qemuarm 7 QT_SYSROOT:/OE/oe-core/tmp-eglibc/sysroots/qemuarm
diff --git a/recipes-qt/qt5/qtbase/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch b/recipes-qt/qt5/qtbase/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch
index fcecc720..7594058f 100644
--- a/recipes-qt/qt5/qtbase/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch
+++ b/recipes-qt/qt5/qtbase/0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch
@@ -1,12 +1,15 @@
1From b00e2fa5ade9bed1b75f4629cc7ba2c3ec9e429f Mon Sep 17 00:00:00 2001 1From 5b01ec1b8da7fc949efea262647a9d6010c670f4 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 27 Apr 2013 22:51:54 +0200 3Date: Sat, 27 Apr 2013 22:51:54 +0200
4Subject: [PATCH 10/10] qmake/property: rename QT_INSTALL_CONFIGURATION to 4Subject: [PATCH 10/11] qmake/property: rename QT_INSTALL_CONFIGURATION to
5 QT_INSTALL_SETTINGS 5 QT_INSTALL_SETTINGS
6 6
7* this variable is referenced from configure and configureapp.cpp as QT_INSTALL_SETTINGS 7* this variable is referenced from configure and configureapp.cpp as QT_INSTALL_SETTINGS
8 property.cpp was only place using name QT_INSTALL_CONFIGURATION 8 property.cpp was only place using name QT_INSTALL_CONFIGURATION
9 9
10Upstream-Status: Submitted
11https://codereview.qt-project.org/54912
12
10Change-Id: I3ba40d5f8773fe9aea728c5b2418aa55cecc92da 13Change-Id: I3ba40d5f8773fe9aea728c5b2418aa55cecc92da
11--- 14---
12 qmake/property.cpp | 2 +- 15 qmake/property.cpp | 2 +-
diff --git a/recipes-qt/qt5/qtbase/0011-qt_module-Fix-paths-in-.prl-files.patch b/recipes-qt/qt5/qtbase/0011-qt_module-Fix-paths-in-.prl-files.patch
index 878ced6b..6eab1cb5 100644
--- a/recipes-qt/qt5/qtbase/0011-qt_module-Fix-paths-in-.prl-files.patch
+++ b/recipes-qt/qt5/qtbase/0011-qt_module-Fix-paths-in-.prl-files.patch
@@ -1,4 +1,4 @@
1From 4af56553508993944e8ba6688c182d0e49eee1a1 Mon Sep 17 00:00:00 2001 1From 1809b8b32d3b8a689eb5d40f096b3541345ff219 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sun, 28 Apr 2013 12:56:55 +0200 3Date: Sun, 28 Apr 2013 12:56:55 +0200
4Subject: [PATCH 11/11] qt_module: Fix paths in .prl files 4Subject: [PATCH 11/11] qt_module: Fix paths in .prl files