summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Suonpera <jani.suonpera@qt.io>2020-11-25 15:38:29 +0200
committerJani Suonpera <jani.suonpera@qt.io>2020-12-04 09:43:52 +0200
commit19d99b10df41b7875b3c788bc7a9d1a88734e644 (patch)
treedc987a79b9ad1810bedfa8221533b550cf1662cc
parent545be38961a2e287c64f2ae607569e88da4bfa8b (diff)
parent7a9f639fbd632dbe23af95c7b8123a0b907c6179 (diff)
downloadmeta-qt5-19d99b10df41b7875b3c788bc7a9d1a88734e644.tar.gz
Merge remote-tracking branch 'qt/upstream/master' into 5.15
Task-number: QTBUG-88755 Change-Id: I7adf9d6bb5fb8a2b0893d1c4b142db73996f20b9
-rw-r--r--coin/module_config.yaml4
-rw-r--r--conf/layer.conf2
-rw-r--r--recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch31
-rw-r--r--recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch18
-rw-r--r--recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Fix-library-path-for-multilib-setups.patch25
-rw-r--r--recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb6
-rw-r--r--recipes-connectivity/libqofono/libqofono_git.bb4
-rw-r--r--recipes-connectivity/libqofono/libqofonoext_git.bb28
-rw-r--r--recipes-python/pyqt5/python3-pyqt5_5.15.1.bb (renamed from recipes-python/pyqt5/python3-pyqt5_5.15.1.dev2006161728.bb)12
-rw-r--r--recipes-python/pyqtchart/python3-pyqtchart_5.15.1.bb (renamed from recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb)13
-rw-r--r--recipes-qt/examples/cinematicexperience_1.0.bb2
-rw-r--r--recipes-qt/maliit/maliit-framework-qt5_git.bb14
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase_git.bb1
-rw-r--r--recipes-qt/qt5/qt5-creator/0001-Link-with-libexecinfo-on-musl.patch6
-rw-r--r--recipes-qt/qt5/qt5-creator/0001-app-Use-malloc_trim-only-on-glibc.patch32
-rw-r--r--recipes-qt/qt5/qt5-creator_git.bb44
-rw-r--r--recipes-qt/qt5/qtbase-native_git.bb1
-rw-r--r--recipes-qt/qt5/qtbase/0019-Define-__NR_futex-if-it-does-not-exist.patch36
-rw-r--r--recipes-qt/qt5/qtbase_git.bb14
-rw-r--r--recipes-qt/qt5/qtdeclarative_git.bb2
-rw-r--r--recipes-qt/qt5/qttools/0004-Force-native-build-of-qt-help-tools-as-qhelpgenerato.patch32
-rw-r--r--recipes-qt/qt5/qttools_git.bb14
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0014-chromium-icu-use-system-library-only-targets.patch88
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0015-chromium-Fix-sandbox-Aw-snap-for-syscalls-403-and-40.patch139
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0016-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0013-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0017-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0014-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0018-chromium-musl-include-fcntl.h-for-loff_t.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0015-chromium-musl-include-fcntl.h-for-loff_t.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0019-chromium-musl-use-off64_t-instead-of-the-internal-__.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0016-chromium-musl-use-off64_t-instead-of-the-internal-__.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0020-chromium-musl-linux-glibc-make-the-distinction.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0017-chromium-musl-linux-glibc-make-the-distinction.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0021-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0018-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0020-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch)4
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0024-chromium-musl-Do-not-define-__sbrk-on-musl.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0021-chromium-musl-Do-not-define-__sbrk-on-musl.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0025-chromium-musl-Adjust-default-pthread-stack-size.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0022-chromium-musl-Adjust-default-pthread-stack-size.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0026-chromium-musl-Use-_fpstate-instead-of-_libc_fpstate-.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-Use-_fpstate-instead-of-_libc_fpstate-.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0027-chromium-musl-elf_reader.cc-include-sys-reg.h-to-get.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0024-chromium-musl-elf_reader.cc-include-sys-reg.h-to-get.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0028-chromium-musl-pread-pwrite.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0025-chromium-musl-pread-pwrite.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0029-chromium-musl-initialize-msghdr-in-a-compatible-mann.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0026-chromium-musl-initialize-msghdr-in-a-compatible-mann.patch)2
-rw-r--r--recipes-qt/qt5/qtwebengine_git.bb42
-rw-r--r--recipes-qt/qt5/qtwebkit/0006-Fix-build-with-bison37.patch52
-rw-r--r--recipes-qt/qt5/qtwebkit/0007-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch34
-rw-r--r--recipes-qt/qt5/qtwebkit/0008-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch32
-rw-r--r--recipes-qt/qt5/qtwebkit_git.bb3
42 files changed, 629 insertions, 130 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
index 39283baa..7af8e30a 100644
--- a/coin/module_config.yaml
+++ b/coin/module_config.yaml
@@ -76,8 +76,8 @@ build_instructions:
76 76
77 # EXCLUDE_FROM_WORLD 77 # EXCLUDE_FROM_WORLD
78 rm -f ${SOURCE_DIR}/recipes-qt/examples/qt5-opengles2-test_git.bb 78 rm -f ${SOURCE_DIR}/recipes-qt/examples/qt5-opengles2-test_git.bb
79 rm -r ${SOURCE_DIR}/recipes-python/pyqt5/python3-pyqt5_5.15.1.dev2006161728.bb 79 rm -r ${SOURCE_DIR}/recipes-python/pyqt5/python3-pyqt5_5.15.1.bb
80 rm -r ${SOURCE_DIR}/recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb 80 rm -r ${SOURCE_DIR}/recipes-python/pyqtchart/python3-pyqtchart_5.15.1.bb
81 bitbake $(find ${SOURCE_DIR} -name *.bb | xargs -n1 basename | sed -e 's/\([^._]*\).*/\1/') 81 bitbake $(find ${SOURCE_DIR} -name *.bb | xargs -n1 basename | sed -e 's/\([^._]*\).*/\1/')
82 filename: "{{.BuildDir}}/start-build" 82 filename: "{{.BuildDir}}/start-build"
83 fileMode: 420 83 fileMode: 420
diff --git a/conf/layer.conf b/conf/layer.conf
index dbaa3d6b..7b3089dc 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -29,7 +29,7 @@ LAYERVERSION_qt5-layer = "1"
29 29
30LAYERDEPENDS_qt5-layer = "core" 30LAYERDEPENDS_qt5-layer = "core"
31 31
32LAYERSERIES_COMPAT_qt5-layer = "dunfell" 32LAYERSERIES_COMPAT_qt5-layer = "dunfell gatesgarth"
33 33
34LICENSE_PATH += "${LAYERDIR}/licenses" 34LICENSE_PATH += "${LAYERDIR}/licenses"
35 35
diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch
new file mode 100644
index 00000000..1f7ec0c8
--- /dev/null
+++ b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch
@@ -0,0 +1,31 @@
1From 09fcee5c5750a3345e4378cd462cbb9aeba5e269 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 11 Aug 2020 22:20:17 -0700
4Subject: [PATCH] Add missing declarations for operator overloads
5
6This fixes clang-11 errors e.g.
7
8| ../../recipe-sysroot/usr/include/QtDBus/qdbusargument.h:276:13: error: invalid operands to binary expression ('const QDBusArgument' and 'RouteStructure')
9| arg >> item;
10| ~~~ ^ ~~~~
11
12Upstream-Status: Pending
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 libconnman-qt/marshalutils.cpp | 3 +++
16 1 file changed, 3 insertions(+)
17
18--- a/libconnman-qt/marshalutils.cpp
19+++ b/libconnman-qt/marshalutils.cpp
20@@ -36,6 +36,11 @@
21
22 #include "marshalutils.h"
23
24+#if defined(__clang__) && __clang_major__ >= 11
25+Q_DBUS_EXPORT const QDBusArgument &operator>>(const QDBusArgument &a, RouteStructure &v);
26+Q_DBUS_EXPORT QDBusArgument &operator<<(QDBusArgument &a, const RouteStructure &v);
27+#endif
28+
29 // Empty namespace for local static functions
30 namespace {
31
diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch
index 7a67c744..028e3f5c 100644
--- a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch
+++ b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch
@@ -12,11 +12,9 @@ Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
12 plugin/qmldir | 2 +- 12 plugin/qmldir | 2 +-
13 3 files changed, 3 insertions(+), 3 deletions(-) 13 3 files changed, 3 insertions(+), 3 deletions(-)
14 14
15diff --git a/plugin/plugin.cpp b/plugin/plugin.cpp
16index a383482..451c95f 100644
17--- a/plugin/plugin.cpp 15--- a/plugin/plugin.cpp
18+++ b/plugin/plugin.cpp 16+++ b/plugin/plugin.cpp
19@@ -24,7 +24,7 @@ 17@@ -34,7 +34,7 @@ static QObject *singleton_api_factory(QQ
20 class ConnmanPlugin: public QQmlExtensionPlugin 18 class ConnmanPlugin: public QQmlExtensionPlugin
21 { 19 {
22 Q_OBJECT 20 Q_OBJECT
@@ -25,27 +23,21 @@ index a383482..451c95f 100644
25 23
26 public: 24 public:
27 void registerTypes(const char *uri); 25 void registerTypes(const char *uri);
28diff --git a/plugin/plugin.pro b/plugin/plugin.pro
29index c4f54cf..3763f57 100644
30--- a/plugin/plugin.pro 26--- a/plugin/plugin.pro
31+++ b/plugin/plugin.pro 27+++ b/plugin/plugin.pro
32@@ -17,7 +17,7 @@ LIBS += -l$$qtLibraryTarget(connman-$$TARGET_SUFFIX) 28@@ -17,7 +17,7 @@ LIBS += -l$$qtLibraryTarget(connman-$$TA
33 QT += qml 29 QT += qml
34 OTHER_FILES += plugin.json qmldirs 30 OTHER_FILES += plugin.json plugins.qmltypes qmldirs
35 31
36-MODULENAME = MeeGo/Connman 32-MODULENAME = MeeGo/Connman
37+MODULENAME = Connman 33+MODULENAME = Connman
38 TARGETPATH = $$[QT_INSTALL_QML]/$$MODULENAME 34 TARGETPATH = $$[QT_INSTALL_QML]/$$MODULENAME
39 35
40 target.path = $$TARGETPATH 36 target.path = $$TARGETPATH
41diff --git a/plugin/qmldir b/plugin/qmldir
42index 5db82b7..de56688 100644
43--- a/plugin/qmldir 37--- a/plugin/qmldir
44+++ b/plugin/qmldir 38+++ b/plugin/qmldir
45@@ -1,2 +1,2 @@ 39@@ -1,3 +1,3 @@
46-module MeeGo.Connman 40-module MeeGo.Connman
47+module Connman 41+module Connman
48 plugin ConnmanQtDeclarative 42 plugin ConnmanQtDeclarative
49-- 43 typeinfo plugins.qmltypes
502.11.0.windows.3
51
diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Fix-library-path-for-multilib-setups.patch b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Fix-library-path-for-multilib-setups.patch
deleted file mode 100644
index 1e37bf55..00000000
--- a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Fix-library-path-for-multilib-setups.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From 9692239a31f0e47ea75b60388d5491d5155a888d Mon Sep 17 00:00:00 2001
2From: Andreas Oberritter <obi@saftware.de>
3Date: Mon, 17 Dec 2018 14:00:44 +0100
4Subject: [PATCH] Fix library path for multilib setups.
5
6Upstream-Status: Pending
7
8Signed-off-by: Andreas Oberritter <obi@saftware.de>
9---
10 libconnman-qt/libconnman-qt.pro | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/libconnman-qt/libconnman-qt.pro b/libconnman-qt/libconnman-qt.pro
14index 8cd58e8..bad8a5e 100644
15--- a/libconnman-qt/libconnman-qt.pro
16+++ b/libconnman-qt/libconnman-qt.pro
17@@ -71,7 +71,7 @@ SOURCES += \
18 networksession.cpp \
19 counter.cpp
20
21-target.path = $$INSTALL_ROOT$$PREFIX/lib
22+target.path = $$[QT_INSTALL_LIBS]
23
24 headers.files = $$PUBLIC_HEADERS
25
diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb b/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb
index f9fa27cd..bc84224e 100644
--- a/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb
+++ b/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb
@@ -5,12 +5,12 @@ HOMEPAGE = "https://git.merproject.org/mer-core/libconnman-qt"
5LICENSE = "Apache-2.0" 5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://libconnman-qt/clockmodel.h;endline=8;md5=ea9f724050803f15d2d900ce3c5dac88" 6LIC_FILES_CHKSUM = "file://libconnman-qt/clockmodel.h;endline=8;md5=ea9f724050803f15d2d900ce3c5dac88"
7DEPENDS += "qtbase qtdeclarative" 7DEPENDS += "qtbase qtdeclarative"
8PV = "1.2.7+git${SRCPV}" 8PV = "1.2.34+git${SRCPV}"
9 9
10SRCREV = "ad7fef1c35a3e897913965f73b879a14d65043dd" 10SRCREV = "a0b6b0d9a63f28ab41747892f415c89866d62e4a"
11SRC_URI = "git://git.merproject.org/mer-core/libconnman-qt.git;protocol=https \ 11SRC_URI = "git://git.merproject.org/mer-core/libconnman-qt.git;protocol=https \
12 file://0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch \ 12 file://0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch \
13 file://0001-Fix-library-path-for-multilib-setups.patch \ 13 file://0001-Add-missing-declarations-for-operator-overloads.patch \
14" 14"
15 15
16S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
diff --git a/recipes-connectivity/libqofono/libqofono_git.bb b/recipes-connectivity/libqofono/libqofono_git.bb
index 7de0e49b..6ed5511c 100644
--- a/recipes-connectivity/libqofono/libqofono_git.bb
+++ b/recipes-connectivity/libqofono/libqofono_git.bb
@@ -5,13 +5,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5 5
6DEPENDS += "qtbase qtdeclarative qtxmlpatterns" 6DEPENDS += "qtbase qtdeclarative qtxmlpatterns"
7 7
8SRCREV = "3581a6e85561da85858e1b90bef9be88b87acc4d" 8SRCREV = "4eec0c726844b8293eeab7312c96956a77d40e90"
9SRC_URI = "git://git.merproject.org/mer-core/libqofono.git \ 9SRC_URI = "git://git.merproject.org/mer-core/libqofono.git \
10 file://0001-also-emit-modemRemoved-and-modemAdded.patch \ 10 file://0001-also-emit-modemRemoved-and-modemAdded.patch \
11" 11"
12S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
13 13
14PV = "0.98+gitr${SRCPV}" 14PV = "0.100+gitr${SRCPV}"
15 15
16inherit qmake5 16inherit qmake5
17 17
diff --git a/recipes-connectivity/libqofono/libqofonoext_git.bb b/recipes-connectivity/libqofono/libqofonoext_git.bb
new file mode 100644
index 00000000..b14aca5f
--- /dev/null
+++ b/recipes-connectivity/libqofono/libqofonoext_git.bb
@@ -0,0 +1,28 @@
1DESCRIPTION = "Qt 5 bindings for the ofono dbus API for Jolla's oFono extensions"
2SECTION = "libs"
3LICENSE = "LGPLv2.1"
4LIC_FILES_CHKSUM = "file://src/qofonoext.cpp;;beginline=1;endline=14;md5=e78738e9230b2e0f55eb7f63e3444df5"
5
6DEPENDS += "qtbase qtdeclarative qtxmlpatterns libqofono"
7
8SRCREV = "bd0999247f3c6446463f83b1f86c3de39c1a5425"
9SRC_URI = "git://git.sailfishos.org/mer-core/libqofonoext.git;protocol=https;"
10S = "${WORKDIR}/git"
11
12PV = "1.025+gitr${SRCPV}"
13
14inherit qmake5
15
16do_install_append() {
17 if ls ${D}${libdir}/pkgconfig/qofono-qt5.pc >/dev/null 2>/dev/null; then
18 sed -i "s@-L${STAGING_LIBDIR}@-L\${libdir}@g" ${D}${libdir}/pkgconfig/qofono-qt5.pc
19 fi
20}
21
22PACKAGES += "${PN}-tests"
23
24FILES_${PN} += " \
25 ${OE_QMAKE_PATH_QML}/org/nemomobile/ofono/qmldir \
26 ${OE_QMAKE_PATH_QML}/org/nemomobile/ofono/plugins.qmltypes \
27 ${OE_QMAKE_PATH_QML}/org/nemomobile/ofono/libqofonoextdeclarative.so \
28"
diff --git a/recipes-python/pyqt5/python3-pyqt5_5.15.1.dev2006161728.bb b/recipes-python/pyqt5/python3-pyqt5_5.15.1.bb
index 2afa46dc..9d8fd39c 100644
--- a/recipes-python/pyqt5/python3-pyqt5_5.15.1.dev2006161728.bb
+++ b/recipes-python/pyqt5/python3-pyqt5_5.15.1.bb
@@ -1,16 +1,18 @@
1SUMMARY = "Python Qt5 Bindings" 1SUMMARY = "Python Qt5 Bindings"
2AUTHOR = "Phil Thomson @ riverbank.co.uk" 2AUTHOR = "Phil Thomson @ riverbank.co.uk"
3HOMEPAGE = "http://riverbankcomputing.co.uk" 3HOMEPAGE = "https://www.riverbankcomputing.com/software/pyqt"
4SECTION = "devel/python" 4SECTION = "devel/python"
5LICENSE = "GPLv3" 5LICENSE = "GPLv3"
6LIC_FILES_CHKSUM = "\ 6LIC_FILES_CHKSUM = "\
7 file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \ 7 file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \
8" 8"
9 9
10SRC_URI = "\ 10inherit pypi
11 https://www.riverbankcomputing.com/static/Downloads/PyQt5/PyQt5-${PV}.tar.gz \ 11
12" 12PYPI_PACKAGE = "PyQt5"
13SRC_URI[sha256sum] = "b29e4771be495018faef9687919395165da49d391c840c4d1a2592c1089ce592" 13
14SRC_URI[md5sum] = "b60f895e70d31d774e6cd374efd17c65"
15SRC_URI[sha256sum] = "d9a76b850246d08da9863189ecb98f6c2aa9b4d97a3e85e29330a264aed0f9a1"
14 16
15S = "${WORKDIR}/PyQt5-${PV}" 17S = "${WORKDIR}/PyQt5-${PV}"
16 18
diff --git a/recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb b/recipes-python/pyqtchart/python3-pyqtchart_5.15.1.bb
index 04e42beb..c6cd2ff6 100644
--- a/recipes-python/pyqtchart/python3-pyqtchart_5.13.1.bb
+++ b/recipes-python/pyqtchart/python3-pyqtchart_5.15.1.bb
@@ -1,15 +1,18 @@
1SUMMARY = "Python Qt Chart Bindings" 1SUMMARY = "Python Qt Chart Bindings"
2AUTHOR = "Adrian.Fiergolski@fastree3d.com" 2AUTHOR = "Adrian.Fiergolski@fastree3d.com"
3HOMEPAGE = "https://www.riverbankcomputing.com/software/pyqtchart"
3SECTION = "devel/python" 4SECTION = "devel/python"
4LICENSE = "GPLv3" 5LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "\ 6LIC_FILES_CHKSUM = "\
6 file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \ 7 file://LICENSE;md5=d32239bcb673463ab874e80d47fae504 \
7" 8"
8SRC_URI = "\ 9
9 https://www.riverbankcomputing.com/static/Downloads/PyQtChart/${PV}/PyQtChart-${PV}.tar.gz \ 10inherit pypi
10" 11
11SRC_URI[md5sum] = "d5d37bff46b690d6318e5e5f25dd5213" 12PYPI_PACKAGE = "PyQtChart"
12SRC_URI[sha256sum] = "49960a1483527857b38c1527f9b6328d30bdcc84521f579c0a561a892f54130e" 13
14SRC_URI[md5sum] = "8a36bc796b0d9a2301e613c382336b0e"
15SRC_URI[sha256sum] = "8d976b3dbfb233fb0123129323c68adb9d3693c945bba1e227e004208f0747bc"
13 16
14S = "${WORKDIR}/PyQtChart-${PV}" 17S = "${WORKDIR}/PyQtChart-${PV}"
15 18
diff --git a/recipes-qt/examples/cinematicexperience_1.0.bb b/recipes-qt/examples/cinematicexperience_1.0.bb
index 9a90f1d4..d7372f61 100644
--- a/recipes-qt/examples/cinematicexperience_1.0.bb
+++ b/recipes-qt/examples/cinematicexperience_1.0.bb
@@ -10,7 +10,7 @@ SRC_URI += "file://fix_qt5_3_compatibility.patch"
10SRC_URI[md5sum] = "935a5db0a6b2a72c67236e72f52be7d1" 10SRC_URI[md5sum] = "935a5db0a6b2a72c67236e72f52be7d1"
11SRC_URI[sha256sum] = "0dd602983ced5f7c0cfd5ad0fbfe2b0b7e3c9ff715e4ef23eef818ccc2b6c60b" 11SRC_URI[sha256sum] = "0dd602983ced5f7c0cfd5ad0fbfe2b0b7e3c9ff715e4ef23eef818ccc2b6c60b"
12 12
13S = "${WORKDIR}/Qt5_CinematicExperience_rpi_${PV}/" 13S = "${WORKDIR}/Qt5_CinematicExperience_rpi_${PV}"
14 14
15# other version available for small screens 15# other version available for small screens
16#SRC_URI = "http://quitcoding.com/download/Qt5_CinematicExperience_1.0.tgz" 16#SRC_URI = "http://quitcoding.com/download/Qt5_CinematicExperience_1.0.tgz"
diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
index 1f0dc8d6..72e6be5f 100644
--- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
@@ -75,12 +75,9 @@ do_install_append() {
75 install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications 75 install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications
76} 76}
77 77
78pkg_postinst_${PN} () { 78pkg_postinst_ontarget_${PN} () {
79#!/bin/sh 79#!/bin/sh
80# should run online 80# should run online
81if [ "x$D" != "x" ]; then
82 exit 1
83fi
84echo "export QT_IM_MODULE=Maliit" >> /etc/xprofile 81echo "export QT_IM_MODULE=Maliit" >> /etc/xprofile
85ln -s /usr/share/applications/maliit-server.desktop /etc/xdg/autostart/maliit-server.desktop 82ln -s /usr/share/applications/maliit-server.desktop /etc/xdg/autostart/maliit-server.desktop
86} 83}
@@ -89,12 +86,11 @@ pkg_postrm_${PN} () {
89#!/bin/sh 86#!/bin/sh
90# should run online 87# should run online
91if [ "x$D" = "x" ]; then 88if [ "x$D" = "x" ]; then
92 exit 1 89 if [ -e "/etc/xprofile" ]; then
93fi 90 sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile
94if [ -e "/etc/xprofile" ]; then 91 fi
95 sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile 92 rm -f /etc/xdg/autostart/maliit-server.desktop
96fi 93fi
97rm -f /etc/xdg/autostart/maliit-server.desktop
98} 94}
99 95
100S = "${WORKDIR}/git" 96S = "${WORKDIR}/git"
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index 60cabe66..4bf81339 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -41,6 +41,7 @@ SRC_URI += "\
41 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \ 41 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \
42 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ 42 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \
43 file://0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch \ 43 file://0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch \
44 file://0019-Define-__NR_futex-if-it-does-not-exist.patch \
44" 45"
45 46
46# common for qtbase-native and nativesdk-qtbase 47# common for qtbase-native and nativesdk-qtbase
diff --git a/recipes-qt/qt5/qt5-creator/0001-Link-with-libexecinfo-on-musl.patch b/recipes-qt/qt5/qt5-creator/0001-Link-with-libexecinfo-on-musl.patch
index da7561ce..25d1ae90 100644
--- a/recipes-qt/qt5/qt5-creator/0001-Link-with-libexecinfo-on-musl.patch
+++ b/recipes-qt/qt5/qt5-creator/0001-Link-with-libexecinfo-on-musl.patch
@@ -11,16 +11,16 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
11 11
12--- a/src/plugins/debugger/debugger.pro 12--- a/src/plugins/debugger/debugger.pro
13+++ b/src/plugins/debugger/debugger.pro 13+++ b/src/plugins/debugger/debugger.pro
14@@ -139,3 +139,4 @@ include(console/console.pri) 14@@ -140,3 +140,4 @@ include(console/console.pri)
15 include(analyzer/analyzer.pri) 15 include(analyzer/analyzer.pri)
16 16
17 include(shared/shared.pri) 17 include(shared/shared.pri)
18+LIBS *= -lexecinfo 18+LIBS *= -lexecinfo
19--- a/src/plugins/qmldesigner/qmldesignerplugin.pro 19--- a/src/plugins/qmldesigner/qmldesignerplugin.pro
20+++ b/src/plugins/qmldesigner/qmldesignerplugin.pro 20+++ b/src/plugins/qmldesigner/qmldesignerplugin.pro
21@@ -3,7 +3,7 @@ CONFIG += exceptions 21@@ -4,7 +4,7 @@ CONFIG += exceptions
22
23 INCLUDEPATH += $$PWD 22 INCLUDEPATH += $$PWD
23 INCLUDEPATH += $$PWD/components
24 24
25-unix:!openbsd:!osx: LIBS += -lrt # posix shared memory 25-unix:!openbsd:!osx: LIBS += -lrt # posix shared memory
26+unix:!openbsd:!osx: LIBS += -lexecinfo -lrt # posix shared memory 26+unix:!openbsd:!osx: LIBS += -lexecinfo -lrt # posix shared memory
diff --git a/recipes-qt/qt5/qt5-creator/0001-app-Use-malloc_trim-only-on-glibc.patch b/recipes-qt/qt5/qt5-creator/0001-app-Use-malloc_trim-only-on-glibc.patch
new file mode 100644
index 00000000..6ee5b7b5
--- /dev/null
+++ b/recipes-qt/qt5/qt5-creator/0001-app-Use-malloc_trim-only-on-glibc.patch
@@ -0,0 +1,32 @@
1From 46ec546fdc4427019184f84f24efe3e145b7e40f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 11 Aug 2020 21:19:22 -0700
4Subject: [PATCH] app: Use malloc_trim only on glibc
5
6musl does not implement it
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/app/main.cpp | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/src/app/main.cpp b/src/app/main.cpp
15index 419b9b362a..9e150e7613 100644
16--- a/src/app/main.cpp
17+++ b/src/app/main.cpp
18@@ -719,7 +719,11 @@ int main(int argc, char **argv)
19 m_trimTimer.setSingleShot(true);
20 m_trimTimer.setInterval(60000);
21 // glibc may not actually free memory in free().
22+#ifdef __GLIBC__
23 connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
24+#else
25+ connect(&m_trimTimer, &QTimer::timeout, this, [] { });
26+#endif
27 }
28
29 bool eventFilter(QObject *, QEvent *e) override
30--
312.28.0
32
diff --git a/recipes-qt/qt5/qt5-creator_git.bb b/recipes-qt/qt5/qt5-creator_git.bb
index d046110b..f8d4aa1d 100644
--- a/recipes-qt/qt5/qt5-creator_git.bb
+++ b/recipes-qt/qt5/qt5-creator_git.bb
@@ -15,16 +15,15 @@ LIC_FILES_CHKSUM = " \
15inherit qmake5 mime-xdg 15inherit qmake5 mime-xdg
16 16
17DEPENDS += "qtbase qtscript qtxmlpatterns qtx11extras qtdeclarative qttools qttools-native qtsvg chrpath-replacement-native zlib" 17DEPENDS += "qtbase qtscript qtxmlpatterns qtx11extras qtdeclarative qttools qttools-native qtsvg chrpath-replacement-native zlib"
18DEPENDS_append_toolchain-clang = " clang llvm-common"
19DEPENDS_append_libc-musl = " libexecinfo" 18DEPENDS_append_libc-musl = " libexecinfo"
20 19
21SRCREV = "9e057a55368286058023510efc328f68250ecb5e" 20SRCREV = "1da2c1f7666ced45d6eea1cd0adfdc68a828e3a0"
22PV = "4.12.0+git${SRCPV}" 21PV = "4.13.1+git${SRCPV}"
23
24# Patches from https://github.com/meta-qt5/qtcreator/commits/b4.9.2 22# Patches from https://github.com/meta-qt5/qtcreator/commits/b4.9.2
25# 4.9.2.meta-qt5.1 23# 4.9.2.meta-qt5.1
26SRC_URI = " \ 24SRC_URI = " \
27 git://code.qt.io/qt-creator/qt-creator.git;branch=4.12 \ 25 git://code.qt.io/qt-creator/qt-creator.git;branch=4.13 \
26 file://0001-app-Use-malloc_trim-only-on-glibc.patch \
28" 27"
29SRC_URI_append_libc-musl = " file://0001-Link-with-libexecinfo-on-musl.patch" 28SRC_URI_append_libc-musl = " file://0001-Link-with-libexecinfo-on-musl.patch"
30 29
@@ -34,6 +33,13 @@ EXTRA_QMAKEVARS_PRE += "IDE_LIBRARY_BASENAME=${baselib}${QT_DIR_NAME}"
34 33
35EXTRANATIVEPATH += "chrpath-native" 34EXTRANATIVEPATH += "chrpath-native"
36 35
36PACKAGECONFIG ??= ""
37PACKAGECONFIG_append_toolchain-clang = " clang"
38
39# Important note: In case clang was added to qttools' PACKAGECONFIG, it has to
40# be added here too - otherwise build fails trying to link native clang libraries
41PACKAGECONFIG[clang] = ",,clang llvm-common"
42
37COMPATIBLE_HOST_toolchain-clang_riscv32 = "null" 43COMPATIBLE_HOST_toolchain-clang_riscv32 = "null"
38COMPATIBLE_HOST_toolchain-clang_riscv64 = "null" 44COMPATIBLE_HOST_toolchain-clang_riscv64 = "null"
39 45
@@ -41,20 +47,20 @@ do_configure_append() {
41 # Find native tools 47 # Find native tools
42 sed -i 's:${STAGING_BINDIR}.*/qdoc:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qdoc:g' ${B}/Makefile 48 sed -i 's:${STAGING_BINDIR}.*/qdoc:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qdoc:g' ${B}/Makefile
43 if [ -e ${B}/share/qtcreator/translations/Makefile ]; then 49 if [ -e ${B}/share/qtcreator/translations/Makefile ]; then
44 sed -i 's:${STAGING_BINDIR}.*/lrelease:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lrelease:g' ${B}/share/qtcreator/translations/Makefile 50 sed -i 's:${STAGING_BINDIR}/lrelease:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lrelease:g' ${B}/share/qtcreator/translations/Makefile
45 sed -i 's:${STAGING_BINDIR}.*/lupdate:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lupdate:g' ${B}/share/qtcreator/translations/Makefile 51 sed -i 's:${STAGING_BINDIR}/lupdate:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lupdate:g' ${B}/share/qtcreator/translations/Makefile
46 sed -i 's:${STAGING_BINDIR}.*/xmlpatterns:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/xmlpatterns:g' ${B}/share/qtcreator/translations/Makefile 52 sed -i 's:${STAGING_BINDIR}/xmlpatterns:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/xmlpatterns:g' ${B}/share/qtcreator/translations/Makefile
47 sed -i 's:${STAGING_BINDIR}.*/lconvert:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lconvert:g' ${B}/share/qtcreator/translations/Makefile 53 sed -i 's:${STAGING_BINDIR}/lconvert:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lconvert:g' ${B}/share/qtcreator/translations/Makefile
48 fi 54 fi
49} 55}
50 56
51do_install() { 57do_install() {
52 oe_runmake install INSTALL_ROOT=${D}${prefix} 58 oe_runmake install INSTALL_ROOT=${D}${prefix}
53} 59 if [ "${@bb.utils.contains("PACKAGECONFIG", "clang", "1", "0", d)}" = "1" ]; then
54do_install_append_toolchain-clang () { 60 # Remove RPATHs embedded in bins
55 # Remove RPATHs embedded in bins 61 chrpath --delete ${D}${libdir}/qtcreator/plugins/libClang*
56 chrpath --delete ${D}${libdir}/qtcreator/plugins/libClang* 62 chrpath --delete ${D}${libexecdir}/qtcreator/clang*
57 chrpath --delete ${D}${libexecdir}/qtcreator/clang* 63 fi
58} 64}
59 65
60FILES_${PN} += " \ 66FILES_${PN} += " \
@@ -79,6 +85,11 @@ RRECOMMENDS_${PN} += " \
79 make \ 85 make \
80 gcc-symlinks g++-symlinks cpp-symlinks \ 86 gcc-symlinks g++-symlinks cpp-symlinks \
81 gdb \ 87 gdb \
88 cmake \
89 qtwebengine-dev \
90 qtwebengine-mkspecs \
91 qtwebengine-plugins \
92 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'qtwebengine-qmlplugins', '', d)} \
82" 93"
83 94
84# ERROR: qt5-creator-4.5.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/qt5-creator/4.5.1-r0/packages-split/qt5-creator/usr/lib/qt5/qtcreator/libqbscore.so.1.10.1' 95# ERROR: qt5-creator-4.5.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/qt5-creator/4.5.1-r0/packages-split/qt5-creator/usr/lib/qt5/qtcreator/libqbscore.so.1.10.1'
@@ -86,3 +97,8 @@ INSANE_SKIP_${PN} += "ldflags"
86 97
87inherit features_check 98inherit features_check
88REQUIRED_DISTRO_FEATURES ?= "x11 opengl" 99REQUIRED_DISTRO_FEATURES ?= "x11 opengl"
100
101python() {
102 if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
103 raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
104}
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb
index bfd1a805..4be4aaa8 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -36,6 +36,7 @@ SRC_URI += "\
36 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \ 36 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \
37 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ 37 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \
38 file://0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch \ 38 file://0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch \
39 file://0019-Define-__NR_futex-if-it-does-not-exist.patch \
39" 40"
40 41
41# common for qtbase-native and nativesdk-qtbase 42# common for qtbase-native and nativesdk-qtbase
diff --git a/recipes-qt/qt5/qtbase/0019-Define-__NR_futex-if-it-does-not-exist.patch b/recipes-qt/qt5/qtbase/0019-Define-__NR_futex-if-it-does-not-exist.patch
new file mode 100644
index 00000000..2accb08e
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0019-Define-__NR_futex-if-it-does-not-exist.patch
@@ -0,0 +1,36 @@
1From bf314645e665d82c65771fb0d5f58558bbe1ba87 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 26 Oct 2020 22:10:02 -0700
4Subject: [PATCH] Define __NR_futex if it does not exist
5
6__NR_futex is not defines by newer architectures e.g. arc, riscv32 as
7they only have 64bit variant of time_t. Glibc defines SYS_futex interface based on
8__NR_futex, since this is used in applications, such applications start
9to fail to build for these newer architectures. This patch defines a
10fallback to alias __NR_futex to __NR_futex_tim64 so SYS_futex keeps
11working
12
13Upstream-Status: Pending
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 src/corelib/thread/qfutex_p.h | 3 +++
18 1 file changed, 3 insertions(+)
19
20diff --git a/src/corelib/thread/qfutex_p.h b/src/corelib/thread/qfutex_p.h
21index f287b752d7..fa5307a604 100644
22--- a/src/corelib/thread/qfutex_p.h
23+++ b/src/corelib/thread/qfutex_p.h
24@@ -76,6 +76,9 @@ QT_END_NAMESPACE
25 # include <unistd.h>
26 # include <asm/unistd.h>
27 # include <linux/futex.h>
28+# if !defined(__NR_futex) && defined(__NR_futex_time64)
29+# define __NR_futex __NR_futex_time64
30+# endif
31 # define QT_ALWAYS_USE_FUTEX
32
33 // if not defined in linux/futex.h
34--
352.29.1
36
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 989e5abb..a7811ddf 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -32,8 +32,13 @@ SRC_URI += "\
32 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \ 32 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \
33 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ 33 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \
34 file://0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch \ 34 file://0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch \
35 file://0019-Define-__NR_futex-if-it-does-not-exist.patch \
35" 36"
36 37
38# Disable LTO for now, QT5 patches are being worked upstream, perhaps revisit with
39# next major upgrade of QT
40LTO = ""
41
37# for syncqt 42# for syncqt
38RDEPENDS_${PN}-tools += "perl" 43RDEPENDS_${PN}-tools += "perl"
39 44
@@ -171,6 +176,8 @@ QT_CONFIG_FLAGS_GOLD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-
171QT_CONFIG_FLAGS_GOLD = "-no-use-gold-linker" 176QT_CONFIG_FLAGS_GOLD = "-no-use-gold-linker"
172LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" 177LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
173 178
179LDFLAGS_append_riscv64 = " -pthread"
180
174QT_CONFIG_FLAGS += " \ 181QT_CONFIG_FLAGS += " \
175 ${QT_CONFIG_FLAGS_GOLD} \ 182 ${QT_CONFIG_FLAGS_GOLD} \
176 -silent \ 183 -silent \
@@ -249,11 +256,12 @@ do_install_append() {
249 256
250 echo "" >> $conf 257 echo "" >> $conf
251 echo "# default compiler options which can be overwritten from the environment" >> $conf 258 echo "# default compiler options which can be overwritten from the environment" >> $conf
252 echo "isEmpty(QMAKE_AR): QMAKE_AR = ${OE_QMAKE_AR} cqs" >> $conf 259 echo "count(QMAKE_AR, 1): QMAKE_AR = ${OE_QMAKE_AR} cqs" >> $conf
253 echo "isEmpty(QMAKE_CC): QMAKE_CC = $OE_QMAKE_CC_NO_SYSROOT" >> $conf 260 echo "isEmpty(QMAKE_CC): QMAKE_CC = $OE_QMAKE_CC_NO_SYSROOT" >> $conf
254 echo "isEmpty(QMAKE_CFLAGS): QMAKE_CFLAGS = ${OE_QMAKE_CFLAGS}" >> $conf
255 echo "isEmpty(QMAKE_CXX): QMAKE_CXX = $OE_QMAKE_CXX_NO_SYSROOT" >> $conf 261 echo "isEmpty(QMAKE_CXX): QMAKE_CXX = $OE_QMAKE_CXX_NO_SYSROOT" >> $conf
256 echo "isEmpty(QMAKE_CXXFLAGS): QMAKE_CXXFLAGS = ${OE_QMAKE_CXXFLAGS}" >> $conf 262 # OE_QMAKE_CFLAGS and OE_QMAKE_CXXFLAGS contain path of the build host, which is not useful for the target.
263 echo "isEmpty(QMAKE_CFLAGS): QMAKE_CFLAGS = ${OE_QMAKE_CFLAGS}" | sed -e 's/-fdebug-prefix-map=[^ ]*//g' | sed -e 's/-fmacro-prefix-map=[^ ]*//g' >> $conf
264 echo "isEmpty(QMAKE_CXXFLAGS): QMAKE_CXXFLAGS = ${OE_QMAKE_CXXFLAGS}" | sed -e 's/-fdebug-prefix-map=[^ ]*//g' | sed -e 's/-fmacro-prefix-map=[^ ]*//g' >> $conf
257 echo "isEmpty(QMAKE_LINK): QMAKE_LINK = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf 265 echo "isEmpty(QMAKE_LINK): QMAKE_LINK = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf
258 echo "isEmpty(QMAKE_LINK_SHLIB): QMAKE_LINK_SHLIB = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf 266 echo "isEmpty(QMAKE_LINK_SHLIB): QMAKE_LINK_SHLIB = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf
259 echo "isEmpty(QMAKE_LINK_C): QMAKE_LINK_C = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf 267 echo "isEmpty(QMAKE_LINK_C): QMAKE_LINK_C = $OE_QMAKE_LINK_NO_SYSROOT" >> $conf
diff --git a/recipes-qt/qt5/qtdeclarative_git.bb b/recipes-qt/qt5/qtdeclarative_git.bb
index 6eae8173..3ff69d60 100644
--- a/recipes-qt/qt5/qtdeclarative_git.bb
+++ b/recipes-qt/qt5/qtdeclarative_git.bb
@@ -18,6 +18,8 @@ SRC_URI += " \
18 file://0001-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-locate-qmlca.patch \ 18 file://0001-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-locate-qmlca.patch \
19" 19"
20 20
21LDFLAGS_append_riscv64 = " -pthread"
22
21DEPENDS += "qtbase qtdeclarative-native" 23DEPENDS += "qtbase qtdeclarative-native"
22 24
23PACKAGECONFIG ??= "qml-debug qml-network ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}" 25PACKAGECONFIG ??= "qml-debug qml-network ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}"
diff --git a/recipes-qt/qt5/qttools/0004-Force-native-build-of-qt-help-tools-as-qhelpgenerato.patch b/recipes-qt/qt5/qttools/0004-Force-native-build-of-qt-help-tools-as-qhelpgenerato.patch
new file mode 100644
index 00000000..4bc53c79
--- /dev/null
+++ b/recipes-qt/qt5/qttools/0004-Force-native-build-of-qt-help-tools-as-qhelpgenerato.patch
@@ -0,0 +1,32 @@
1From 88c20560720693b6b30d48af748ab232238f9ac8 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Fri, 14 Aug 2020 21:25:27 +0200
4Subject: [PATCH] Force native build of qt-help tools as qhelpgenerato
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstrem-Statu: Inappropriate [embedded specific]
10
11Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
12---
13 src/assistant/assistant.pro | 6 ------
14 1 file changed, 6 deletions(-)
15
16diff --git a/src/assistant/assistant.pro b/src/assistant/assistant.pro
17index d34b5590..7d87ac48 100644
18--- a/src/assistant/assistant.pro
19+++ b/src/assistant/assistant.pro
20@@ -14,9 +14,3 @@ SUBDIRS += \
21
22 assistant.depends = help
23 qhelpgenerator.depends = help
24-
25-qtNomakeTools( \
26- assistant \
27- qhelpgenerator \
28- qcollectiongenerator \
29-)
30--
312.26.2
32
diff --git a/recipes-qt/qt5/qttools_git.bb b/recipes-qt/qt5/qttools_git.bb
index 0c8b3e26..63566035 100644
--- a/recipes-qt/qt5/qttools_git.bb
+++ b/recipes-qt/qt5/qttools_git.bb
@@ -19,6 +19,7 @@ SRC_URI += " \
19 file://0002-linguist-tools-cmake-allow-overriding-the-location-f.patch \ 19 file://0002-linguist-tools-cmake-allow-overriding-the-location-f.patch \
20 file://0003-src.pro-Add-option-noqdoc-to-disable-qdoc-builds.patch \ 20 file://0003-src.pro-Add-option-noqdoc-to-disable-qdoc-builds.patch \
21" 21"
22SRC_URI_append_class-native = " ${@bb.utils.contains('PACKAGECONFIG', 'clang', 'file://0004-Force-native-build-of-qt-help-tools-as-qhelpgenerato.patch', '', d)}"
22 23
23FILES_${PN}-tools += "${datadir}${QT_DIR_NAME}/phrasebooks" 24FILES_${PN}-tools += "${datadir}${QT_DIR_NAME}/phrasebooks"
24FILES_${PN}-examples = "${datadir}${QT_DIR_NAME}/examples" 25FILES_${PN}-examples = "${datadir}${QT_DIR_NAME}/examples"
@@ -34,21 +35,10 @@ COMPATIBLE_HOST_toolchain-clang_riscv64 = "null"
34 35
35export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_BINDIR}/llvm-config" 36export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_BINDIR}/llvm-config"
36 37
37TOOLSTOBUILD += "linguist/lconvert linguist/lrelease linguist/lupdate pixeltool qtdiag qtpaths qtplugininfo"
38TOOLSTOBUILD += "${@bb.utils.contains('PACKAGECONFIG', 'clang', 'qdoc', '', d)}"
39TOOLSFORTARGET = "pixeltool qtdiag qtpaths qtplugininfo"
40TOOLSFORHOST = "linguist ${@bb.utils.contains('PACKAGECONFIG', 'clang', 'qdoc', '', d)}"
41
42EXTRA_QMAKEVARS_PRE += " \ 38EXTRA_QMAKEVARS_PRE += " \
43 ${@bb.utils.contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)} \ 39 ${@bb.utils.contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)} \
44 ${@bb.utils.contains('PACKAGECONFIG', 'clang', 'CONFIG+=disable_external_rpath', 'CONFIG+=noqdoc', d)} \ 40 ${@bb.utils.contains('PACKAGECONFIG', 'clang', 'CONFIG+=disable_external_rpath CONFIG+=assistant', 'CONFIG+=noqdoc', d)} \
45"
46EXTRA_QMAKEVARS_PRE_append_class-native = " CONFIG+=config_clang_done CONFIG-=config_clang"
47EXTRA_QMAKEVARS_PRE_append_class-nativesdk = " CONFIG+=config_clang_done CONFIG-=config_clang"
48EXTRA_QMAKEVARS_PRE_append_class-target = "\
49 ${@bb.utils.contains('PACKAGECONFIG', 'clang', 'CONFIG+=config_clang', 'CONFIG+=config_clang_done CONFIG-=config_clang', d)} \
50" 41"
51
52SRCREV = "cc52debd905e0ed061290d6fd00a5f1ab67478a5" 42SRCREV = "cc52debd905e0ed061290d6fd00a5f1ab67478a5"
53 43
54BBCLASSEXTEND = "native nativesdk" 44BBCLASSEXTEND = "native nativesdk"
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0014-chromium-icu-use-system-library-only-targets.patch b/recipes-qt/qt5/qtwebengine/chromium/0014-chromium-icu-use-system-library-only-targets.patch
new file mode 100644
index 00000000..8a6660ff
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/chromium/0014-chromium-icu-use-system-library-only-targets.patch
@@ -0,0 +1,88 @@
1From 344e8a3945a29239dd2f27ea4969e3d64d5d8911 Mon Sep 17 00:00:00 2001
2From: Andrej Valek <andrej.valek@siemens.com>
3Date: Fri, 17 Apr 2020 09:43:32 +0200
4Subject: [PATCH] chromium: icu: use system library only targets
5
6 - use bundled one for native/v8 internal builds
7
8Complete system ICU library using requires ICU dev package
9be installed on host. Enabling dependency on native package
10is not enough due to V8 hosttools toolchain. V8 toolchain
11is not using native sysroot, only a host packages.
12On the other hand webenegine does not produce external
13native artifacts. So external system ICU linking is not
14needed.
15
16Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
17Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
18---
19 chromium/third_party/icu/BUILD.gn | 18 ++++++++++++++----
20 1 file changed, 14 insertions(+), 4 deletions(-)
21
22diff --git a/chromium/third_party/icu/BUILD.gn b/chromium/third_party/icu/BUILD.gn
23index 73673fa20ac..a656692c7bf 100644
24--- a/chromium/third_party/icu/BUILD.gn
25+++ b/chromium/third_party/icu/BUILD.gn
26@@ -7,9 +7,13 @@ import("//build/config/host_byteorder.gni")
27 import("//build/config/linux/pkg_config.gni")
28 import("//build/shim_headers.gni")
29 import("//third_party/icu/config.gni")
30+import("//v8/gni/snapshot_toolchain.gni")
31
32 declare_args() {
33 use_system_icu = false
34+
35+ # Use only target icu library, when system using is enabled
36+ use_system_icu_target_only = false
37 }
38
39 if (is_android) {
40@@ -23,6 +27,12 @@ if (is_mac) {
41 assert(!icu_disable_thin_archive || !is_component_build,
42 "icu_disable_thin_archive only works in static library builds")
43
44+if (use_system_icu) {
45+ # Use system library only for target, otherwise use bundled
46+ if ((current_toolchain != host_toolchain) && (current_toolchain != v8_snapshot_toolchain)) {
47+ use_system_icu_target_only = true
48+ }
49+}
50 # Meta target that includes both icuuc and icui18n. Most targets want both.
51 # You can depend on the individually if you need to.
52 group("icu") {
53@@ -1222,7 +1232,7 @@ config("system_icu_config") {
54 }
55 }
56
57-if (use_system_icu) {
58+if (use_system_icu_target_only) {
59 pkg_config("system_icui18n") {
60 packages = [ "icu-i18n" ]
61 }
62@@ -1435,7 +1445,7 @@ shim_headers("icuuc_shim") {
63 }
64
65 config("icu_config") {
66- if (use_system_icu) {
67+ if (use_system_icu_target_only) {
68 configs = [ ":system_icu_config"]
69 } else {
70 configs = [ ":bundled_icu_config"]
71@@ -1443,7 +1453,7 @@ config("icu_config") {
72 }
73
74 group("icuuc") {
75- if (use_system_icu) {
76+ if (use_system_icu_target_only) {
77 deps = [ ":icuuc_shim" ]
78 public_configs = [
79 ":system_icu_config",
80@@ -1455,7 +1465,7 @@ group("icuuc") {
81 }
82
83 group("icui18n") {
84- if (use_system_icu) {
85+ if (use_system_icu_target_only) {
86 deps = [ ":icui18n_shim" ]
87 public_configs = [
88 ":system_icu_config",
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0015-chromium-Fix-sandbox-Aw-snap-for-syscalls-403-and-40.patch b/recipes-qt/qt5/qtwebengine/chromium/0015-chromium-Fix-sandbox-Aw-snap-for-syscalls-403-and-40.patch
new file mode 100644
index 00000000..1b43fcbb
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/chromium/0015-chromium-Fix-sandbox-Aw-snap-for-syscalls-403-and-40.patch
@@ -0,0 +1,139 @@
1From 5aa69767be0fbbc7a3a5075c6c94366a535c99a8 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Mon, 20 Apr 2020 23:56:48 +0200
4Subject: [PATCH] chromium: Fix sandbox 'Aw, snap' for syscalls 403 and 407
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Taken as is from meta-browser. Saw my application freeze for syscall 0407
10trouble:
11
12| ../../../../git/src/3rdparty/chromium/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0407
13
14Original commit message:
15
16* syscall 403: reported by ArchLinux users [1-2]
17* syscall 407: reported by me [3]
18
19Looking at [4-5] it seems that glibc (>=2.31?) introduced extra syscalls for
2032Bit systems to handle time64:
21
22* __NR_clock_gettime -> __NR_clock_gettime64
23* __NR_clock_nanosleep -> __NR_clock_nanosleep_time64
24
25To fix
26| ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0403
27| ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0407
28
29we handle new systemcalls in the same way as 64bit systems do and 32bit systems
30did before glibc 2.31.
31
32[1] https://bugs.archlinux32.org/index.php?do=details&task_id=105
33[2] https://bbs.archlinux32.org/viewtopic.php?id=2897
34[3] https://github.com/OSSystems/meta-browser/issues/357
35[4] https://sourceware.org/git/?p=glibc.git;a=commit;h=2e44b10b42d68d9887ccab17b76db5d7bbae4fb6
36[5] https://github.com/bminor/glibc/blob/019d828669df966dc4ef2684fce0b1c17bef9aae/sysdeps/unix/sysv/linux/clock_gettime.c#L30
37
38Upstream Status: Pending [Have no idea where to send this]
39
40Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
41Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
42---
43 .../sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc | 9 ++++++++-
44 .../syscall_parameters_restrictions_unittests.cc | 6 ++++++
45 .../sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc | 6 ++++++
46 .../sandbox/linux/system_headers/arm_linux_syscalls.h | 8 ++++++++
47 .../sandbox/linux/system_headers/mips_linux_syscalls.h | 8 ++++++++
48 5 files changed, 36 insertions(+), 1 deletion(-)
49
50diff --git a/chromium/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc b/chromium/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
51index 768025ce192..87025d91785 100644
52--- a/chromium/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
53+++ b/chromium/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
54@@ -148,7 +148,14 @@ ResultExpr EvaluateSyscallImpl(int fs_denied_errno,
55 return Allow();
56 #endif
57
58- if (sysno == __NR_clock_gettime || sysno == __NR_clock_nanosleep) {
59+ if (sysno == __NR_clock_gettime || sysno == __NR_clock_nanosleep
60+#if defined(__NR_clock_gettime64)
61+ || sysno == __NR_clock_gettime64
62+#endif
63+#if defined(__NR_clock_nanosleep_time64)
64+ || sysno == __NR_clock_nanosleep_time64
65+#endif
66+ ) {
67 return RestrictClockID();
68 }
69
70diff --git a/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc b/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc
71index 76193b62c9f..7731c697002 100644
72--- a/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc
73+++ b/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc
74@@ -60,6 +60,12 @@ class RestrictClockIdPolicy : public bpf_dsl::Policy {
75 case __NR_clock_gettime:
76 case __NR_clock_getres:
77 case __NR_clock_nanosleep:
78+#if defined(__NR_clock_nanosleep_time64)
79+ case __NR_clock_nanosleep_time64:
80+#endif
81+#if defined(__NR_clock_gettime64)
82+ case __NR_clock_gettime64:
83+#endif
84 return RestrictClockID();
85 default:
86 return Allow();
87diff --git a/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc b/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
88index d9d18822f67..0db8745cb57 100644
89--- a/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
90+++ b/chromium/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
91@@ -39,6 +39,12 @@ bool SyscallSets::IsAllowedGettime(int sysno) {
92 // filtered by RestrictClokID().
93 case __NR_clock_gettime: // Parameters filtered by RestrictClockID().
94 case __NR_clock_nanosleep: // Parameters filtered by RestrictClockID().
95+#if defined(__NR_clock_gettime64)
96+ case __NR_clock_gettime64: // Parameters filtered by RestrictClockID().
97+#endif
98+#if defined(__NR_clock_nanosleep_time64)
99+ case __NR_clock_nanosleep_time64: // Parameters filtered by RestrictClockID().
100+#endif
101 case __NR_clock_settime: // Privileged.
102 #if defined(__i386__) || \
103 (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
104diff --git a/chromium/sandbox/linux/system_headers/arm_linux_syscalls.h b/chromium/sandbox/linux/system_headers/arm_linux_syscalls.h
105index 1addd53843c..5de2162f981 100644
106--- a/chromium/sandbox/linux/system_headers/arm_linux_syscalls.h
107+++ b/chromium/sandbox/linux/system_headers/arm_linux_syscalls.h
108@@ -1385,6 +1385,14 @@
109 #define __NR_memfd_create (__NR_SYSCALL_BASE+385)
110 #endif
111
112+#if !defined(__NR_clock_gettime64)
113+#define __NR_clock_gettime64 (__NR_SYSCALL_BASE+403)
114+#endif
115+
116+#if !defined(__NR_clock_nanosleep_time64)
117+#define __NR_clock_nanosleep_time64 (__NR_SYSCALL_BASE+407)
118+#endif
119+
120 // ARM private syscalls.
121 #if !defined(__ARM_NR_BASE)
122 #define __ARM_NR_BASE (__NR_SYSCALL_BASE + 0xF0000)
123diff --git a/chromium/sandbox/linux/system_headers/mips_linux_syscalls.h b/chromium/sandbox/linux/system_headers/mips_linux_syscalls.h
124index ddbf97f3d8b..fa01b3bbc66 100644
125--- a/chromium/sandbox/linux/system_headers/mips_linux_syscalls.h
126+++ b/chromium/sandbox/linux/system_headers/mips_linux_syscalls.h
127@@ -1433,4 +1433,12 @@
128 #define __NR_memfd_create (__NR_Linux + 354)
129 #endif
130
131+#if !defined(__NR_clock_gettime64)
132+#define __NR_clock_gettime64 (__NR_Linux + 403)
133+#endif
134+
135+#if !defined(__NR_clock_nanosleep_time64)
136+#define __NR_clock_nanosleep_time64 (__NR_Linux + 407)
137+#endif
138+
139 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_MIPS_LINUX_SYSCALLS_H_
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0013-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch b/recipes-qt/qt5/qtwebengine/chromium/0016-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch
index f654424e..01c46c05 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0013-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0016-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch
@@ -1,4 +1,4 @@
1From 69570c2f3c88c31cca71f87996ed4ab7ab2bc66c Mon Sep 17 00:00:00 2001 1From 0dbcdee3ccc23d3a6c9e66b5abc3fb3d1ccbc297 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:01:12 -0700 3Date: Fri, 7 Jul 2017 14:01:12 -0700
4Subject: [PATCH] chromium: musl: sandbox: Define TEMP_FAILURE_RETRY if not 4Subject: [PATCH] chromium: musl: sandbox: Define TEMP_FAILURE_RETRY if not
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0014-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch b/recipes-qt/qt5/qtwebengine/chromium/0017-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch
index 19fbca5d..03226154 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0014-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0017-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch
@@ -1,4 +1,4 @@
1From 5b501d5335008e32bd5a62e48a675c8fc61194a9 Mon Sep 17 00:00:00 2001 1From bbb23eb876e1f4500e7c8fd716a73351ad660725 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:09:06 -0700 3Date: Fri, 7 Jul 2017 14:09:06 -0700
4Subject: [PATCH] chromium: musl: Avoid mallinfo() APIs on non-glibc/linux 4Subject: [PATCH] chromium: musl: Avoid mallinfo() APIs on non-glibc/linux
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0015-chromium-musl-include-fcntl.h-for-loff_t.patch b/recipes-qt/qt5/qtwebengine/chromium/0018-chromium-musl-include-fcntl.h-for-loff_t.patch
index 91bd4057..869ac113 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0015-chromium-musl-include-fcntl.h-for-loff_t.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0018-chromium-musl-include-fcntl.h-for-loff_t.patch
@@ -1,4 +1,4 @@
1From 1180600c21260188fd2d3def0f536b4243175fc0 Mon Sep 17 00:00:00 2001 1From d1d6bd4260eb847c1493a8ce4a974bb8d8ee0218 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:37:49 -0700 3Date: Fri, 7 Jul 2017 14:37:49 -0700
4Subject: [PATCH] chromium: musl: include fcntl.h for loff_t 4Subject: [PATCH] chromium: musl: include fcntl.h for loff_t
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0016-chromium-musl-use-off64_t-instead-of-the-internal-__.patch b/recipes-qt/qt5/qtwebengine/chromium/0019-chromium-musl-use-off64_t-instead-of-the-internal-__.patch
index c6c3571c..638c7312 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0016-chromium-musl-use-off64_t-instead-of-the-internal-__.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0019-chromium-musl-use-off64_t-instead-of-the-internal-__.patch
@@ -1,4 +1,4 @@
1From f2ff87552f0f2f576bda05f7ccf5855c005ed7b0 Mon Sep 17 00:00:00 2001 1From 7cf2404330f7888f3cc8a25becfe944cc2fc421e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:38:37 -0700 3Date: Fri, 7 Jul 2017 14:38:37 -0700
4Subject: [PATCH] chromium: musl: use off64_t instead of the internal __off64_t 4Subject: [PATCH] chromium: musl: use off64_t instead of the internal __off64_t
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0017-chromium-musl-linux-glibc-make-the-distinction.patch b/recipes-qt/qt5/qtwebengine/chromium/0020-chromium-musl-linux-glibc-make-the-distinction.patch
index 9cc6744d..55939ddd 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0017-chromium-musl-linux-glibc-make-the-distinction.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0020-chromium-musl-linux-glibc-make-the-distinction.patch
@@ -1,4 +1,4 @@
1From efa10960aa9ec6b573a9c34cabab90ad2c31c5a3 Mon Sep 17 00:00:00 2001 1From 350b57a5cad7c655ccb68a8b4b91e7d32021a1d7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:54:38 -0700 3Date: Fri, 7 Jul 2017 14:54:38 -0700
4Subject: [PATCH] chromium: musl: linux != glibc, make the distinction 4Subject: [PATCH] chromium: musl: linux != glibc, make the distinction
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0018-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch b/recipes-qt/qt5/qtwebengine/chromium/0021-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch
index 15e38eb0..37276844 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0018-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0021-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch
@@ -1,4 +1,4 @@
1From c799e56ed6c073782c9215aa7d9302003b61a395 Mon Sep 17 00:00:00 2001 1From 68decc5d87b4eb013f1455fc4f81f67f926fa3b2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 15:09:02 -0700 3Date: Fri, 7 Jul 2017 15:09:02 -0700
4Subject: [PATCH] chromium: musl: allocator: Do not include glibc_weak_symbols 4Subject: [PATCH] chromium: musl: allocator: Do not include glibc_weak_symbols
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0020-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch b/recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch
index 033780d8..aea690d9 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0020-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch
@@ -1,4 +1,4 @@
1From a49d5e2c256d18853c0e00e698759f763eaddf04 Mon Sep 17 00:00:00 2001 1From fea443adcea6e081cfee94a19c75e7b0516e1bce Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 15:27:50 -0700 3Date: Fri, 7 Jul 2017 15:27:50 -0700
4Subject: [PATCH] chromium: musl: Define res_ninit and res_nclose for non-glibc 4Subject: [PATCH] chromium: musl: Define res_ninit and res_nclose for non-glibc
@@ -13,7 +13,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 create mode 100644 chromium/net/dns/resolv_compat.h 13 create mode 100644 chromium/net/dns/resolv_compat.h
14 14
15diff --git a/chromium/net/dns/dns_config_service_posix.cc b/chromium/net/dns/dns_config_service_posix.cc 15diff --git a/chromium/net/dns/dns_config_service_posix.cc b/chromium/net/dns/dns_config_service_posix.cc
16index eaa5336c339..18b40d7d005 100644 16index 2e0f06b0c1e..aaafef77d79 100644
17--- a/chromium/net/dns/dns_config_service_posix.cc 17--- a/chromium/net/dns/dns_config_service_posix.cc
18+++ b/chromium/net/dns/dns_config_service_posix.cc 18+++ b/chromium/net/dns/dns_config_service_posix.cc
19@@ -29,6 +29,10 @@ 19@@ -29,6 +29,10 @@
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0021-chromium-musl-Do-not-define-__sbrk-on-musl.patch b/recipes-qt/qt5/qtwebengine/chromium/0024-chromium-musl-Do-not-define-__sbrk-on-musl.patch
index 97fce663..cd1059e3 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0021-chromium-musl-Do-not-define-__sbrk-on-musl.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0024-chromium-musl-Do-not-define-__sbrk-on-musl.patch
@@ -1,4 +1,4 @@
1From 6e44772c5aa78c39d52910aaf4cc2db3bcf0ba7e Mon Sep 17 00:00:00 2001 1From 64e79d346a2038b976f5bafe2b0b2032b1628229 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 15:39:57 -0700 3Date: Fri, 7 Jul 2017 15:39:57 -0700
4Subject: [PATCH] chromium: musl: Do not define __sbrk on musl 4Subject: [PATCH] chromium: musl: Do not define __sbrk on musl
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0022-chromium-musl-Adjust-default-pthread-stack-size.patch b/recipes-qt/qt5/qtwebengine/chromium/0025-chromium-musl-Adjust-default-pthread-stack-size.patch
index 53ecedd4..50d17413 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0022-chromium-musl-Adjust-default-pthread-stack-size.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0025-chromium-musl-Adjust-default-pthread-stack-size.patch
@@ -1,4 +1,4 @@
1From 31b50a484935d1a610da74fa5a06489f8309fd6d Mon Sep 17 00:00:00 2001 1From cecdf34d89110115948cfde44c04a43c9925b24a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 16:41:23 -0700 3Date: Fri, 7 Jul 2017 16:41:23 -0700
4Subject: [PATCH] chromium: musl: Adjust default pthread stack size 4Subject: [PATCH] chromium: musl: Adjust default pthread stack size
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-Use-_fpstate-instead-of-_libc_fpstate-.patch b/recipes-qt/qt5/qtwebengine/chromium/0026-chromium-musl-Use-_fpstate-instead-of-_libc_fpstate-.patch
index 750d0d5e..07a1e3d6 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0023-chromium-musl-Use-_fpstate-instead-of-_libc_fpstate-.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0026-chromium-musl-Use-_fpstate-instead-of-_libc_fpstate-.patch
@@ -1,4 +1,4 @@
1From d687194f970d5ed19d21916eba4f597625d20dfc Mon Sep 17 00:00:00 2001 1From ae4187267b4d0d2ff13a6593b69ca06cee321eea Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 25 Sep 2018 12:35:07 -0700 3Date: Tue, 25 Sep 2018 12:35:07 -0700
4Subject: [PATCH] chromium: musl: Use _fpstate instead of _libc_fpstate on 4Subject: [PATCH] chromium: musl: Use _fpstate instead of _libc_fpstate on
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0024-chromium-musl-elf_reader.cc-include-sys-reg.h-to-get.patch b/recipes-qt/qt5/qtwebengine/chromium/0027-chromium-musl-elf_reader.cc-include-sys-reg.h-to-get.patch
index 4ed957ee..63f93873 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0024-chromium-musl-elf_reader.cc-include-sys-reg.h-to-get.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0027-chromium-musl-elf_reader.cc-include-sys-reg.h-to-get.patch
@@ -1,4 +1,4 @@
1From 976ee610f4bb87d1b5f57756c04f13b06f3ebf26 Mon Sep 17 00:00:00 2001 1From f12f5d2dc91548ca77b296a0be3705aacc9fca33 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 25 Sep 2018 12:59:05 -0700 3Date: Tue, 25 Sep 2018 12:59:05 -0700
4Subject: [PATCH] chromium: musl: elf_reader.cc: include <sys/reg.h> to get 4Subject: [PATCH] chromium: musl: elf_reader.cc: include <sys/reg.h> to get
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0025-chromium-musl-pread-pwrite.patch b/recipes-qt/qt5/qtwebengine/chromium/0028-chromium-musl-pread-pwrite.patch
index 61a1137c..edeb3272 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0025-chromium-musl-pread-pwrite.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0028-chromium-musl-pread-pwrite.patch
@@ -1,4 +1,4 @@
1From 4cb584454ab1537c1e1e5ae8453f57a98aa9a928 Mon Sep 17 00:00:00 2001 1From 3269ffba733ed7eeb7c2c36912dd19ca1ef35f8b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 23 Dec 2018 16:58:04 -0800 3Date: Sun, 23 Dec 2018 16:58:04 -0800
4Subject: [PATCH] chromium: musl: pread pwrite 4Subject: [PATCH] chromium: musl: pread pwrite
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0026-chromium-musl-initialize-msghdr-in-a-compatible-mann.patch b/recipes-qt/qt5/qtwebengine/chromium/0029-chromium-musl-initialize-msghdr-in-a-compatible-mann.patch
index 0d73e07c..72adf1cb 100644
--- a/recipes-qt/qt5/qtwebengine/chromium/0026-chromium-musl-initialize-msghdr-in-a-compatible-mann.patch
+++ b/recipes-qt/qt5/qtwebengine/chromium/0029-chromium-musl-initialize-msghdr-in-a-compatible-mann.patch
@@ -1,4 +1,4 @@
1From acc3b1b674a2568dd19418ec5b3c58330a29521a Mon Sep 17 00:00:00 2001 1From 0b04cbd5b93908bad4dfc6d829048fe90a09b868 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 10 May 2020 08:16:01 -0700 3Date: Sun, 10 May 2020 08:16:01 -0700
4Subject: [PATCH] chromium: musl: initialize msghdr in a compatible manner 4Subject: [PATCH] chromium: musl: initialize msghdr in a compatible manner
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb
index 1d7fe83f..b00ba48c 100644
--- a/recipes-qt/qt5/qtwebengine_git.bb
+++ b/recipes-qt/qt5/qtwebengine_git.bb
@@ -21,7 +21,7 @@ DEPENDS += " \
21 qtwebchannel \ 21 qtwebchannel \
22 qtbase qtdeclarative qtxmlpatterns qtquickcontrols qtquickcontrols2 \ 22 qtbase qtdeclarative qtxmlpatterns qtquickcontrols qtquickcontrols2 \
23 qtlocation \ 23 qtlocation \
24 libdrm fontconfig pixman openssl pango cairo icu pciutils nss \ 24 libdrm fontconfig pixman openssl pango cairo pciutils nss \
25 libcap \ 25 libcap \
26 jpeg-native \ 26 jpeg-native \
27 freetype-native \ 27 freetype-native \
@@ -146,20 +146,22 @@ RDEPENDS_${PN}-examples += " \
146 146
147QT_MODULE_BRANCH_CHROMIUM = "83-based" 147QT_MODULE_BRANCH_CHROMIUM = "83-based"
148 148
149# Patches from https://github.com/meta-qt5/qtwebengine/commits/b5.15 149# Patches from https://github.com/meta-qt5/qtwebengine/commits/b5.15-glibc
150# 5.15.meta-qt5.7 150# 5.15-glibc.meta-qt5.8
151SRC_URI += " \ 151SRC_URI += " \
152 ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty \ 152 ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty \
153 file://0001-Force-host-toolchain-configuration.patch \ 153 file://0001-Force-host-toolchain-configuration.patch \
154" 154"
155# Patches from https://github.com/meta-qt5/qtwebengine/commits/b5.15
156# 5.15-glibc.meta-qt5.8
155SRC_URI_append_libc-musl = "\ 157SRC_URI_append_libc-musl = "\
156 file://0002-musl-don-t-use-pvalloc-as-it-s-not-available-on-musl.patch \ 158 file://0002-musl-don-t-use-pvalloc-as-it-s-not-available-on-musl.patch \
157 file://0003-musl-link-against-libexecinfo.patch \ 159 file://0003-musl-link-against-libexecinfo.patch \
158 file://0004-mkspecs-Allow-builds-with-libc-glibc.patch \ 160 file://0004-mkspecs-Allow-builds-with-libc-glibc.patch \
159" 161"
160 162
161# Patches from https://github.com/meta-qt5/qtwebengine-chromium/commits/80-based 163# Patches from https://github.com/meta-qt5/qtwebengine-chromium/commits/80-based-glibc
162# 80-based.meta-qt5.3 164# 80-based-glibc.meta-qt5.4
163SRC_URI += " \ 165SRC_URI += " \
164 file://chromium/0001-chromium-workaround-for-too-long-.rps-file-name.patch;patchdir=src/3rdparty \ 166 file://chromium/0001-chromium-workaround-for-too-long-.rps-file-name.patch;patchdir=src/3rdparty \
165 file://chromium/0002-chromium-stack-pointer-clobber.patch;patchdir=src/3rdparty \ 167 file://chromium/0002-chromium-stack-pointer-clobber.patch;patchdir=src/3rdparty \
@@ -173,22 +175,26 @@ SRC_URI += " \
173 file://chromium/0010-chromium-Move-CharAllocator-definition-to-a-header-f.patch;patchdir=src/3rdparty \ 175 file://chromium/0010-chromium-Move-CharAllocator-definition-to-a-header-f.patch;patchdir=src/3rdparty \
174 file://chromium/0011-chromium-Include-cstddef-and-cstdint.patch;patchdir=src/3rdparty \ 176 file://chromium/0011-chromium-Include-cstddef-and-cstdint.patch;patchdir=src/3rdparty \
175 file://chromium/0012-chromium-Link-v8-with-libatomic-on-x86.patch;patchdir=src/3rdparty \ 177 file://chromium/0012-chromium-Link-v8-with-libatomic-on-x86.patch;patchdir=src/3rdparty \
178 file://chromium/0014-chromium-icu-use-system-library-only-targets.patch;patchdir=src/3rdparty \
179 file://chromium/0015-chromium-Fix-sandbox-Aw-snap-for-syscalls-403-and-40.patch;patchdir=src/3rdparty \
176" 180"
177 181
182# Patches from https://github.com/meta-qt5/qtwebengine-chromium/commits/80-based
183# 80-based.meta-qt5.4
178SRC_URI_append_libc-musl = "\ 184SRC_URI_append_libc-musl = "\
179 file://chromium/0013-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch;patchdir=src/3rdparty \ 185 file://chromium/0016-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch;patchdir=src/3rdparty \
180 file://chromium/0014-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch;patchdir=src/3rdparty \ 186 file://chromium/0017-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch;patchdir=src/3rdparty \
181 file://chromium/0015-chromium-musl-include-fcntl.h-for-loff_t.patch;patchdir=src/3rdparty \ 187 file://chromium/0018-chromium-musl-include-fcntl.h-for-loff_t.patch;patchdir=src/3rdparty \
182 file://chromium/0016-chromium-musl-use-off64_t-instead-of-the-internal-__.patch;patchdir=src/3rdparty \ 188 file://chromium/0019-chromium-musl-use-off64_t-instead-of-the-internal-__.patch;patchdir=src/3rdparty \
183 file://chromium/0017-chromium-musl-linux-glibc-make-the-distinction.patch;patchdir=src/3rdparty \ 189 file://chromium/0020-chromium-musl-linux-glibc-make-the-distinction.patch;patchdir=src/3rdparty \
184 file://chromium/0018-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch;patchdir=src/3rdparty \ 190 file://chromium/0021-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch;patchdir=src/3rdparty \
185 file://chromium/0020-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch;patchdir=src/3rdparty \ 191 file://chromium/0023-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch;patchdir=src/3rdparty \
186 file://chromium/0021-chromium-musl-Do-not-define-__sbrk-on-musl.patch;patchdir=src/3rdparty \ 192 file://chromium/0024-chromium-musl-Do-not-define-__sbrk-on-musl.patch;patchdir=src/3rdparty \
187 file://chromium/0022-chromium-musl-Adjust-default-pthread-stack-size.patch;patchdir=src/3rdparty \ 193 file://chromium/0025-chromium-musl-Adjust-default-pthread-stack-size.patch;patchdir=src/3rdparty \
188 file://chromium/0023-chromium-musl-Use-_fpstate-instead-of-_libc_fpstate-.patch;patchdir=src/3rdparty \ 194 file://chromium/0026-chromium-musl-Use-_fpstate-instead-of-_libc_fpstate-.patch;patchdir=src/3rdparty \
189 file://chromium/0024-chromium-musl-elf_reader.cc-include-sys-reg.h-to-get.patch;patchdir=src/3rdparty \ 195 file://chromium/0027-chromium-musl-elf_reader.cc-include-sys-reg.h-to-get.patch;patchdir=src/3rdparty \
190 file://chromium/0025-chromium-musl-pread-pwrite.patch;patchdir=src/3rdparty \ 196 file://chromium/0028-chromium-musl-pread-pwrite.patch;patchdir=src/3rdparty \
191 file://chromium/0026-chromium-musl-initialize-msghdr-in-a-compatible-mann.patch;patchdir=src/3rdparty \ 197 file://chromium/0029-chromium-musl-initialize-msghdr-in-a-compatible-mann.patch;patchdir=src/3rdparty \
192" 198"
193 199
194SRCREV_qtwebengine = "5537ff4437ea7a5f9ea140071343f88bf48deddc" 200SRCREV_qtwebengine = "5537ff4437ea7a5f9ea140071343f88bf48deddc"
diff --git a/recipes-qt/qt5/qtwebkit/0006-Fix-build-with-bison37.patch b/recipes-qt/qt5/qtwebkit/0006-Fix-build-with-bison37.patch
new file mode 100644
index 00000000..9262f5fe
--- /dev/null
+++ b/recipes-qt/qt5/qtwebkit/0006-Fix-build-with-bison37.patch
@@ -0,0 +1,52 @@
1From d92b11fea65364fefa700249bd3340e0cd4c5b31 Mon Sep 17 00:00:00 2001
2From: Dmitry Shachnev <mitya57@gmail.com>
3Date: Tue, 4 Aug 2020 21:04:06 +0300
4Subject: [PATCH] Let Bison generate the header directly, to fix build with
5 Bison 3.7
6
7Starting with Bison 3.7, the generated C++ file #include's the header
8by default, instead of duplicating it. So we should not delete it.
9
10Remove the code to add #ifdef guards to the header, since Bison adds
11them itself since version 2.6.3.
12
13Found at [1]
14
15[1] https://github.com/qtwebkit/qtwebkit/commit/d92b11fea65364fefa700249bd3340e0cd4c5b31
16
17Upstream-Status: Pending
18---
19 Source/WebCore/css/makegrammar.pl | 21 +--------------------
20 1 file changed, 1 insertion(+), 20 deletions(-)
21
22diff --git a/Source/WebCore/css/makegrammar.pl b/Source/WebCore/css/makegrammar.pl
23index 5d63b08102eb..9435701c7061 100644
24--- a/Source/WebCore/css/makegrammar.pl
25+++ b/Source/WebCore/css/makegrammar.pl
26@@ -73,25 +73,6 @@
27 }
28
29 my $fileBase = File::Spec->join($outputDir, $filename);
30-my @bisonCommand = ($bison, "-d", "-p", $symbolsPrefix, $grammarFilePath, "-o", "$fileBase.cpp");
31+my @bisonCommand = ($bison, "--defines=$fileBase.h", "-p", $symbolsPrefix, $grammarFilePath, "-o", "$fileBase.cpp");
32 push @bisonCommand, "--no-lines" if $^O eq "MSWin32"; # Work around bug in bison >= 3.0 on Windows where it puts backslashes into #line directives.
33 system(@bisonCommand) == 0 or die;
34-
35-open HEADER, ">$fileBase.h" or die;
36-print HEADER << "EOF";
37-#ifndef CSSGRAMMAR_H
38-#define CSSGRAMMAR_H
39-EOF
40-
41-open HPP, "<$fileBase.cpp.h" or open HPP, "<$fileBase.hpp" or die;
42-while (<HPP>) {
43- print HEADER;
44-}
45-close HPP;
46-
47-print HEADER "#endif\n";
48-close HEADER;
49-
50-unlink("$fileBase.cpp.h");
51-unlink("$fileBase.hpp");
52-
diff --git a/recipes-qt/qt5/qtwebkit/0007-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch b/recipes-qt/qt5/qtwebkit/0007-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch
new file mode 100644
index 00000000..15607c0d
--- /dev/null
+++ b/recipes-qt/qt5/qtwebkit/0007-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch
@@ -0,0 +1,34 @@
1From 32eb0352d98fcf325b0a94a4f7e141d746938a4b Mon Sep 17 00:00:00 2001
2From: Konstantin Tokarev <annulen@yandex.ru>
3Date: Sun, 3 May 2020 18:50:24 +0300
4Subject: [PATCH] Disable code related to HTTP/2 when Qt is configured without SSL support
5
6For enabling HTTP/2 by default we check if Qt uses OpenSSL and its version
7is 1.0.2 or higher via QSslSocket API. While it would be sufficient to
8add guards just there, we are not going to enable HTTP/2 for QT_NO_SSL
9case by default anyway (note that it still can be done in application code).
10
11Change-Id: I77b4a423ff1028725ac2c0953c757dce2db23e05
12---
13Upstream-Status: Backport [https://github.com/qtwebkit/qtwebkit/commit/e7ec14144ce58418d94568c41ac94d4d87969363]
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15
16 Source/WebCore/platform/network/qt/ResourceRequest.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/Source/WebCore/platform/network/qt/ResourceRequest.h b/Source/WebCore/platform/network/qt/ResourceRequest.h
20index 1154d56a0..87e21ec3f 100644
21--- a/Source/WebCore/platform/network/qt/ResourceRequest.h
22+++ b/Source/WebCore/platform/network/qt/ResourceRequest.h
23@@ -32,7 +32,7 @@
24 // HTTP/2 is implemented since Qt 5.8, but various QtNetwork bugs make it unusable in browser with Qt < 5.10.1
25 // We also don't enable HTTP/2 for unencrypted connections because of possible compatibility issues; it can be
26 // enabled manually by user application via custom QNAM subclass
27-#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 1)
28+#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 1) && !defined(QT_NO_SSL)
29 #define USE_HTTP2 1
30 #endif
31
32--
332.29.2
34
diff --git a/recipes-qt/qt5/qtwebkit/0008-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch b/recipes-qt/qt5/qtwebkit/0008-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch
new file mode 100644
index 00000000..4eef3451
--- /dev/null
+++ b/recipes-qt/qt5/qtwebkit/0008-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch
@@ -0,0 +1,32 @@
1From df9f6a8c9d59996b52bfdc5ea6f780de517905e5 Mon Sep 17 00:00:00 2001
2From: Konstantin Tokarev <annulen@yandex.ru>
3Date: Wed, 3 Jun 2020 15:01:42 +0300
4Subject: [PATCH] Fix compilation with Python 3.9: avoid passing encoding to
5 json.load()
6
7In Python 2.7 UTF-8 is assumed by default, while in Python 3 this argument
8is not supported.
9
10Upstream-Status: Backport [https://github.com/qtwebkit/qtwebkit/commit/78360c01c796b6260bf828bc9c8a0ef73c5132fd]
11Change-Id: Ic459d60a6b20bc1838d8771bc36ac41614fe61a9
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 Source/JavaScriptCore/generate-bytecode-files | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/Source/JavaScriptCore/generate-bytecode-files b/Source/JavaScriptCore/generate-bytecode-files
18index c5dab429c..af3431275 100644
19--- a/Source/JavaScriptCore/generate-bytecode-files
20+++ b/Source/JavaScriptCore/generate-bytecode-files
21@@ -163,7 +163,7 @@ if __name__ == "__main__":
22 initBytecodesFile = openOrExit(initASMFileName, "w")
23
24 try:
25- bytecodeSections = json.load(bytecodeFile, encoding = "utf-8")
26+ bytecodeSections = json.load(bytecodeFile)
27 except:
28 print("Unexpected error parsing {0}: {1}".format(bytecodeJSONFile, sys.exc_info()))
29
30--
312.29.2
32
diff --git a/recipes-qt/qt5/qtwebkit_git.bb b/recipes-qt/qt5/qtwebkit_git.bb
index 253c209b..a10346f4 100644
--- a/recipes-qt/qt5/qtwebkit_git.bb
+++ b/recipes-qt/qt5/qtwebkit_git.bb
@@ -17,6 +17,9 @@ SRC_URI += "\
17 file://0003-Fix-build-bug-for-armv32-BE.patch \ 17 file://0003-Fix-build-bug-for-armv32-BE.patch \
18 file://0004-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch \ 18 file://0004-PlatformQt.cmake-Do-not-generate-hardcoded-include-p.patch \
19 file://0005-Riscv-Add-support-for-riscv.patch \ 19 file://0005-Riscv-Add-support-for-riscv.patch \
20 file://0006-Fix-build-with-bison37.patch \
21 file://0007-Disable-code-related-to-HTTP-2-when-Qt-is-configured.patch \
22 file://0008-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch \
20" 23"
21 24
22inherit cmake_qt5 perlnative 25inherit cmake_qt5 perlnative