Instead of removing unwanted build file, install only the required
files (executables and qmldir files).
Task-number: QTBUG-105913
Change-Id: Ifc4e2b8b290ba692f4a161e05df13eb23d68eb2a
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
QtWayland requires that qtbase has been built with QT_FEATURE_wayland
enabled. By default, this is done only if 'wayland' is in the
DISTRO_FEATURES. Add check that allows qtwayland to be built only
if wayland is in the DISTRO_FEATURES.
Fixes: QTBUG-123489
Pick-to: 6.7
Change-Id: I4e6d2e093e0f38f7fa150ad25303c2f20f487981
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Nanbield still has problems with mingw builds and fixes might
not get in before it is EOL.
Pick-to: 6.7
Change-Id: I56ee0c52269e2887a60c73049cb0d9deac11247c
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
QtBase will now enable -fstack-protector-strong for all builds,
but mingw builds fail with undefined reference to `__stack_chk_guard'.
Change-Id: I5f71dfd347481b3072eb2cc9c50ec504a829973b
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
After qtbase change 62905163bf887c2c2c9ba7edcd64c96d237a6e95, we need
to disable examples for the ptest build.
Change-Id: Ib6787b6e0f1ab17d3fa93ec7c4f98d92053f1ff2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Do not generate qmake wrapper scripts in target builds. It does
not work as expected. If you need to have qmake for target,
use QT_FORCE_BUILD_TOOLS variable instead.
Pick-to: 6.7
Fixes: QTBUG-122420
Change-Id: I711a53a553e7cbb5439a070f2629b66024e22d16
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Qtbase now has configuration test for enabling wayland support.
It needs to be enabled for QtWayland to work. Add new PACKAGECONFIG
option to make sure it's enabled when DISTRO_FEATURES has wayland.
Pick-to: 6.7
Task-number: QTBUG-117386
Change-Id: If5d88eb3de5422e19bf61919fceda37b05d705c1
Reviewed-by: Alex Bu <alex.bu@qt.io>
The OpenXR feature does not work correctly with the
ptest build, add workaround to make it pass.
Task-number: QTBUG-122205
Change-Id: I6237549f2e0098f6796e8b7f5abd59e9dd8fd2c5
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
oe-core as switched to scarthgap
Pick-to: 6.7 6.6 6.5
Change-Id: Ica326b8be4a23a5b6a52667a98740720185a6f73
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Update PACKAGECONFIG[png] to make sure we use the system libpng
as expected.
Fixes: QTBUG-121795
Pick-to: 6.7 6.6 6.5
Change-Id: I051a9a40a9a7bfd001b77c51db9eab2b19147efb
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
QtQuick3dPhysics, QtPdf and QtWebengine have limited
architecture support.
Pick-to: 6.7 6.6 6.5
Change-Id: Icf1d7628de5365825c79030462f019b15d9ae9a0
Reviewed-by: Alex Bu <alex.bu@qt.io>
qtpdf includes chromium-gn.inc which set COMPATIBLE_MACHINE. For arm, it
is only compatible with armv6 armv7a and armv7ve. So only add to DEPENDS
for these machines.
Pick-to: 6.7
Change-Id: Id5601f9e6ebd7427431115f556b9982645e9c1c4
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
This option is not needed to be set with OE when using clang because OE
passes correct tuple which is recognised by OE based distros correctly.
Otherwise search paths for C runtime files goes awry and we get cryptic
linking failures like
ld.lld: error: cannot open crtbeginS.o: No such file or directory
ld.lld: error: cannot open crtendS.o: No such file or directory
aarch64-yoe-linux-clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Pick-to: 6.7
Change-Id: Id445fb44adc3b9603109fe4763bd6344370cffff
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
QtWebengine requires libwebp-native, but support for it was added
in nanbield. To support kirkstone builds, add bbappend to enable
the native builds.
Pick-to: 6.7
Change-Id: Id94addf24f19552b6fb6fc074e0a5c51199b877f
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Latest qtwebengine does the right thing by not looking into build host's
rootfs but this means we need to add libevent to native sysroot to meet
this dependency, otherwise gn fails to find it and build fails like
below
Fixes:
| -- GN FAILED
|-
| ERROR at //build/config/linux/pkg_config.gni:104:17
| (//build/toolchain/yocto:yocto_native): Script returned non-zero exit code.
|-
| pkgresult = exec_script(pkg_config_script, args, "value")
| ^----------
|-
| Current dir:
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/build/src/core/Release/aarch64/
|-
|-
| Command:
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/recipe-sysroot-native/usr/bin/python3-native/python3
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/git/src/3rdparty/chromium/build/config/linux/pkg-config.py
| -p
| /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/qtwebengine/6.6.2/recipe-sysroot-native/usr/bin/pkg-config-native
| libevent
|-
| Returned 1.
|-
| stderr:
|-
|-
|-
| Package libevent was not found in the pkg-config search path.
|-
| Perhaps you should add the directory containing `libevent.pc'
|-
| to the PKG_CONFIG_PATH environment variable
|-
| No package 'libevent' found
|-
| Could not run pkg-config.
Pick-to: 6.7
Change-Id: I66d8806be14d2d4d57dca2d93688d5b58e0e1cb6
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
chromium has a way to use right pkg-config for in-tree hosttools which
are built and used during cross build of qtwebengine, since OE
pkg-config environment is set for detecting .pc files from sysroot,it
ends up reading wrong pkg-config files for host pieces and adds
-L<sysroot>/usr/lib to linker cmdline for hosttools too, this goes by
fine with gnu BFD linker since it ignores linker script files like
<sysroot>/usr/lib/libc.so, but when we use LLD linker, it ends up in
error, because it tries to process the content of libc.so which have
target absolute paths for ldso etc. /usr/lib/ld-linux-aarch64.so.1
LLD tries to open these files and ofcouse can't find them because
they are only found in target sysroot.
The underlying problem is that we need to be explicit about pkg-config
which is thusly implemented by this patch. This fixes build with
clang+lld and link times for qtwebegine is reduced by 26% in my case.
Pick-to: 6.7
Change-Id: Id091200444eb97d4b44d984888a8aa16b75ff9d7
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Yocto scarthgap is now using inherit_defer which causes allarch
to be inherited last, when nativesdk wants to always be the last one.
Workaround this by setting PACKAGE_ARCH to empty, which causes the
allarch inherit to be skipped. PACKAGE_ARCH will still end up being
the same value, as packagegroup will set it correctly.
Fixes QA Issue: nativesdk-packagegroup-qt6-toolchain-host: native/nativesdk
class is not inherited last, this can result in unexpected behaviour.
Pick-to: 6.7 6.6 6.5
Change-Id: I0457a62333d88b14c3330e3349f585dc6c3eec35
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Add 6.7 to test matrix and reshulffle the build targets.
mickledore is EOL, drop it from active testing.
Pick-to: 6.7
Change-Id: Ia371a06c10b3f66956227d5d7c0357cb83097f87
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
ctest might list tests that don't have executable, such as
QMLTESTs, that are run with qmltestrunner. Skip these tests.
Pick-to: 6.7 6.6
Fixes: WEBOSCI-62
Change-Id: If8e3ce657d86469b8a83a05146e6698b8c5452d3
Reviewed-by: Alex Bu <alex.bu@qt.io>
QtDoc does not have any libraries, but it provides set of nicer
demos.
Pick-to: 6.7
Change-Id: I17c229c0a37f6e86bef5914cf5a2824fadfe73cd
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Use ctest to find all tests to run as not all of them start with
a tst_ prefix. This is done by parsing the json output of ctest.
Add all test sources to the package as there are data files in
some tests that are needed.
Remove qmake support, since it's not supported when building
Qt module.
QtDeviceUtilities had includes in wrong order, so ptest runner was
never added to the package.
Task-number: QTBUG-118680
Pick-to: 6.7 6.6
Change-Id: I6397cb1fd331941a3425bf627676b6387ab8bb8d
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Update python3-pytest-qt to version 4.2.0.
Pick-to: 6.7 6.6
Change-Id: Ib3cd21aaae59be4dbc02552c665e4c4f585e7cb2
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Update QtWebEngine and QtPdf to use 118-based chromium.
Change-Id: I9a09b33156240ac8da850cf60984ba1986c5f474
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit 4b105e589b)
Add variable to find base dir for meta-qt6 and use that in
srcrev-update to support using it in any recipe.
Pick-to: 6.7 6.6
Change-Id: I91960508a8ec96ee6fe7af69046915f048925f62
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>