summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-28 12:58:41 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-28 15:55:09 +0200
commit783c97966478c6353fddb34f42044317d1355043 (patch)
tree8c4fe9beb8b1b13e9cdfe27c957cfd6a458191ba /recipes-qt/qt5
parente88c6945308a05366228a0946cb086bc6359c5eb (diff)
downloadmeta-qt5-783c97966478c6353fddb34f42044317d1355043.tar.gz
qtbase: Fix INCDIR/LIBDIR paths in .prl files
Diffstat (limited to 'recipes-qt/qt5')
-rw-r--r--recipes-qt/qt5/qtbase-native.inc1
-rw-r--r--recipes-qt/qt5/qtbase.inc1
-rw-r--r--recipes-qt/qt5/qtbase/0011-qt_module-Fix-paths-in-.prl-files.patch61
3 files changed, 63 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase-native.inc b/recipes-qt/qt5/qtbase-native.inc
index e39604cf..c6821641 100644
--- a/recipes-qt/qt5/qtbase-native.inc
+++ b/recipes-qt/qt5/qtbase-native.inc
@@ -20,6 +20,7 @@ SRC_URI += " \
20 file://0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch \ 20 file://0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch \
21 file://0009-qt_module-Fix-pkgconfig-replacement.patch \ 21 file://0009-qt_module-Fix-pkgconfig-replacement.patch \
22 file://0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch \ 22 file://0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch \
23 file://0011-qt_module-Fix-paths-in-.prl-files.patch \
23" 24"
24 25
25SEPB = "${WORKDIR}/build" 26SEPB = "${WORKDIR}/build"
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc
index c1198477..6cc4e9d4 100644
--- a/recipes-qt/qt5/qtbase.inc
+++ b/recipes-qt/qt5/qtbase.inc
@@ -10,6 +10,7 @@ SRC_URI += " \
10 file://0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch \ 10 file://0008-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch \
11 file://0009-qt_module-Fix-pkgconfig-replacement.patch \ 11 file://0009-qt_module-Fix-pkgconfig-replacement.patch \
12 file://0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch \ 12 file://0010-qmake-property-rename-QT_INSTALL_CONFIGURATION-to-QT.patch \
13 file://0011-qt_module-Fix-paths-in-.prl-files.patch \
13" 14"
14 15
15DEPENDS += "qtbase-native virtual/libgl freetype jpeg libpng zlib openssl glib-2.0 ${ICU} udev" 16DEPENDS += "qtbase-native virtual/libgl freetype jpeg libpng zlib openssl glib-2.0 ${ICU} udev"
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
new file mode 100644
index 00000000..878ced6b
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0011-qt_module-Fix-paths-in-.prl-files.patch
@@ -0,0 +1,61 @@
1From 4af56553508993944e8ba6688c182d0e49eee1a1 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 9532377..73053f7 100644
22--- a/mkspecs/features/qt_module.prf
23+++ b/mkspecs/features/qt_module.prf
24@@ -195,17 +195,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 }
59--
601.8.2.1
61