Commit Graph

118 Commits

Author SHA1 Message Date
Martin Jansa
bcd8564f5c Revert "recipes: Use python3 during build"
This reverts commit 47fb26dedd.

Neither of these actually builds with python3, it's good fix to
start parsing the layer again, but better to just skip them when
meta-python2 isn't available until real fix is available.

qtwebkit might not get the support for python3 at all

qtwebengine I have some changes for the initial build, but there
are many more needed as shown in upstream chromium:
https://bugs.chromium.org/p/chromium/issues/detail?id=942720
https://bugs.chromium.org/p/chromium/issues/list?q=label%3AProj-Python3Migration&can=2

python-pyqt5 is already blacklisted because of sip
2020-01-23 19:44:43 +01:00
Khem Raj
47fb26dedd recipes: Use python3 during build
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-01-20 10:42:50 +01:00
Khem Raj
fd376e159d qtwebengine: Fix missing headers found in build with clang
Fixes
chromium/third_party/perfetto/include/perfetto/base/task_runner.h:48:55: error: unknown type name 'uint32_t'
|   virtual void PostDelayedTask(std::function<void()>, uint32_t delay_ms) = 0;

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-17 00:20:58 +01:00
Martin Jansa
b814111ed2 qtwebengine: refresh the patches and upload them to meta-qt5 forks on github for maintenance
* fixes 0004-mkspecs-Allow-builds-with-libc-glibc.patch which didn't apply at all,
  because the modified mkspecs/features/configure.prf was dropped completely in:
  commit 047d61f188aae3fe3ebc689900b8a5c9fb6e901d
  Author: Michal Klocek michal.klocek@qt.io
  Date: Fri Aug 9 17:40:29 2019 +0200

  Add webengine-core feature

  The same chunk can be found in src/buildtools/config/support.pri, so I've updated
  the .patch accordingly, but haven't tried the build with musl yet.

* fixes 0023-chromium-Move-CharAllocator-definition-to-a-header-f.patch to apply
  ERROR: qtwebengine-5.14.0+gitAUTOINC+d366f1d5d3_939daf833f-r0 do_patch: Command Error: 'quilt --quiltrc /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/qtwebengine/5.14.0+gitAUTOINC+d366f1d5d3_939daf833f-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
  Applying patch 0023-chromium-Move-CharAllocator-definition-to-a-header-f.patch
  patching file chromium/cc/base/list_container_helper.cc
  Hunk #1 FAILED at 13.
  1 out of 1 hunk FAILED -- rejects in file chromium/cc/base/list_container_helper.cc
  patching file chromium/cc/base/list_container_helper.h
  Hunk #1 FAILED at 8.
  Hunk #2 succeeded at 174 with fuzz 1.
  1 out of 2 hunks FAILED -- rejects in file chromium/cc/base/list_container_helper.h
  Patch 0023-chromium-Move-CharAllocator-definition-to-a-header-f.patch does not apply (enforce with -f)
  ERROR: Logfile of failure stored in: /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/qtwebengine/5.14.0+gitAUTOINC+d366f1d5d3_939daf833f-r0/temp/log.do_patch.21067
  NOTE: recipe qtwebengine-5.14.0+gitAUTOINC+d366f1d5d3_939daf833f-r0: task do_patch: Failed
  ERROR: Task (/OE/build/oe-core/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_patch) failed with exit code '1'

* build is still going (it will be a while on my slow builder)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-01-11 14:59:12 +01:00
Samuli Piippo
ca649e3f6f qt5: Update to Qt 5.14.0
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2020-01-11 14:03:48 +01:00
Khem Raj
6e7cc682c2 qtwebengine: Move CharAllocator definition to header
This helps in getting full class definition, in other sources which are
operating on sizeof operator, clang10 finds it insufficient information
and errors out reporting that sizeof can not be applied on a forward
declared class. This patch fixes that

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-07 11:19:28 +01:00
Khem Raj
d8f0db7f8d qtwebengine: Include cstddef for size_t definition
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-25 16:12:05 -08:00
Khem Raj
25039161c1 qtwebengine: Fix build with 64bit time_t on 32bit architectures
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-02 15:14:31 +01:00
Khem Raj
b7f4bd209c recipes: Use features_check instead of distro_features_check
distro_features_check is now deprecated

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-27 10:45:51 +01:00
Khem Raj
1a4ee018f4 qtwebengine: Fix musl build
Currently, musl build fails to generate .pc ( packageconfig ) files
because qmake has logic to detect glibc, which obviously will be failing
for musl, and as a result it does not generate all needed files which
then fails during do_install like below

| sed: can't read /mnt/b/yoe/build/tmp/work/core2-32-yoe-linux-musl/qtwebengine/5.13.2+gitAUTOINC+556576b55f_843d70ac87-r0/image/usr/lib/pkgconfig/Qt5WebEngineCore.pc: No such file or directory

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-20 13:51:18 +01:00
Martin Jansa
81156172a8 qt5: Upgrade to Qt 5.13.2
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2019-10-31 15:26:55 +00:00
Khem Raj
dc502d5758 qtwebengine: Fix compile failure with 5.2+ kernel headers
Fixes
error: 'SIOCGSTAMP' was not declared in this scope

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-03 09:41:28 +00:00
Michael Davis
e8aa2dddec qtwebengine: Add pulseaudio support
Add pulseaudio support if it is a distro feature

Signed-off-by: Michael Davis <michael.davis@essvote.com>
2019-08-22 16:15:52 +00:00
Michael Davis
4d8f350915 qtwebengine: Rename jasoncpp to jsoncpp
jasoncpp is not the name of the package included in meta-oe.  The correct
naming is jsoncpp.

Signed-off-by: Michael Davis <michael.davis@essvote.com>
2019-08-22 16:15:40 +00:00
Khem Raj
8f0e741022 qtwebengine: Fix build on aarch64
adapt a patch from meta-browser to get aarch64 going

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2019-07-17 10:32:59 +00:00
Martin Jansa
c8b3085aa4 qtwebengine: refresh the patches to apply
* 4 musl patches didn't apply at all
* 0015-chromium-musl-include-asm-generic-ioctl.h-for-TCGETS.patch is
  dropped, because whole chromium/device/serial/serial_io_handler_posix.cc
  was removed in upgrade to 73:
  commit 38a9a29f4f9436cace7f0e7abf9c586057df8a4e
  Author: Allan Sandfeld Jensen <allan.jensen@qt.io>
  Date:   Wed Feb 13 16:23:34 2019 +0100
  Subject: BASELINE: Update Chromium to 73.0.3683.37

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2019-07-16 10:23:34 +00:00
Samuli Piippo
8d2e1b4019 qt5: Upgrade to Qt 5.13.0
Update recipes for Qt 5.13.0, add new recipes for Qt modules qtcoap
and qtlottie, and remove qtcanvas3d.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2019-07-15 13:58:40 +00:00
Johannes Pointner
c7e0ba566f qtwebengine: arm: use OE specified -mcpu option
OE-Core sets -mcpu option, which is equivalent to -march and -mtune
combination. Therefore don't set -march and -mtune in chromium.

Signed-off-by: Johannes Pointner <johannes.pointner@br-automation.com>
2019-05-06 18:52:02 +00:00
Martin Jansa
f4531ec860 qtwebengine: restore the fix for build with clang/libc++ on aarch64/arm
* it was fixed in:
  5be2654885
* but then when upgrading to 5.12.3 from meta-qt5/qtwebengine I've accidentally overwritten
  this one with the older version in:
  e2707a016c

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2019-05-02 18:36:25 +00:00
Martin Jansa
e2707a016c qt5: upgrade to 5.12.3
* be aware that in 3 qt* project the v5.12.3 tag wasn't created yet:
  qtknx_git.bb:# v5.12.3 tag wasn't created yet
  qtmqtt_git.bb:# v5.12.3 tag wasn't created yet
  qtopcua_git.bb:# v5.12.3 tag wasn't created yet

* and qttools, qt3d, qtremoteobjects v5.12.3 tag isn't in 5.12 branch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2019-04-18 23:04:41 +00:00
Mikko Gronoff
28d4bfdf74 Upgrade to 5.12.2
Signed-off-by: Mikko Gronoff <mikko.gronoff@qt.io>
2019-04-03 14:10:43 +00:00
Martin Jansa
fb71293f25 qtwebengine: drop 0002-chromium_overrides.cpp-Fix-build-with-plugins-and-oz.patch
* with 5.12 it looks like it's not needed anymore, it causes following error instead:
  linking ../../lib/libQt5WebEngineCore.so.5.12.0
  ../../../../git/src/3rdparty/chromium/content/browser/renderer_host/pepper/pepper_truetype_font_list_host.cc:79: error: undefined reference to 'content::GetFontFamilies_SlowBlocking(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*)'
  ../../../../git/src/3rdparty/chromium/content/browser/renderer_host/pepper/pepper_truetype_font_list_host.cc:93: error: undefined reference to 'content::GetFontsInFamily_SlowBlocking(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<ppapi::proxy::SerializedTrueTypeFontDesc, std::allocator<ppapi::proxy::SerializedTrueTypeFontDesc> >*)'
  collect2: error: ld returned 1 exit status
  Makefile.core_module:74: recipe for target '../../lib/libQt5WebEngineCore.so.5.12.0' failed

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2019-02-14 17:40:27 +00:00
Khem Raj
5be2654885 qtwebengine: Fix build with clang/libc++ on aarch64/arm
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-14 17:40:27 +00:00
Khem Raj
f69fc4063c qtwebengine: Fix build with musl/gcc9
Provide couple of patches to fix build with x86_64/musl and a new
bug found lss via gcc9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-12-24 07:18:56 +00:00
Samuli Piippo
d45b966b46 qtwebengine: update chromium musl patchset
Signed-off-by: Mikko Gronoff <mikko.gronoff@qt.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-12-23 19:40:34 +00:00
Samuli Piippo
f1a5e8aa9e qtwebengine: include sources in the debug package, add x11 PACKAGECONFIG
* Remove override for PACKAGE_DEBUG_SPLIT_STYLE so that source code
  for QtWebEngine is included in the debug package.

Signed-off-by: Mikko Gronoff <mikko.gronoff@qt.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-12-22 16:52:08 +00:00
Martin Jansa
c8d5ef50d5 qt5: upgrade to latest revision in 5.12
* WIP
* zlib temporarily disabled in qtbase-native, the configure fails too
  find it even when it is in RSS:
docker-shr qemux86-64@ ~/build/oe-core $ find /OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0 -name zlib\*
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/git/src/3rdparty/freetype/src/gzip/zlib.h
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/git/src/3rdparty/zlib.pri
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/git/src/3rdparty/zlib
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/git/src/3rdparty/zlib/src/zlib.h
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/git/src/3rdparty/zlib_dependency.pri
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/recipe-sysroot-native/usr/lib/pkgconfig/zlib.pc
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/recipe-sysroot-native/usr/include/zlib.h
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/recipe-sysroot-native/sysroot-providers/zlib-native
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/recipe-sysroot-native/installeddeps/zlib-native
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/recipe-sysroot-native/installeddeps/zlib-native.2dcdd26b684916aff89d13cb1c919939
/OE/build/oe-core/tmp-glibc/work/x86_64-linux/qtbase-native/5.12.0+gitAUTOINC+7fc427ba23-r0/recipe-sysroot-native/installeddeps/zlib-native.complete

ERROR: Feature 'system-zlib' was enabled, but the pre-condition 'libs.zlib' failed.

* fixes #136

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-12-21 21:01:40 +00:00
Martin Jansa
5b35f89219 qtwebengine: refresh .patch files, meta-qt5/qt* repos and their tags in recipes
* in preparation for rebase on 5.12 #136

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-12-20 00:57:00 +00:00
Mikko Gronoff
0cdf727668 qt5: upgrade to 5.11.3
Signed-off-by: Mikko Gronoff <mikko.gronoff@qt.io>
2018-12-20 00:55:36 +00:00
Kai Ruhnau
9fc65c05f3 qtwebengine: Configure Ninja to honor PARALLEL_MAKE
Fixes #137

Signed-off-by: Kai Ruhnau <kai.ruhnau@target-sg.com>
2018-12-11 10:06:51 -02:00
Khem Raj
1ed9bcb175 qtwebengine: Add patches to fix breakpad in new webengine release on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-25 23:34:28 +00:00
Martin Jansa
f9e80edff0 qt5: update to latest revision in 5.11 branch
* drop nobranch=1 again
* update the branches and tags on meta-qt5/qt* forks and the tag name
  in recipes
* use latest revision in 5.11 branch instead of 5.11.2 which might be
  removed again

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-25 09:34:49 +00:00
Samuli Piippo
3e7da25564 qt5: update to Qt 5.11.2
Update The-Qt-Company-Commercial license to the actual commercial
license which also replaces preview license in qtbase. Remove old
licenses that are no longer used in any module.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-09-25 09:34:49 +00:00
Martin Jansa
85e665b158 qtwebengine: use nasm-native instead of yasm-native
* yasm-native was removed in:
  http://git.openembedded.org/openembedded-core/commit/?id=b7f3f7ecfdf26129c5df2d3ee14e73c4633ea5a3

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-09-19 09:55:34 +00:00
Samuli Piippo
823fa380c5 qtwebengine: enable debug info for webengine
Enable debug info for webengine builds. The mkspec needed fixing,
otherwise CFLAGS were fed incorrectly to Ninja.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-09-14 08:24:06 +00:00
Jens Rehsack
e4abbdef81 qtwebengine: Fix optonal glib-2.0 dependency
The corresponding recipe in poky is named "glib-2.0_XXX.bb",
not "glib_XXX.bb" which causes parser errors when enabling
'glib' in PACKAGECONFIG.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
2018-08-22 16:17:47 +02:00
Martin Jansa
cb7dfcc53a qtwebengine: Add PACKAGECONFIG for pepper-plugins printing-and-pdf spellchecker
* also add libpci runtime dependency for x86 targets (imported from meta-luneui)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-08-15 16:03:28 +00:00
Alban Bedel
70b090a504 qtwebengine: add a package config to enable proprietary codecs
Add a package config that allow to enable proprietary codecs for h264
support.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
2018-08-15 15:56:46 +00:00
Samuli Piippo
0263af75c0 qt5: add option to build Qt5 statically
Add PACKAGECONFIG that enables static build for qtbase and consequently
to all Qt recipes. This can be enabled with DISTRO_FEATURE 'qt5-static',
which also adds qtdeclarative-native dependency to all recipes that
depend on qtdeclarative as it's required for qmlimportscannertool.

