mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1
@ 2020-03-12 11:35 Marco Felsch
  2020-03-12 11:35 ` [ptxdist] [RFC PATCH 2/3] qt5: drop qtdeclarative opengl dependency Marco Felsch
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Marco Felsch @ 2020-03-12 11:35 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Olbrich

This patch ports qt5 from version 5.12.6 to 5.14.1.

Patch "0107-HACK-don-t-resolv-library-paths.patch" is dropped due to
upstream revert fix [1].

QtDeclarative:
- The qtdeclarative qml core got refactored
  - new modules: Qt5QmlModels and Qt5QmlWorkerScript

QtWebengine:
- Adds widgets support

QtSpeech & Qt3DQuick:
- both got new options which are disabled for now till they are needed.

[1] https://github.com/qt/qtbase/commit/9864d2c6f3b628ca9f07a56b197e77bd43931cca#diff-ed4563d8a1bafa2ed47afdccc9035d72

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 ...0107-HACK-don-t-resolv-library-paths.patch | 30 -------------------
 ..._EGL_NO_X11-and-qt_egl_p.h-everywher.patch |  6 ++--
 ...egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch |  2 +-
 ...-qt3d-link-with-latomic-if-necessary.patch |  0
 ...eglfs_kms-device-ordering-robustness.patch |  0
 ...ebengine-allow-building-with-ptxdist.patch | 10 ++++---
 ...ebengine-let-ninja-use-the-jobserver.patch | 10 ++++---
 ...e-workaround-for-too-long-file-names.patch |  4 +--
 .../series                                    |  3 +-
 rules/qt5.make                                | 22 +++++++++++---
 10 files changed, 37 insertions(+), 50 deletions(-)
 delete mode 100644 patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch
 rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch (97%)
 rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch (97%)
 rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0102-qt3d-link-with-latomic-if-necessary.patch (100%)
 rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0103-eglfs_kms-device-ordering-robustness.patch (100%)
 rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch (62%)
 rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch (62%)
 rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch (94%)
 rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/series (83%)

diff --git a/patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch b/patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch
deleted file mode 100644
index 594fb684e..000000000
--- a/patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-Date: Fri, 8 Feb 2019 15:56:46 +0100
-Subject: [PATCH] HACK: don't resolv library paths
-
-qtConfResolveLibs turns '-lfoo' into the full path for libfoo.so and fails
-if the library is not found.
-
-This break when the library is a ld scripts in a relocatable toolchain.
-For example libm.so may contain 'GROUP ( /lib/libm.so.6 ...)' and this path
-is not prefixed with the toolchain sysroot when the absolute path for
-libm.so is used.
-
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
----
- qtbase/mkspecs/features/qt_configure.prf | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/qtbase/mkspecs/features/qt_configure.prf b/qtbase/mkspecs/features/qt_configure.prf
-index 95e54d72c9b0..3250187ba774 100644
---- a/qtbase/mkspecs/features/qt_configure.prf
-+++ b/qtbase/mkspecs/features/qt_configure.prf
-@@ -593,7 +593,7 @@ defineTest(qtConfResolveLibs) {
-             out += $$l
-         }
-     }
--    $$1 = $$out
-+    $$1 = $$2
-     export($$1)
-     !isEmpty(4) {
-         $$4 = $$paths
diff --git a/patches/qt-everywhere-src-5.12.6/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch b/patches/qt-everywhere-src-5.14.1/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
similarity index 97%
rename from patches/qt-everywhere-src-5.12.6/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
rename to patches/qt-everywhere-src-5.14.1/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
index 1872c83ad..218dc7e79 100644
--- a/patches/qt-everywhere-src-5.12.6/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
+++ b/patches/qt-everywhere-src-5.14.1/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
@@ -29,7 +29,7 @@ index 700e95e32df5..7667b5418261 100644
          $$PWD/drmeglserverbufferintegration.cpp
  
 diff --git a/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h b/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h
-index 2c65969f8488..e6387c37158b 100644
+index 64201476da10..a0a44611b476 100644
 --- a/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h
 +++ b/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h
 @@ -48,8 +48,8 @@
@@ -58,10 +58,10 @@ index 7d6841748c5a..553b49f3fe38 100644
  HEADERS += \
      $$PWD/drmeglserverbufferintegration.h
 diff --git a/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h b/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h
-index ff329c1a17fc..3d4f23d9404f 100644
+index eab5f0c567f2..0342ed19f7ba 100644
 --- a/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h
 +++ b/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h
-@@ -52,8 +52,8 @@
+@@ -42,8 +42,8 @@
  #include <QtWaylandCompositor/private/qwayland-server-server-buffer-extension.h>
  
  #include <QtCore/QDebug>
diff --git a/patches/qt-everywhere-src-5.12.6/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch b/patches/qt-everywhere-src-5.14.1/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
similarity index 97%
rename from patches/qt-everywhere-src-5.12.6/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
rename to patches/qt-everywhere-src-5.14.1/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
index c3935b413..f17db71aa 100644
--- a/patches/qt-everywhere-src-5.12.6/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
+++ b/patches/qt-everywhere-src-5.14.1/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
@@ -32,7 +32,7 @@ index 7151123ea7a3..106f982e5ec0 100644
  PLUGIN_EXTENDS = quick
  PLUGIN_CLASS_NAME = QSGVideoNodeFactory_EGL
 diff --git a/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h b/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h
-index 0ec63eac1798..1a753463a5b7 100644
+index f83231e538db..5890a7994079 100644
 --- a/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h
 +++ b/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h
 @@ -45,8 +45,7 @@
diff --git a/patches/qt-everywhere-src-5.12.6/0102-qt3d-link-with-latomic-if-necessary.patch b/patches/qt-everywhere-src-5.14.1/0102-qt3d-link-with-latomic-if-necessary.patch
similarity index 100%
rename from patches/qt-everywhere-src-5.12.6/0102-qt3d-link-with-latomic-if-necessary.patch
rename to patches/qt-everywhere-src-5.14.1/0102-qt3d-link-with-latomic-if-necessary.patch
diff --git a/patches/qt-everywhere-src-5.12.6/0103-eglfs_kms-device-ordering-robustness.patch b/patches/qt-everywhere-src-5.14.1/0103-eglfs_kms-device-ordering-robustness.patch
similarity index 100%
rename from patches/qt-everywhere-src-5.12.6/0103-eglfs_kms-device-ordering-robustness.patch
rename to patches/qt-everywhere-src-5.14.1/0103-eglfs_kms-device-ordering-robustness.patch
diff --git a/patches/qt-everywhere-src-5.12.6/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch b/patches/qt-everywhere-src-5.14.1/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
similarity index 62%
rename from patches/qt-everywhere-src-5.12.6/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
rename to patches/qt-everywhere-src-5.14.1/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
index 0a33b37a5..ce0652dc7 100644
--- a/patches/qt-everywhere-src-5.12.6/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
+++ b/patches/qt-everywhere-src-5.14.1/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
@@ -3,14 +3,16 @@ Date: Tue, 12 May 2015 11:38:35 +0200
 Subject: [PATCH] ptxdist: qtwebengine: allow building with ptxdist
 
 Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+[m.felsch@pengutronix.de: port to 5.14.1]
+Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
 ---
- qtwebengine/src/core/config/functions.pri | 3 ++-
+ qtwebengine/src/buildtools/config/functions.pri | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
 
-diff --git a/qtwebengine/src/core/config/functions.pri b/qtwebengine/src/core/config/functions.pri
+diff --git a/qtwebengine/src/buildtools/config/functions.pri b/qtwebengine/src/buildtools/config/functions.pri
 index 8c11faa16ad2..876da9bcfb9e 100644
---- a/qtwebengine/src/core/config/functions.pri
-+++ b/qtwebengine/src/core/config/functions.pri
+--- a/qtwebengine/src/buildtools/config/functions.pri
++++ b/qtwebengine/src/buildtools/config/functions.pri
 @@ -1,5 +1,6 @@
  defineReplace(qtwebengine_extractCFlag) {
 -    CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS
diff --git a/patches/qt-everywhere-src-5.12.6/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch b/patches/qt-everywhere-src-5.14.1/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
similarity index 62%
rename from patches/qt-everywhere-src-5.12.6/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
rename to patches/qt-everywhere-src-5.14.1/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
index 58de4fe78..8ebb45724 100644
--- a/patches/qt-everywhere-src-5.12.6/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
+++ b/patches/qt-everywhere-src-5.14.1/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
@@ -3,20 +3,22 @@ Date: Tue, 14 Nov 2017 21:52:24 +0100
 Subject: [PATCH] ptxdist: qtwebengine: let ninja use the jobserver
 
 Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+[m.felsch@pengutronix.de: port to 5.14.1]
+Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
 ---
  qtwebengine/src/core/gn_run.pro | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/qtwebengine/src/core/gn_run.pro b/qtwebengine/src/core/gn_run.pro
-index 9860c4541882..777625f96ec0 100644
+index 377d8363ce51..237f4f308b89 100644
 --- a/qtwebengine/src/core/gn_run.pro
 +++ b/qtwebengine/src/core/gn_run.pro
-@@ -49,7 +49,7 @@ build_pass|!debug_and_release {
+@@ -50,7 +50,7 @@ build_pass|!debug_and_release {
      ninjaflags = $$(NINJAFLAGS)
      isEmpty(ninjaflags):!silent: ninjaflags = "-v"
  
--    runninja.commands = $$NINJA $$ninjaflags -C $$gn_build_root QtWebEngineCore
-+    runninja.commands = +$$NINJA $$ninjaflags -C $$gn_build_root QtWebEngineCore
+-    runninja.commands = $$NINJA $$ninjaflags \$\(NINJAJOBS\) -C $$gn_build_root QtWebEngineCore
++    runninja.commands = +$$NINJA $$ninjaflags \$\(NINJAJOBS\) -C $$gn_build_root QtWebEngineCore
      QMAKE_EXTRA_TARGETS += runninja
  
      build_pass:build_all: default_target.target = all
diff --git a/patches/qt-everywhere-src-5.12.6/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch b/patches/qt-everywhere-src-5.14.1/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
similarity index 94%
rename from patches/qt-everywhere-src-5.12.6/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
rename to patches/qt-everywhere-src-5.14.1/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
index bef3dfc2f..be6f6378d 100644
--- a/patches/qt-everywhere-src-5.12.6/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
+++ b/patches/qt-everywhere-src-5.14.1/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
@@ -15,10 +15,10 @@ Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
  1 file changed, 9 insertions(+)
 
 diff --git a/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc b/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc
-index 7e945c0de0ed..cd98df3c5657 100644
+index 5f4fbaad8827..d579072e3d27 100644
 --- a/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc
 +++ b/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc
-@@ -118,9 +118,18 @@ std::string NinjaActionTargetWriter::WriteRuleDefinition() {
+@@ -119,9 +119,18 @@ std::string NinjaActionTargetWriter::WriteRuleDefinition() {
      // strictly necessary for regular one-shot actions, but it's easier to
      // just always define unique_name.
      std::string rspfile = custom_rule_name;
diff --git a/patches/qt-everywhere-src-5.12.6/series b/patches/qt-everywhere-src-5.14.1/series
similarity index 83%
rename from patches/qt-everywhere-src-5.12.6/series
rename to patches/qt-everywhere-src-5.14.1/series
index 9373b8a61..be91a56ca 100644
--- a/patches/qt-everywhere-src-5.12.6/series
+++ b/patches/qt-everywhere-src-5.14.1/series
@@ -9,5 +9,4 @@
 0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
 0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
 0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
-0107-HACK-don-t-resolv-library-paths.patch
-# 8c228241c0d280cb7a529289095cb611  - git-ptx-patches magic
+# 696c560ef74cce8b155152065aa1f46e  - git-ptx-patches magic
diff --git a/rules/qt5.make b/rules/qt5.make
index c24c09814..63e8e29a9 100644
--- a/rules/qt5.make
+++ b/rules/qt5.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_QT5) += qt5
 #
 # Paths and names
 #
-QT5_VERSION	:= 5.12.6
-QT5_MD5		:= 287d71e71ebd97f77220873e7b131b1a
+QT5_VERSION	:= 5.14.1
+QT5_MD5		:= 781c3179410aff7ef84607214e1e91b4
 QT5		:= qt-everywhere-src-$(QT5_VERSION)
 QT5_SUFFIX	:= tar.xz
 QT5_URL		:= \
@@ -120,11 +120,13 @@ QT5_CONF_OPT	:= \
 	--disable-gc-binaries \
 	--enable-shared \
 	-xplatform linux-ptx-g++ \
+	--disable-qtlibinfix-plugins \
 	--disable-trace \
 	--disable-rpath \
 	-reduce-exports \
 	--disable-pch \
 	--disable-ltcg \
+	-linker bfd \
 	$(if $(filter 0,$(PTXDIST_VERBOSE)),-silent) \
 	\
 	-pkg-config \
@@ -205,7 +207,6 @@ QT5_CONF_OPT	:= \
 	--$(call ptx/endis, PTXCONF_QT5_PLATFORM_EGLFS_KMS)-gbm \
 	--$(call ptx/endis, PTXCONF_QT5_PLATFORM_BACKEND_KMS)-kms \
 	--$(call ptx/endis, PTXCONF_QT5_PLATFORM_LINUXFB)-linuxfb \
-	--disable-mirclient \
 	$(call ptx/qt5-system, QT5_PLATFORM_XCB)-xcb \
 	\
 	--$(call ptx/endis, PTXCONF_QT5_LIBUDEV)-libudev \
@@ -245,6 +246,16 @@ QT5_CONF_OPT	+= \
 	--enable-alsa \
 	$(call ptx/ifdef, PTXCONF_QT5_MODULE_QTMULTIMEDIA_GST,-gstreamer 1.0,-no-gstreamer)
 endif
+ifdef PTXCONF_QT5_MODULE_QT3D_QUICK
+QT5_CONF_OPT	+= \
+	-qt-assimp
+endif
+ifdef PTXCONF_QT5_MODULE_QTSPEECH
+QT5_CONF_OPT	+= \
+	--disable-flite \
+	--disable-flite-alsa \
+	--disable-speechd
+endif
 ifdef PTXCONF_QT5_MODULE_QTWEBENGINE
 QT5_CONF_OPT	+= \
 	--$(call ptx/endis, PTXCONF_QT5_MODULE_QTWEBENGINE_MEDIA)-webengine-alsa \
@@ -257,7 +268,8 @@ QT5_CONF_OPT	+= \
 	--disable-webengine-printing-and-pdf \
 	--disable-webengine-proprietary-codecs \
 	--disable-webengine-spellchecker \
-	--disable-webengine-webrtc
+	--disable-webengine-webrtc \
+	--$(call ptx/endis, PTXCONF_QT5_WIDGETS)-webengine-widgets
 endif
 
 ifdef PTXCONF_QT5_GUI
@@ -428,6 +440,8 @@ QT5_QML-$(PTXCONF_QT5_MODULE_QTDATAVIS3D_QUICK)			+= QtDataVisualization
 
 ### QtDeclarative ###
 QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE)			+= Qt5Qml
+QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QmlModels
+QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QmlWorkerScript
 QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5Quick
 QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QuickShapes
 QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK_WIDGETS)	+= Qt5QuickWidgets
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ptxdist] [RFC PATCH 2/3] qt5: drop qtdeclarative opengl dependency
  2020-03-12 11:35 [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1 Marco Felsch
@ 2020-03-12 11:35 ` Marco Felsch
  2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
  2020-03-12 11:35 ` [ptxdist] [RFC PATCH 3/3] qt5: add capability to build from git super project Marco Felsch
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Marco Felsch @ 2020-03-12 11:35 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Olbrich

Since 5.14 the qtdeclarative can be build with -no-opengl option so we
can remove the dependency. Now all 3D modules need to add the opengl
dependency by there own. We also must ensure that all 3D modules are
skipped if -no-opengl is specified.

The particles module depends on the opengl support and the module isn't
build if the support is missing. So we need a way to handle this too.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 rules/qt5.in   | 7 ++++++-
 rules/qt5.make | 3 ++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/rules/qt5.in b/rules/qt5.in
index 162ea8b9b..b5b6e2bfb 100644
--- a/rules/qt5.in
+++ b/rules/qt5.in
@@ -321,6 +321,7 @@ menu "Modules                     "
 
 config QT5_MODULE_QT3D
 	bool
+	select QT5_OPENGL
 	select QT5_MODULE_QTDECLARATIVE
 	select QT5_MODULE_QTGRAPHICALEFFECTS
 	prompt "Qt3D"
@@ -379,6 +380,7 @@ endif
 
 config QT5_MODULE_QTCANVAS3D
 	bool
+	select QT5_OPENGL
 	select QT5_MODULE_QTDECLARATIVE
 	prompt "QtCanvas3D"
 
@@ -418,7 +420,6 @@ config QT5_MODULE_QTDATAVIS3D_QUICK
 
 config QT5_MODULE_QTDECLARATIVE
 	bool
-	select QT5_OPENGL
 	prompt "QtDeclarative"
 
 if QT5_MODULE_QTDECLARATIVE
@@ -445,6 +446,10 @@ config QT5_MODULE_QTDECLARATIVE_QUICK_DEBUG
 	bool
 	default QT5_MODULE_QTDECLARATIVE_DEBUG
 
+config QT5_MODULE_QTDECLARATIVE_QUICK_PARTICLES
+	bool
+	default QT5_OPENGL
+
 endif
 
 config QT5_MODULE_QTDECLARATIVE_ACCESSIBILITY
diff --git a/rules/qt5.make b/rules/qt5.make
index 63e8e29a9..e70fefe25 100644
--- a/rules/qt5.make
+++ b/rules/qt5.make
@@ -148,6 +148,7 @@ QT5_CONF_OPT	:= \
 	$(call ptx/qt5-module, QTMULTIMEDIA, qtmultimedia) \
 	$(call ptx/qt5-module, QTNETWORKAUTH, qtnetworkauth) \
 	$(call ptx/qt5-module, QTPURCHASING, qtpurchasing) \
+	$(call ptx/qt5-module, QT3D_QUICK, qtquick3d) \
 	$(call ptx/qt5-module, QTQUICKCONTROLS, qtquickcontrols) \
 	$(call ptx/qt5-module, QTQUICKCONTROLS2, qtquickcontrols2) \
 	$(call ptx/qt5-module, QTREMOTEOBJECTS, qtremoteobjects) \
@@ -445,7 +446,7 @@ QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QmlWorkerScript
 QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5Quick
 QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QuickShapes
 QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK_WIDGETS)	+= Qt5QuickWidgets
-QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QuickParticles
+QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK_PARTICLES)	+= Qt5QuickParticles
 ifdef PTXCONF_QT5_TEST
 QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QuickTest
 endif
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ptxdist] [RFC PATCH 3/3] qt5: add capability to build from git super project
  2020-03-12 11:35 [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1 Marco Felsch
  2020-03-12 11:35 ` [ptxdist] [RFC PATCH 2/3] qt5: drop qtdeclarative opengl dependency Marco Felsch
