diff options
3 files changed, 33 insertions, 42 deletions
diff --git a/recipes-qt/qt5/qt5-creator/0001-Use-correct-path-prefix.patch b/recipes-qt/qt5/qt5-creator/0001-Use-correct-path-prefix.patch deleted file mode 100644 index c064a9a9..00000000 --- a/recipes-qt/qt5/qt5-creator/0001-Use-correct-path-prefix.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | From 50443809cc261a3f466cdebd3fa2dd4dda6e6a28 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 25 Sep 2018 23:15:08 +0000 | ||
| 4 | Subject: [PATCH] Use correct path prefix | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 9 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 10 | --- | ||
| 11 | share/qtcreator/translations/translations.pro | 8 ++++---- | ||
| 12 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/share/qtcreator/translations/translations.pro b/share/qtcreator/translations/translations.pro | ||
| 15 | index 0df9762fcc..de09bc47ed 100644 | ||
| 16 | --- a/share/qtcreator/translations/translations.pro | ||
| 17 | +++ b/share/qtcreator/translations/translations.pro | ||
| 18 | @@ -12,10 +12,10 @@ defineReplace(prependAll) { | ||
| 19 | return($$result) | ||
| 20 | } | ||
| 21 | |||
| 22 | -XMLPATTERNS = $$shell_path($$[QT_INSTALL_BINS]/xmlpatterns) | ||
| 23 | -LUPDATE = $$shell_path($$[QT_INSTALL_BINS]/lupdate) -locations relative -no-ui-lines -no-sort | ||
| 24 | -LRELEASE = $$shell_path($$[QT_INSTALL_BINS]/lrelease) | ||
| 25 | -LCONVERT = $$shell_path($$[QT_INSTALL_BINS]/lconvert) | ||
| 26 | +XMLPATTERNS = $$OE_QMAKE_PATH_EXTERNAL_HOST_BINS/xmlpatterns | ||
| 27 | +LUPDATE = $$OE_QMAKE_PATH_EXTERNAL_HOST_BINS/lupdate -locations relative -no-ui-lines -no-sort | ||
| 28 | +LRELEASE = $$OE_QMAKE_PATH_EXTERNAL_HOST_BINS/lrelease | ||
| 29 | +LCONVERT = $$OE_QMAKE_PATH_EXTERNAL_HOST_BINS/lconvert | ||
| 30 | |||
| 31 | wd = $$replace(IDE_SOURCE_TREE, /, $$QMAKE_DIR_SEP) | ||
| 32 | |||
diff --git a/recipes-qt/qt5/qt5-creator/0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch b/recipes-qt/qt5/qt5-creator/0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch new file mode 100644 index 00000000..eebda742 --- /dev/null +++ b/recipes-qt/qt5/qt5-creator/0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From 766e5b37a42b440b66823262eb553f9981940115 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 27 Sep 2018 20:48:17 -0700 | ||
| 4 | Subject: [PATCH] botan: Always define BOTAN_ARCH_SWITCH when cross-building | ||
| 5 | |||
| 6 | this helps in compiling botan for non-x86 architectures | ||
| 7 | |||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 9 | --- | ||
| 10 | src/libs/botan/botan.pro | 2 ++ | ||
| 11 | 1 file changed, 2 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/src/libs/botan/botan.pro b/src/libs/botan/botan.pro | ||
| 14 | index 0c939b2a30..6e1a85fe84 100644 | ||
| 15 | --- a/src/libs/botan/botan.pro | ||
| 16 | +++ b/src/libs/botan/botan.pro | ||
| 17 | @@ -18,6 +18,7 @@ else: clang: BOTAN_CC_TYPE = clang | ||
| 18 | else: BOTAN_CC_TYPE = gcc | ||
| 19 | contains(QT_ARCH, i386): BOTAN_ARCH_SWITCH = "--cpu=x86" | ||
| 20 | else: contains(QT_ARCH, x86_64): BOTAN_ARCH_SWITCH = "--cpu=x86_64" | ||
| 21 | +else: BOTAN_ARCH_SWITCH = --cpu=$$QT_ARCH | ||
| 22 | BOTAN_MODULES = aes aes_ssse3 auto_rng bigint block cbc ctr des dh dsa ec_group ecdh ecdsa entropy \ | ||
| 23 | filters hmac mode_pad pubkey rsa sha1 sha1_sse2 sha1_x86 sha2_32 sha2_32_x86 \ | ||
| 24 | sha2_64 simd system_rng,emsa_pkcs1,pbes2,pbkdf2 | ||
| 25 | -- 2.19.0 | ||
| 26 | |||
diff --git a/recipes-qt/qt5/qt5-creator_git.bb b/recipes-qt/qt5/qt5-creator_git.bb index 218609bd..45e6d8ac 100644 --- a/recipes-qt/qt5/qt5-creator_git.bb +++ b/recipes-qt/qt5/qt5-creator_git.bb | |||
| @@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = " \ | |||
| 14 | 14 | ||
| 15 | inherit qmake5 | 15 | inherit qmake5 |
| 16 | 16 | ||
| 17 | DEPENDS = "qtbase qtscript qtwebkit qtxmlpatterns qtx11extras qtdeclarative qttools qttools-native qtsvg chrpath-replacement-native" | 17 | DEPENDS = "qtbase qtscript qtwebkit qtxmlpatterns qtx11extras qtdeclarative qttools qttools-native qtsvg" |
| 18 | DEPENDS_append_libc-musl = " libexecinfo" | 18 | DEPENDS_append_libc-musl = " libexecinfo" |
| 19 | 19 | ||
| 20 | SRCREV = "8768e39d3c8e74e583eca3897cc6de53a99c3dde" | 20 | SRCREV = "8768e39d3c8e74e583eca3897cc6de53a99c3dde" |
| @@ -24,8 +24,8 @@ PV = "4.7.1+git${SRCPV}" | |||
| 24 | # 4.7.1.meta-qt5.1 | 24 | # 4.7.1.meta-qt5.1 |
| 25 | SRC_URI = " \ | 25 | SRC_URI = " \ |
| 26 | git://code.qt.io/qt-creator/qt-creator.git;branch=4.7 \ | 26 | git://code.qt.io/qt-creator/qt-creator.git;branch=4.7 \ |
| 27 | file://0001-Use-correct-path-prefix.patch \ | ||
| 28 | file://0002-botan.pro-pass-QMAKE_AR.patch \ | 27 | file://0002-botan.pro-pass-QMAKE_AR.patch \ |
| 28 | file://0001-botan-Always-define-BOTAN_ARCH_SWITCH-when-cross-bui.patch \ | ||
| 29 | file://qtcreator.desktop.in \ | 29 | file://qtcreator.desktop.in \ |
| 30 | " | 30 | " |
| 31 | SRC_URI_append_libc-musl = " file://0003-Link-with-libexecinfo-on-musl.patch" | 31 | SRC_URI_append_libc-musl = " file://0003-Link-with-libexecinfo-on-musl.patch" |
| @@ -34,25 +34,22 @@ S = "${WORKDIR}/git" | |||
| 34 | 34 | ||
| 35 | EXTRA_QMAKEVARS_PRE += "IDE_LIBRARY_BASENAME=${baselib}${QT_DIR_NAME}" | 35 | EXTRA_QMAKEVARS_PRE += "IDE_LIBRARY_BASENAME=${baselib}${QT_DIR_NAME}" |
| 36 | 36 | ||
| 37 | EXTRANATIVEPATH += "chrpath-native" | ||
| 38 | |||
| 39 | do_configure_append() { | 37 | do_configure_append() { |
| 40 | # Find native tools | 38 | # Find native tools |
| 41 | sed -i 's:${STAGING_BINDIR}.*/qdoc:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qdoc:g' ${B}/Makefile | 39 | sed -i 's:${STAGING_BINDIR}.*/qdoc:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qdoc:g' ${B}/Makefile |
| 40 | sed -i 's:${STAGING_BINDIR}.*/lrelease:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lrelease:g' ${B}/share/qtcreator/translations/Makefile | ||
| 41 | sed -i 's:${STAGING_BINDIR}.*/lupdate:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lupdate:g' ${B}/share/qtcreator/translations/Makefile | ||
| 42 | sed -i 's:${STAGING_BINDIR}.*/xmlpatterns:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/xmlpatterns:g' ${B}/share/qtcreator/translations/Makefile | ||
| 43 | sed -i 's:${STAGING_BINDIR}.*/lconvert:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lconvert:g' ${B}/share/qtcreator/translations/Makefile | ||
| 44 | |||
| 42 | } | 45 | } |
| 43 | 46 | ||
| 44 | do_install() { | 47 | do_install() { |
| 45 | oe_runmake install INSTALL_ROOT=${D}${prefix} | 48 | oe_runmake install INSTALL_ROOT=${D}${prefix} |
| 46 | oe_runmake install_inst_qch_docs INSTALL_ROOT=${D}${prefix} | ||
| 47 | # install desktop and ensure that qt-creator finds qmake | 49 | # install desktop and ensure that qt-creator finds qmake |
| 48 | install -d ${D}${datadir}/applications | 50 | install -d ${D}${datadir}/applications |
| 49 | install -m 0644 ${WORKDIR}/qtcreator.desktop.in ${D}${datadir}/applications/qtcreator.desktop | 51 | install -m 0644 ${WORKDIR}/qtcreator.desktop.in ${D}${datadir}/applications/qtcreator.desktop |
| 50 | sed -i 's:@QT5_QMAKE@:${OE_QMAKE_PATH_QT_BINS}:g' ${D}${datadir}/applications/qtcreator.desktop | 52 | sed -i 's:@QT5_QMAKE@:${OE_QMAKE_PATH_QT_BINS}:g' ${D}${datadir}/applications/qtcreator.desktop |
| 51 | chrpath --delete ${D}${libexecdir}/qtcreator/qtcreator_process_stub | ||
| 52 | chrpath --delete ${D}${libexecdir}/qtcreator/qbs_processlauncher | ||
| 53 | chrpath --delete ${D}${libdir}/${QT_DIR_NAME}/qtcreator/libqbscore.so.* | ||
| 54 | test -e ${D}${libdir}/${QT_DIR_NAME}/qtcreator/plugins/qmldesigner/libcomponentsplugin.so && chrpath --delete ${D}${libdir}/${QT_DIR_NAME}/qtcreator/plugins/qmldesigner/libcomponentsplugin.so | ||
| 55 | test -e ${D}${libdir}/${QT_DIR_NAME}/qtcreator/plugins/qmldesigner/libqtquickplugin.so && chrpath --delete ${D}${libdir}/${QT_DIR_NAME}/qtcreator/plugins/qmldesigner/libqtquickplugin.so | ||
| 56 | } | 53 | } |
| 57 | 54 | ||
| 58 | FILES_${PN} += " \ | 55 | FILES_${PN} += " \ |