Building examples and tests with static build can take excessive amounts
of time and disk space, so disabling DISTRO_FEATURE 'ptest' and
PACKAGECONFIGs 'examples' from qtbase is advised.

Not all recipes support static builds and those are not fixed here.

Change-Id: Ia0e2a2467cd42d4395ed5292a645fd1d89ad521a
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
2018-07-04 17:12:38 -03:00
Martin Jansa
ef5f5d912d qt5: upgrade to 5.11.1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-06-22 14:35:29 +00:00
Martin Jansa
731334ac1d qtwebengine: fix build with plugins as well as ozone enabled
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-06-10 10:57:11 +00:00
Martin Jansa
33f58ffa65 qtwebengine: fix build with gcc8, part II
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-06-06 11:32:55 +00:00
Martin Jansa
267a38fdde qtwebengine: fix build with gcc8
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-06-05 14:03:20 +00:00
Martin Jansa
dde9b55a24 qt5: refresh the patches and update them on meta-qt5 repositories
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-06-05 13:48:51 +00:00
Samuli Piippo
e0a4e23c1d qt5: Update to Qt 5.11.0
Add recipes for Qt OPC UA and Qt WebGL platform plugin.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-05-30 20:02:46 +00:00
Martin Jansa
35f8981b11 qt5: upgrade to 5.11 beta3+
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-04-20 10:06:37 +00:00
Martin Jansa
f33be06035 qt5: upgrade to 5.11 Alpha
* use qtwebkit and qtwebkit-examples from dev branch, because there is
  no 5.11 branch (there isn't 5.10 as well, but because nobranch=1 in
  qt5-git.inc nobody noticed).
* qtbase: drop qml-debug options
  removed from qtbase in:
  commit 525f8516c2580018f910cfb99ab5e0e36bd55ab1
  Author: Ulf Hermann <ulf.hermann@qt.io>
  Date:   Fri Oct 6 16:27:09 2017 +0200
  Subject: Remove qml-debug configure flag and feature
* qtgraphicaleffects, qtquickcontrols2, qtquickcontrols,
  qtvirtualkeyboard: add qtdeclarative-native dependency
  needed for qmlcachegen binary
* qtwebkit: update LIC_FILES_CHKSUM and remove PACKAGECONFIGs
  referenced files disappered in:
  commit 6882a04fb36642862b11efe514251d32070c3d65
  Author: Konstantin Tokarev <annulen@yandex.ru>
  Date:   Thu Aug 25 19:20:41 2016 +0300
  Subject: Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-04-20 10:06:37 +00:00
Martin Jansa
1d9fbb1576 qt5: refresh patches from meta-qt5/qt* repos
* apply:
  0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch
  also for nativesdk-qtbase as the comment says
* drop unused:
  0001-Add-missing-include-for-struct-timeval.patch
  which wasn't removed in 5.10.1 upgrade

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-02-26 16:53:07 +00:00
Mikko Gronoff
e41caf42e9 Upgrade to Qt 5.10.1
Updated Qt modules to 5.10.1.
New recipe qtknx added.

Change-Id: I711c75253a9c0d9dcfbaac8867b35a4505d101ea
Signed-off-by: Mikko Gronoff <mikko.gronoff@qt.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-02-22 13:56:45 +00:00
Martin Jansa
ce76637443 qt: refresh remaining patches and tags in meta-qt5 repos
* update tag name to match the patches in meta-qt5 repository
  where the meta-qt5 .patch files are maintained, so that it's
  more clear from where these changes are exported (with:
  git format-patch --no-numbered --no-signature)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-01-16 14:21:42 +00:00