@ 2020-03-12 11:35 ` Marco Felsch
  2020-04-10 10:48 ` [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1 Marco Felsch
  2020-06-19 22:04 ` [ptxdist] [APPLIED] " Michael Olbrich
  3 siblings, 0 replies; 6+ messages in thread
From: Marco Felsch @ 2020-03-12 11:35 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Olbrich

This adds the capability to build qt from the git super project. I
replaced the '-release' with '-developer-build' since building from git
is only useful for developers which often need more debug information.

The qtpim and qtdocgallery packages are only available on the qt5
git super project. The release tar doesn't contain those modules yet.
Anyway, those modules can't be compiled yet so we need to skip those.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 rules/qt5.in   | 15 +++++++++++++++
 rules/qt5.make |  4 +++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/rules/qt5.in b/rules/qt5.in
index b5b6e2bfb..40380feaa 100644
--- a/rules/qt5.in
+++ b/rules/qt5.in
@@ -87,6 +87,11 @@ config QT5_LIBXKBCOMMON
 	bool
 	default QT5_PLATFORM_XCB || QT5_MODULE_QTWAYLAND || QT5_INPUT_LIBINPUT
 
+config QT5_DEVEL_BUILD
+	bool
+	default n
+	prompt "Enable developer build"
+
 if QT5_PLATFORM_XCB
 
 config QT5_X11
@@ -711,6 +716,16 @@ config QT5_MODULE_QTXMLPATTERNS
 	bool
 	prompt "QtXmlPatterns"
 
+config QT5_MODULE_QTPIM
+	bool
+	depends on BROKEN
+	prompt "QtPim"
+
+config QT5_MODULE_QTDOCGALLERY
+	bool
+	depends on BROKEN
+	prompt "QtDocGallery"
+
 endmenu
 
 endif
diff --git a/rules/qt5.make b/rules/qt5.make
index e70fefe25..5f8ccb9e3 100644
--- a/rules/qt5.make
+++ b/rules/qt5.make
@@ -112,7 +112,7 @@ QT5_CONF_OPT	:= \
 	$(if $(filter 1,$(PTXDIST_VERBOSE)),-v) \
 	-opensource \
 	-confirm-license \
-	-release \
+	$(call ptx/ifdef, PTXCONF_QT5_DEVEL_BUILD, -developer-build, -release) \
 	--disable-optimized-tools \
 	--disable-separate-debug-info \
 	--disable-gdb-index \
@@ -140,6 +140,7 @@ QT5_CONF_OPT	:= \
 	$(call ptx/qt5-module, QTDATAVIS3D, qtdatavis3d) \
 	$(call ptx/qt5-module, QTDECLARATIVE, qtdeclarative) \
 	-skip qtdoc \
+	$(call ptx/qt5-module, QTDOCGALLERY, qtdocgallery) \
 	$(call ptx/qt5-module, QTGAMEPAD, qtgamepad) \
 	$(call ptx/qt5-module, QTGRAPHICALEFFECTS, qtgraphicaleffects) \
 	$(call ptx/qt5-module, QTIMAGEFORMATS, qtimageformats) \
@@ -147,6 +148,7 @@ QT5_CONF_OPT	:= \
 	-skip qtmacextras \
 	$(call ptx/qt5-module, QTMULTIMEDIA, qtmultimedia) \
 	$(call ptx/qt5-module, QTNETWORKAUTH, qtnetworkauth) \
+	$(call ptx/qt5-module, QTPIM, qtpim) \
 	$(call ptx/qt5-module, QTPURCHASING, qtpurchasing) \
 	$(call ptx/qt5-module, QT3D_QUICK, qtquick3d) \
 	$(call ptx/qt5-module, QTQUICKCONTROLS, qtquickcontrols) \
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1
  2020-03-12 11:35 [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1 Marco Felsch
  2020-03-12 11:35 ` [ptxdist] [RFC PATCH 2/3] qt5: drop qtdeclarative opengl dependency Marco Felsch
  2020-03-12 11:35 ` [ptxdist] [RFC PATCH 3/3] qt5: add capability to build from git super project Marco Felsch
@ 2020-04-10 10:48 ` Marco Felsch
  2020-06-19 22:04 ` [ptxdist] [APPLIED] " Michael Olbrich
  3 siblings, 0 replies; 6+ messages in thread
From: Marco Felsch @ 2020-04-10 10:48 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Olbrich

Hi Michael,

there was a build issue if we enable the tslib support which is fixed by
the tslib version bump patch. So can you give those patches here a new
try?

Regards,
  Marco

On 20-03-12 12:35, Marco Felsch wrote:
> This patch ports qt5 from version 5.12.6 to 5.14.1.
> 
> Patch "0107-HACK-don-t-resolv-library-paths.patch" is dropped due to
> upstream revert fix [1].
> 
> QtDeclarative:
> - The qtdeclarative qml core got refactored
>   - new modules: Qt5QmlModels and Qt5QmlWorkerScript
> 
> QtWebengine:
> - Adds widgets support
> 
> QtSpeech & Qt3DQuick:
> - both got new options which are disabled for now till they are needed.
> 
> [1] https://github.com/qt/qtbase/commit/9864d2c6f3b628ca9f07a56b197e77bd43931cca#diff-ed4563d8a1bafa2ed47afdccc9035d72
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> ---
>  ...0107-HACK-don-t-resolv-library-paths.patch | 30 -------------------
>  ..._EGL_NO_X11-and-qt_egl_p.h-everywher.patch |  6 ++--
>  ...egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch |  2 +-
>  ...-qt3d-link-with-latomic-if-necessary.patch |  0
>  ...eglfs_kms-device-ordering-robustness.patch |  0
>  ...ebengine-allow-building-with-ptxdist.patch | 10 ++++---
>  ...ebengine-let-ninja-use-the-jobserver.patch | 10 ++++---
>  ...e-workaround-for-too-long-file-names.patch |  4 +--
>  .../series                                    |  3 +-
>  rules/qt5.make                                | 22 +++++++++++---
>  10 files changed, 37 insertions(+), 50 deletions(-)
>  delete mode 100644 patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch
>  rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch (97%)
>  rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch (97%)
>  rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0102-qt3d-link-with-latomic-if-necessary.patch (100%)
>  rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0103-eglfs_kms-device-ordering-robustness.patch (100%)
>  rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch (62%)
>  rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch (62%)
>  rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch (94%)
>  rename patches/{qt-everywhere-src-5.12.6 => qt-everywhere-src-5.14.1}/series (83%)
> 
> diff --git a/patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch b/patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch
> deleted file mode 100644
> index 594fb684e..000000000
> --- a/patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch
> +++ /dev/null
> @@ -1,30 +0,0 @@
> -From: Michael Olbrich <m.olbrich@pengutronix.de>
> -Date: Fri, 8 Feb 2019 15:56:46 +0100
> -Subject: [PATCH] HACK: don't resolv library paths
> -
> -qtConfResolveLibs turns '-lfoo' into the full path for libfoo.so and fails
> -if the library is not found.
> -
> -This break when the library is a ld scripts in a relocatable toolchain.
> -For example libm.so may contain 'GROUP ( /lib/libm.so.6 ...)' and this path
> -is not prefixed with the toolchain sysroot when the absolute path for
> -libm.so is used.
> -
> -Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> ----
> - qtbase/mkspecs/features/qt_configure.prf | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -diff --git a/qtbase/mkspecs/features/qt_configure.prf b/qtbase/mkspecs/features/qt_configure.prf
> -index 95e54d72c9b0..3250187ba774 100644
> ---- a/qtbase/mkspecs/features/qt_configure.prf
> -+++ b/qtbase/mkspecs/features/qt_configure.prf
> -@@ -593,7 +593,7 @@ defineTest(qtConfResolveLibs) {
> -             out += $$l
> -         }
> -     }
> --    $$1 = $$out
> -+    $$1 = $$2
> -     export($$1)
> -     !isEmpty(4) {
> -         $$4 = $$paths
> diff --git a/patches/qt-everywhere-src-5.12.6/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch b/patches/qt-everywhere-src-5.14.1/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> similarity index 97%
> rename from patches/qt-everywhere-src-5.12.6/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> rename to patches/qt-everywhere-src-5.14.1/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> index 1872c83ad..218dc7e79 100644
> --- a/patches/qt-everywhere-src-5.12.6/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> @@ -29,7 +29,7 @@ index 700e95e32df5..7667b5418261 100644
>           $$PWD/drmeglserverbufferintegration.cpp
>   
>  diff --git a/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h b/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h
> -index 2c65969f8488..e6387c37158b 100644
> +index 64201476da10..a0a44611b476 100644
>  --- a/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h
>  +++ b/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h
>  @@ -48,8 +48,8 @@
> @@ -58,10 +58,10 @@ index 7d6841748c5a..553b49f3fe38 100644
>   HEADERS += \
>       $$PWD/drmeglserverbufferintegration.h
>  diff --git a/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h b/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h
> -index ff329c1a17fc..3d4f23d9404f 100644
> +index eab5f0c567f2..0342ed19f7ba 100644
>  --- a/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h
>  +++ b/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h
> -@@ -52,8 +52,8 @@
> +@@ -42,8 +42,8 @@
>   #include <QtWaylandCompositor/private/qwayland-server-server-buffer-extension.h>
>   
>   #include <QtCore/QDebug>
> diff --git a/patches/qt-everywhere-src-5.12.6/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch b/patches/qt-everywhere-src-5.14.1/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> similarity index 97%
> rename from patches/qt-everywhere-src-5.12.6/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> rename to patches/qt-everywhere-src-5.14.1/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> index c3935b413..f17db71aa 100644
> --- a/patches/qt-everywhere-src-5.12.6/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> @@ -32,7 +32,7 @@ index 7151123ea7a3..106f982e5ec0 100644
>   PLUGIN_EXTENDS = quick
>   PLUGIN_CLASS_NAME = QSGVideoNodeFactory_EGL
>  diff --git a/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h b/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h
> -index 0ec63eac1798..1a753463a5b7 100644
> +index f83231e538db..5890a7994079 100644
>  --- a/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h
>  +++ b/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h
>  @@ -45,8 +45,7 @@
> diff --git a/patches/qt-everywhere-src-5.12.6/0102-qt3d-link-with-latomic-if-necessary.patch b/patches/qt-everywhere-src-5.14.1/0102-qt3d-link-with-latomic-if-necessary.patch
> similarity index 100%
> rename from patches/qt-everywhere-src-5.12.6/0102-qt3d-link-with-latomic-if-necessary.patch
> rename to patches/qt-everywhere-src-5.14.1/0102-qt3d-link-with-latomic-if-necessary.patch
> diff --git a/patches/qt-everywhere-src-5.12.6/0103-eglfs_kms-device-ordering-robustness.patch b/patches/qt-everywhere-src-5.14.1/0103-eglfs_kms-device-ordering-robustness.patch
> similarity index 100%
> rename from patches/qt-everywhere-src-5.12.6/0103-eglfs_kms-device-ordering-robustness.patch
> rename to patches/qt-everywhere-src-5.14.1/0103-eglfs_kms-device-ordering-robustness.patch
> diff --git a/patches/qt-everywhere-src-5.12.6/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch b/patches/qt-everywhere-src-5.14.1/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> similarity index 62%
> rename from patches/qt-everywhere-src-5.12.6/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> rename to patches/qt-everywhere-src-5.14.1/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> index 0a33b37a5..ce0652dc7 100644
> --- a/patches/qt-everywhere-src-5.12.6/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> @@ -3,14 +3,16 @@ Date: Tue, 12 May 2015 11:38:35 +0200
>  Subject: [PATCH] ptxdist: qtwebengine: allow building with ptxdist
>  
>  Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> +[m.felsch@pengutronix.de: port to 5.14.1]
> +Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
>  ---
> - qtwebengine/src/core/config/functions.pri | 3 ++-
> + qtwebengine/src/buildtools/config/functions.pri | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>  
> -diff --git a/qtwebengine/src/core/config/functions.pri b/qtwebengine/src/core/config/functions.pri
> +diff --git a/qtwebengine/src/buildtools/config/functions.pri b/qtwebengine/src/buildtools/config/functions.pri
>  index 8c11faa16ad2..876da9bcfb9e 100644
> ---- a/qtwebengine/src/core/config/functions.pri
> -+++ b/qtwebengine/src/core/config/functions.pri
> +--- a/qtwebengine/src/buildtools/config/functions.pri
> ++++ b/qtwebengine/src/buildtools/config/functions.pri
>  @@ -1,5 +1,6 @@
>   defineReplace(qtwebengine_extractCFlag) {
>  -    CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS
> diff --git a/patches/qt-everywhere-src-5.12.6/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch b/patches/qt-everywhere-src-5.14.1/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> similarity index 62%
> rename from patches/qt-everywhere-src-5.12.6/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> rename to patches/qt-everywhere-src-5.14.1/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> index 58de4fe78..8ebb45724 100644
> --- a/patches/qt-everywhere-src-5.12.6/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> @@ -3,20 +3,22 @@ Date: Tue, 14 Nov 2017 21:52:24 +0100
>  Subject: [PATCH] ptxdist: qtwebengine: let ninja use the jobserver
>  
>  Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> +[m.felsch@pengutronix.de: port to 5.14.1]
> +Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
>  ---
>   qtwebengine/src/core/gn_run.pro | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>  
>  diff --git a/qtwebengine/src/core/gn_run.pro b/qtwebengine/src/core/gn_run.pro
> -index 9860c4541882..777625f96ec0 100644
> +index 377d8363ce51..237f4f308b89 100644
>  --- a/qtwebengine/src/core/gn_run.pro
>  +++ b/qtwebengine/src/core/gn_run.pro
> -@@ -49,7 +49,7 @@ build_pass|!debug_and_release {
> +@@ -50,7 +50,7 @@ build_pass|!debug_and_release {
>       ninjaflags = $$(NINJAFLAGS)
>       isEmpty(ninjaflags):!silent: ninjaflags = "-v"
>   
> --    runninja.commands = $$NINJA $$ninjaflags -C $$gn_build_root QtWebEngineCore
> -+    runninja.commands = +$$NINJA $$ninjaflags -C $$gn_build_root QtWebEngineCore
> +-    runninja.commands = $$NINJA $$ninjaflags \$\(NINJAJOBS\) -C $$gn_build_root QtWebEngineCore
> ++    runninja.commands = +$$NINJA $$ninjaflags \$\(NINJAJOBS\) -C $$gn_build_root QtWebEngineCore
>       QMAKE_EXTRA_TARGETS += runninja
>   
>       build_pass:build_all: default_target.target = all
> diff --git a/patches/qt-everywhere-src-5.12.6/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch b/patches/qt-everywhere-src-5.14.1/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> similarity index 94%
> rename from patches/qt-everywhere-src-5.12.6/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> rename to patches/qt-everywhere-src-5.14.1/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> index bef3dfc2f..be6f6378d 100644
> --- a/patches/qt-everywhere-src-5.12.6/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> @@ -15,10 +15,10 @@ Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
>   1 file changed, 9 insertions(+)
>  
>  diff --git a/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc b/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc
> -index 7e945c0de0ed..cd98df3c5657 100644
> +index 5f4fbaad8827..d579072e3d27 100644
>  --- a/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc
>  +++ b/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc
> -@@ -118,9 +118,18 @@ std::string NinjaActionTargetWriter::WriteRuleDefinition() {
> +@@ -119,9 +119,18 @@ std::string NinjaActionTargetWriter::WriteRuleDefinition() {
>       // strictly necessary for regular one-shot actions, but it's easier to
>       // just always define unique_name.
>       std::string rspfile = custom_rule_name;
> diff --git a/patches/qt-everywhere-src-5.12.6/series b/patches/qt-everywhere-src-5.14.1/series
> similarity index 83%
> rename from patches/qt-everywhere-src-5.12.6/series
> rename to patches/qt-everywhere-src-5.14.1/series
> index 9373b8a61..be91a56ca 100644
> --- a/patches/qt-everywhere-src-5.12.6/series
> +++ b/patches/qt-everywhere-src-5.14.1/series
> @@ -9,5 +9,4 @@
>  0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
>  0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
>  0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> -0107-HACK-don-t-resolv-library-paths.patch
> -# 8c228241c0d280cb7a529289095cb611  - git-ptx-patches magic
> +# 696c560ef74cce8b155152065aa1f46e  - git-ptx-patches magic
> diff --git a/rules/qt5.make b/rules/qt5.make
> index c24c09814..63e8e29a9 100644
> --- a/rules/qt5.make
> +++ b/rules/qt5.make
> @@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_QT5) += qt5
>  #
>  # Paths and names
>  #
> -QT5_VERSION	:= 5.12.6
> -QT5_MD5		:= 287d71e71ebd97f77220873e7b131b1a
> +QT5_VERSION	:= 5.14.1
> +QT5_MD5		:= 781c3179410aff7ef84607214e1e91b4
>  QT5		:= qt-everywhere-src-$(QT5_VERSION)
>  QT5_SUFFIX	:= tar.xz
>  QT5_URL		:= \
> @@ -120,11 +120,13 @@ QT5_CONF_OPT	:= \
>  	--disable-gc-binaries \
>  	--enable-shared \
>  	-xplatform linux-ptx-g++ \
> +	--disable-qtlibinfix-plugins \
>  	--disable-trace \
>  	--disable-rpath \
>  	-reduce-exports \
>  	--disable-pch \
>  	--disable-ltcg \
> +	-linker bfd \
>  	$(if $(filter 0,$(PTXDIST_VERBOSE)),-silent) \
>  	\
>  	-pkg-config \
> @@ -205,7 +207,6 @@ QT5_CONF_OPT	:= \
>  	--$(call ptx/endis, PTXCONF_QT5_PLATFORM_EGLFS_KMS)-gbm \
>  	--$(call ptx/endis, PTXCONF_QT5_PLATFORM_BACKEND_KMS)-kms \
>  	--$(call ptx/endis, PTXCONF_QT5_PLATFORM_LINUXFB)-linuxfb \
> -	--disable-mirclient \
>  	$(call ptx/qt5-system, QT5_PLATFORM_XCB)-xcb \
>  	\
>  	--$(call ptx/endis, PTXCONF_QT5_LIBUDEV)-libudev \
> @@ -245,6 +246,16 @@ QT5_CONF_OPT	+= \
>  	--enable-alsa \
>  	$(call ptx/ifdef, PTXCONF_QT5_MODULE_QTMULTIMEDIA_GST,-gstreamer 1.0,-no-gstreamer)
>  endif
> +ifdef PTXCONF_QT5_MODULE_QT3D_QUICK
> +QT5_CONF_OPT	+= \
> +	-qt-assimp
> +endif
> +ifdef PTXCONF_QT5_MODULE_QTSPEECH
> +QT5_CONF_OPT	+= \
> +	--disable-flite \
> +	--disable-flite-alsa \
> +	--disable-speechd
> +endif
>  ifdef PTXCONF_QT5_MODULE_QTWEBENGINE
>  QT5_CONF_OPT	+= \
>  	--$(call ptx/endis, PTXCONF_QT5_MODULE_QTWEBENGINE_MEDIA)-webengine-alsa \
> @@ -257,7 +268,8 @@ QT5_CONF_OPT	+= \
>  	--disable-webengine-printing-and-pdf \
>  	--disable-webengine-proprietary-codecs \
>  	--disable-webengine-spellchecker \
> -	--disable-webengine-webrtc
> +	--disable-webengine-webrtc \
> +	--$(call ptx/endis, PTXCONF_QT5_WIDGETS)-webengine-widgets
>  endif
>  
>  ifdef PTXCONF_QT5_GUI
> @@ -428,6 +440,8 @@ QT5_QML-$(PTXCONF_QT5_MODULE_QTDATAVIS3D_QUICK)			+= QtDataVisualization
>  
>  ### QtDeclarative ###
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE)			+= Qt5Qml
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QmlModels
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QmlWorkerScript
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5Quick
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QuickShapes
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK_WIDGETS)	+= Qt5QuickWidgets
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] [APPLIED] qt5: drop qtdeclarative opengl dependency
  2020-03-12 11:35 ` [ptxdist] [RFC PATCH 2/3] qt5: drop qtdeclarative opengl dependency Marco Felsch
@ 2020-06-19 22:04   ` Michael Olbrich
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2020-06-19 22:04 UTC (permalink / raw)
  To: ptxdist; +Cc: Marco Felsch

Thanks, applied as cb83037d89db53190f58358aae36fd050b384455.

Michael

[sent from post-receive hook]

On Sat, 20 Jun 2020 00:04:11 +0200, Marco Felsch <m.felsch@pengutronix.de> wrote:
> Since 5.14 the qtdeclarative can be build with -no-opengl option so we
> can remove the dependency. Now all 3D modules need to add the opengl
> dependency by there own. We also must ensure that all 3D modules are
> skipped if -no-opengl is specified.
> 
> The particles module depends on the opengl support and the module isn't
> build if the support is missing. So we need a way to handle this too.
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> Message-Id: <20200312113516.21154-2-m.felsch@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/qt5.in b/rules/qt5.in
> index 5590b623792d..4ba7e6837c21 100644
> --- a/rules/qt5.in
> +++ b/rules/qt5.in
> @@ -321,6 +321,7 @@ menu "Modules                     "
>  
>  config QT5_MODULE_QT3D
>  	bool
> +	select QT5_OPENGL
>  	select QT5_MODULE_QTDECLARATIVE
>  	select QT5_MODULE_QTGRAPHICALEFFECTS
>  	prompt "Qt3D"
> @@ -408,7 +409,6 @@ config QT5_MODULE_QTDATAVIS3D_QUICK
>  
>  config QT5_MODULE_QTDECLARATIVE
>  	bool
> -	select QT5_OPENGL
>  	prompt "QtDeclarative"
>  
>  if QT5_MODULE_QTDECLARATIVE
> @@ -435,6 +435,10 @@ config QT5_MODULE_QTDECLARATIVE_QUICK_DEBUG
>  	bool
>  	default QT5_MODULE_QTDECLARATIVE_DEBUG
>  
> +config QT5_MODULE_QTDECLARATIVE_QUICK_PARTICLES
> +	bool
> +	default QT5_OPENGL
> +
>  endif
>  
>  config QT5_MODULE_QTDECLARATIVE_ACCESSIBILITY
> diff --git a/rules/qt5.make b/rules/qt5.make
> index 4f7ada8ad87d..aa9676af77ea 100644
> --- a/rules/qt5.make
> +++ b/rules/qt5.make
> @@ -453,7 +453,7 @@ QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QmlWorkerScript
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5Quick
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QuickShapes
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK_WIDGETS)	+= Qt5QuickWidgets
> -QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QuickParticles
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK_PARTICLES)	+= Qt5QuickParticles
>  ifdef PTXCONF_QT5_TEST
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QuickTest
>  endif

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] [APPLIED] qt5: version bump 5.12.6 -> 5.14.1
  2020-03-12 11:35 [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1 Marco Felsch
                   ` (2 preceding siblings ...)
  2020-04-10 10:48 ` [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1 Marco Felsch
@ 2020-06-19 22:04 ` Michael Olbrich
  3 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2020-06-19 22:04 UTC (permalink / raw)
  To: ptxdist; +Cc: Marco Felsch

Thanks, applied as 2032910173c11b2406fb5a882266487af2894314.

Michael

[sent from post-receive hook]

On Sat, 20 Jun 2020 00:04:11 +0200, Marco Felsch <m.felsch@pengutronix.de> wrote:
> This patch ports qt5 from version 5.12.6 to 5.14.1.
> 
> Patch "0107-HACK-don-t-resolv-library-paths.patch" is dropped due to
> upstream revert fix [1].
> 
> QtDeclarative:
> - The qtdeclarative qml core got refactored
>   - new modules: Qt5QmlModels and Qt5QmlWorkerScript
> 
> QtWebengine:
> - Adds widgets support
> 
> QtSpeech & Qt3DQuick:
> - both got new options which are disabled for now till they are needed.
> 
> [1] https://github.com/qt/qtbase/commit/9864d2c6f3b628ca9f07a56b197e77bd43931cca#diff-ed4563d8a1bafa2ed47afdccc9035d72
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> Message-Id: <20200312113516.21154-1-m.felsch@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch b/patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch
> deleted file mode 100644
> index 594fb684ec4f..000000000000
> --- a/patches/qt-everywhere-src-5.12.6/0107-HACK-don-t-resolv-library-paths.patch
> +++ /dev/null
> @@ -1,30 +0,0 @@
> -From: Michael Olbrich <m.olbrich@pengutronix.de>
> -Date: Fri, 8 Feb 2019 15:56:46 +0100
> -Subject: [PATCH] HACK: don't resolv library paths
> -
> -qtConfResolveLibs turns '-lfoo' into the full path for libfoo.so and fails
> -if the library is not found.
> -
> -This break when the library is a ld scripts in a relocatable toolchain.
> -For example libm.so may contain 'GROUP ( /lib/libm.so.6 ...)' and this path
> -is not prefixed with the toolchain sysroot when the absolute path for
> -libm.so is used.
> -
> -Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> ----
> - qtbase/mkspecs/features/qt_configure.prf | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -diff --git a/qtbase/mkspecs/features/qt_configure.prf b/qtbase/mkspecs/features/qt_configure.prf
> -index 95e54d72c9b0..3250187ba774 100644
> ---- a/qtbase/mkspecs/features/qt_configure.prf
> -+++ b/qtbase/mkspecs/features/qt_configure.prf
> -@@ -593,7 +593,7 @@ defineTest(qtConfResolveLibs) {
> -             out += $$l
> -         }
> -     }
> --    $$1 = $$out
> -+    $$1 = $$2
> -     export($$1)
> -     !isEmpty(4) {
> -         $$4 = $$paths
> diff --git a/patches/qt-everywhere-src-5.12.6/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch b/patches/qt-everywhere-src-5.14.1/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> similarity index 97%
> rename from patches/qt-everywhere-src-5.12.6/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> rename to patches/qt-everywhere-src-5.14.1/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> index 1872c83adcda..218dc7e791b8 100644
> --- a/patches/qt-everywhere-src-5.12.6/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0100-qtwayland-use-QT_EGL_NO_X11-and-qt_egl_p.h-everywher.patch
> @@ -29,7 +29,7 @@ index 700e95e32df5..7667b5418261 100644
>           $$PWD/drmeglserverbufferintegration.cpp
>   
>  diff --git a/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h b/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h
> -index 2c65969f8488..e6387c37158b 100644
> +index 64201476da10..a0a44611b476 100644
>  --- a/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h
>  +++ b/qtwayland/src/hardwareintegration/client/drm-egl-server/drmeglserverbufferintegration.h
>  @@ -48,8 +48,8 @@
> @@ -58,10 +58,10 @@ index 7d6841748c5a..553b49f3fe38 100644
>   HEADERS += \
>       $$PWD/drmeglserverbufferintegration.h
>  diff --git a/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h b/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h
> -index ff329c1a17fc..3d4f23d9404f 100644
> +index eab5f0c567f2..0342ed19f7ba 100644
>  --- a/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h
>  +++ b/qtwayland/src/hardwareintegration/compositor/drm-egl-server/drmeglserverbufferintegration.h
> -@@ -52,8 +52,8 @@
> +@@ -42,8 +42,8 @@
>   #include <QtWaylandCompositor/private/qwayland-server-server-buffer-extension.h>
>   
>   #include <QtCore/QDebug>
> diff --git a/patches/qt-everywhere-src-5.12.6/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch b/patches/qt-everywhere-src-5.14.1/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> similarity index 97%
> rename from patches/qt-everywhere-src-5.12.6/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> rename to patches/qt-everywhere-src-5.14.1/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> index c3935b41335a..f17db71aaead 100644
> --- a/patches/qt-everywhere-src-5.12.6/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0101-videonode-egl-use-QT_EGL_NO_X11-and-qt_egl_p.h.patch
> @@ -32,7 +32,7 @@ index 7151123ea7a3..106f982e5ec0 100644
>   PLUGIN_EXTENDS = quick
>   PLUGIN_CLASS_NAME = QSGVideoNodeFactory_EGL
>  diff --git a/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h b/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h
> -index 0ec63eac1798..1a753463a5b7 100644
> +index f83231e538db..5890a7994079 100644
>  --- a/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h
>  +++ b/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h
>  @@ -45,8 +45,7 @@
> diff --git a/patches/qt-everywhere-src-5.12.6/0102-qt3d-link-with-latomic-if-necessary.patch b/patches/qt-everywhere-src-5.14.1/0102-qt3d-link-with-latomic-if-necessary.patch
> similarity index 100%
> rename from patches/qt-everywhere-src-5.12.6/0102-qt3d-link-with-latomic-if-necessary.patch
> rename to patches/qt-everywhere-src-5.14.1/0102-qt3d-link-with-latomic-if-necessary.patch
> diff --git a/patches/qt-everywhere-src-5.12.6/0103-eglfs_kms-device-ordering-robustness.patch b/patches/qt-everywhere-src-5.14.1/0103-eglfs_kms-device-ordering-robustness.patch
> similarity index 100%
> rename from patches/qt-everywhere-src-5.12.6/0103-eglfs_kms-device-ordering-robustness.patch
> rename to patches/qt-everywhere-src-5.14.1/0103-eglfs_kms-device-ordering-robustness.patch
> diff --git a/patches/qt-everywhere-src-5.12.6/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch b/patches/qt-everywhere-src-5.14.1/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> similarity index 62%
> rename from patches/qt-everywhere-src-5.12.6/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> rename to patches/qt-everywhere-src-5.14.1/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> index 0a33b37a5df0..ce0652dc75ea 100644
> --- a/patches/qt-everywhere-src-5.12.6/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
> @@ -3,14 +3,16 @@ Date: Tue, 12 May 2015 11:38:35 +0200
>  Subject: [PATCH] ptxdist: qtwebengine: allow building with ptxdist
>  
>  Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> +[m.felsch@pengutronix.de: port to 5.14.1]
> +Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
>  ---
> - qtwebengine/src/core/config/functions.pri | 3 ++-
> + qtwebengine/src/buildtools/config/functions.pri | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>  
> -diff --git a/qtwebengine/src/core/config/functions.pri b/qtwebengine/src/core/config/functions.pri
> +diff --git a/qtwebengine/src/buildtools/config/functions.pri b/qtwebengine/src/buildtools/config/functions.pri
>  index 8c11faa16ad2..876da9bcfb9e 100644
> ---- a/qtwebengine/src/core/config/functions.pri
> -+++ b/qtwebengine/src/core/config/functions.pri
> +--- a/qtwebengine/src/buildtools/config/functions.pri
> ++++ b/qtwebengine/src/buildtools/config/functions.pri
>  @@ -1,5 +1,6 @@
>   defineReplace(qtwebengine_extractCFlag) {
>  -    CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS
> diff --git a/patches/qt-everywhere-src-5.12.6/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch b/patches/qt-everywhere-src-5.14.1/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> similarity index 62%
> rename from patches/qt-everywhere-src-5.12.6/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> rename to patches/qt-everywhere-src-5.14.1/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> index 58de4fe7813d..8ebb457247a1 100644
> --- a/patches/qt-everywhere-src-5.12.6/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
> @@ -3,20 +3,22 @@ Date: Tue, 14 Nov 2017 21:52:24 +0100
>  Subject: [PATCH] ptxdist: qtwebengine: let ninja use the jobserver
>  
>  Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> +[m.felsch@pengutronix.de: port to 5.14.1]
> +Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
>  ---
>   qtwebengine/src/core/gn_run.pro | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>  
>  diff --git a/qtwebengine/src/core/gn_run.pro b/qtwebengine/src/core/gn_run.pro
> -index 9860c4541882..777625f96ec0 100644
> +index 377d8363ce51..237f4f308b89 100644
>  --- a/qtwebengine/src/core/gn_run.pro
>  +++ b/qtwebengine/src/core/gn_run.pro
> -@@ -49,7 +49,7 @@ build_pass|!debug_and_release {
> +@@ -50,7 +50,7 @@ build_pass|!debug_and_release {
>       ninjaflags = $$(NINJAFLAGS)
>       isEmpty(ninjaflags):!silent: ninjaflags = "-v"
>   
> --    runninja.commands = $$NINJA $$ninjaflags -C $$gn_build_root QtWebEngineCore
> -+    runninja.commands = +$$NINJA $$ninjaflags -C $$gn_build_root QtWebEngineCore
> +-    runninja.commands = $$NINJA $$ninjaflags \$\(NINJAJOBS\) -C $$gn_build_root QtWebEngineCore
> ++    runninja.commands = +$$NINJA $$ninjaflags \$\(NINJAJOBS\) -C $$gn_build_root QtWebEngineCore
>       QMAKE_EXTRA_TARGETS += runninja
>   
>       build_pass:build_all: default_target.target = all
> diff --git a/patches/qt-everywhere-src-5.12.6/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch b/patches/qt-everywhere-src-5.14.1/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> similarity index 94%
> rename from patches/qt-everywhere-src-5.12.6/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> rename to patches/qt-everywhere-src-5.14.1/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> index bef3dfc2f62d..be6f6378df69 100644
> --- a/patches/qt-everywhere-src-5.12.6/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> +++ b/patches/qt-everywhere-src-5.14.1/0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> @@ -15,10 +15,10 @@ Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
>   1 file changed, 9 insertions(+)
>  
>  diff --git a/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc b/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc
> -index 7e945c0de0ed..cd98df3c5657 100644
> +index 5f4fbaad8827..d579072e3d27 100644
>  --- a/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc
>  +++ b/qtwebengine/src/3rdparty/gn/tools/gn/ninja_action_target_writer.cc
> -@@ -118,9 +118,18 @@ std::string NinjaActionTargetWriter::WriteRuleDefinition() {
> +@@ -119,9 +119,18 @@ std::string NinjaActionTargetWriter::WriteRuleDefinition() {
>       // strictly necessary for regular one-shot actions, but it's easier to
>       // just always define unique_name.
>       std::string rspfile = custom_rule_name;
> diff --git a/patches/qt-everywhere-src-5.12.6/series b/patches/qt-everywhere-src-5.14.1/series
> similarity index 83%
> rename from patches/qt-everywhere-src-5.12.6/series
> rename to patches/qt-everywhere-src-5.14.1/series
> index 9373b8a61c0f..be91a56ca62d 100644
> --- a/patches/qt-everywhere-src-5.12.6/series
> +++ b/patches/qt-everywhere-src-5.14.1/series
> @@ -9,5 +9,4 @@
>  0104-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
>  0105-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
>  0106-HACK-qtwebengine-workaround-for-too-long-file-names.patch
> -0107-HACK-don-t-resolv-library-paths.patch
> -# 8c228241c0d280cb7a529289095cb611  - git-ptx-patches magic
> +# 696c560ef74cce8b155152065aa1f46e  - git-ptx-patches magic
> diff --git a/rules/host-qt5.make b/rules/host-qt5.make
> index 28c33de88545..f7e8de1c5219 100644
> --- a/rules/host-qt5.make
> +++ b/rules/host-qt5.make
> @@ -45,6 +45,7 @@ HOST_QT5_CONF_OPT	:= \
>  	--enable-shared \
>  	--disable-trace \
>  	--disable-rpath \
> +	-reduce-exports \
>  	--disable-pch \
>  	--disable-ltcg \
>  	$(if $(filter 0,$(PTXDIST_VERBOSE)),-silent) \
> @@ -54,7 +55,6 @@ HOST_QT5_CONF_OPT	:= \
>  	-skip qt3d \
>  	-skip qtactiveqt \
>  	-skip qtandroidextras \
> -	-skip qtcanvas3d \
>  	-skip qtcharts \
>  	-skip qtconnectivity \
>  	-skip qtdatavis3d \
> @@ -64,10 +64,12 @@ HOST_QT5_CONF_OPT	:= \
>  	-skip qtgraphicaleffects \
>  	-skip qtimageformats \
>  	-skip qtlocation \
> +	-skip qtlottie \
>  	-skip qtmacextras \
>  	-skip qtmultimedia \
>  	-skip qtnetworkauth \
>  	-skip qtpurchasing \
> +	-skip qtquick3d \
>  	-skip qtquickcontrols \
>  	-skip qtquickcontrols2 \
>  	-skip qtremoteobjects \
> @@ -92,6 +94,7 @@ HOST_QT5_CONF_OPT	:= \
>  	-skip qtxmlpatterns \
>  	-make libs \
>  	-make tools \
> +	-nomake examples \
>  	--disable-compile-examples \
>  	--disable-gui \
>  	--disable-widgets \
> @@ -118,6 +121,8 @@ HOST_QT5_CONF_OPT	:= \
>  	-qt-harfbuzz \
>  	--disable-gtk \
>  	--opengl=no \
> +	--disable-opengles3 \
> +	--disable-egl \
>  	--disable-xcb-xlib \
>  	\
>  	--disable-directfb \
> @@ -125,7 +130,6 @@ HOST_QT5_CONF_OPT	:= \
>  	--disable-gbm \
>  	--disable-kms \
>  	--disable-linuxfb \
> -	--disable-mirclient \
>  	--disable-xcb \
>  	\
>  	--disable-libudev \
> @@ -153,8 +157,7 @@ HOST_QT5_CONF_OPT	:= \
>  
>  # Note: these options are not listed in '--help' but they exist
>  HOST_QT5_CONF_OPT += \
> -	--disable-sm \
> -	--disable-egl
> +	--disable-sm
>  
>  HOST_QT5_QT_CONF := $(PTXDIST_SYSROOT_HOST)/bin/qt5/qt.conf
>  
> diff --git a/rules/qt5.in b/rules/qt5.in
> index 162ea8b9beba..5590b623792d 100644
> --- a/rules/qt5.in
> +++ b/rules/qt5.in
> @@ -377,16 +377,6 @@ endif
>  
>  endif
>  
> -config QT5_MODULE_QTCANVAS3D
> -	bool
> -	select QT5_MODULE_QTDECLARATIVE
> -	prompt "QtCanvas3D"
> -
> -config QT5_MODULE_QTCANVAS3D_QUICK
> -	bool
> -	depends on QT5_MODULE_QTCANVAS3D
> -	default QT5_MODULE_QTDECLARATIVE
> -
>  config QT5_MODULE_QTCHARTS
>  	bool
>  	prompt "QtCharts"
> @@ -477,6 +467,10 @@ config QT5_MODULE_QTLOCATION
>  	bool
>  	prompt "QtLocation"
>  
> +config QT5_MODULE_QTLOTTIE
> +	bool
> +	prompt "QtLottie"
> +
>  config QT5_MODULE_QTLOCATION_QUICK
>  	bool
>  	depends on QT5_MODULE_QTLOCATION
> @@ -513,6 +507,11 @@ config QT5_MODULE_QTPURCHASING
>  	select QT5_MODULE_QTDECLARATIVE
>  	prompt "QtPurchasing"
>  
> +config QT5_MODULE_QTQUICK3D
> +	bool
> +	select QT5_MODULE_QTDECLARATIVE
> +	prompt "QtQuick3D"
> +
>  config QT5_MODULE_QTQUICKCONTROLS
>  	bool
>  	select QT5_ACCESSIBILITY
> diff --git a/rules/qt5.make b/rules/qt5.make
> index 09165890e0cd..4f7ada8ad87d 100644
> --- a/rules/qt5.make
> +++ b/rules/qt5.make
> @@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_QT5) += qt5
>  #
>  # Paths and names
>  #
> -QT5_VERSION	:= 5.12.6
> -QT5_MD5		:= 287d71e71ebd97f77220873e7b131b1a
> +QT5_VERSION	:= 5.14.1
> +QT5_MD5		:= 781c3179410aff7ef84607214e1e91b4
>  QT5		:= qt-everywhere-src-$(QT5_VERSION)
>  QT5_SUFFIX	:= tar.xz
>  QT5_URL		:= \
> @@ -120,11 +120,13 @@ QT5_CONF_OPT	:= \
>  	--disable-gc-binaries \
>  	--enable-shared \
>  	-xplatform linux-ptx-g++ \
> +	--disable-qtlibinfix-plugins \
>  	--disable-trace \
>  	--disable-rpath \
>  	-reduce-exports \
>  	--disable-pch \
>  	--$(call ptx/endis, PTXCONF_ARCH_X86)-ltcg \
> +	-linker bfd \
>  	$(if $(filter 0,$(PTXDIST_VERBOSE)),-silent) \
>  	\
>  	-pkg-config \
> @@ -132,7 +134,6 @@ QT5_CONF_OPT	:= \
>  	$(call ptx/qt5-module, QT3D, qt3d) \
>  	-skip qtactiveqt \
>  	-skip qtandroidextras \
> -	$(call ptx/qt5-module, QTCANVAS3D, qtcanvas3d) \
>  	$(call ptx/qt5-module, QTCHARTS, qtcharts) \
>  	$(call ptx/qt5-module, QTCONNECTIVITY, qtconnectivity) \
>  	$(call ptx/qt5-module, QTDATAVIS3D, qtdatavis3d) \
> @@ -142,10 +143,12 @@ QT5_CONF_OPT	:= \
>  	$(call ptx/qt5-module, QTGRAPHICALEFFECTS, qtgraphicaleffects) \
>  	$(call ptx/qt5-module, QTIMAGEFORMATS, qtimageformats) \
>  	$(call ptx/qt5-module, QTLOCATION, qtlocation) \
> +	$(call ptx/qt5-module, QTLOTTIE, qtlottie) \
>  	-skip qtmacextras \
>  	$(call ptx/qt5-module, QTMULTIMEDIA, qtmultimedia) \
>  	$(call ptx/qt5-module, QTNETWORKAUTH, qtnetworkauth) \
>  	$(call ptx/qt5-module, QTPURCHASING, qtpurchasing) \
> +	$(call ptx/qt5-module, QTQUICK3D, qtquick3d) \
>  	$(call ptx/qt5-module, QTQUICKCONTROLS, qtquickcontrols) \
>  	$(call ptx/qt5-module, QTQUICKCONTROLS2, qtquickcontrols2) \
>  	$(call ptx/qt5-module, QTREMOTEOBJECTS, qtremoteobjects) \
> @@ -207,7 +210,6 @@ QT5_CONF_OPT	:= \
>  	--$(call ptx/endis, PTXCONF_QT5_PLATFORM_EGLFS_KMS)-gbm \
>  	--$(call ptx/endis, PTXCONF_QT5_PLATFORM_BACKEND_KMS)-kms \
>  	--$(call ptx/endis, PTXCONF_QT5_PLATFORM_LINUXFB)-linuxfb \
> -	--disable-mirclient \
>  	$(call ptx/qt5-system, QT5_PLATFORM_XCB)-xcb \
>  	\
>  	--$(call ptx/endis, PTXCONF_QT5_LIBUDEV)-libudev \
> @@ -233,6 +235,10 @@ QT5_CONF_OPT	:= \
>  	--$(call ptx/endis, PTXCONF_QT5_MODULE_QTBASE_SQL_SQLITE)-sql-sqlite \
>  	$(call ptx/qt5-system, PTXCONF_QT5_MODULE_QTBASE_SQL_SQLITE)-sqlite
>  
> +ifdef PTXCONF_QT5_MODULE_QT3D_QUICK
> +QT5_CONF_OPT	+= \
> +	-qt-assimp
> +endif
>  ifdef PTXCONF_QT5_MODULE_QTQUICKCONTROLS2
>  QT5_CONF_OPT	+= \
>  	--$(call ptx/endis, PTXCONF_QT5_MODULE_QTQUICKCONTROLS2_STYLE_FUSION)-style-fusion \
> @@ -247,6 +253,16 @@ QT5_CONF_OPT	+= \
>  	--enable-alsa \
>  	$(call ptx/ifdef, PTXCONF_QT5_MODULE_QTMULTIMEDIA_GST,-gstreamer 1.0,-no-gstreamer)
>  endif
> +ifdef PTXCONF_QT5_MODULE_QTQUICK3D
> +QT5_CONF_OPT	+= \
> +	-qt-assimp
> +endif
> +ifdef PTXCONF_QT5_MODULE_QTSPEECH
> +QT5_CONF_OPT	+= \
> +	--disable-flite \
> +	--disable-flite-alsa \
> +	--disable-speechd
> +endif
>  ifdef PTXCONF_QT5_MODULE_QTWEBENGINE
>  QT5_CONF_OPT	+= \
>  	--$(call ptx/endis, PTXCONF_QT5_MODULE_QTWEBENGINE_MEDIA)-webengine-alsa \
> @@ -259,7 +275,8 @@ QT5_CONF_OPT	+= \
>  	--disable-webengine-printing-and-pdf \
>  	--disable-webengine-proprietary-codecs \
>  	--disable-webengine-spellchecker \
> -	--disable-webengine-webrtc
> +	--disable-webengine-webrtc \
> +	--$(call ptx/endis, PTXCONF_QT5_WIDGETS)-webengine-widgets
>  endif
>  
>  ifdef PTXCONF_QT5_GUI
> @@ -270,7 +287,9 @@ endif
>  
>  # Note: these options are not listed in '--help' but they exist
>  QT5_CONF_OPT += \
> -	--disable-sm
> +	--disable-sm \
> +	--disable-vulkan \
> +	-no-feature-wayland-vulkan-server-buffer
>  
>  ifdef PTXCONF_QT5_MODULE_QTDECLARATIVE
>  QT5_CONF_OPT += \
> @@ -326,24 +345,26 @@ $(STATEDIR)/qt5.install:
>  		xargs sed -i 's;$(PTXDIST_WORKSPACE);@WORKSPACE@;g'
>  	@$(call touch)
>  
> -QT5_QT_CONF := $(PTXDIST_SYSROOT_CROSS)/bin/qt5/qt.conf
> +QT5_QT_CONF := $(PTXDIST_SYSROOT_TARGET)/usr/bin/qt5/qt.conf
>  
>  $(STATEDIR)/qt5.install.post:
>  	@$(call targetinfo)
>  	@find $(QT5_PKGDIR) -name '*.pri' -o -name '*.cmake' | \
>  		xargs sed -i 's;@WORKSPACE@;$(PTXDIST_WORKSPACE);g'
>  	@$(call world/install.post, QT5)
> -	@rm -rf $(PTXDIST_SYSROOT_CROSS)/bin/qt5
> -	@cp -a $(SYSROOT)/usr/bin/qt5 $(PTXDIST_SYSROOT_CROSS)/bin/qt5
>  	@echo "[Paths]"						>  $(QT5_QT_CONF)
>  	@echo "HostPrefix=$(SYSROOT)/usr"			>> $(QT5_QT_CONF)
>  	@echo "HostData=$(SYSROOT)/usr/lib/qt5"			>> $(QT5_QT_CONF)
>  	@echo "HostBinaries=$(PTXDIST_SYSROOT_CROSS)/bin/qt5"	>> $(QT5_QT_CONF)
> -	@echo "Prefix=$(SYSROOT)/usr"				>> $(QT5_QT_CONF)
> +	@echo "Prefix=/usr"					>> $(QT5_QT_CONF)
>  	@echo "Headers=$(SYSROOT)/usr/include/qt5"		>> $(QT5_QT_CONF)
> +	@echo "Libraries=$(SYSROOT)/usr/lib"			>> $(QT5_QT_CONF)
>  	@echo "Imports=/usr/lib/qt5/imports"			>> $(QT5_QT_CONF)
>  	@echo "Qml2Imports=/usr/lib/qt5/qml"			>> $(QT5_QT_CONF)
>  	@echo ""						>> $(QT5_QT_CONF)
> +#	# qmake is found in sysroot-cross (via PATH) and sysroot target (via cmake)
> +	@rm -rf $(PTXDIST_SYSROOT_CROSS)/bin/qt5
> +	@cp -a $(SYSROOT)/usr/bin/qt5 $(PTXDIST_SYSROOT_CROSS)/bin/qt5
>  	@$(call touch)
>  
>  
> @@ -360,6 +381,7 @@ QT5_LIBS-$(PTXCONF_QT5_MODULE_QT3D_QUICK)			+= Qt53DQuick Qt53DQuickAnimation Qt
>  QT5_QML-$(PTXCONF_QT5_MODULE_QT3D_QUICK)			+= Qt3D
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QT3D)				+= geometryloaders/libdefaultgeometryloader
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QT3D)				+= geometryloaders/libgltfgeometryloader
> +QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QT3D)				+= sceneparsers/libassimpsceneimport
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QT3D)				+= sceneparsers/libgltfsceneexport
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QT3D)				+= sceneparsers/libgltfsceneimport
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QT3D_QUICK)			+= renderplugins/libscene2d
> @@ -410,9 +432,6 @@ QT5_PLUGINS-$(PTXCONF_QT5_PLATFORM_XCB)				+= xcbglintegrations/libqxcb-egl-inte
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QTBASE_SQL_MYSQL)		+= sqldrivers/libqsqlmysql
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QTBASE_SQL_SQLITE)		+= sqldrivers/libqsqlite
>  
> -### QtCanvas3d ###
> -QT5_QML-$(PTXCONF_QT5_MODULE_QTCANVAS3D_QUICK)			+= QtCanvas3D
> -
>  ### QtCharts ###
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTCHARTS)				+= Qt5Charts
>  QT5_QML-$(PTXCONF_QT5_MODULE_QTCHARTS_QUICK)			+= QtCharts
> @@ -429,6 +448,8 @@ QT5_QML-$(PTXCONF_QT5_MODULE_QTDATAVIS3D_QUICK)			+= QtDataVisualization
>  
>  ### QtDeclarative ###
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE)			+= Qt5Qml
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QmlModels
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QmlWorkerScript
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5Quick
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK)		+= Qt5QuickShapes
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTDECLARATIVE_QUICK_WIDGETS)	+= Qt5QuickWidgets
> @@ -481,6 +502,9 @@ QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QTLOCATION_QUICK)		+= geoservices/libqtgeoservi
>  QT5_QML-$(PTXCONF_QT5_MODULE_QTLOCATION_QUICK)			+= QtLocation
>  QT5_QML-$(PTXCONF_QT5_MODULE_QTLOCATION_QUICK)			+= QtPositioning
>  
> +### QtLottie ###
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTLOTTIE)				+= Qt5Bodymovin
> +
>  ### QtMultimedia ###
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTMULTIMEDIA)			+= Qt5Multimedia
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTMULTIMEDIA_QUICK)		+= Qt5MultimediaQuick
> @@ -507,6 +531,14 @@ QT5_LIBS-$(PTXCONF_QT5_MODULE_QTNETWORKAUTH)			+= Qt5NetworkAuth
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTPURCHASING)			+= Qt5Purchasing
>  QT5_QML-$(PTXCONF_QT5_MODULE_QTPURCHASING)			+= QtPurchasing
>  
> +### QtQuick3D ###
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTQUICK3D)			+= Qt5Quick3D
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTQUICK3D)			+= Qt5Quick3DAssetImport
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTQUICK3D)			+= Qt5Quick3DRender
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTQUICK3D)			+= Qt5Quick3DRuntimeRender
> +QT5_LIBS-$(PTXCONF_QT5_MODULE_QTQUICK3D)			+= Qt5Quick3DUtils
> +QT5_QML-$(PTXCONF_QT5_MODULE_QTQUICK3D)				+= QtQuick3D
> +
>  ### QtQuickControls ###
>  # all in QT5_QML- added by QtDeclarative
>  
> @@ -528,6 +560,7 @@ QT5_QML-$(PTXCONF_QT5_MODULE_QTSCXML_QUICK)			+= QtScxml
>  
>  ### QtSensors ###
>  QT5_LIBS-$(PTXCONF_QT5_MODULE_QTSENSORS)			+= Qt5Sensors
> +QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QTSENSORS)			+= sensorgestures/libqtsensorgestures_counterplugin
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QTSENSORS)			+= sensorgestures/libqtsensorgestures_plugin
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QTSENSORS)			+= sensorgestures/libqtsensorgestures_shakeplugin
>  QT5_PLUGINS-$(PTXCONF_QT5_MODULE_QTSENSORS)			+= sensors/libqtsensors_generic

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-19 22:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-12 11:35 [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1 Marco Felsch
2020-03-12 11:35 ` [ptxdist] [RFC PATCH 2/3] qt5: drop qtdeclarative opengl dependency Marco Felsch
2020-06-19 22:04   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-03-12 11:35 ` [ptxdist] [RFC PATCH 3/3] qt5: add capability to build from git super project Marco Felsch
2020-04-10 10:48 ` [ptxdist] [RFC PATCH 1/3] qt5: version bump 5.12.6 -> 5.14.1 Marco Felsch
2020-06-19 22:04 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox