Add pending patch & flag to address appman tools
issue following 5fc4b8a36c02c601a6fabf2b393a93ed1f387de9.
Change-Id: Ic74d8929570a02fbcfc6e15931fb8f81bcea646e
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
The xnnpack build has own march flags, which are getting
overridden by yocto setup, this ends in broken compilation,
as gn has no clue about override. Therefore, build webnn
without xnnpack on yocto.
Change-Id: I426a452a5608a5da3bc630f8ec3389e0eb313ef4
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
SPDX license changes were applied on the module.
Pick-to: 6.8
Change-Id: I53f2d2d756330e24c9073dcaefae53c6ef8e3271
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
SPDX license changes were applied on the module.
Pick-to: 6.8
Change-Id: Id41c227a182c158801398e28b571c8f96196e2e2
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
HPND_LICENSE.txt location got moved a bit.
Pick-to: 6.8
Change-Id: I2e51e6b381ddb67dd16489fa743c1c4e84d06bad
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Amends commit e7c1f03660.
The MIT license got temporarily renamed with LicenseRef prefix.
Change-Id: Iafe1b3bb7511c4d8b5f0e2161433982c952cf74e
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit fb2bd89126)
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Change-Id: If9f1a03d8e41253b218af9f1945039d05331e152
Reviewed-by: Alex Bu <alex.bu@qt.io>
(cherry picked from commit e7c1f03660)
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
QtPDF depends on cups-config during 'bitbake <image> -c populate_sdk'.
Without this patch the build fails with:
FileNotFoundError: [Errno 2] No such file or directory: 'cups-config'
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Fixes: QTBUG-126996
Pick-to: 6.8
Change-Id: I28b47687159717b468373a32303447f80063d3cf
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Builtin testdata packages all test data files into resources. This is
used on mobile platforms by default. Enable it for the ptest builds.
We can then remove copying of the source files for the tests.
Change-Id: I5e27b3a3a43ed2993eb5570628f023da3f1ed4d5
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Reviewed-by: Alex Bu <alex.bu@qt.io>
Update licenses after SPDX changes were applied to the module.
Fixes: QTBUG-126397
Pick-to: 6.8
Change-Id: Iccb2e1b64953bfe0442fb9bf8963c10f66607438
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
In yocto we can safely assume 64bit off_t as LFS is default, this helps
compile with musl which does not provide the legacy *64 APIs anymore
Fixes
src/3rdparty/assimp/src/contrib/unzip/ioapi.c:24:29: error: implicit declaration of function 'ftello'; did you mean 'ftell'? [-Wimplicit-function-declaration]
| 24 | #define FTELLO_FUNC(stream) ftello64(stream)
| | ^~~~~~~~
Change-Id: I0a03b833027c55fe2d4fc1af78c5cc78f636eaff
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Install .rcc files to support testing of loading resources at runtime.
Task-number: QTBUG-118680
Change-Id: I9963c2cdc5c51165b7656e01237f09e499a838fc
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
This reverts commit 82fac6f29a.
Original issue has been resolved.
Change-Id: Icf547207762fc78a4df28d175772c0f8936f1cac
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Export LANG only if it has not yet been defined for the current user.
Check that HOME directory exists and is writable before running tests.
For example "ptest" user is created without home directory by default.
Webengine tests expect --no-sandbox when running as root so export
environment variable to disable sandbox.
Task-number: QTBUG-118680
Change-Id: I7f40378f92e089bfb3279270ead0b92b309eeb47
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
webengine-ozone-x11 feature (Support GLX on qpa-xcb) has dependencies
for x11 libraries and libgl. Add all of them into new PACKAGECONFIG
that's enabled if x11 and opengl are in DISTRO_FEATURES.
libxdamage is added as new dependency as it's needed when both
ozone-x11 and webrtc are enabled.
libgl is added to make sure it's available regardless of how qtbase
has been configured (e.g. with gles2) and dependencies are not met
through it.
Pick-to: 6.7
Change-Id: I6708d3440b7f1ef5b3b8dcc3a1563e6e5fc48dc0
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Reviewed-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Windows implementation of QDnsLookup uses features that are not
available in MinGW 9.0.0 currently used in meta-mingw layer. None
of the host tools we need with mingw require dnslookup, so disable
the feature.
Task-number: QTBUG-125290
Change-Id: I457a627824430554183f3ee463276676e31b16c5
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This ensures that these packages are added only when wayland is
enabled in DISTRO_FEATURES, since now these packages do check for
this distro feature themselves, this fixes the SDK builds for eglfs
distros
Pick-to: 6.7
Change-Id: If4f231ee8999b6a7499d63d4b0bd104ab1ff510d
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Add vendor information to the CVE_PRODUCT and use default assignment,
so that qt6-git.inc can be included in other non-qt-module recipes.
Pick-to: 6.7
Task-number: QTBUG-125018
Change-Id: If4aa9aede3c57886eb232f115fbf1ceaeba3cf73
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
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>
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>
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>
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>
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 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>
Use clang from meta-clang if the layer is available. Only tools require
clang, so skip target build as tools are not enabled by default.
Cannot use clang with mingw32 as it doesn't have python support.
Pick-to: 6.7 6.6
Change-Id: I1c43a816f81eeb5cdd28c5d05316e9e137514f58
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Packaging has errors:
Multiple shlib providers for libInstrumentCluster.so.
This lib is in examples and needs to be marked as a private lib.
Pick-to: 6.7
Change-Id: I38130d76d8749ca10aeeff0bb2eac9711a800b53
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
The simulation and reference api implementations were removed from
qtinterfaceframework module.
Change-Id: Iff7bcd4591d0e8955d2a96aa8fe31f2af103a0cb
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
New tool, svgtoqml, was added to qtdeclarative that depends on QtSvg.
Make qtsvg buildable for native and nativesdk, and add dependency to it.
Change-Id: I1778842f4562017580f148267a2a2390098c20f2
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
If Qt is configured to use 'relocatable' feature, QLibraryInfo will
at runtime try to determine its prefix path. If distro is using
usrmerge, Qt libraries are found from '/lib' before '/usr/lib' causing
Qt to use wrong prefix '/' when Qt was configure with '/usr' prefix.
With Yocto builds, we have no need for the relocatable feature,
disable it to avoid issues in usrmerge distros.
Pick-to: 6.6 6.5
Fixes: QTBUG-119140
Change-Id: Ied2ca04b5d46cff5d4bed1c456e95235156c58f0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Assimp is now updated to version that has the patch applied.
Change-Id: Ib33974d44ada36f79d73f81689fb91cd6d94a355
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Issues resolved and the tests can be enabled.
Pick-to: 6.6 6.5
Change-Id: I8c8c0ad8b9864589ed4248a9157159bb55d26407
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Issues resolved and the tests can be enabled.
Pick-to: 6.6 6.5
Change-Id: I052259b23b9836e84faa07be9123078b5bdb7d2d
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Issues resolved and the tests can be enabled.
Pick-to: 6.6 6.5
Change-Id: Ia50bf85c006fef63a65762bd37204f86299e7bf9
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Make run-ptest script correctly log passed and failed tests.
Set env variables to make more tests pass correctly.
Pick-to: 6.6 6.5
Change-Id: I3c23a0a093b396df6b88aedc51a15a871f1ba9e9
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Update qtgrpc to latest revision. It reverts
"Require protobuf 3.12 as the minimal supported version"
which causes qtgrpc-native link error.
Change-Id: I186b3dd42460f623e3dd210f2e9bb33fbf120554
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
The workaround for long rsp file is an old patch
from qt5 times, which should not be needed in qt6
as used toolchains are in-source, therefore created
toolchain labels and later rsp files should not embedded
absolute paths, but simply use 'build/toolchain/yocto'
as this is a location of yocto toochain with-in source
tree.
The second patch is fixed in 112-based in 29354c7c7de.
Task-number: QTBUG-59769
Change-Id: I94a610c4562463f5de3f8bbb29915e05cf40e640
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
(cherry picked from commit bdbb28f362)
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Amend 95fa269ffa and add same workaround
also for the commercial packagegroup to prevent QA error: "An allarch
packagegroup shouldn't depend on packages which are dynamically renamed."
Pick-to: 6.6 6.5
Change-Id: I6eaee9aa74681cfb70fb738d966cd7381f4bcdb0
Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
Since meta-openembedded and meta-python are now dependencies,
we can simplify some of the recipes that were checking if the
layers were available. Now always use the features available
from those layers.
Pick-to: 6.6 6.5
Change-Id: Ia70658e0c64b916c9d36ad9aca4c40172b86b5b6
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
QtGraphs no longer requires opengl to work.
Pick-to: 6.6
Change-Id: I03e166dc2d4265b74156f17d56ba4e20bc180bfd
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
The eglfs EglDevice platform plugin is used only in NVIDIA boards.
Add separate PACKAGECONFIG so it can be disabled by default,
otherwise it gets built whenever kms is enabled.
Pick-to: 6.6 6.5
Change-Id: I98b56f4ff1c9dc04a0c0df3ab51f908608c52fbd
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Use of execinfo has been fixed in the module, no need
to add flags here.
Change-Id: I65bbb6e304c59d345e2425f5e9da7f8006479925
Reviewed-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Starting with Qt 6.7, Qt OPC UA comes with a data type generator.
Add support for native and nativesdk builds.
Change-Id: Ia840870417e39862f04f02ba8da868a5659acd14
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Without at-spi2-core the SPI bridge API is not being built.
Pick-to: 6.6 6.5
Change-Id: I49232f933b96597fba721473dd7dcf894d60d9cd
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
QtMultimedia can use FFmpeg, but it has has somewhat problematic license
and user must accept it before it can be built. Enable FFmpeg backend
by default only if the license has been accepted in LICENSE_FLAGS_ACCEPTED.
Pick-to: 6.6 6.5
Change-Id: If23ee18fa7ac7f92f58bf9d09d8e96aedd08b625
Reviewed-by: Inkamari Harjula <inkamari.harjula@qt.io>
This reverts commit fd946afc0a.
Fix was merged in qtbase.
Change-Id: I16c05ad1f681a8a92b83c2bad6aa69de8ab2e35f
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
execinfo is not part of main C library on musl, but we do have a package
providing that, therefore depend on it when using musl.
Change-Id: I99b1651b5a8096a3014be3588a84e21ddac1c761
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
qsb needs spirv-tools when -O flag is given, but it is not pulled in
recipe-sysroot-native due to missing dependency. It causes qsb files
are not created as output. Errors like below can be seen with a small
tweak that makes qsb run with no -s flag.
[1/218] cd /home/noelma/work/webos/build-webos/BUILD/work/x86_64-linux/qtdeclarative-native/6.7.0-r0/build/src/quick && /home/noelma/work/webos/build-webos/BUILD/work/x86_64-linux/qtdeclarative-native/6.7.0-r0/recipe-sysroot-native/usr/bin/qsb --glsl 100es,120,150 --hlsl 50 --msl 12 -b -O -o /home/noelma/work/webos/build-webos/BUILD/work/x86_64-linux/qtdeclarative-native/6.7.0-r0/build/src/quick/.qsb/scenegraph/shaders_ng/8bittextmask.frag.qsb /home/noelma/work/webos/build-webos/BUILD/work/x86_64-linux/qtdeclarative-native/6.7.0-r0/git/src/quick/scenegraph/shaders_ng/8bittextmask.frag
spirv-opt -O /tmp/qsb-XOAphY/qsb_spv_temp -o /tmp/qsb-XOAphY/qsb_spv_temp_out
Failed to run spirv-opt -O /tmp/qsb-XOAphY/qsb_spv_temp -o /tmp/qsb-XOAphY/qsb_spv_temp_out: Child process set up failed: execve: No such file or directory
Pick-to: 6.6 6.5 6.2
Change-Id: I49c88711be4ca09425fa71f8ce8eda88256370f6
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
lcl_maybe_fortify might be empty, which would make sed fail during
do_install. Workaround this by adding space to the substitution
pattern.
Fixes: QTBUG-115588
Pick-to: 6.6 6.5 6.2
Change-Id: Ic6c5a6c80011dfefc92e1b2d7aadc48cce82ed7a
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Examples now have dependency to QtSvg, include it if examples
are enabled.
Pick-to: 6.6
Change-Id: Ie049a282456f3647b280b788a3a589c74aeedeba
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Using int caused a compilation error with GCC 12.
Fixes: QTBUG-115981
Change-Id: I82107b143995ced6de0facb41e9964e42148d402
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit 7d72d5053a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Now using 112 branch.
Change-Id: I193759ca61b6b09c23865a54cb6be3477e67e849
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit d40da8f6cb)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
sqlite3 is too old for the current code in qtbase.
Change-Id: I53d31b8d247590a45bf20971758be31f3404629e
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Add runtime dependency to spirv-tools as the qsb utility can use
spirv-opt at runtime. Cannot include it for mingw32 toolchain
as compilation fails.
To support dunfell, add BBCLASSEXTEND append to the spirv-tools.
Fixes: QTBUG-113210
Pick-to: 6.6 6.5 6.2
Change-Id: Icce264b1f2bff5f56cf2b40a0420c5001493e236
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
If examples are only using QML modules, the package manager won't
add automatic dependency to either the main or -qmlplugins packages,
and those might not get installed to the image. Add the runtime
dependency explicitly for the examples package.
Fixes: QTBUG-115310
Pick-to: 6.6 6.5 6.2
Change-Id: I5b713d3a65f794da1ab0113cf1d7f69035e29288
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
qtwebview has direct build dependency on qtwebengine and it can be tried
to build in world builds since it does not have same restrictions on
supported hosts as qtwenengine, therefore match it.
Change-Id: I018471bacc232349a5763822daf3131ae32f17c0
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
meta-qt6 plans to use conan have not materialized
Change-Id: I038dcf17729e4706f5319ddd3e0f33d4a5facc2d
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
QDoc depends on libclang and using clang toolchain causes build error:
| CMake Error at qttools/6.6.0-r0/recipe-sysroot/usr/lib/cmake/Qt6/QtToolHelpers.cmake:623 (message):
| Failed to find the host tool "Qt6::qdoc". It is part of the Qt6ToolsTools
| package, but the package did not contain the tool. Make sure that the host
| module Tools was built with all features enabled (no explicitly disabled
| tools).
because libclang was found for qttools-native, but not for the target.
Add PACKAGECONFIG that can be enabled when using clang toolchain
if there is need for the qdoc, but otherwise keep it disabled.
Pick-to: 6.6 6.5 6.2
Change-Id: Idc4e35936511ef0c208d7e8fd6f8fc51f3f8a1e2
Reviewed-by: Martin Jansa <Martin.Jansa@gmail.com>
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Reviewed-by: Khem Raj <raj.khem@gmail.com>
Add PACKAGECONFIG options for gold and bfd linkers so that they can
be easily changed independently of the ld-is-gold DISTRO_FEATURE.
For CI builds, drop ld-is-gold feature and instead enable gold only
for Qt modules.
Pick-to: 6.5
Change-Id: I63e3835f15c732f57740b6718245e4f45ddb6c8c
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Qt expects to have UTF-8 locale available. If the current locale
is not UTF-8, Qt will try to use C.UTF-8 locale. Make that available
by adding RRECOMMENDS to locale-base-c package.
Task-number: QTBUG-113371
Pick-to: 6.5 6.2
Change-Id: I48f18488413168afbeffddb9eac58985d1b8a988
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
* fixes:
http://errors.yoctoproject.org/Errors/Details/704200/
qt3d/6.5.0-r0/git/src/3rdparty/assimp/src/code/AssetLib/FBX/FBXBinaryTokenizer.cpp:475:61: error: 'uint32_t' is not a member of 'std'; did you mean 'wint_t'?
475 | if (!is64bits && (length > std::numeric_limits<std::uint32_t>::max())) {
| ^~~~~~~~
| wint_t
Pick-to: 6.5
Change-Id: I503f18ae93a24fe08b66827b4ab2dc5b7562819a
Reviewed-by: Martin Jansa <Martin.Jansa@gmail.com>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
If LibTomCrypt is available, Qt VNC Server will be built with support
for password protection using DEC Authentication.
Pick-to: 6.5
Change-Id: Id866d1facbbff0a50c39fe2e440e64e3cca8a579
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
This reverts commit 0300ccc33f.
Reason for revert: available upstream
Change-Id: I1e9f1257cfc50d412d2e4c2f2b018b1ea596e890
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Add (upstream pending) patch to fix build issue in the module:
"error: format not a string literal and no format arguments [-Werror=format-security]
| 194 | QTest::addRow(rus.id().constData())"
Change-Id: I4cedc32cca000fc217e88a8a832c258e60a0cb4f
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Refresh patches to fix build after latest submodule update.
Change-Id: I7f4e5d05287af89332b104b5a74f7ea93d049baa
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit c97feb4696)
Enable workaround for the sanity check of allarch packagegroups
which caused
ERROR: nativesdk-packagegroup-qt6-toolchain-host-essentials-1.0-r0
do_package_write_rpm: An allarch packagegroup shouldn't depend on
packages which are dynamically renamed (nativesdk-qttools-dev
to nativesdk-libqt6uitools-dev)
Nativesdk changes the PACKAGE_ARCH correctly, but it cannot be
inherited first because that would throw another sanity warning.
Pick-to: 6.5 6.2
Fixes: QTBUG-113178
Change-Id: Ifd77ef76f37b9fe39ef38adcc28c87130bf6d6d4
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
QtGraphs has hard dependency to opengl, don't include it in packagegroup
unless DISTRO_FEATURE is enabled.
Change-Id: I86ea98c7dd70d25ba20b348681e3c17e782c9576
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Remove separate dmabuf PACKAGECONFIGs and let qtwayland
enable all client buffer integration plugins it can.
Task-number: QTBUG-112725
Pick-to: 6.5
Change-Id: Ic841f3349fee36e5207d9b60e5733ac8ee79ee56
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Qt Graphs for data visualization will be replacement for Qt Datavis 3D.
Fixes: QTBUG-112806
Change-Id: I63e5c746a1e79c14a7e203800d60401497e5bb0d
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
* all rdepends are skipped without Commercial Qt, make sure the
packagegroup is skipped as well
* fixes:
ERROR: Nothing RPROVIDES 'qmlcompilerplus' (but meta-qt6/recipes-qt/packagegroups/packagegroup-qt6-commercial-modules.bb RDEPENDS on or otherwise requires it)
qmlcompilerplus was skipped: Available only with Commercial Qt
NOTE: Runtime target 'qmlcompilerplus' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['qmlcompilerplus']
ERROR: Nothing RPROVIDES 'qtvncserver' (but meta-qt6/recipes-qt/packagegroups/packagegroup-qt6-commercial-modules.bb RDEPENDS on or otherwise requires it)
qtvncserver was skipped: Available only with Commercial Qt
NOTE: Runtime target 'qtvncserver' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['qtvncserver']
Pick-to: 6.5 6.4
Change-Id: I373c034989a643b5e95f84deb5130580201eddea
Reviewed-by: Martin Jansa <Martin.Jansa@gmail.com>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Add python-html5lib to the SDK only if openembedded layer is available.
Pick-to: 6.5
Change-Id: I381382c355e2834c2aadd5976e59007be0549ac9
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Some components use also base name in NVD CVE database product:
| sqlite> select * from products where product like 'qtbase';
| CVE-2019-18281|qt|qtbase|5.11.0|>=|5.11.3|<=
| CVE-2019-18281|qt|qtbase|5.12.0|>=|5.12.5|<
| sqlite> select * from products where product like 'qtsvg';
| CVE-2021-45930|qt|qtsvg|5.0.0|>=|5.15.2|<=
| CVE-2021-45930|qt|qtsvg|6.0.0|>=|6.2.1|<=
Pick-to: 6.5 6.4 6.2
Change-Id: Ic8cbc59522731f49907e10bf08c6a00a213ae006
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
This reverts commit 8673fed36e.
Fix has been merged in qtbase.
Change-Id: I76080c148d29090254d5be613469ac48532031c7
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
QtSpeech now has hard dependency to QtMultimedia.
Change-Id: I61e2d73c004b225678c040c0096c38c2ea8597a7
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This reverts commit 36006c9897.
CMake configuration was fixes in qtbase.
Change-Id: I036e1045a4ea79a864a02afe81e7e477d23a7a86
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This is required by qtwebenigne to be compiled with sdk.
Pick-to: 6.5
Change-Id: I0053ca241c1b60b60edbc99f0830434a1d95f92d
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
QtMultimedia provides gstreamer and ffmpeg backends where ffmepg is the
default backend. Add configuration that allows changing the default
backend and make gstreamer the default one.
Pick-to: 6.5
Change-Id: I1d9f8916508ddf11c1ef2908543d77e12acdf0bc
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Posix shared memory feature depends on librt which is used from
uninative package in native build. CMake doesn't find it there,
which breaks the build. Workaround this by disabling the feature.
Task-number: QTBUG-111049
Change-Id: I68ab6fd2f4d0520f125dd8e3c13266477dfc26c1
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Most targets can already use the kms/gbm platform plugins, so enabled
them by default. Targets that don't provide them can override the
PACKAGECONFIG_GRAPHICS to define which graphic backend they support.
Pick-to: 6.5
Change-Id: I85b310608772884134a63138781aad9fa1220110
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Add a global variable that can be used whenever meta-qt6 layer is
included in the build to identify the Qt version.
Pick-to: 6.5 6.4 6.2
Change-Id: I3d40d151e0be9f9123d2bf7cbe34a44861e7b093
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Add fix for protobuf so that we can build and include nativesdk-qtgrpc
in the toolchain. The protobuf fix has been merged in meta-openembedded
master, but not in langdale.
Pick-to: 6.5
Change-Id: I37a90e1a79d64a8154ab6fb510a9d8d5cf6d26c5
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
A new catalogs.json file is created for deployment purposes.
Include it a dev package.
Change-Id: I2e28c9ee886d8f09a79c5f13cf38e47cb2dc81f0
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
(cherry picked from commit b6928361f7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Both xkbcommon (for keyboard handling) and glib (for eventloop)
are useful also without X11. Move them to default PACKAGECONFIGs.
Pick-to: 6.5
Change-Id: Ib298a0916d781fd11c0e4ad53dc642734d60ca3b
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Qt might be using different path to libs.
Pick-to: 6.5 6.4 6.2
Change-Id: Iaf0721af1c5e74cd293437cb35c287bd820fa3a5
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Some of the scripts were moved to libexec dir, which must also
be patched.
Pick-to: 6.5
Change-Id: I2099f61f8dbdf8d4eed010de146f18146585a40e
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
The ffmpeg backend is now the default backend for qtmultimedia.
Environment variable QT_MEDIA_BACKEND can used at runtime to
selected between the ffmpeg and gstreamer backends.
Pick-to: 6.5
Change-Id: I751737fd7adaeeceb58e889765435750f3c3f274
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
The qmake mkspec additions are used with the sdk when the toolchain
environment-setup script hasn't been run. Instead of adding those in
the sdk creation phase, do it already in the qtbase recipe.
Change the mkspec also so that CC/CXX has only the compiler executable,
but none of the compile flags that usually are there in Yocto builds.
This keeps Qt Creator happier as well.
Pick-to: 6.5 6.4 6.2
Task-number: QTCREATORBUG-27372
Change-Id: If27d595965df59ff9846f4c773469889a8480040
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Update/replace previous version update commit
35cf4c22b1, dev branch
is the future 6.6.
Change-Id: I7a57abbf64a5219271dc7fbf5a9fe84de1d038a3
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>