diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2014-07-02 17:28:17 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-07-06 19:45:44 +0200 |
| commit | 59099420054095e2e68d2c562036b60982167ece (patch) | |
| tree | 75609fd32647b8a99f8e36340e248bfefc4f9756 /recipes-qt/qt5/qtbase-git | |
| parent | b26453cd28ed913d68e6ab2a0da0a13b1ce40098 (diff) | |
| download | meta-qt5-59099420054095e2e68d2c562036b60982167ece.tar.gz | |
qtbase: fix 0005-qt_module-Fix-pkgconfig-and-libtool-replacements.patch
* again resolves this kind of warnings:
WARNING: QA Issue: qtxmlpatterns: The compile log indicates that host
include and/or library paths were used. Please check the log
'/OE/qtxmlpatterns/5.3.1-r0/temp/log.do_compile'
for more information.
Diffstat (limited to 'recipes-qt/qt5/qtbase-git')
| -rw-r--r-- | recipes-qt/qt5/qtbase-git/0005-qt_module-Fix-pkgconfig-and-libtool-replacements.patch | 55 |
1 files changed, 44 insertions, 11 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 index 29108cde..182de79d 100644 --- 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 | |||
| @@ -40,18 +40,50 @@ Content-Transfer-Encoding: 8bit | |||
| 40 | Change-Id: Id0d38715673b8a1c0c034e9c15783eb255c4315b | 40 | Change-Id: Id0d38715673b8a1c0c034e9c15783eb255c4315b |
| 41 | Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> | 41 | Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> |
| 42 | 42 | ||
| 43 | * to debug this, rebuild qtbase and read build/src/corelib/Makefile | ||
| 44 | * this is example of broken install_target rule (added line feeds): | ||
| 45 | -$(SED) -e s,/OE/5.3.1-r0/build/lib,/usr/lib,g | ||
| 46 | -e 's,/OE/5.3.1-r0/build/include,$$\{includedir},g' | ||
| 47 | -e 's,/OE/5.3.1-r0/build/lib,$$\{libdir},g' | ||
| 48 | "../../lib/pkgconfig/Qt5Core.pc" | ||
| 49 | >"$(INSTALL_ROOT)/usr/lib/pkgconfig/Qt5Core.pc" | ||
| 50 | change .prf files, create copy of WORKDIR, re-excecute only | ||
| 51 | do_configure task and compare generated Makefile, repeat until | ||
| 52 | replace in generated Makefile works ok, then refresh patch and | ||
| 53 | try complete rebuild for qtbase | ||
| 54 | * if everything is ok, then try: | ||
| 55 | image $ grep -R "\-L/usr" . | ||
| 56 | image $ grep -R "\-I/usr" . | ||
| 57 | and it should return only few cases of | ||
| 58 | qmake.conf:QMAKE_LFLAGS_THREAD = -L/usr/lib/threads | ||
| 59 | for aix* platformas | ||
| 60 | |||
| 43 | Change-Id: Ie1c94b15f2a4e736b65b4d0924d99eb2a7d92a6c | 61 | Change-Id: Ie1c94b15f2a4e736b65b4d0924d99eb2a7d92a6c |
| 44 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 62 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
| 45 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | 63 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> |
| 46 | --- | 64 | --- |
| 47 | mkspecs/features/qt_module.prf | 14 ++++++++++++++ | 65 | mkspecs/features/qt_common.prf | 2 +- |
| 48 | 1 file changed, 14 insertions(+) | 66 | mkspecs/features/qt_module.prf | 15 +++++++++++++++ |
| 67 | 2 files changed, 16 insertions(+), 1 deletion(-) | ||
| 49 | 68 | ||
| 69 | diff --git a/mkspecs/features/qt_common.prf b/mkspecs/features/qt_common.prf | ||
| 70 | index 4dcabe9..d04bc3e 100644 | ||
| 71 | --- a/mkspecs/features/qt_common.prf | ||
| 72 | +++ b/mkspecs/features/qt_common.prf | ||
| 73 | @@ -33,7 +33,7 @@ contains(TEMPLATE, .*lib) { | ||
| 74 | lib_replace.replace = | ||
| 75 | } else { | ||
| 76 | lib_replace.match = $$rplbase/lib | ||
| 77 | - lib_replace.replace = $$qt_libdir | ||
| 78 | + lib_replace.replace = "\$$\\{libdir}" | ||
| 79 | } | ||
| 80 | lib_replace.CONFIG = path | ||
| 81 | QMAKE_PRL_INSTALL_REPLACE += lib_replace | ||
| 50 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf | 82 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf |
| 51 | index 8bf4c92..9737f8c 100644 | 83 | index 8bf4c92..ee2e989 100644 |
| 52 | --- a/mkspecs/features/qt_module.prf | 84 | --- a/mkspecs/features/qt_module.prf |
| 53 | +++ b/mkspecs/features/qt_module.prf | 85 | +++ b/mkspecs/features/qt_module.prf |
| 54 | @@ -188,10 +188,24 @@ unix|mingw { | 86 | @@ -188,10 +188,25 @@ unix|mingw { |
| 55 | QMAKE_PKGCONFIG_DESCRIPTION = $$replace(TARGET, ^Qt, "Qt ") module | 87 | QMAKE_PKGCONFIG_DESCRIPTION = $$replace(TARGET, ^Qt, "Qt ") module |
| 56 | QMAKE_PKGCONFIG_INSTALL_REPLACE += lib_replace | 88 | QMAKE_PKGCONFIG_INSTALL_REPLACE += lib_replace |
| 57 | 89 | ||
| @@ -60,19 +92,20 @@ index 8bf4c92..9737f8c 100644 | |||
| 60 | + pkgconfig_include_replace.CONFIG = path | 92 | + pkgconfig_include_replace.CONFIG = path |
| 61 | + QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace | 93 | + QMAKE_PKGCONFIG_INSTALL_REPLACE += pkgconfig_include_replace |
| 62 | + | 94 | + |
| 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 { | 95 | unix { |
| 69 | CONFIG += create_libtool explicitlib | 96 | CONFIG += create_libtool explicitlib |
| 70 | QMAKE_LIBTOOL_LIBDIR = $$qt_libdir | 97 | QMAKE_LIBTOOL_LIBDIR = $$qt_libdir |
| 71 | QMAKE_LIBTOOL_INSTALL_REPLACE += lib_replace | 98 | QMAKE_LIBTOOL_INSTALL_REPLACE += lib_replace |
| 72 | + lafile_replace.match = "-L$$[QT_INSTALL_LIBS/raw]" | 99 | + # add '=' as sysroot in .la files |
| 73 | + lafile_replace.replace = "" | 100 | + lafile_replace.match = "-L\$${libdir}" |
| 101 | + lafile_replace.replace = "-L=\$$\\{libdir}" | ||
| 74 | + lafile_replace.CONFIG = path | 102 | + lafile_replace.CONFIG = path |
| 75 | + QMAKE_LIBTOOL_INSTALL_REPLACE += lafile_replace | 103 | + QMAKE_LIBTOOL_INSTALL_REPLACE += lafile_replace |
| 104 | + # drop -L/usr/lib in .prl files | ||
| 105 | + prl_replace.match = "-L\$${libdir}" | ||
| 106 | + prl_replace.replace = "" | ||
| 107 | + prl_replace.CONFIG = path | ||
| 108 | + QMAKE_PRL_INSTALL_REPLACE += prl_replace | ||
| 76 | } | 109 | } |
| 77 | } | 110 | } |
| 78 | 111 | ||
