Commit Graph

79372 Commits

Author SHA1 Message Date
Markus Volk
21ac8be01f autoconf-archive: add backport patches to fix gl and glx detection
Detecting opengl using autoconf-archive currently fails:
| aclocal: warning: couldn't open directory 'm4': No such file or directory
| configure.ac:306: error: _AX_CHECK_GL_MANUAL_LIBS_GENERIC: argument must not be empty
| ../sources/autoconf-2.72/lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
| ../sources/autoconf-2.72/lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
| /home/flk/poky/build/tmp/work/corei7-64-poky-linux/cava/0.10.4/recipe-sysroot-native/usr/share/aclocal/ax_check_gl.m4:187: _AX_CHECK_GL_MANUAL_LIBS_GENERIC is expanded from...
| ../sources/autoconf-2.72/lib/m4sugar/m4sh.m4:595: AS_CASE is expanded from...
| /home/flk/poky/build/tmp/work/corei7-64-poky-linux/cava/0.10.4/recipe-sysroot-native/usr/share/aclocal/ax_check_gl.m4:253: AX_CHECK_GL is expanded from...
| ../sources/autoconf-2.72/lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
| ../sources/autoconf-2.72/lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
| configure.ac:306: the top level
| autom4te: error: m4 failed with exit status: 1

This issue has already been fixed upstream, but there has been no new release since then.

(From OE-Core rev: a1dce757f95fd13d80593bb6227315aacd29f5aa)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Mingli Yu
dd43f638e9 ovmf: Don't define bool type if building in C23 mode
Backport a patch [1] to fix the below build failure:
 /buildarea/tmp/work/corei7-64-wrs-linux/ovmf/edk2-stable202502/sources/ovmf-edk2-stable202502/SecurityPkg/DeviceSecurity/SpdmLib/Include/hal/LibspdmStdBoolAlt.h:13:17: error: two or more data types in declaration specifiers
 13 | typedef BOOLEAN bool;
 | ^~~~
  /buildarea/tmp/work/corei7-64-wrs-linux/ovmf/edk2-stable202502/sources/ovmf-edk2-stable202502/SecurityPkg/DeviceSecurity/SpdmLib/Include/hal/LibspdmStdBoolAlt.h:13:1: error: useless type name in empty declaration [-Werror]
  13 | typedef BOOLEAN bool;

[1] 772fa11ac8

(From OE-Core rev: 24600013b65c954bd704a6eb673197ac06b87f69)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Gyorgy Sarvari
cf32779ebd webkitgtk: upgrade 2.48.2 -> 2.48.5
Changelog:
2.48.5:
Fix several crashes.

2.48.4:
Improve emoji font selection with USE_SKIA=ON.
Improve playback of multimedia streams from blob URLs.
Fix the build with USE_SKIA_OPENTYPE_SVG=ON and USE_SYSPROF_CAPTURE=ON.
Fix the build on LoongArch with USE_SKIA=ON.
Fix crash when using a WebKitWebView widget in an offscreen window.
Fix several crashes and rendering issues.

2.48.3:
Fix a crash introduced by the new threaded rendering implementation using Skia API.
Improve rendering performance by recording layers once and replaying every dirty region in different worker threads.
Fix a crash when setting WEBKIT_SKIA_GPU_PAINTING_THREADS=0.
Fix a reference cycle in webkitmediastreamsrc preventing its disposal.

(From OE-Core rev: 0b1828a3f6cbdf3b4d444d30ca3ab37bd98bb419)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Khem Raj
ea62c089c8 musl: Update to tip of trunk
Brings following fixes

* 8fd5d031 aarch64: mask off SME and unknown/future hwcap bits
* 709fee55 aarch64: replace asm source file for __set_thread_area with inline asm
* bd981f33 elf.h: add AT_HWCAP3 and AT_HWCAP4
* f96e47a2 printf: fix regression in large double formatting on ld128 archs
* caae5a8b fix register name usage in aarch64 clone.s
* ab4635fb make __getauxval a public ABI symbol
* fcdff46a statx: add Linux 6.11 fields/constants
* 18289e5d ldso: fix typo in comment
* 86373b49 powerpc: update HWCAP bits for Power10
* fde29c04 stdio: skip empty iovec when buffering is disabled

