diff options
6 files changed, 77 insertions, 34 deletions
diff --git a/recipes-qt/qt5/qt5-creator/0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch b/recipes-qt/qt5/qt5-creator/0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch new file mode 100644 index 00000000..1bc3632d --- /dev/null +++ b/recipes-qt/qt5/qt5-creator/0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 453c075b67b9d9254bf7331e1e3be287f240a9e0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 3 Sep 2019 13:31:12 -0700 | ||
| 4 | Subject: [PATCH] clangformat: AllowShortIfStatementsOnASingleLine is not | ||
| 5 | boolean anymore | ||
| 6 | |||
| 7 | https://reviews.llvm.org/D59087 has implemented multiple states for AllowShortIfStatementsOnASingleLine | ||
| 8 | |||
| 9 | Fixes | ||
| 10 | ../../../../git/src/plugins/clangformat/clangformatutils.cpp:63:49: error: assigning to 'clang::format::FormatStyle::ShortIfStyle' from incompatible type 'bool' | ||
| 11 | style.AllowShortIfStatementsOnASingleLine = false; | ||
| 12 | ^~~~~ | ||
| 13 | |||
| 14 | Upstream-Status: Pending | ||
| 15 | |||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | src/plugins/clangformat/clangformatutils.cpp | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/src/plugins/clangformat/clangformatutils.cpp b/src/plugins/clangformat/clangformatutils.cpp | ||
| 22 | index 09a3150c89..7d8a95ae18 100644 | ||
| 23 | --- a/src/plugins/clangformat/clangformatutils.cpp | ||
| 24 | +++ b/src/plugins/clangformat/clangformatutils.cpp | ||
| 25 | @@ -60,7 +60,7 @@ static clang::format::FormatStyle qtcStyle() | ||
| 26 | style.AllowShortBlocksOnASingleLine = false; | ||
| 27 | style.AllowShortCaseLabelsOnASingleLine = false; | ||
| 28 | style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline; | ||
| 29 | - style.AllowShortIfStatementsOnASingleLine = false; | ||
| 30 | + style.AllowShortIfStatementsOnASingleLine = FormatStyle::SIS_Never; | ||
| 31 | style.AllowShortLoopsOnASingleLine = false; | ||
| 32 | style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_None; | ||
| 33 | style.AlwaysBreakBeforeMultilineStrings = false; | ||
| 34 | -- | ||
| 35 | 2.23.0 | ||
| 36 | |||
diff --git a/recipes-qt/qt5/qt5-creator_git.bb b/recipes-qt/qt5/qt5-creator_git.bb index 107fee53..a3960042 100644 --- a/recipes-qt/qt5/qt5-creator_git.bb +++ b/recipes-qt/qt5/qt5-creator_git.bb | |||
| @@ -25,6 +25,7 @@ PV = "4.9.2+git${SRCPV}" | |||
| 25 | # 4.9.2.meta-qt5.1 | 25 | # 4.9.2.meta-qt5.1 |
| 26 | SRC_URI = " \ | 26 | SRC_URI = " \ |
| 27 | git://code.qt.io/qt-creator/qt-creator.git;branch=4.9 \ | 27 | git://code.qt.io/qt-creator/qt-creator.git;branch=4.9 \ |
| 28 | file://0001-clangformat-AllowShortIfStatementsOnASingleLine-is-n.patch \ | ||
| 28 | " | 29 | " |
| 29 | SRC_URI_append_libc-musl = " file://0001-Link-with-libexecinfo-on-musl.patch" | 30 | SRC_URI_append_libc-musl = " file://0001-Link-with-libexecinfo-on-musl.patch" |
| 30 | 31 | ||
diff --git a/recipes-qt/qt5/qttools_git.bb b/recipes-qt/qt5/qttools_git.bb index d5e53886..fd814440 100644 --- a/recipes-qt/qt5/qttools_git.bb +++ b/recipes-qt/qt5/qttools_git.bb | |||
| @@ -30,13 +30,15 @@ PACKAGECONFIG_append_toolchain-clang = " clang" | |||
| 30 | PACKAGECONFIG[qtwebkit] = ",,qtwebkit" | 30 | PACKAGECONFIG[qtwebkit] = ",,qtwebkit" |
| 31 | PACKAGECONFIG[clang] = ",,clang" | 31 | PACKAGECONFIG[clang] = ",,clang" |
| 32 | 32 | ||
| 33 | export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_BINDIR}/llvm-config" | ||
| 34 | |||
| 33 | EXTRA_QMAKEVARS_PRE += " \ | 35 | EXTRA_QMAKEVARS_PRE += " \ |
| 34 | ${@bb.utils.contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)} \ | 36 | ${@bb.utils.contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)} \ |
| 35 | " | 37 | " |
| 36 | EXTRA_QMAKEVARS_PRE_append_class-native = " CONFIG-=config_clang" | 38 | EXTRA_QMAKEVARS_PRE_append_class-native = " CONFIG+=config_clang_done CONFIG-=config_clang" |
| 37 | EXTRA_QMAKEVARS_PRE_append_class-nativesdk = " CONFIG-=config_clang" | 39 | EXTRA_QMAKEVARS_PRE_append_class-nativesdk = " CONFIG+=config_clang_done CONFIG-=config_clang" |
| 38 | EXTRA_QMAKEVARS_PRE_append_class-target = "\ | 40 | EXTRA_QMAKEVARS_PRE_append_class-target = "\ |
| 39 | ${@bb.utils.contains('PACKAGECONFIG', 'clang', 'CONFIG+=config_clang', 'CONFIG-=config_clang', d)} \ | 41 | ${@bb.utils.contains('PACKAGECONFIG', 'clang', 'CONFIG+=config_clang', 'CONFIG+=config_clang_done CONFIG-=config_clang', d)} \ |
| 40 | " | 42 | " |
| 41 | 43 | ||
| 42 | SRCREV = "303d26c6d1c5e87e2e0d1f0032b28a6a50edee03" | 44 | SRCREV = "303d26c6d1c5e87e2e0d1f0032b28a6a50edee03" |
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb index 835d5929..949a28a6 100644 --- a/recipes-qt/qt5/qtwayland_git.bb +++ b/recipes-qt/qt5/qtwayland_git.bb | |||
| @@ -44,32 +44,3 @@ BBCLASSEXTEND =+ "native nativesdk" | |||
| 44 | # The same issue as in qtbase: | 44 | # The same issue as in qtbase: |
| 45 | # http://errors.yoctoproject.org/Errors/Details/152641/ | 45 | # http://errors.yoctoproject.org/Errors/Details/152641/ |
| 46 | LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | 46 | LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" |
| 47 | |||
| 48 | # Since version 5.11.2 some private headers are not installed. Work around | ||
| 49 | # until fixed upstream. See https://bugreports.qt.io/browse/QTBUG-71340 for | ||
| 50 | # further details | ||
| 51 | QTWAYLAND_INSTALL_PRIVATE_HEADERS_MANUALLY ?= "1" | ||
| 52 | # First 6 characters before first + (e.g. 5.11.3-+git) or - (e.g. 5.11.3-2) | ||
| 53 | SHRT_VER ?= "${@d.getVar('PV').split('+')[0].split('-')[0]}" | ||
| 54 | do_install_append() { | ||
| 55 | if [ -d "${B}/src/client" -a "${QTWAYLAND_INSTALL_PRIVATE_HEADERS_MANUALLY}" = "1" -a -d "${D}${includedir}/QtWaylandClient/${SHRT_VER}/QtWaylandClient/private/" ]; then | ||
| 56 | for header in `find ${B}/src/client -name '*wayland-*.h'`; do | ||
| 57 | header_base=`basename $header` | ||
| 58 | dest="${D}${includedir}/QtWaylandClient/${SHRT_VER}/QtWaylandClient/private/$header_base" | ||
| 59 | if [ ! -e "$dest" ]; then | ||
| 60 | echo "Manual install: $header_base to $dest" | ||
| 61 | install -m 644 "$header" "$dest" | ||
| 62 | fi | ||
| 63 | done | ||
| 64 | fi | ||
| 65 | if [ -d "${B}/src/compositor" -a "${QTWAYLAND_INSTALL_PRIVATE_HEADERS_MANUALLY}" = "1" -a -d "${D}${includedir}/QtCompositor/${SHRT_VER}/QtCompositor/private/" ]; then | ||
| 66 | for header in `find ${B}/src/compositor -name '*wayland-*.h'`; do | ||
| 67 | header_base=`basename $header` | ||
| 68 | dest="${D}${includedir}/QtCompositor/${SHRT_VER}/QtCompositor/private/$header_base" | ||
| 69 | if [ ! -e "$dest" ]; then | ||
| 70 | echo "Manual install: $header_base to $dest" | ||
| 71 | install -m 644 "$header" "$dest" | ||
| 72 | fi | ||
| 73 | done | ||
| 74 | fi | ||
| 75 | } | ||
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0007-chromium-fix-build-after-y2038-changes-in-glibc.patch b/recipes-qt/qt5/qtwebengine/chromium/0007-chromium-fix-build-after-y2038-changes-in-glibc.patch new file mode 100644 index 00000000..bdab820a --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/chromium/0007-chromium-fix-build-after-y2038-changes-in-glibc.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From: Jiri Slaby <jslaby@suse.cz> | ||
| 2 | Date: Thu, 11 Jul 2019 09:35:13 +0200 | ||
| 3 | Subject: fix build after y2038 changes in glibc | ||
| 4 | Patch-mainline: submitted on 2019/07/11 | ||
| 5 | References: QTBUG-76963 | ||
| 6 | |||
| 7 | SIOCGSTAMP is defined in linux/sockios.h since kernel 5.2. Include that | ||
| 8 | file wherever needed. | ||
| 9 | |||
| 10 | Signed-off-by: Jiri Slaby <jslaby@suse.cz> | ||
| 11 | --- | ||
| 12 | Upstream-Status: Pending | ||
| 13 | |||
| 14 | chromium/third_party/webrtc/rtc_base/physical_socket_server.cc | 1 + | ||
| 15 | 1 file changed, 1 insertion(+) | ||
| 16 | |||
| 17 | --- a/chromium/third_party/webrtc/rtc_base/physical_socket_server.cc | ||
| 18 | +++ b/chromium/third_party/webrtc/rtc_base/physical_socket_server.cc | ||
| 19 | @@ -67,6 +67,7 @@ typedef void* SockOptArg; | ||
| 20 | #endif // WEBRTC_POSIX | ||
| 21 | |||
| 22 | #if defined(WEBRTC_POSIX) && !defined(WEBRTC_MAC) && !defined(__native_client__) | ||
| 23 | +#include <linux/sockios.h> | ||
| 24 | |||
| 25 | int64_t GetSocketRecvTimestamp(int socket) { | ||
| 26 | struct timeval tv_ioctl; | ||
| 27 | -- | ||
| 28 | 2.21.0 | ||
| 29 | |||
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb index 4c93f704..db6c0221 100644 --- a/recipes-qt/qt5/qtwebengine_git.bb +++ b/recipes-qt/qt5/qtwebengine_git.bb | |||
| @@ -43,7 +43,9 @@ SECURITY_STRINGFORMAT = "" | |||
| 43 | 43 | ||
| 44 | # To use system ffmpeg you need to enable also libwebp, opus, vpx | 44 | # To use system ffmpeg you need to enable also libwebp, opus, vpx |
| 45 | # Only depenedencies available in oe-core are enabled by default | 45 | # Only depenedencies available in oe-core are enabled by default |
| 46 | PACKAGECONFIG ??= "libwebp libevent libpng" | 46 | PACKAGECONFIG ??= "libwebp libevent libpng \ |
| 47 | ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}" | ||
| 48 | |||
| 47 | PACKAGECONFIG[icu] = "-feature-webengine-system-icu,-no-feature-webengine-system-icu,icu" | 49 | PACKAGECONFIG[icu] = "-feature-webengine-system-icu,-no-feature-webengine-system-icu,icu" |
| 48 | PACKAGECONFIG[ffmpeg] = "-feature-webengine-system-ffmpeg,-no-feature-webengine-system-ffmpeg,libav" | 50 | PACKAGECONFIG[ffmpeg] = "-feature-webengine-system-ffmpeg,-no-feature-webengine-system-ffmpeg,libav" |
| 49 | PACKAGECONFIG[webrtc] = "-feature-webengine-webrtc,-no-feature-webengine-webrtc,libvpx" | 51 | PACKAGECONFIG[webrtc] = "-feature-webengine-webrtc,-no-feature-webengine-webrtc,libvpx" |
| @@ -56,13 +58,14 @@ PACKAGECONFIG[harfbuzz] = "-feature-webengine-system-harfbuzz,-no-feature-webeng | |||
| 56 | PACKAGECONFIG[glib] = "-feature-webengine-system-glib,-no-feature-webengine-system-glib,glib-2.0" | 58 | PACKAGECONFIG[glib] = "-feature-webengine-system-glib,-no-feature-webengine-system-glib,glib-2.0" |
| 57 | PACKAGECONFIG[zlib] = "-feature-webengine-system-zlib,-no-feature-webengine-system-zlib,zlib" | 59 | PACKAGECONFIG[zlib] = "-feature-webengine-system-zlib,-no-feature-webengine-system-zlib,zlib" |
| 58 | PACKAGECONFIG[protobuf] = "-feature-webengine-system-protobuf,-no-feature-webengine-system-protobuf,protobuf" | 60 | PACKAGECONFIG[protobuf] = "-feature-webengine-system-protobuf,-no-feature-webengine-system-protobuf,protobuf" |
| 59 | PACKAGECONFIG[jasoncpp] = "-feature-webengine-system-jsoncpp,-no-feature-webengine-system-jsoncpp,jasoncpp" | 61 | PACKAGECONFIG[jsoncpp] = "-feature-webengine-system-jsoncpp,-no-feature-webengine-system-jsoncpp,jsoncpp" |
| 60 | PACKAGECONFIG[libxml2] = "-feature-webengine-system-libxml2,-no-feature-webengine-system-libxml2,libxml2" | 62 | PACKAGECONFIG[libxml2] = "-feature-webengine-system-libxml2,-no-feature-webengine-system-libxml2,libxml2" |
| 61 | PACKAGECONFIG[minizip] = "-feature-webengine-system-minizip,-no-feature-webengine-system-minizip,minizip" | 63 | PACKAGECONFIG[minizip] = "-feature-webengine-system-minizip,-no-feature-webengine-system-minizip,minizip" |
| 62 | PACKAGECONFIG[proprietary-codecs] = "-feature-webengine-proprietary-codecs,-no-feature-webengine-proprietary-codecs" | 64 | PACKAGECONFIG[proprietary-codecs] = "-feature-webengine-proprietary-codecs,-no-feature-webengine-proprietary-codecs" |
| 63 | PACKAGECONFIG[pepper-plugins] = "-feature-webengine-pepper-plugins,-no-feature-webengine-pepper-plugins" | 65 | PACKAGECONFIG[pepper-plugins] = "-feature-webengine-pepper-plugins,-no-feature-webengine-pepper-plugins" |
| 64 | PACKAGECONFIG[printing-and-pdf] = "-feature-webengine-printing-and-pdf,-no-feature-webengine-printing-and-pdf" | 66 | PACKAGECONFIG[printing-and-pdf] = "-feature-webengine-printing-and-pdf,-no-feature-webengine-printing-and-pdf" |
| 65 | PACKAGECONFIG[spellchecker] = "-feature-webengine-spellchecker,-no-feature-webengine-spellchecker" | 67 | PACKAGECONFIG[spellchecker] = "-feature-webengine-spellchecker,-no-feature-webengine-spellchecker" |
| 68 | PACKAGECONFIG[pulseaudio] = "-feature-webengine-pulseaudio,-no-feature-webengine-pulseaudio,pulseaudio" | ||
| 66 | 69 | ||
| 67 | EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" | 70 | EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" |
| 68 | 71 | ||
| @@ -155,6 +158,7 @@ SRC_URI += " \ | |||
| 155 | file://chromium/0004-chromium-Exclude-CRC32-for-32bit-arm.patch;patchdir=src/3rdparty \ | 158 | file://chromium/0004-chromium-Exclude-CRC32-for-32bit-arm.patch;patchdir=src/3rdparty \ |
| 156 | file://chromium/0005-chromium-Do-not-try-to-set-the-guessed-values-for-ma.patch;patchdir=src/3rdparty \ | 159 | file://chromium/0005-chromium-Do-not-try-to-set-the-guessed-values-for-ma.patch;patchdir=src/3rdparty \ |
| 157 | file://chromium/0006-chromium-aarch64-skia-build-fix.patch;patchdir=src/3rdparty \ | 160 | file://chromium/0006-chromium-aarch64-skia-build-fix.patch;patchdir=src/3rdparty \ |
| 161 | file://chromium/0007-chromium-fix-build-after-y2038-changes-in-glibc.patch;patchdir=src/3rdparty \ | ||
| 158 | " | 162 | " |
| 159 | 163 | ||
| 160 | SRC_URI_append_libc-musl = "\ | 164 | SRC_URI_append_libc-musl = "\ |
