diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase-git/0005-qt_module-Fix-pkgconfig-and-libtool-replacements.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase-git/0005-qt_module-Fix-pkgconfig-and-libtool-replacements.patch | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase-git/0005-qt_module-Fix-pkgconfig-and-libtool-replacements.patch b/recipes-qt/qt5/qtbase-git/0005-qt_module-Fix-pkgconfig-and-libtool-replacements.patch new file mode 100644 index 00000000..29108cde --- /dev/null +++ b/recipes-qt/qt5/qtbase-git/0005-qt_module-Fix-pkgconfig-and-libtool-replacements.patch | |||
@@ -0,0 +1,81 @@ | |||
1 | From 1e87c127c5d268870c51894c955bf24cde83ff69 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sat, 27 Apr 2013 23:15:37 +0200 | ||
4 | Subject: [PATCH 05/12] qt_module: Fix pkgconfig and libtool replacements | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | * in situation like this: | ||
10 | QT_SYSROOT:/OE/oe-core/tmp-eglibc/sysroots/qemuarm | ||
11 | QT_INSTALL_LIBS:/OE/oe-core/tmp-eglibc/sysroots/qemuarm/usr/lib | ||
12 | QT_INSTALL_LIBS/raw:/usr/lib | ||
13 | QT_INSTALL_LIBS/get:/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/lib | ||
14 | |||
15 | I don't want the replacement like this: | ||
16 | sed | ||
17 | -e "s,/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/include,/usr/include/qt5,g" | ||
18 | -e "s,/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.0-r0.0/build/lib,/usr/lib,g" | ||
19 | "../../lib/pkgconfig/Qt5Core.pc" | ||
20 | >"/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" | ||
21 | because that way I'll end with -L/usr/lib in .pc file which is | ||
22 | cross-compile unfriendly, keeping ${libdir}/${includedir} works better | ||
23 | in my case | ||
24 | |||
25 | * qt_module: Fix paths in .prl files | ||
26 | * qmake does not prefix them with QT_SYSROOT when using them | ||
27 | so e.g. when building qtdeclarative we get -L/usr/lib to LINKAGE | ||
28 | variable, which is unsafe for cross-compilation | ||
29 | * writting QT_SYSROOT in .prl files is dangerous for sstate when | ||
30 | builds are in different directories, so we need | ||
31 | SSTATE_SCAN_FILES += "*.pri *.prl" | ||
32 | to make them relocateble | ||
33 | |||
34 | * fix paths in packageconfig files | ||
35 | This reverts parts of: | ||
36 | |||
37 | enable path replacement in installed prl files on all platforms | ||
38 | |||
39 | Task-number: QTBUG-33794 | ||
40 | Change-Id: Id0d38715673b8a1c0c034e9c15783eb255c4315b | ||
41 | Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> | ||
42 | |||
43 | Change-Id: Ie1c94b15f2a4e736b65b4d0924d99eb2a7d92a6c | ||
44 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
45 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
46 | --- | ||
47 | mkspecs/features/qt_module.prf | 14 ++++++++++++++ | ||
48 | 1 file changed, 14 insertions(+) | ||
49 | |||
50 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf | ||
51 | index 8bf4c92..9737f8c 100644 | ||
52 | --- a/mkspecs/features/qt_module.prf | ||
53 | +++ b/mkspecs/features/qt_module.prf | ||
54 | @@ -188,10 +188,24 @@ unix|mingw { | ||
55 | QMAKE_PKGCONFIG_DESCRIPTION = $$replace(TARGET, ^Qt, "Qt ") module | ||
56 | QMAKE_PKGCONFIG_INSTALL_REPLACE += lib_replace | ||
57 | |||
58 | + pkgconfig_include_replace.match = $$rplbase/include | ||
59 | + pkgconfig_include_replace.replace = "\$$\\{includedir}" | ||
60 | + pkgconfig_include_replace.CONFIG = path | ||
61 | + QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace | ||
62 | + | ||
63 | + pkgconfig_lib_replace.match = $$rplbase/lib | ||
64 | + pkgconfig_lib_replace.replace = "\$$\\{libdir}" | ||
65 | + pkgconfig_lib_replace.CONFIG = path | ||
66 | + QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_lib_replace | ||
67 | + | ||
68 | unix { | ||
69 | CONFIG += create_libtool explicitlib | ||
70 | QMAKE_LIBTOOL_LIBDIR = $$qt_libdir | ||
71 | QMAKE_LIBTOOL_INSTALL_REPLACE += lib_replace | ||
72 | + lafile_replace.match = "-L$$[QT_INSTALL_LIBS/raw]" | ||
73 | + lafile_replace.replace = "" | ||
74 | + lafile_replace.CONFIG = path | ||
75 | + QMAKE_LIBTOOL_INSTALL_REPLACE += lafile_replace | ||
76 | } | ||
77 | } | ||
78 | |||
79 | -- | ||
80 | 2.0.0 | ||
81 | |||