(From OE-Core rev: 933f03de1bdbb2f28baa18081b9c5925978f28e3)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Gyorgy Sarvari
294a018390 quota: upgrade 4.09 -> 4.10
Drop 0001-Fix-building-on-musl.patch, because it is included in this release.
Add backported 0001-setproject-Fix-openWRT-build.patch, which adds a missing header
to prevent build failure with musl.

Changelog:
- Update Polish translation
- quotasys: Make detection of QF_META format work for bcachefs
- quotaio_xfs: Fix memory leak
- setproject: Add support for bcachefs REINHERIT_ATTRS ioctl
- setproject: Simple utility for setting projects on files/directories
- Move user/group/project name translation into common.[ch]
- Add support for bcachefs
- Fix building on musl
- quotaio_xfs: Convert remaining quotactl(2) calls to quotactl_handle()
- quotaio_xfs: Fix quota-tools on XFS
- quotaio_xfs: Fix error handling in xfs_read_dquot()
- Disable BSD_BEHAVIOUR by default
- quotaops: Checking egid with BSD_BEHAVIOR
- Enable support for tmpfs quotas
- Add quotactl_fd() support
- Rename searched_dir->sd_dir to sd_isdir
- quota-nld: fix open PID file failed when systemd read it
- edquota: Fix editing of individual user grace times
- setquota: Avoid false error messages when setting grace times
- Make configure.ac POSIX compliant
- Update required gettext version

(From OE-Core rev: 5b969aad69649ce2e06ccbb62ca3afa49c3aea37)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Gyorgy Sarvari
ee32575f2a gnutls: upgrade 3.8.9 -> 3.8.10
Skip compress-cert-conf test when running ptests, because it requires
gnutls to be compiled with brotli PACKAGECONFIG, however brotli is not
part of oe-core.

Changelog: https://gitlab.com/gnutls/gnutls/-/blob/master/NEWS

(From OE-Core rev: 2ad41436acdc5f37803ade51c98ae0dc06103e45)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Khem Raj
bcdcc5e169 fmt: Fix build with clang-21
Backport a fix from upstream master branch

(From OE-Core rev: 9cc8092b287b8df957c5ae6503f4ef35edba5871)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Khem Raj
02b3910444 cargo-c: Update patches to latest versions
getrandom patch is accepted upstream with minor changes
parking_lot patch has addressed upstream feedback

(From OE-Core rev: 9f0f41d8e3fe00df37d926d99fb490614b51dde7)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Khem Raj
d77397719e toolchain/clang-native: Set BUILD_LDFLAGS instead of LDFLAGS
BUILD_LDFLAGS is used by other recipes to emit native LDFLAGS
into their cmake toolchain files especially in QT layers. it
will usually be inherited by recipes wanting clang provide
BUILD_* variables so this is more appropriate than LDFLAGS to
pass these options.

(From OE-Core rev: f258d6e437a68bfd8a46f185cbeb17bfcccf940b)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
9814623387 python3-unittest-automake-output: upgrade to 0.3
The patch is merged in this upgrade, so remove.

(From OE-Core rev: 61e6a3b59fa4679a0259a92cc82554f59d3d7fd0)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Gyorgy Sarvari
8bb6f70acb nettle: upgrade 3.10.1 -> 3.10.2
dropped 0001-getopt-Fix-getopt-getenv-signatures-in-declarations.patch, as
it is fixed in this release.

Changelog:
https://git.lysator.liu.se/nettle/nettle/-/blob/master/ChangeLog

ptests passed:
All 116 tests passed
DURATION: 2
END: /usr/lib/nettle/ptest
2025-08-01T14:21
STOP: ptest-runner
TOTAL: 1 FAIL: 0

(From OE-Core rev: e02f67fadd6310e1ce9d2313b3b3f9cad59f3696)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
8369e8c4c2 python3-build: simplifly native bootstrap
The pep517 class no longer called the "build" module directly, so we
can't play games with PYTHONPATH here.

