summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
Commit message (Collapse)AuthorAgeFilesLines
...
* libxml2: upgrade 2.13.5 -> 2.13.6hongxu2025-02-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.6 Release notes Security [CVE-2025-24928] Fix stack-buffer-overflow in xmlSnprintfElements [CVE-2024-56171] Fix use-after-free after xmlSchemaItemListAdd pattern: Fix compilation of explicit child axis Regressions xmllint: Support compressed input from stdin uri: Fix handling of Windows drive letters reader: Fix return value of xmlTextReaderReadString again SAX2: Fix xmlSAX2ResolveEntity if systemId is NULL Portability dict: Handle ENOSYS from getentropy gracefully Fix compilation with uclibc (Dario Binacchi) python: Declare init func with PyMODINIT_FUNC tests: Fix sanitizer version check on old Apple clang cmake: Work around broken sys/random.h in old macOS SDKs Build autotools: Set AC_CONFIG_AUX_DIR cmake: Always build Python module as shared library cmake: add missing Bcrypt link on Windows (Saleem Abdulrasool) cmake: Fix compatibility in package version file (From OE-Core rev: 86e16b1081fbe12b4f53fc72bfdff5240da7321a) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: drop net-tools from defconfigEnrico Jörns2025-02-201-5/+5
| | | | | | | | | | | | | | The 'net-tools' have been deprecated 15 years ago! [1] Let's remove their busybox pendants from the defconfig to prevent people from accidentally starting projects with ancient technology. [1] https://lists.debian.org/debian-devel/2009/03/msg00780.html (From OE-Core rev: cad9d9671baf7f475e3c629d73badce4d509812e) Signed-off-by: Enrico Jörns <ejo@pengutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* udev-extraconf: Switch from ifconfig to ipRichard Purdie2025-02-201-1/+1
| | | | | | | | ifconfig is obsolete, drop the call and replace with ip instead. (From OE-Core rev: e18e29728ace57d7ef1409c3c13df9e1857af3ac) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ell: upgrade 0.71 -> 0.73Wang Mingyu2025-02-181-1/+1
| | | | | | | | | | | | Changelog: =========== - Add support for the Test Anything Protocol. - Fix issue with parsing hwdb.bin child structures. (From OE-Core rev: e03c3a2be28f67fe80e663a1eead9d43541fdf1c) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd/systemd-boot: upgrade from 257.1 to 257.3Chen Qi2025-02-185-125/+1
| | | | | | | | | | | 0001-ukify-measure-Revert-changes-to-use-SizeOfImage-from.patch is dropped as it is in the new version. (From OE-Core rev: 5c72734dc99d1287e805530d925a37c9aa70ba9d) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* psplash: update to latest revYi Zhao2025-02-181-1/+1
| | | | | | | | | | * 5a32cf6 psplash.c: fix crash from length becoming negative (From OE-Core rev: 1845f785359a689add866881286fdac38753e5bb) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to latest tip of trunkKhem Raj2025-02-181-1/+1
| | | | | | | | | | | | | | | | | | | * c47ad25e iconv: harden UTF-8 output code path against input decoder bugs * 4c4f15da hasmntopt: match only whole options not arbitrary substrings * e5adcd97 iconv: fix erroneous input validation in EUC-KR decoder * 5e594aea iconv: fix erroneous decoding of some invalid ShiftJIS sequences * 6af4f25b s390x: manually inline __tls_get_addr in __tls_get_offset * 5ccf05d8 ldso: don't reclaim zero-memory-sized segments * 1a985764 sched.h: reduce namespace conflicts in _GNU_SOURCE profile * d36e5bf8 mq: add x32-specific implementations to work around mismatched kernel ABI * 561cd07d SIGEV_THREAD timers: re-block signals when reusing kernel thread * 47fa6e4f SIGEV_THREAD timers: fix fatal signal if internal SIGTIMER becomes unblocked (From OE-Core rev: bfcc61f7b0ec42fafdcc7441bd50c8a75f456693) 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>
* libxcrypt-compat,libxcrypt: upgrade 4.4.37 -> 4.4.38Khem Raj2025-02-184-34/+1
| | | | | | | | | | | | Drop patch which is already applied upstream [1] since 4.4.20 [1] https://github.com/besser82/libxcrypt/commit/fed81d1a98fab52839b60a55447d368899034847 (From OE-Core rev: 7b802e4e55b37e985cc7151a8a8561b206563509) 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>
* util-linux/util-linux-libuuid: upgrade from 2.40.2 to 2.40.4Chen Qi2025-02-187-337/+198
| | | | | | | | | | | | | | | | | | | | | The following patch dropped because it is in the new version: - 0001-autotools-fix-securedir-and-pam_lastlog2-install.patch libfdisk-cfdisk-and-sfdisk-sector-size-improvements.patch is replaced by two new patches: - 0001-cfdisk-add-sector-size-commanand-line-option.patch - 0002-sfdisk-add-sector-size-commanand-line-option.patch This is because the original patch is a squash of four patches and two of them are in the new version. So extract the remaining two that are not in the current version and make them separate patches for better tracking. (From OE-Core rev: e87b9bccc52bfba0c48db4920c0996d7dd6a0866) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: fix header file conflict in case of multilibChen Qi2025-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | When enabling multilib for qemuarm64, populate_sdk would fail with the following error: Error: Transaction test error: file /usr/include/bits/indirect-return.h conflicts between installs of lib32-libc6-dev-2.41 and libc6-dev-2.41+ The problem could be reproduced by adding the following lines in local.conf and then run 'bitbake core-image-minimal -c populate_sdk': MACHINE ?= "qemuarm64" require conf/multilib.conf MULTILIBS ?= "multilib:lib32" DEFAULTTUNE:virtclass-multilib-lib32 ?= "armv7athf-neon" Use oe_multilib_header to handle bits/indrect-return.h to fix this issue. (From OE-Core rev: e13d464db8db4e0fdec6c076aecff5284a27c510) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* psplash: start via udev if framebuffer device detectedMikko Rapeli2025-02-184-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | psplash-start.service expected to find /dev/fb0 and failed if device was not found. This failure breaks systemd oeqa runtime test with "runqemu nographic". Starting psplash based on detected framebuffer device fixes systemd boot status and systemd oeqa runtime tests for qemu boots with and without graphics support. Note that psplash-systemd.service still depends on /dev/fb0 so startup with multiple framebuffer devices may not work correctly. I don't have devices with multiple framebuffer devices to test with. On qemu machine with graphics, psplash displays yocto logo correctly and boot progress bar as well. Once boot completes to systemd "running" state, the logo is replaced by login prompt. On qemu machine without graphics, boot completes without psplash or failures and login over serial console works normally. Tested with genericarm64 machine poky-altcfg distro and core-image-base image on qemu. AMD kv260 tested as well but graphics stack is not yet working there so boot is similar to qemu without graphics. (From OE-Core rev: 3820f6f342c2309ba7d51d3c08b3a951c2c17781) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* coreutils: upgrade from 9.5 to 9.6Chen Qi2025-02-181-2/+3
| | | | | | | | | | | | | Upgrade coreutils from 9.5 to 9.6. License-Update: Update copyright year (2024 -> 2025). Fix do_install_ptest for new version to avoid buildpath QA issue. (From OE-Core rev: b3de417033fda92956db093cf17a0b5134bd2f88) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cve-update-db-native: add the fkie sourceMarta Rybczynska2025-02-181-13/+113
| | | | | | | | | | | | Add support for FKIE-CAD reconstruction of NVD feed from https://github.com/fkie-cad/nvd-json-data-feeds We download this feed directly from github releases. (From OE-Core rev: f6253ac8189db09fbe87141aca1733cb37a4d78f) Signed-off-by: Marta Rybczynska <marta.rybczynska@ygreky.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cve-update-db-native: update structureMarta Rybczynska2025-02-181-7/+21
| | | | | | | | | | | | | | | Update the database structure and tasks to fit the current YP master. This means: - add the unpack task - update the database structure (CVSS, vector string) - use the temporary database in the same directory as the download However, the old feed does not include CVSS4 (From OE-Core rev: dd249921a5d6b8e472242b57415de3f210dc81f1) Signed-off-by: Marta Rybczynska <marta.rybczynska@ygreky.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cve-update-db-native: restoreMarta Rybczynska2025-02-181-0/+291
| | | | | | | | | | | Restore cve-update-db from kirkstone Use cve-update-db-native.bb from OE 8c10f4a4dc12f65212576e6e568fa4369014aaa0 (From OE-Core rev: c84e19edc15b622bfe4d7e268ca5cb18312f09d6) Signed-off-by: Marta Rybczynska <marta.rybczynska@ygreky.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ncurses: Fix install conflict when enable multilib.Wang Mingyu2025-02-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The setting of want_xterm_kbs is as following: case $host_os in (*linux-gnu|*cygwin|*mingw32|*msys) want_xterm_kbs=DEL ;; (*) want_xterm_kbs=BS ;; esac The host_os when enable multilib is as folloing: host_os of aarch64 : linux-gnu host_os of aarch32 : linux-gnueabi So in lib64 package, want_xterm_kbs=DEL, and in lib32 package, want_xterm_kbs=BS. It results the differences in the terminfo files between lib32 and lib64 packages. Using --with-xterm-kbs=del to unify the packages of lib32 and lib64 into "want_xterm_kbs=DEL". (From OE-Core rev: 3868ae96ff32e8335e539ce62f51b7a223547c48) Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> MAIL: wangmy@fujitsu.com Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dbus: explictly set the path to systemctlRoss Burton2025-02-101-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dbus.socket user unit file calls systemctl, and the meson.build uses find_program() to find the path, falling back to a hardcoded value if it cannot be found. On the initial build the sysroot doesn't contain systemctl (as it is not in the target systemd sysroot), however after the do_package_write_* tasks have completed there is a systemd-systemctl-native recipe in the sysroot which will be found and result in host paths being in the target packages, specifically in /usr/lib/systemd/user/dbus.socket: ExecStartPost=-/work/ross/build/tmp/work/core2-64-poky-linux/dbus/1.16.0/recipe-sysroot-native/usr/bin/systemctl This can be replicated by forcing a rebuild after a forced packaging: $ bitbake dbus -C do_package_write_ipk $ bitbake dbus -C configure ERROR: dbus-1.16.0-r0 do_package_qa: QA Issue: File /usr/lib/systemd/user/dbus.socket in package dbus-common contains reference to TMPDIR [buildpaths] We could do the unit mask manually instead of using systemctl (as it's just a symlink) but the hardcoded path is still wrong, so write a small Meson cross file to specify where the binary is. (From OE-Core rev: 2ebfe3d8df809f6cf057ac7b56cdbc265f05b37a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-boot-native: fix kernel signature for securebootMikko Rapeli2025-02-102-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | systemd update from 256 to 257 broke kernel secureboot signatures inside signed UKI files with u-boot based UEFI firmware, e.g. meta-arm and qemuarm64-secureboot machine config and secureboot: $ cd meta-arm $ kas build ci/poky.yml:ci/qemuarm64-secureboot.yml:ci/uefi-secureboot.yml:ci/testimage.yml systemd-boot itself is secureboot signed and verified by firmware. Same for the UKI file which combines kernel, initramfs etc. Then kernel from UKI is additionally executed using UEFI firmware calls which check signatures so the kernel binary inside signed UKI needs to be signed with same keys too. PE file padding added to systemd ukify in 257 release broke kernel signature validation for u-boot and sbsign/sbverify tools. EDK2 based firmware like OVMF may not be affected because systemd-boot is able to disable signature checking after a signed UKI has been loaded. This feature is not supported by u-boot. Upstream systemd bug report: https://github.com/systemd/systemd/issues/35851 Backport of: https://github.com/systemd/systemd/commit/38801c91292fde004bec0974ed5602984701e03b Cc: Jon Mason <jdmason@kudzu.us> Cc: meta-arm@lists.yoctoproject.org (From OE-Core rev: 979d8b16a5238ea368b2ee39d436b6e13d94b076) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-boot-native: move do_install() to after do_patch()Mikko Rapeli2025-02-101-1/+1
| | | | | | | | | | | | The tasks were deleted and do_patch() was run after do_install() which means that patches applied in SRC_URI were not in the ukify.py binary installed. Moving do_install() to after do_patch() fixes this. (From OE-Core rev: 0218a7a7dbf12ef817608881a3a17d9670c0778a) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Upgrade to 2.41 releaseKhem Raj2025-02-0533-151/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | License-Update: Added license for e_gammaf_r.c [1] added url of CORE-MATH project [2] * Testing support with different compilers (series) * Remove XXX math functions from installed math.h (patch) * Remove "%n" from assert (commit) * Improve executable stack handling * Compile glibc tests with Clang (series 1, series 2) * asprintf should write NULL on failure * Revert TCB layout changes * Fix ld.so crashes with golang test suite * Fixes after GET_ADDR_ARGS removal * Extend Rseq Support, plus x32 fixup * sh4: ensure FPSCR.PR==0 when executing FRCHG [BZ #27543] * affinity-inheritance test: overallocate CPU sets * rseq-related aarch64 test failures * arc4random test failure under load * benchtests: Add dummy in put files cospi, cospif, sinpi, sinpif, tanpi, tanpif * pthread condvar missing signal, bug 25847 * aarch64: Add support for Guarded Control Stack extension * testsuite: Make stdio-common/tst-printf-format-*-mem UNSUPPORTED if the mtrace output does not exist Further Release Notes [3] [4] [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=2843e78b30da0aa743fdfb0ac61435c925182c04 [2] https://sourceware.org/git/?p=glibc.git;a=commit;h=d421d36582281a62e05f96a1bfb085db9d85f40b [3] https://sourceware.org/glibc/wiki/Release/2.41 [4] https://sourceware.org/pipermail/libc-announce/2025/000045.html (From OE-Core rev: 73b34ff50c8e5b05eca8f9a236bd1b155bd14324) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-serialgetty: add comments explaining useRoss Burton2025-02-051-1/+6
| | | | | | | | | Add some comments to clarify exactly what this recipe is for. (From OE-Core rev: bbaafe11189b4b14ab84576e5eddd709b7f0ef1b) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-systemctl: fix handling of instance unit filesArtur Kowalski2025-02-051-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes handling of units with instance name in theirs filenames such as `gnome-shell@wayland.service` or `gnome-shell@x11.service`. Such files cause template file to be ignored (for the specific instance). Thanks to Markus Volk <f_l_k@t-online.de> for noticing the breakage when building images with gnome-shell: | Error: Systemctl preset_all issue in org.gnome.Shell@wayland.service | WARNING: /home/flk/poky/build/tmp/work/intel_corei7_64-poky-linux/gnome-image/1.0/temp/run.systemd_preset_all.2011511:158 exit 1 from 'systemctl --root="/home/flk/poky/build/tmp/work/intel_corei7_64-poky-linux/gnome-image/1.0/rootfs" --global --preset-mode=enable-only preset-all' The problem manifested after cdc3b3028f6d71788b5fdd99436f69fbf18f613e because we enabled preset-all for user units - org.gnome.Shell@wayland.service is a user service, so prior to that change the file wasn't processed at all. The error was triggered because there is no org.gnome.Shell@.service file. With this patch applied systemctl script looks for instance unit file and falls back to template unit in case of lack thereof, keeping the same behavior upstream systemctl does. (From OE-Core rev: 7eaad7c2a118b3d9db8b694730535afcd3ca985e) Signed-off-by: Artur Kowalski <arturkow2000@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/meta-selftest: Fix variable assignment whitespaceRichard Purdie2025-02-0111-13/+13
| | | | | | | | | | Recipes are much more readable with whitespace around the assignment operators. Fix various assignments in OE-Core to show this is definitely the preferred formatting. (From OE-Core rev: 30ea609d3357fb3de911f2f6a5e6856c151b976a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-linux-libuuid: use util-linux's CVE_PRODUCT valueDaniel McGregor2025-02-011-0/+2
| | | | | | | | | | | | | util-linux and util-linux-libuuid should use the same CVE_PRODUCT since they're the same product. They're just split off for package dependency reasons. Prior to this patch the libuuid recipe gave the wrong CVE_PRODUCT value, causing some CVE check tools to fail on it. (From OE-Core rev: 5c6abb099d579b9451fc2cb38c5d8860cfa6d52f) Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Change symlink locations to match alternativeAlexander van Gessel2025-02-011-1/+5
| | | | | | | | | | | | | | | Change the symlink locations of start-stop-daemon and base32 to from BASE_S?BINDIR to S?BINDIR, to match dpkg and coreutils, respectively. Related to bug #14804 [1]. [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=14804 (From OE-Core rev: 9998d91f982cd323fa5da20edda8b1828bd4fb5d) Signed-off-by: Alexander van Gessel <ai0867@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Correct SPDX license referenceBastian Germann2025-01-271-1/+1
| | | | | | | | | | | | | | | | Commit 6238ee3ecd (recipes-core/busybox: fixup licensing information) claims that there is no applicable license identifier in SPDX, so a bzip2-1.0.4 is made up. There is no bzip2-1.0.4 license defined in SPDX. However, bzip2-1.0.6 is the same license. License-Update: wrong SPDX identifier (From OE-Core rev: 1b51a0cbfbb64d85756ef231c81aeff02b74bd52) Signed-off-by: Bastian Germann <bage@debian.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base-files: Drop /bin/sh dependencyMarek Vasut2025-01-271-23/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove /bin/sh from bash RPROVIDES as this has a side-effect which confuses rpm package manager when also busybox provides /bin/sh and base-files depend on /bin/sh . The problem is broken down below. First, bash depends on base-files and bash pkg_postinst must run after base-files was installed, because it requires /etc/shells provided by base-files to be in place. Second, base-files depends on /bin/sh, which is provided by either bash or busybox in this case. This is the actual problem here, if bash is selected as /bin/sh provider, then there is cyclic dependency between bash and base-files, and that confuses dnf which may install the packages in the wrong order, bash first and base-files second . To make this worse, if busybox is also /bin/sh provider, it can and does happen that some systems pick busybox as the /bin/sh provider, while others pick bash as the /bin/sh provider, and that cyclic dependency does not always appear. Attempt to break this dependency, remove pre-inst script from the base-files recipe, which removes its dependency on /bin/sh and allows it to be installed very early, and always before bash. (From OE-Core rev: e71b64a9b22c7db316e92e78a4bce8b9f994a4ae) Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-linux: Document more specific BSD-4-Clause-UCBastian Germann2025-01-271-1/+1
| | | | | | | | | | | | | LIC_FILES_CHKSUM in the util-linux recipe already contains the more specific license reference BSD-4-Clause-UC that takes a copyright addendum by University of California into account. License-Update: reference can be more specific (From OE-Core rev: 7cc73cb77e6e783a903978221cb502bb359412f6) Signed-off-by: Bastian Germann <bage@debian.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* build-appliance-image: Update to master head revision5.2_M2Ross Burton2025-01-231-1/+1
| | | | | | (From OE-Core rev: 3ca9192cf16e15e95ba1c3db4ba28fc6130de8e0) Signed-off-by: Ross Burton <ross.burton@arm.com>
* systemd: Remove /var/log/README using a patchPeter Kjellerstedt2025-01-232-4/+31
| | | | | | | | | | | | | | Commit f82d9c997ba (systemd: enable create-log-dirs) removed the creation of the /var/log/README symbolic link by using sed. However, the update to 257 changed the target line and the sed expression no longer matches. Rather than correcting the sed expression, use a patch to remove /var/log/README so that any future changes do not go unnoticed. (From OE-Core rev: 76cf5994262f9fd76cf27e111eb67ad1645541f1) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Ross Burton <ross.burton@arm.com>
* classes/recipes: Switch virtual/XXX-gcc to virtual/cross-cc (and c++/binutils)Richard Purdie2025-01-216-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea of the base class dependency is to say "yes, I need a C cross compiler" and this was never meant to be gcc specific. Looking at the codebase, whilst we code triplets into this, it does overcomplicate things as there are only ever limited, "target", "sdk" and the class extended versions like mutlilib. After much thought, we can simplify this to virtual/cross-cc and virtual/nativesdk-cross-cc. This lets us remove the "gcc" specific element as well as removing the over complicated triplet usage. At the same time, change the much less widely used "g++" variant to "c++" for similar reasons and remove the triplet from virtual/XXX-binutils too. Backwards compatibility mappings could be left but are just going to confuse things in future so we'll just require users to update. This simplification, whilst disruptive for any toolchain focused layers, will make improved toolchain selection in the future much easier. Since we no longer have overlapping variables, some code for that can just be removed. The class extension code does need to start remapping some variables but not the crosssdk target recipe names. This patch is in two pieces, this one handles the renaming with the functional changes separate in a second for easier review even if this breaks bisection. (From OE-Core rev: 4ccc3bc8266c327bcc18c9a3faf7536210dfb9f0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-systemctl: add support for --global flagArtur Kowalski2025-01-211-19/+23
| | | | | | | | | | | The flag is similar to --user flag as it causes systemctl to operate on user units, but it performs operations globally for all users. This is required for user presets support. (From OE-Core rev: ab6476d28485598ae842472a7b15ca7bf244c776) Signed-off-by: Artur Kowalski <arturkow2000@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* eudev: backport patch to fix udevd hanging while trying to access /dev/urandomHiago De Franco2025-01-212-0/+139
| | | | | | | | | | | | | | | | | Linux kernel commit 48bff1053c17 ("random: opportunistically initialize on /dev/urandom reads") introduced a change where /dev/urandom blocks if the random pool is insufficiently initialized during hardware boot. This behavior causes /dev/urandom reads to hang for approximately 5 seconds, delaying the boot process with eudev init script (when it calls udevd). This issue has already been solved upstream, therefore backport the upstream patch to fix this. (From OE-Core rev: cd5f630581f3e38645a92ad75b496bce92b679cb) Signed-off-by: Hiago De Franco <hiago.franco@toradex.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dbus: update 1.14.10 -> 1.16.0Alexander Kanavin2025-01-202-76/+27
| | | | | | | | | | | | | Convert from autotools to meson. Drop tmpdir.patch (replaced by -Dtest_socket_dir=/tmp --Dsession_socket_dir=/tmp). License-Update: license texts split into separate files, SPDX ids added. (From OE-Core rev: b0241aa9b1ecc38be1ca016f36075552a2eba48a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: PACKAGECONFIG mountfsd and nsresourcedLei YU2025-01-141-0/+2
| | | | | | | | | | | | systemd v256 introduces `mountfsd` and `nsresourced` as meson options, make them PACKAGECONFIG so recipes could enable or disable the feature by selecting PACKAGECONFIGs. (From OE-Core rev: b091917424ac31fc9c188a16e653501d3a8b0afd) Signed-off-by: Lei YU <yulei.sh@bytedance.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sysvinit: update 3.11 -> 3.13Alexander Kanavin2025-01-146-403/+13
| | | | | | | | | | | | | | | | | | Remove patches: install.patch (merged upstream) realpath.patch 0001-include-sys-sysmacros.h-for-major-minor-defines-in-g.patch (musl fixes, no longer needed) pidof-add-m-option.patch (not a backport, not used in core, and isn't carried by either debian or fedora) (From OE-Core rev: 228e1fb5632061fccf58bec93b843e6d7a0827dd) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* udev-extraconf: Allow FAT mount group to be specifiedJoshua Watt2025-01-142-7/+10
| | | | | | | | | | | | | | | | | Adds a variable that allows the group given permissions to access FAT mounted file systems to be specified, instead of being hardcoded to 'disk'. As a note, the usage of 'disk' as the mount group is not a very secure default, since the disk user usually has read/write access to all block devices in /dev/, meaning that adding a user to this group for the purpose of accessing FAT file systems effectively gives the write access to all block devices. (From OE-Core rev: c723dbc329d4cf2a75022f8dd1cfa304383bb4f5) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: set ld.so.conf as conf fileBenjamin Bara2025-01-111-0/+1
| | | | | | | | | This enables simple overwriting when multilib is in use. (From OE-Core rev: 52e57a13f874cf4093682c9d9463e9b964f6de17) Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-linux: Improve PACKAGES_DYNAMIC handling for util-linux-nativeRichard Purdie2025-01-101-1/+2
| | | | | | | | | | | | | | | DEBUG: Assuming util-linux-swapon-native is a dynamic package, but it may not exist DEBUG: Assuming util-linux-swapon-native is a dynamic package, but it may not exist DEBUG: providers for util-linux-swapon-native are: ['util-linux', 'util-linux-native'] DEBUG: sorted runtime providers for util-linux-swapon-native are: ['recipes-core/util-linux/util-linux_2.40.2.bb', 'virtual:native:recipes-core/util-linux/util-linux_2.40.2.bb'] NOTE: Multiple providers are available for runtime util-linux-swapon-native (util-linux, util-linux-native) The PACKAGES_DYANMIC line could match native and non-native packages so tweak to improve -native handling and avoid the above warnings in world builds. (From OE-Core rev: 5577bb4772a76b3e419cf1f8f2a439bc1b15a9b5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* coreutils: Improve core-utils-native dependency handlingRichard Purdie2025-01-101-1/+3
| | | | | | | | | | | bash-dev-native does not exist, nor should it. Tweak the recipe so that if/as/when we fix native ${PN}-XXX handling, this doesn't break. Use variable indirection as the least worse solution as an override directly will get overwritten with variable renaming, resulting in a warning. (From OE-Core rev: 879590563bc43a303e77541cd99979a449d9bfed) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* blktool: remove the recipeAlexander Kanavin2025-01-101-1/+0
| | | | | | | | | | It was created in 2004 as an alternative to hdparm and never updated since (while hdparm remains in active development). (From OE-Core rev: 54c1243a259a2f6407c0202d03414fc5272b2d90) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxcrypt: update 4.4.36 -> 4.4.37Alexander Kanavin2025-01-105-46/+6
| | | | | | | | | Drop patch merged upstream. (From OE-Core rev: b66d046a3fe4230ba3b74c6741419f51bbfca9bd) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Add WATCHDOG_RUNTIME_SEC optional variableBenjamin Szőke2025-01-081-0/+10
| | | | | | | | | | | | | To make use of the hardware watchdog it is sufficient to set the RuntimeWatchdogSec= option in /etc/systemd/system.conf. It defaults to 0 (i.e. no hardware watchdog use). Set it to a value like 20s and the watchdog is enabled. ref: https://0pointer.de/blog/projects/watchdog.html (From OE-Core rev: 1c61a1eb9c4faa9ab32b0440bbdd88c22c3cd945) Signed-off-by: Benjamin Szőke <egyszeregy@freemail.hu> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* initrdscripts: add UBI supportWalter Schweizer2025-01-081-1/+4
| | | | | | | | | | | Mounting the rootfs failed when it was on UBI. This patch allows the rootfs to live on UBI. (From OE-Core rev: 197867f854cc19493b28fcd2300179cfc407e0a6) Signed-off-by: Walter Schweizer <walter.schweizer@siemens.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-linux: add volatile file for lastlog2Yi Zhao2025-01-041-1/+8
| | | | | | | | | | | | Add volatile file for lastlog2 to fix runtime error with sysvinit: $ lastlog2 lastlog2: Couldn't read entries for all users lastlog2: Cannot open database (/var/lib/lastlog/lastlog2.db): unable to open database file (From OE-Core rev: 440f4830d1f1bac9d55584fc4e48627920493cb9) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-linux: replace local patch with upstream patchYi Zhao2025-01-043-66/+83
| | | | | | | | | | | | There is a better solution upstream to fix the pam_lastlog2 installation issue[1]. Backport this patch to replace the local patch. [1] https://github.com/util-linux/util-linux/pull/3173 (From OE-Core rev: 1c984d0a06cdcba49f8b0acd12edebfeaedf3aa5) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kbd: update 2.6.4 -> 2.7.1Alexander Kanavin2025-01-042-82/+3
| | | | | | | (From OE-Core rev: 1e116a0f45a218a751a8c11faa642d976182c021) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gettext: update 0.22.5 -> 0.23.1Alexander Kanavin2025-01-049-93/+26
| | | | | | | | | | | | | | | | | Drop patches: parallel.patch (obsolete as no .a files are installed) 0001-intl-Fix-build-failure-with-make-j.patch (backport) Gettext no longer installs anything into $libdir/gettext by default but still creates the directory and so it should be packaged. (From OE-Core rev: a414f47009811fa6886e43fd2b4c928a906a65f3) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: enable create-log-dirsChangqing Li2025-01-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, create-log-dirs is enabled in systemd, and a link /var/log/README will be created, point to {{DOC_DIR}}/README.logs, but, for oe, there are two problems here, firstly, DOC_DIR is packaged in another package systemd-doc, so /var/log/README is a dead link when systemd-doc is not installed, secondly, even systemd-doc is installed, when volatile log is used, DOC_DIR is a wrong relateive path, Refer [1]. So in commit [2], we disable create-log-dirs for above issue. with this change, /var/log/journal is not created, and /run/log is used, this makes systemd log always non persistent, refer [3][4]. if user need persistent log, they need to disable volatile log, and also change journald.conf, make "Storage" to "persistent". This is a behavoir change. Previously, to make systemd log persistent, user only need to disable volatile log. This commit reenable create-log-dirs to revert the behavior change, and since README is not very userful, just remove it. [ YOCTO #15678 ] [1] https://github.com/systemd/systemd/blob/main/tmpfiles.d/legacy.conf.in#L16 [2] https://git.openembedded.org/openembedded-core/commit/?id=18d46e11d85da1f6feaba5a135931e43060024d6 [3] https://github.com/systemd/systemd/blob/main/src/journal/meson.build#L189 [4] https://www.freedesktop.org/software/systemd/man/journald.conf.html [5] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15678 (From OE-Core rev: f82d9c997ba8cc23b472d44a43489c597bf452af) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: upgrade 257 -> 257.1Wang Mingyu2025-01-034-1/+1
| | | | | | | | (From OE-Core rev: 4c4f4798862d80f44e03ccbbe7efc2d8b723968c) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>