However, the flit_core class has a bootstrap method so this recipe can
use that instead.

(From OE-Core rev: ae85c85b28fd01591ace2f48159cdc7fbc05a26a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
f695ef07d3 classes/python_pep517: use pyproject-build instead of nativepython3
The build package installs an entry point now, so we run that instead of
calling the module directly.

(From OE-Core rev: e064e71b4003666de1644f8e3c08ed6844d710e5)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
5e22ec20b4 Revert "python_setuptools_build_meta: clean the build directory in configure"
This is not needed: setuptools.build_meta does the build under a new
temporary directory.

This reverts commit ad488915b0.

(From OE-Core rev: a532cb50151d773c1c351ffccf4d47a37f26f8aa)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
ceb9efb446 mpfr: drop dependency on autoconf-archive-native
The tarball includes the relevant M4 macros, so autoconf-archive is not
needed to reconfigure.

(From OE-Core rev: 82c96be0ccda5077d279c1182875d14f16bb6e7b)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
4d6f66bd81 icu: drop dependency on autoconf-archive-native
The tarball includes the relevant M4 macros, so autoconf-archive is not
needed to reconfigure.

(From OE-Core rev: fedce59511b41d772a394dba5a5abf27e0a0ac05)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
18fba5eb05 libx11: drop dependency on autoconf-archive-native
The tarball includes the relevant M4 macros, so autoconf-archive is not
needed to reconfigure.

(From OE-Core rev: 587c42e7f61a0bda04add1e8252f049a8ddf4087)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
4b6da73a2c dbus: remove autoconf-archive-native DEPENDS
This recipe uses Meson to build now, so it doesn't need autoconf-archive
anymore.

(From OE-Core rev: a310fc7520d057079d7a771aaa93fc7678eabb72)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
396e0cdd2d neard: recipe tweaks
The canonical git repository is on GitHub now, 01.org doesn't exist, and
one of the patches has been upstreamed.

(From OE-Core rev: cf9c56d772443ee79cf9ad6e40061b6399ceccdf)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Khem Raj
3f941cbcb8 clang: Add packageconfig knob for opt-viewer
The optimization viewer is a web-based tool that helps developers visualize
and analyze LLVM's optimization passes. It generates reports showing
Which optimizations were applied to specific functions.
Why certain optimizations were or weren't performed.
Performance remarks and missed optimization opportunities
Interactive views of the optimization pipeline.

Its a nice add-on, keep it disabled by default.

(From OE-Core rev: 70c43e35fb7ce0b71f28a91a1864f02338545522)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Ross Burton
f7a6163d4f libclc: do native build of prepare_builtins in a fresh environment
The environment has variables like LDFLAGS set which CMake will try and
use, so until our cmake class is comprehensive enough to nuke those in
the native toolchain file (if that is possible) do a build inside a
clean (apart from PATH) environment to avoid cross-contamination.

As noticed by Khem Raj, this can fail in nativesdk builds as the target
flags will be passed to the native link resulting in failures like:

  Requesting program interpreter: /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-yoesdk-linux/lib/ld-linux-x86-64.so.2

(From OE-Core rev: 0013f501d1de01606b812d930ef6ca842633f551)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-07 12:11:15 +01:00
Richard Purdie
b3991a4554 genericarm64/genericx86-64/heabglebone-yocto: Default to zstd compressed image output
We want to release compressed images since these are much easier for
users to download. Change the default generated output to match this
and build the output we want to release directly.

One test needs tweaking to since it uses an uncompressed image.

(From meta-yocto rev: 506379cb241e6a865139307e06216a07f737b602)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:33:00 +01:00
Richard Purdie
45f3bdce44 bitbake/conf: Default to zstd compressed image output
Switch our default qemu images to use .zst compressed images by default
since this is the output format we release during the release process
and is the one that users would prefer to download. This makes the release
process use the actual generated output from the system and avoids post
processing.

(From OE-Core rev: aa5f60d1fcb716a2b2174dffcaf35442bff1f1fb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:32:42 +01:00
Richard Purdie
b5f38c5ce3 oeqa/selftest/runqemu: Use snapshot mode for image testing
We don't need to preserve changes to these images so use snapshot mode
so we don't save writes to them.

(From OE-Core rev: da939d122fc77c86f13a087a387edaa8d39d9dbb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:32:41 +01:00
Richard Purdie
23174f6494 scripts/runqemu: Update the fstypes list with newly supported compressed images types
Update the interal list of types within runqemu with the newly added
compression formats it supports.

This fixes autodetection of qemuboot file locations.

(From OE-Core rev: 46b9a1c74df00f76f7c19b5ed27e6a569aaabb5e)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:32:41 +01:00
Richard Purdie
b8fef12210 oeqa/qemu: Add compressed image types that are now supported
Add compressed image types that are now supported to the supported
fstypes list.

(From OE-Core rev: 2e2406213347ad294e301de45ff5be59292bdc3b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:32:41 +01:00
Yoann Congal
b034dcc314 runqemu: print snapshot mode state in console
With snapshot enabled, no change on rootfs will be saved after qemu
shutdown. Since this is not what a user might expect, print the snapshot
mode state and its consequence in console at runqemu start.

(From OE-Core rev: 57fe8538a87ff1f69f274d9692f038caed6cb5cd)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:32:41 +01:00
Yoann Congal
60676f12f2 runqemu: accept vmtypes and wictypes for rootfs paths extensions
When using a .wic.zst image, its fstype is detected by default as
".zst" which prevent booting correctly.

Fix this by adding wictypes (and vmtypes while at it) to the list of
known fstypes. After this fix, the initial fstype is correctly ".wic.zst".

(From OE-Core rev: 26b0922977d1bfcf47bbccf624be86e9e2b8815a)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:32:41 +01:00
Yoann Congal
89bd495091 selftest: runqemu: add tests for booting zst compressed image
Add a simple tests booting a compressed image given to runqemu as path
and as image recipe name.

(From OE-Core rev: b5f8c3e02980df0e8e44de32ed8b3b869a1fcd83)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:32:41 +01:00
Lamine REHAHLIA
820a6edcec runqemu: Add support for running compressed .zst rootfs images
Enhance runqemu to detect and decompress .zst-compressed rootfs images
(e.g. ext4.zst, wic.zst) automatically. If a decompressed image already
exists in the original directory, it will be reused to avoid overwriting
build artifacts. Otherwise, the image is decompressed and removed after
the QEMU session ends.

This allows runqemu to be used seamlessly with compressed image formats
generated by the build system or during releases.

Note: support for .zst images is only available when snapshot mode is
enabled

IMPORTANT:
This patch assumes that the original directory of the .zst-compressed
image is writable. If, for some reason, the path passed from CI or
another system to the script is read-only, the decompression step will
fail when trying to write the uncompressed image to the same directory.

(From OE-Core rev: e069fe2480c871c649b83f6278564a553cc3dd58)

Signed-off-by: Lamine REHAHLIA <lamine.rehahlia@smile.fr>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:32:41 +01:00
Michael Halstead
d4b949b178 yocto-uninative: Update to 4.9 for glibc 2.42
(From OE-Core rev: 3bf918491375db55de00e8fe9c501f63759eedd9)

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 22:30:36 +01:00
Khem Raj
531cce6878 glibc: Upgrade to 2.42 release
* GCC 12.1 or later is now required to build the GNU C Library.
* GNU Binutils 2.39 or later is now required to build the GNU C Library.
* Support for lightweight stack guard pages via madvise and the
  MADV_GUARD_INSTALL flag has been added to pthread_create.
* This is major release, changelog [1]

[1] https://sourceware.org/pipermail/libc-announce/2025/000048.html

(From OE-Core rev: 7c55e2da96f40ee0e40f6fd534573ce64013145c)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-06 17:01:23 +01:00
Richard Purdie
903710ab5c clang/meta-ide-support/meta-extsdk-toolchain: Add missing MLPREFIX
'cross' dependencies are hard, the code currently handles adding MLPREFIX
in these cases but may not in future depending upon implementation.

Add the correct value explictly.

(From OE-Core rev: 8393be1792cee0fbe76d75fd20a97dda41134880)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Ross Burton
844e2ebbfc clang: split lld into a separate lld recipe
The lld linker is a standalone project under the LLVM umbrella that just
depends on libLLVM and nothing else, such as clang.

To reduce the build time of clang if lld is not being used, split it out
into a separate recipe.

To ensure that lld is present if needed, the clang-cross recipe will
depend on lld-native if ld-is-lld is enable.

(From OE-Core rev: 5212b69f892af8c9b080fee2c21533a2bbdd2755)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Peter Marko
2239c2c91a oeqa: do not fail when sdk package is not available
Prior to commits:
* 11277efd057685558a744e98082b5709e849dd2a
* d0e8b83d05957b1f22d08582e364afa4b522801e
the tests were skipped if package was not available.
Now the code calls function ensure_host_package which says
"try to sdk-install missing dependencies", however in fact for sdkext it
causes a failure if the installation is not available.

Since maturin is not installed in any image, it cannot be installed
unless it's downloaded from sstate-cache mirror populated by a world
build. These builds are however now not done for powerpc and mips.
IT also does not work in local builds without sstate-cache mirror.

Fix this by skipping the test if the package cannot be installed to
match the original behavior before those commits.

(From OE-Core rev: bd2096c89a4a00927a52d07145aad528dc86b81c)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Cc: Ross Burton <ross.burton@arm.com>
Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Peter Marko
1987d7943e oeqa: fix OETestCalledProcessError for check_output method
Per documentation, subprocess.CalledProcessError exception has stderr
filled out only for run method, it's None for check_output method.
So serialize it only if it's not None.

Avoids:
  File "<poky-dir>/meta/lib/oeqa/utils/subprocesstweak.py", line 15, in __str__
    s = s + "\nStandard Error: " + strify(self.stderr)
        ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "NoneType") to str

(From OE-Core rev: d13f444468b4b10f913b3cf01d7d13ef9d42838e)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Ross Burton
752eca419d dbus: remove obsolete cleanups
The removal of the Red Hat initscript has been redundant since 2017[1].

The test directory is not installed, so there's no need to remove it.

(From OE-Core rev: 904b6967ad4730ae32aad785d6b53ca3f5af2cd4)

Signed-off-by: Ross Burton <ross.burton@arm.com>

[1] dbus: 708a44d0 ("Remove distribution-specific init-scripts")

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Ross Burton
ab1c97e4e9 systemd: explicitly disable dbus
This is actually only used in a single test that we don't build, so
explicitly disable DBus instead of offering a PACKAGECONFIG that doesn't
do what you might expect (enable some systemd/dbus integration).

This doesn't change behaviour as this option wasn't enabled by default.

(From OE-Core rev: bed605e7cd095f210e24f1e07dab6f814d0bbb59)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Gyorgy Sarvari
bb51be6fbf gdbm: upgrade 1.24 -> 1.26
Removed c11 flag, as it seems to build fine now with default flags.

ptests passed:

All 38 tests were successful.
DURATION: 11
END: /usr/lib/gdbm/ptest
2025-08-01T18:37
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Changelog:

1.26:
- Fixed build with musl libc
- Fixed build on MacOS
- Improved testsuite

1.25:
- New function: gdbm_open_ext
This function provides a general-purpose interface for opening and
creating GDBM files.  It combines the possibilities of gdbm_open and
gdbm_fd_open and provides detailed control over database file locking.

- New gdbmtool command: collisions
The command prints the collision chains for the current bucket, or for
buckets identified by its arguments.

- Pipelines in gdbmtool
The output of a gdbmtool command can be connected to the input of a
shell command using the traditional pipeline syntax.

- Fix a bug in block coalescing code

(From OE-Core rev: 5f4c806ba9fe2385891b46098b313a858daf8103)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Khem Raj
474e912372 libstd-rs: Fix build regression on rv32
This started to fail with rust 1.88, due to rust libc
upgrade

(From OE-Core rev: f9145bc8bec77e1f454f80c4e5576567daa99ac8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Khem Raj
55c607068e clang: Remove dependency on swig-native
LLDB Uses SWIG to generate python bindings, however
LLDB is no longer part of clang anymore, its a
separate recipe.

(From OE-Core rev: deda1e227dbdcb04c7bfb0ad0afef6ff05674c4f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Ross Burton
82e0770588 clang: remove bootstrap logic
We don't bootstrap clang, so remove the logic to do so as it just
complicates the recipe.

(From OE-Core rev: 8fc6dd715debb242cf22e60078039c81d4da7c13)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Ross Burton
329d1b4dbe clang: remove ninja-native DEPENDS
The cmake class depends on ninja-native already.

(From OE-Core rev: 8ed6ce66de1b54b8129a9895d8cfaf2bb3c3bbb2)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Ross Burton
455e89f658 clang: remove redundant python3native inherits
None of these recipes need a native build of Python as they don't depend
on native Python modules, nor build Python modules against the target.

(From OE-Core rev: e0da53fca5ec30d883216bfb0be7d96ad597aa69)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Ross Burton
361b6482c0 clang: no need to depend on python3native/python3targetconfig
Now that lldb has been split out of the clang recipe, there's no need
for the clang recipe to have Python integration beyond the current
Python major version for installing the libclang bindings, which can be
done by simply inheriting python3-dir.

The installation of six.py was done by lldb, and was removed in LLVM 16.

(From OE-Core rev: 5cbe58c604233a0d367e1bb1e3fce0492ae0e836)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Ross Burton
dc1dd78b70 clang: don't install c-index-test
Specifically, c-index-test is a 35MB binary which isn't needed if we're
not running the tests.

(From OE-Core rev: a61c3ab08039d382ec2216b8a5deaf256d7bf9c5)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:04 +01:00
Ross Burton
24540125e3 clang: remove obsolete OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM
This was added by a certain Mr Burton back in 2016[1] to avoid needing
to depend on perl-native or python3-native, and use the host perl and
python.

However, perl is no longer needed and python3-native is depended on
because the Python bindings are build, so this is now redundant.

[1] meta-clang: 2e003cc ("clang: don't depend on native perl or python")

(From OE-Core rev: 540b02e0fb168fade2afc1d657463c7e0248ae94)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:03 +01:00
Ross Burton
aa1c6f7519 clang-cross: trim the recipes
As a single clang-native build is a cross-compiler for all targets, this
recipe should simply create target-prefixed symlinks.

As such, it doesn't need to pull in the common clang include files, or
set TOOLCHAIN.

Unsetting PACKAGES isn't needed as cross inherits nopackages.

The sysroot preprocessing is used to stage bindir, but cross recipes
already stage this directory.

There doesn't appear to be a need to copy clang, so these are now linked
too.

SSTATE_SCAN_FILES only works on actual files not symlinks, so setting it
is pointless.

(From OE-Core rev: 5d96ed55acf7b9a908241222097ad809355de7cf)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:03 +01:00
Ross Burton
c77b545ae1 classes/toolchain/clang: compiler-rt and libcxx are not target-specific
This file can be used for nativesdk builds, which if they are using the
clang toolchain will also need compiler-rt and libcxx.

(From OE-Core rev: 24c32edb1b29a0746bb4470fea11e87b8027d9f9)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:03 +01:00
Ross Burton
1722c4162c ccache: enable ccache for all recipes if it is in HOSTTOOLS
At the moment we don't allow ccache for native recipes to avoid the
dependency loop of native recipes needing ccache-native which then
depends on itself.

One way to avoid this dependency loop is to just provide a host ccache,
so enable ccache globally if ccache is in HOSTTOOLS.  This isn't set
out of the box, but does work.

(From OE-Core rev: cc91a0f6500e88dd96a56307226fcfd16c60c342)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-04 18:04:03 +01:00