summaryrefslogtreecommitdiff
path: root/poky/meta/recipes-core
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2024-04-05 15:04:11 +0300
committerPatrick Williams <patrick@stwcx.xyz>2024-04-13 00:00:11 +0300
commit03514f1996efa799e50da744818ba331c2e893b6 (patch)
tree170526c40430aa0a3984afe0943972b499f9db97 /poky/meta/recipes-core
parenta55b31efd47bad0a2eece9fad6acfbfb4950b83b (diff)
downloadopenbmc-03514f1996efa799e50da744818ba331c2e893b6.tar.xz
subtree updates
meta-security: 30e755c592..283a773f24: Armin Kuster (2): meta-security: Drop ${PYTHON_PN} openscap: update to tip to fix new build issue. Jeremy A. Puhlman (4): arpwatch: fix misspelling of PACKAGECONFIG aprwatch: Add path for sendmail Check for usrmerge before removing /usr/lib arpwatch: install man8 dir Kevin Hao (4): docs: dm-verity.txt: Fix a typo dm-verity: Adjust the image names according to the oe-core change dm-verity: Set the IMAGE_FSTYPES correctly when dm-verity is enabled dm-verity-image-initramfs: Set IMAGE_NAME_SUFFIX to empty Max Krummenacher (1): layer.conf: Update for the scarthgap release series Mingli Yu (1): python3-pyinotify: Make asyncore support optional for Python 3 poky: 7165c23237..110ee701b3: Alejandro Hernandez Samaniego (1): python3-manifest: Sync RDEPENDS with latest version Alexander Kanavin (11): meson: correct upstream version check (exclude pre-releases) cargo-c-native: convert from git fetcher to crate fetcher cargo-c-native: update 0.9.18 -> 0.9.30 man-pages: use env from coreutils-native sdk-manual: correctly describe separate build-sysroots tasks in direct sdk workflows dev/ref-manual: document conf-summary.txt together with conf-notes.txt dev-manual: improve descriptions of 'bitbake -S printdiff' wayland: fix upstream version check by asking gitlab directly python3: correct upstream version check bitbake: bitbake: improve descriptions of '-S printdiff' selftest/sstatetests: run CDN check twice, ignoring errors the first time Alexandre Truong (1): oeqa/selftest/devtool: fix test_devtool_add_git_style2 Anibal Limon (1): wic: bootimg-partition allow to set var to get boot files BELOUARGA Mohamed (1): ref-manual: add documentation of the variable SPDX_NAMESPACE_PREFIX Bartosz Golaszewski (1): linux-firmware: update to 20240312 Baruch Siach (1): oeqa/selftest/overlayfs: test read-only rootfs Bruce Ashfield (16): linux-yocto/6.6: cfg: generic arm64 linux-yocto/6.6: cfg: riscv XHCI linux-yocto/6.6: update to v6.6.21 linux-yocto/6.6: update CVE exclusions (6.6.21) linux-yocto/6.6: cfg: drop unsettable options linux-yocto/6.6: drm/tilcdc: Set preferred depth linux-yocto/6.6: update to v6.6.22 linux-yocto/6.6: update CVE exclusions (6.6.22) yocto-bsps: update to v6.6.21 linux-yocto/6.6: cfg: genericarm64 platform/peripheral support linux-yocto/6.6: cfg: genericarm64 configuration updates linux-yocto/6.6: nftables: ptest and cleanup tweaks linux-yocto/6.6: update to v6.6.23 linux-yocto/6.6: update CVE exclusions (6.6.23) linux-yocto-dev: bump to v6.9 lttng-modules: update to v2.13.12 Changqing Li (1): dnf: fix Exception handling for class ProcessLock Chen Qi (1): ovmf: set CVE_PRODUCT and CVE_VERSION Christian Taedcke (1): kernel-fitImage: only include valid compatible line Derek Erdmann (1): bitbake: fetch2/git: Install Git LFS in local repository config Enrico Jörns (3): cml1: remove needless check for write_taint attribute cml1: prompt location of updated .config after do_menuconfig() perf: fix TMPDIR contamination for recent mainline kernels Enrico Scholz (1): shadow: fix copydir operation with 'pseudo' Felix Moessbauer (1): bitbake: utils: better estimate number of available cpus Harish Sadineni (3): gcc: Oe-selftest failure analysis - fix for tcl errors gcc: Oe-selftest failure analysis - fix for vect-simd test failures binutils: gprofng - change use of bignum to use of bignint Jermain Horsman (1): bblayers/makesetup.py: Move git utility functions to oe.buildcfg module Joe Slater (1): systemd: enable mac based names in NamePolicy Jose Quaresma (5): go.bbclass: set GOPROXY elfutils: fix unused variable BUFFER_SIZE go: keep the patches in order go: upgrade 1.22.1 -> 1.22.2 sstatesig: fix netrc.NetrcParseError exception Joshua Watt (4): sstatesig: Set hash server credentials from bitbake variables bitbake: siggen: Add support for hashserve credentials sstatesig: Warn on bad .netrc bitbake: bitbake-hashclient: Warn on bad .netrc Jörg Sommer (1): autotools: update link in comment for cross compiling Kevin Hao (1): image-live.bbclass: Adjust the default value for INITRD_LIVE Khem Raj (13): systemd: Check for directory before chmod'ing it llvm: Update to 18.1.1 release elfutils: Fix build break with clang glibc: Update to tip of 2.39 branch pam: Fix build with musl piglit: Switch to upstreamed patch for musl fix qemuriscv: Fix kbd and mouse emulation for qemuriscv64 llvm: Upgrade to 18.1.2 bugfix release glibc: Repace aarch configure patch fix with a backport valgrind: Backport fixes from 3.22 branch tcl: Forward port skip logic for musl ptests readline: Apply patches from readline-8.2-patches mesa: Drop LLVM-17 patch Lee Chee Yang (1): migration-guides: add release notes for 4.0.17 Marcel Ziswiler (1): mesa: enable imagination powervr support Markus Volk (11): mesa: fix opencl-spirv build vala: merge bb and inc files vala: fix for gtk4 prior to 4.14 libsoup: enable vapi support gsettings-desktop-schemas: update 45.0 -> 46.0 libadwaita: update 1.4.4 -> 1.5.0 gtk4: update 4.12.5 -> 4.14.1 systemd: disable mdns feature in resolved for zeroconf webkitgtk: update 2.42.5 -> 2.44.0 gtk+3: disable wayland without opengl epiphany: update 45.3 -> 46.0 Martin Jansa (2): contributor-guide: be more specific about meta-* trees pixman: explicitly disable openmp in native builds Max Krummenacher (1): git: git-replacement-native: depend on ca-certificate Michael Opdenacker (8): manuals: add initial stylechecks with Vale profile-manual: usage.rst: formatting fixes manuals: use "manual page(s)" profile-manual: usage.rst: fix reference to bug report documentation: Makefile: remove releases.rst in "make clean" migration-guides: draft notes for upcoming release 5.0 manuals: add initial stylechecks with Vale profile-manual: usage.rst: further style improvements Oleh Matiusha (3): bash: improve reproducibility curl: improve reproducibility gmp: improve reproducibility Paul Barker (1): kernel: Fix check_oldest_kernel Peter A. Bigot (1): bitbake: lib/bb: support NO_COLOR Peter Kjellerstedt (1): util-linux: Set the license for util-linux-fcntl-lock to MIT Philippe Rivest (1): bitbake: bitbake: fetch2/git: Escape parentheses in git src name Quentin Schulz (1): u-boot: fix externalsrc not triggering do_configure on defconfig changes Randy MacLeod (1): gstreamer: upgrade 1.22.10 -> 1.22.11 Richard Purdie (10): poky: Update to prepare for scarthgap release layer.conf: Prepare for release, drop nanbield LAYERSERIES expat: Upgrade 2.6.1 -> 2.6.2 bash/flex: Ensure BUILD_FLAGS doesn't leak onto target uninative: Add pthread linking workaround poky-altcfg: Default to ipk packaging util-linux: Add missing MIT license util-linux: Add fcntl-lock run-postinsts: Add workaround for locking deadlock issue oeqa/sstatetests: Fix race issue Ross Burton (22): genericarm64.wks: reorder partitions genericarm64: clean up kernel modules and firmware linux-firmware: add support for deduplicating the firmware linux-firmware: set LICENSE field for -liquidui and -mellanox linux-firmware: remove pointless linux-firmware-gplv2-license package curl: improve run-ptest curl: increase test timeouts gstreamer1.0: improve test reliability linux-yocto: put COMPATIBLE_MACHINE first linux-yocto: implicitly track oe-core's kernel version for genericarm64 bitbake: fetch2: handle URIs with single-valued query parameters python3_pip517: just count wheels in the directory, not subdirectories python-*: don't set PYPI_ARCHIVE_NAME and S when PYPI_PACKAGE is sufficient tcl: improve run-ptest tcl: skip I/O channel 46.1 genericarm64: add qemuboot configuration classes/qemuboot: add depends on qemu-system-native and qemu-helper-native README.hardware.md: fix Markdown formatting README.hardware.md: add section on genericarm64 on qemu glib-2.0: skip a timing sensitive ptest openssl: fix crash on aarch64 if BTI is enabled but no Crypto instructions curl: fix quoting when disabling flaky tests Ryan Eatmon (1): perf: Fix QA error due to most recent kernel Sam Van Den Berge (1): shadow: don't install libattr.so.* when xattr not in DISTRO_FEATURES Sava Jakovljev (1): bitbake: bitbake-worker: Fix bug where umask 0 was not being applied to a task Simone Weiß (1): gnutls: upgrade 3.8.3 -> 3.8.4 Soumya Sambu (1): go: Upgrade 1.22.0 -> 1.22.1 Sourav Kumar Pramanik (1): libseccomp: Add back in PTESTS_SLOW list Sundeep KOKKONDA (1): rust: reproducibility issue fix with v1.75 Tim Orling (2): coreutils: drop obsolete liberror-perl RDEPENDS liberror-perl: move to meta-perl Timon Bergelt (1): populate_sdk_ext.bbclass: only overwirte lsb string if uninative is used Tom Hochstein (2): bmaptool: Add bmap-tools runtime alias for compatibility toolchain-shar-relocate.sh: Add check for missing command 'file' Trevor Woerner (1): bmaptool: update to latest Ulrich Ölmann (1): ref-manual: classes: update description of class 'image_types' Viswanath Kraleti (1): bitbake: fetch2: Fix misleading "no output" msg Wang Mingyu (1): libadwaita: upgrade 1.4.3 -> 1.4.4 William Lyu (1): openssh: Add a workaround for ICE on powerpc64le Xiangyu Chen (3): lttng-tools: skip kernel tests if no kernel modules present ltp: fix missing connectors tests in scenario_groups/default lttng-tools: fix rotation-destroy-flush test fails if no kernel module present Yang Xu (1): bitbake: bitbake-worker: Fix silent hang issue caused by unexpected stdout content Yannick Rodriguez (1): linux-firmware: Move Intel 9260 modules firmware. Yash Shinde (1): glibc: Skip 2 qemu tests that can hang in oe-selftest Yi Zhao (1): libtirpc: drop redundant PACKAGECONFIG Yoann Congal (6): cve-update-nvd2-native: Fix typo in comment cve-update-nvd2-native: Add an age threshold for incremental update cve-update-nvd2-native: Remove duplicated CVE_CHECK_DB_FILE definition cve-update-nvd2-native: nvd_request_next: Improve comment cve-update-nvd2-native: Fix CVE configuration update cve-update-nvd2-native: Remove rejected CVE from database Yogesh Tyagi (1): lttng-modules: fix v6.8+ build david d zuhn (1): bitbake: bitbake-worker: allow '=' in environment variable values lixiaoyong (3): kernel-module-split.bbclass: enhance objcopy command call for kernel compilation with llvm utils: enhance readelf command call with llvm oe/package: enhance objdump command call with llvm meta-raspberrypi: 92a9b7a012..d072cc8a48: Khem Raj (9): linux-raspberrypi: Add recipe for 6.6 LTS kernel bluez-firmware-rpidistro: Upgrade to 1.2-9+rpt3 release linux-firmware-rpidistro: Upgrade to bookworm/20230625-2+rpt2 raspberrypi-firmware: Fetch using git URI rpi-base: Add missing broadcom/ prefix to find DTB files rpi-default-versions: Switch default kernel to 6.6 linux-raspberrypi_6.6: Bump to 6.6.22 rpi-bootfiles: Resort to github APIs for tarballs raspberrypi-firmware: Revert to debian archive Martin Jansa (1): userland: fix installed-vs-shipped in multilib builds jdavidsson (1): rpi-base: Add hifiberry-dacplusadc overlay meta-arm: aba9250494..d9e18ce792: Abdellatif El Khlifi (1): arm-bsp/corstone1000: add documentation disclaimer Alexander Sverdlin (1): optee-ftpm: fix EARLY_TA_PATHS passed to optee-os Ali Can Ozaslan (4): arm-bsp/trusted-firmware-m: corstone1000: update to 2.0 arm-bsp/trusted-services: corstone1000: Client Id adjustments after TF-M 2.0 arm/trusted-firmware-m: Change GNU Arm compiler version for TF-M 2.0 arm-bsp/trusted-firmware-a: n1sdp: update to 2.10 Anusmita Dutta Mazumder (2): arm-bsp/n1sdp: Update scp-firmware version arm-bsp/n1sdp: Update EDK2 version Bence Balogh (2): arm-bsp/u-boot: corstone1000: fix SMCCC_ARCH_FEATURES detection in the PSCI driver arm-bsp/trusted-firmware-a: corstone1000: remove SMCCC_ARCH_FEATURES discovery workaround Delane Brandy (1): arm/trusted-firmware-a: fix mbedTLS version Drew Reed (2): kas: Corstone-1000 kas files updated bsp: Corstone-1000 userguide updates Emekcan Aras (2): arm-bsp/trusted-firmware-a: Upgrade Corstone1000 to TF-A v2.10 arm/trusted-services: Add recipe for block storage service Jon Mason (17): README: Add information about release process and mailing list arm/linux-yocto: remove unreferenced patch arm/optee: disable clang due to breakage arm-bsp/tf-a-tests: remove corstone1000 intermediate SHA arm-bsp/tfa-tests: move n1sdp patch to platform directory CI: update kas to 4.3.1 arm/edk2: update to 202402 arm/trusted-firmware-a: update to 2.10.2 arm/sbsa-acs: update to 7.1.4 arm/scp-firmware: update to v2.14.0 arm-toolchain/gcc-arm-none-eabi: remove 11.2 CI: reduce coverage of dev kernel arm/sbsa-acs: remove unreferenced patch arm-toolchain: correct UPSTREAM_CHECK Revert "arm/rmm: Add bitbake, include and patch file for RMM firmware" arm/sbsa-acs: use UPSTREAM_CHECK_URI for version checking arm: use UPSTREAM_CHECK_COMMITS for git versioned recipes Mathieu Poirier (1): arm/rmm: Add bitbake, include and patch file for RMM firmware Ross Burton (3): arm arm-bsp: enable patch-status warnings Add SECURITY.md CI: ignore netrc warnings caused by Kas meta-openembedded: a0237019f5..a6bcdca5b4: Bartosz Golaszewski (1): libgpiod: update to v2.1.1 Chad Rockey (1): cppzmq-dev expects /usr/lib/libzmq.a Changqing Li (1): postgresql: fix a runtime error Chen Qi (1): tcprelay: fix a minor cross compilation do_configure issue Christophe Chapuis (9): lvgl: fix typo in lv-conf.inc lvgl: install lv_conf.h lvgl: remove useless FILES include lvgl: cleanup sed instructions in lv-conf.inc lvgl: add more variables to lv-conf.inc lvgl: fix libdrm include lvgl: lv-conf.inc: generalize sed instructions lvgl: make libdrm include conditional lvgl: cleanup sed expression Dan McGregor (2): python3-pylint: Update to 3.1.0 python3-pylint: Fix ptest failures Derek Straka (1): python3-dbus: re-add recipe with latest patches and add ptest Etienne Cordonnier (1): uutils-coreutils: upgrade 0.0.24 -> 0.0.25 Fathi Boudra (1): python3-django: upgrade 4.2.10 -> 4.2.11 Guðni Már Gilbert (2): python3-ecdsa: remove python3-pbr python3-ecdsa: cleanup DEPENDS Jaeyoon Jung (1): lvgl: Set resolution prior to buffer Joe Slater (1): googletest: allow for shared libraries Jose Quaresma (1): ostree: Upgrade 2024.4 -> 2024.5 Jörg Sommer (3): sngrep: new recipe for ncurses SIP Messages flow viewer spandsp: new telephony DSP library bluez-tools: New recipe for bluez5 tools Kai Kang (2): Packages depends on libadwaita should require distro feature opengl thin-provisioning-tools: install binary to ${sbindir} Khem Raj (55): squid: Upgrade to 6.8 libosinfo: Fix build with libxml2 v2.12 xmlstarlet: Fix build with API breakage in libxml2 2.12 mariadb: Fix build with libxml2 2.12 ABI changes libmusicbrainz: Update to tip of trunk gnome-commander: Fix build with taglib 2.0 gnome-online-accounts: Fix build with libxml2 2.12 vlc: Upgrade to 3.0.20 netcf: Fix build with latest gnulib php: Upgrade to 8.2.16 vlc: Fix build on 32bit x86 libtinyxml2: Extend for nativesdk lvgl: Fix dev-elf build QA layer.conf: Update for the scarthgap release series dietsplash: Update and fix build with musl frr: Upgrade to latest on 9.1 stable frr: Fix build on newer musl layer.conf: Prepare for release, drop nanbield LAYERSERIES libcamera: Fix clang support patches plocate: Fix sys/stat.h and linux/stat.h conflicts with musl liburing: Upgrade to 2.5 openflow: Delete recipe for 1.0 openflow: Merge .inc into .bb openflow: Fix build with musl tracker-miners: Disable seccomp support on musl libcamera: Fix build on musl systems ipset: Update to 7.21 ot-daemon: Update to tip of trunk ot-br-posix: Update to latest wpantund: Update to latest xfsdump: Fix build with musl >= 1.2.5 xfstests: Fix build with musl >= 1.2.5 net-snmp: Fix build with musl rdma-core: Fix build with musl >= 1.2.5 ssmtp: Fix build with musl >= 1.2.5 autofs: Fix build with musl >= 1.2.5 lvm2: Fix build with musl 1.5.2+ sanlock: Fix build with musl >= 1.2.5 ndctl: Fix build issues seen with musl 1.2.5 sdbus-c++-libsystemd: Upgrade to 255.4 release of systemd sdbus-c++,sdbus-c++-tools: Upgrade to 1.5.0 release wtmpdb: Upgrade to 0.11.0 release uftrace: Fix build with musl >= 1.2.5 fio: Upgrade to 3.36+git i2cdev: Include libgen.h on musl directfb: Fix build with musl >= 1.2.5 iwd: Upgrade to 2.16 minifi-cpp: Fix libsodium build on aarch64/clang multipath-tools: Fix build with musl >= 1.2.5 aer-inject: Fix build with latest musl aer-inject: Replace hardcoded /usr with ${prefix} microsoft-gsl: Disable disabled-macro-expansion warning as error on clang/musl meta-python-image-ptest: Use 2G RAM for some demanding tests python3-pydbus: Add bash dependency for ptests highway,libjxl: Remove -mfp16-format=ieee when using clang compiler Leon Anavi (7): python3-anyio: Upgrade 4.2.0 -> 4.3.0 python3-httpx: Upgrade 0.26.0 -> 0.27.0 python3-multidict: Upgrade 6.0.4 -> 6.0.5 python3-croniter: Upgrade 2.0.1 -> 2.0.3 python3-paho-mqtt: Upgrade 1.6.1 -> 2.0.0 python3-typeguard: Upgrade 4.1.5 -> 4.2.1 python3-cachetools: Upgrade 5.3.2 -> 5.3.3 Marek Vasut (14): lvgl: Drop dialog-lvgl lvgl: Upgrade to LVGL 9 series lvgl: Rename lv-drivers.inc to lv-conf.inc lvgl: Add SDL2 fullscreen mode configuration option lvgl: Configure assertions based on DEBUG_BUILD lvgl: Default to XRGB8888 DRM framebuffer lvgl: Build shared library lvgl: Replace sed patching with real patches lvgl: Generate proper shared libraries with version suffix lvgl: Reinstate demo configuration settings lvgl: Update to 9.1.0 lvgl: Drop superfluous ALLOW_EMPTY lvgl: Drop unnecessary PV append lvgl: Deduplicate PACKAGECONFIG into lv-conf Markus Volk (66): mozjs-115: fix reproducibility issue webp-pixbuf-loader: update 0.2.5 -> 0.2.7 gnome-control-center: fix reproducibility issue gnome-disk-utility: fix reproducibility issue gnome-settings-daemon: fix reproducibility issue gnome-terminal: fix reproducibility issue libvncserver: fix reproducibility issue editorconfig-core-c: fix reproducibility issue crossguid: fix reproducibility issue waylandpp: fix reproducibility issue polkit: remove unneeded workaround gtk-vnc: fix reproducibility issue pipewire: update 1.0.3 -> 1.0.4 mutter: remove zenity from rdepends mutter: update 45.4 -> 46.0 gnome-shell: update 45.4 -> 46.0 gnome-settings-daemon: update 45.0 -> 46.0 gnome-software: update 45.3 -> 46.0 evince: update 45.0 -> 46.0 gnome-online-accounts: update 3.48.0 -> 3.50.0 evolution-data-server: build with webkitgtk4 folks: update 0.15.7 -> 0.15.8 gnome-control-center: update 45.3 -> 46.0 xdg-desktop-portal-gnome: update 45.1 -> 46.0 tracker: update 3.6.0 -> 3.7.0 tracker-miners: update 3.6.2 -> 3.7.0 freerdp3: add recipe wireplumber: update 0.4.17 -> 0.5.0 tecle: update 45.0 -> 46.0 gnome-calculator: update 45.0.2 -> 46.0 gnome-session: update 45.0 -> 46.0 gnome-remote-desktop: update 45.1 -> 46.0 gnome-calendar: update 45.1 -> 46.0 libgweather4: update 4.4.0 -> 4.4.2 gtksourceview5: update 5.10.0 -> 5.12.0 gnome-control-center: use gcr4 variant libcloudproviders: update 0.3.5 -> 0.3.6 gnome-themes-extra: build with gtk+3 gtk4mm: add recipe gnome-system-monitor: update 45.0.1 -> 46.0 gnome-boxes: update 45.0 -> 46.0 eog: update 45.2 -> 45.3 gparted: update 1.5.0 -> 1.6.0 libgtop: update 2.41.1 -> 2.41.3 gnome-bluetooth: update 42.8 -> 46.0 gnome-text-editor: update 45.1 -> 46.0 gnome-chess: update 43.2 -> 46.0 gnome-disk-utility: update 45.0 -> 46.0 gnome-shell-extensions: update 45.2 -> 46.0 msgraph: add recipe gvfs: update 1.52.2 -> 1.54.0 tracker-miners: drop buildpath from tracker-miner-fs-3 evolution-data-server: disable tests and examples tracker-miners: fix reproducibility issue for landlock file-roller: update 43.1 -> 44.0 apache2: preset mpm=prefork by default gnome-user-share: add recipe gnome-control-center: update 46.0 -> 46.0.1 gdm: update 45.0.1 -> 46.0 gnome-user-share: remove hardcoded paths ghex: update 45.1 -> 46.0 libjxl: add recipe gnome-backgrounds: add runtime depenency for libjxl highway: add recipe webkitgtk3: update 2.42.5 -> 2.44.0 gnome-control-center: restore Upstream-Status line Martin Jansa (5): unionfs-fuse, dropwatch, postgresql, yasm, multipath-tools, python3-pybind11: add missing Upstream-Status recipes: Drop remaining PR values from recipes freerdp3: disable shadow without x11 xfstests: upgrade to v2024.03.03 gtkmm4: add x11 to REQUIRED_DISTRO_FEATURES Maxin John (7): tracker: remove unused patch openal-soft: remove unused patches libio-pty-perl: remove unsed patch opengl-es-cts: remove unused patch emacs: remove unused patch webkitgtk3: remove unused patch python3-eth-utils: remove unused patches Michael Heimpold (1): ser2net: add a systemd service file Mingli Yu (4): gosu: Upgrade to 1.17 googletest: Pass -fPIC to CFLAGS re2: Upgrade 2023.03.01 -> 2024.03.01 nss: Upgrade 3.74 -> 3.98 Ola x Nilsson (2): abseil-cpp: Split so-files into separate packages abseil-cpp: Split so-files into separate packages Peter Kjellerstedt (3): abseil-cpp: A little clean-up libnice: Disable the examples and the tests abseil-cpp: A little clean-up Peter Marko (5): jwt-cpp: fix cmake file install path soci: fix buildpaths warning libcpr: add new recipe python3-grpcio: cleanup dependencies microsoft-gsl: add new recipe including ptest Petr Gotthard (2): libmbim: Revert back to the latest stable 1.30.0 libqmi: Revert back to the latest stable 1.34.0 Randy MacLeod (2): rsyslog: update from 8.2306.0 to 8.2402.0 nftables: Add DESCRIPTION and HOMEPAGE Richard Purdie (2): imagemagick/lcms/fftw: Allow nativesdk versions to exist buildtools-imagemagick: Add new recipe Robert P. J. Day (1): fmt: remove unnecessary "inherit ptest" directive Robert Yang (6): yaffs2-utils: Upgrade to 20221209 xfsprogs: 6.5.0 -> 6.6.0 gnulib: 2018-12-18 -> 202401 thin-provisioning-tools: 1.0.9 -> 1.0.12 gperftools: 2.10 -> 2.15 freeradius: 3.0.26 -> 3.2.3 Ross Burton (1): python3-pydantic-core: just set PYPI_PACKAGE Sam Van Den Berge (1): python3-aiohttp: add missing dependencies Samuli Piippo (1): geoclue: enable demo agent Thomas Roos (1): usrsctp: upgrade to latest version Tim Orling (1): liberror-perl: move recipe from oe-core Tomasz Żyjewski (1): python: python-libusb1: add recipe Wang Mingyu (124): bats: upgrade 1.10.0 -> 1.11.0 c-ares: upgrade 1.26.0 -> 1.27.0 ctags: upgrade 6.1.20240114.0 -> 6.1.20240225.0 dbus-cxx: upgrade 2.5.0 -> 2.5.1 ddrescue: upgrade 1.27 -> 1.28 fetchmail: upgrade 6.4.37 -> 6.4.38 libtalloc: upgrade 2.4.1 -> 2.4.2 libtdb: upgrade 1.4.9 -> 1.4.10 neatvnc: upgrade 0.7.2 -> 0.8.0 ostree: upgrade 2024.3 -> 2024.4 python3-astroid: upgrade 3.0.3 -> 3.1.0 python3-cbor2: upgrade 5.6.1 -> 5.6.2 python3-dnspython: upgrade 2.6.0 -> 2.6.1 python3-eventlet: upgrade 0.35.1 -> 0.35.2 python3-gcovr: upgrade 7.0 -> 7.2 python3-google-api-core: upgrade 2.16.2 -> 2.17.1 python3-google-api-python-client: upgrade 2.118.0 -> 2.120.0 python3-grpcio(-tools): upgrade 1.60.1 -> 1.62.0 python3-ipython: upgrade 8.21.0 -> 8.22.1 python3-pdm: upgrade 2.12.3 -> 2.12.4 python3-pymisp: upgrade 2.4.185 -> 2.4.186 python3-scrypt: upgrade 0.8.20 -> 0.8.24 python3-sentry-sdk: upgrade 1.40.4 -> 1.40.6 smarty: upgrade 4.3.4 -> 4.4.1 stunnel: upgrade 5.69 -> 5.72 abseil-cpp: upgrade 20230802.1 -> 20240116.1 dnf-plugin-tui: upgrade 1.3 -> 1.4 boost-sml: upgrade 1.1.9 -> 1.1.11 ctags: upgrade 6.1.20240225.0 -> 6.1.20240310.0 dialog: upgrade 1.3-20240101 -> 1.3-20240307 flatbuffers: upgrade 23.5.26 -> 24.3.7 gjs: upgrade 1.78.4 -> 1.80.0 hwdata: upgrade 0.379 -> 0.380 iceauth: upgrade 1.0.9 -> 1.0.10 libdnet: upgrade 1.17.0 -> 1.18.0 libopus: upgrade 1.4 -> 1.5.1 libreport: upgrade 2.17.11 -> 2.17.15 libxaw: upgrade 1.0.15 -> 1.0.16 mcelog: upgrade 196 -> 197 networkd-dispatcher: upgrade 2.1 -> 2.2.4 openlldp: upgrade 1.1.0 -> 1.1.1 opensc: upgrade 0.24.0 -> 0.25.0 pcsc-lite: upgrade 2.0.1 -> 2.0.3 python3-a2wsgi: upgrade 1.10.2 -> 1.10.4 python3-apiflask: upgrade 2.1.0 -> 2.1.1 python3-argcomplete: upgrade 3.2.2 -> 3.2.3 python3-bandit: upgrade 1.7.7 -> 1.7.8 python3-blivet: upgrade 3.8.2 -> 3.9.1 python3-blivetgui: upgrade 2.4.2 -> 2.5.0 python3-django: upgrade 5.0.2 -> 5.0.3 python3-elementpath: upgrade 4.3.0 -> 4.4.0 python3-eth-abi: upgrade 5.0.0 -> 5.0.1 python3-eth-rlp: upgrade 1.0.1 -> 2.0.0 python3-flask-migrate: upgrade 4.0.5 -> 4.0.7 python3-google-api-python-client: upgrade 2.120.0 -> 2.122.0 python3-google-auth: upgrade 2.28.1 -> 2.28.2 python3-googleapis-common-protos: upgrade 1.62.0 -> 1.63.0 python3-grpcio-tools: upgrade 1.62.0 -> 1.62.1 python3-grpcio: upgrade 1.62.0 -> 1.62.1 python3-ipython: upgrade 8.22.1 -> 8.22.2 python3-mypy: upgrade 1.8.0 -> 1.9.0 python3-pydantic: upgrade 2.6.3 -> 2.6.4 python3-pymisp: upgrade 2.4.186 -> 2.4.187 python3-pymodbus: upgrade 3.6.4 -> 3.6.6 python3-pyperf: upgrade 2.6.2 -> 2.6.3 python3-pytest-lazy-fixtures: upgrade 1.0.5 -> 1.0.6 python3-pytest-timeout: upgrade 2.2.0 -> 2.3.1 python3-requests-oauthlib: upgrade 1.3.1 -> 1.4.0 python3-sentry-sdk: upgrade 1.40.6 -> 1.42.0 python3-tox: upgrade 4.13.0 -> 4.14.1 python3-traitlets: upgrade 5.14.1 -> 5.14.2 python3-types-psutil: upgrade 5.9.5.20240205 -> 5.9.5.20240316 python3-types-python-dateutil: upgrade 2.8.19.20240106 -> 2.9.0.20240316 tcsh: upgrade 6.24.10 -> 6.24.11 thingsboard-gateway: upgrade 3.4.4 -> 3.4.5 xmessage: upgrade 1.0.6 -> 1.0.7 xrefresh: upgrade 1.0.7 -> 1.1.0 gjs: upgrade 1.80.0 -> 1.80.2 gnome-backgrounds: upgrade 45.0 -> 46.0 gnome-font-viewer: upgrade 45.0 -> 46.0 libblockdev: upgrade 3.1.0 -> 3.1.1 libdeflate: upgrade 1.19 -> 1.20 libmbim: upgrade 1.30.0 -> 1.31.2 libqmi: upgrade 1.34.0 -> 1.35.2 libtommath: upgrade 1.2.1 -> 1.3.0 mcelog: upgrade 197 -> 198 metacity: upgrade 3.50.0 -> 3.52.0 python3-asgiref: upgrade 3.7.2 -> 3.8.1 python3-blivet: upgrade 3.9.1 -> 3.9.2 python3-cassandra-driver: upgrade 3.29.0 -> 3.29.1 python3-djangorestframework: upgrade 3.14.0 -> 3.15.1 python3-eth-rlp: upgrade 2.0.0 -> 2.1.0 python3-eventlet: upgrade 0.35.2 -> 0.36.1 python3-filelock: upgrade 3.13.1 -> 3.13.3 python3-flask-marshmallow: upgrade 1.2.0 -> 1.2.1 python3-flatbuffers: upgrade 24.3.7 -> 24.3.25 python3-google-api-core: upgrade 2.17.1 -> 2.18.0 python3-google-api-python-client: upgrade 2.122.0 -> 2.124.0 python3-google-auth: upgrade 2.28.2 -> 2.29.0 python3-graphviz: upgrade 0.20.1 -> 0.20.3 python3-gspread: upgrade 6.0.2 -> 6.1.0 python3-jdatetime: upgrade 4.1.1 -> 5.0.0 python3-pdm: upgrade 2.12.4 -> 2.13.2 python3-pyasn1-modules: upgrade 0.3.0 -> 0.4.0 python3-pymisp: upgrade 2.4.187 -> 2.4.188 python3-pytest-asyncio: upgrade 0.23.5 -> 0.23.6 python3-pytest-cov: upgrade 4.1.0 -> 5.0.0 python3-pytest-lazy-fixtures: upgrade 1.0.6 -> 1.0.7 python3-pywbem: upgrade 1.6.2 -> 1.6.3 python3-pywbemtools: upgrade 1.2.0 -> 1.2.1 python3-pyzstd: upgrade 0.15.9 -> 0.15.10 python3-requests-oauthlib: upgrade 1.4.0 -> 2.0.0 python3-sentry-sdk: upgrade 1.42.0 -> 1.44.0 python3-socketio: upgrade 5.11.1 -> 5.11.2 python3-thrift: upgrade 0.16.0 -> 0.20.0 python3-tox: upgrade 4.14.1 -> 4.14.2 python3-web3: upgrade 6.15.1 -> 6.16.0 st: upgrade 0.9 -> 0.9.1 thingsboard-gateway: upgrade 3.4.5 -> 3.4.6 thrift: upgrade 0.19.0 -> 0.20.0 tracker-miners: upgrade 3.7.0 -> 3.7.1 tracker: upgrade 3.7.0 -> 3.7.1 wireshark: upgrade 4.2.3 -> 4.2.4 wolfssl: upgrade 5.6.6 -> 5.7.0 William Lyu (3): nftables: Fix ptest output format issues nftables: Fix ShellCheck violations in ptest wrapper script "run-ptest" nftables: Fix failed ptest testcases Yi Zhao (13): netplan: upgrade 0.106 -> 1.0 networkmanager: 1.44.0 -> 1.46.0 postfix: upgrade 3.8.5 -> 3.8.6 net-snmp: upgrade 5.9.3 -> 5.9.4 cryptsetup: upgrade 2.7.0 -> 2.7.1 samba: upgrade 4.19.4 -> 4.19.5 civetweb: remove buildpaths from civetweb-targets.cmake minifi-cpp: upgrade 0.7.0 -> 0.15.0 openvpn: upgrade 2.6.9 -> 2.6.10 rocksdb: upgrade 7.9.2 -> 9.0.0 audit: upgrade 4.0 -> 4.0.1 netplan: add missing config directory strongswan: upgrade 5.9.13 -> 5.9.14 alperak (15): python3-icecream: add recipe python3-invoke: add recipe python3-traitlets: add ptest and update runtime dependencies python3-google-auth-oauthlib: add ptest python3-tomli-w: added recipe which is also include ptest python3-pytest-localserver: added recipe which is also include ptest python3-responses: add recipe python3-google-auth: add ptest and update runtime dependencies remove obsolete PIP_INSTALL_PACKAGE and PIP_INSTALL_DIST_PATH python3-a2wsgi: added recipe which is also include ptest python3-httptools: added recipe which is also include ptest python3-wsproto: Add recipe python3-portalocker: enable ptest python3-validators: upgrade 0.22.0 > 0.24.0 and enable ptest python3-pydbus: Drop ${PYTHON_PN} chenheyun (1): aer-inject:add new recipe Change-Id: I3cf0e5c87ecdfa18c35d318cb64c0e6559348618 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'poky/meta/recipes-core')
-rw-r--r--poky/meta/recipes-core/coreutils/coreutils_9.4.bb4
-rw-r--r--poky/meta/recipes-core/expat/expat_2.6.2.bb (renamed from poky/meta/recipes-core/expat/expat_2.6.1.bb)2
-rw-r--r--poky/meta/recipes-core/glib-2.0/glib-2.0/skip-timeout.patch32
-rw-r--r--poky/meta/recipes-core/glib-2.0/glib-2.0_2.78.4.bb1
-rw-r--r--poky/meta/recipes-core/glibc/glibc-version.inc2
-rw-r--r--poky/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch67
-rw-r--r--poky/meta/recipes-core/glibc/glibc/0024-qemu-stale-process.patch45
-rw-r--r--poky/meta/recipes-core/glibc/glibc_2.39.bb1
-rw-r--r--poky/meta/recipes-core/meta/cve-update-nvd2-native.bb35
-rw-r--r--poky/meta/recipes-core/ovmf/ovmf_git.bb3
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-001.patch45
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-002.patch51
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-003.patch46
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-004.patch68
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-005.patch53
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-006.patch102
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-007.patch51
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-008.patch80
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-009.patch76
-rw-r--r--poky/meta/recipes-core/readline/readline/readline82-010.patch70
-rw-r--r--poky/meta/recipes-core/readline/readline_8.2.bb12
-rw-r--r--poky/meta/recipes-core/systemd/systemd/0001-NamePolicy.patch33
-rw-r--r--poky/meta/recipes-core/systemd/systemd_255.4.bb2
-rw-r--r--poky/meta/recipes-core/util-linux/util-linux.inc7
-rw-r--r--poky/meta/recipes-core/util-linux/util-linux/fcntl-lock.c332
-rw-r--r--poky/meta/recipes-core/util-linux/util-linux/mit-license.patch45
-rw-r--r--poky/meta/recipes-core/util-linux/util-linux_2.39.3.bb7
27 files changed, 1229 insertions, 43 deletions
diff --git a/poky/meta/recipes-core/coreutils/coreutils_9.4.bb b/poky/meta/recipes-core/coreutils/coreutils_9.4.bb
index fc51adcd5b..62ecdea6ec 100644
--- a/poky/meta/recipes-core/coreutils/coreutils_9.4.bb
+++ b/poky/meta/recipes-core/coreutils/coreutils_9.4.bb
@@ -23,7 +23,7 @@ SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \
SRC_URI[sha256sum] = "ea613a4cf44612326e917201bbbcdfbd301de21ffc3b59b6e5c07e040b275e52"
# http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=v8.27-101-gf5d7c0842
-#
+#
CVE_STATUS[CVE-2016-2781] = "disputed: runcon is not really a sandbox command, use `runcon ... setsid ...` to avoid this particular issue."
EXTRA_OECONF:class-target = "--enable-install-program=arch,hostname --libexecdir=${libdir}"
@@ -169,7 +169,7 @@ BBCLASSEXTEND = "native nativesdk"
inherit ptest
-RDEPENDS:${PN}-ptest += "bash findutils gawk liberror-perl make perl perl-modules python3-core sed shadow"
+RDEPENDS:${PN}-ptest += "bash findutils gawk make perl perl-modules python3-core sed shadow"
# -dev automatic dependencies fails as we don't want libmodule-build-perl-dev, its too heavy
# may need tweaking if DEPENDS changes
diff --git a/poky/meta/recipes-core/expat/expat_2.6.1.bb b/poky/meta/recipes-core/expat/expat_2.6.2.bb
index 9bdc3b6206..6c9db91bef 100644
--- a/poky/meta/recipes-core/expat/expat_2.6.1.bb
+++ b/poky/meta/recipes-core/expat/expat_2.6.2.bb
@@ -15,7 +15,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/R_${VERSION_TAG}/expat-${PV}.tar.bz2 \
GITHUB_BASE_URI = "https://github.com/libexpat/libexpat/releases/"
UPSTREAM_CHECK_REGEX = "releases/tag/R_(?P<pver>.+)"
-SRC_URI[sha256sum] = "4677d957c0c6cb2a3321101944574c24113b637c7ab1cf0659a27c5babc201fd"
+SRC_URI[sha256sum] = "9c7c1b5dcbc3c237c500a8fb1493e14d9582146dd9b42aa8d3ffb856a3b927e0"
EXTRA_OECMAKE:class-native += "-DEXPAT_BUILD_DOCS=OFF"
diff --git a/poky/meta/recipes-core/glib-2.0/glib-2.0/skip-timeout.patch b/poky/meta/recipes-core/glib-2.0/glib-2.0/skip-timeout.patch
new file mode 100644
index 0000000000..cd5ac287c3
--- /dev/null
+++ b/poky/meta/recipes-core/glib-2.0/glib-2.0/skip-timeout.patch
@@ -0,0 +1,32 @@
+From bb11d1a4ae77d93ec0743e54077cf0f990243fa6 Mon Sep 17 00:00:00 2001
+From: Ross Burton <ross.burton@arm.com>
+Date: Thu, 28 Mar 2024 16:27:09 +0000
+Subject: [PATCH] Skip /timeout/rounding test
+
+This test is sensitive to load because it expects certain timeout operations
+to succeed in specific time periods. Whilst these timeouts are fairly large,
+they're still exceeded inside a qemu on a loaded system.
+
+https://bugzilla.yoctoproject.org/show_bug.cgi?id=14464
+
+Upstream-Status: Inappropriate [OE-specific]
+Signed-off-by: Ross Burton <ross.burton@arm.com>
+---
+ glib/tests/timeout.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/glib/tests/timeout.c b/glib/tests/timeout.c
+index 1ae3f3a34..85a715b0f 100644
+--- a/glib/tests/timeout.c
++++ b/glib/tests/timeout.c
+@@ -214,7 +214,6 @@ main (int argc, char *argv[])
+ g_test_add_func ("/timeout/seconds-once", test_seconds_once);
+ g_test_add_func ("/timeout/weeks-overflow", test_weeks_overflow);
+ g_test_add_func ("/timeout/far-future-ready-time", test_far_future_ready_time);
+- g_test_add_func ("/timeout/rounding", test_rounding);
+
+ return g_test_run ();
+ }
+--
+2.34.1
+
diff --git a/poky/meta/recipes-core/glib-2.0/glib-2.0_2.78.4.bb b/poky/meta/recipes-core/glib-2.0/glib-2.0_2.78.4.bb
index f0fd057be7..b1669ead75 100644
--- a/poky/meta/recipes-core/glib-2.0/glib-2.0_2.78.4.bb
+++ b/poky/meta/recipes-core/glib-2.0/glib-2.0_2.78.4.bb
@@ -17,6 +17,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
file://0001-Switch-from-the-deprecated-distutils-module-to-the-p.patch \
file://memory-monitor.patch \
file://fix-regex.patch \
+ file://skip-timeout.patch \
"
SRC_URI:append:class-native = " file://relocate-modules.patch \
file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \
diff --git a/poky/meta/recipes-core/glibc/glibc-version.inc b/poky/meta/recipes-core/glibc/glibc-version.inc
index 5b0705f696..618a574566 100644
--- a/poky/meta/recipes-core/glibc/glibc-version.inc
+++ b/poky/meta/recipes-core/glibc/glibc-version.inc
@@ -1,6 +1,6 @@
SRCBRANCH ?= "release/2.39/master"
PV = "2.39+git"
-SRCREV_glibc ?= "312e159626b67fe11f39e83e222cf4348a3962f3"
+SRCREV_glibc ?= "1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c"
SRCREV_localedef ?= "fab74f31b3811df543e24b6de47efdf45b538abc"
GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https"
diff --git a/poky/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch b/poky/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch
index 816471a828..f6523c5498 100644
--- a/poky/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch
+++ b/poky/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch
@@ -1,53 +1,62 @@
-From f761f5ca2d453e11d34fc7d552dab4a0e189dae9 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Fri, 4 Aug 2023 09:34:50 -0700
-Subject: [PATCH] aarch64/configure: Pass -mcpu along with -march to detect sve
- support
+From 73c26018ed0ecd9c807bb363cc2c2ab4aca66a82 Mon Sep 17 00:00:00 2001
+From: Szabolcs Nagy <szabolcs.nagy@arm.com>
+Date: Wed, 13 Mar 2024 14:34:14 +0000
+Subject: [PATCH] aarch64: fix check for SVE support in assembler
-SVE support logic in configure is rightly passing -march=<arch>+sve to
-compiler to override whatever user might have passed via environment,
-however GCC does not do as intended when -mcpu is part of environment
-compiler flags, then it overrides the -march computed from -mcpu and
-igonores other -march values so this test fails for lot of aarch64
-machines which pass -mcpu that does not support sve. This is seemingly a
-bug in GCC [1], until that is fixed we preempt -mcpu along with -march
-in the configure test itself. It does not change functionality and yet
-lets us through the GCC inconsistency.
+Due to GCC bug 110901 -mcpu can override -march setting when compiling
+asm code and thus a compiler targetting a specific cpu can fail the
+configure check even when binutils gas supports SVE.
-[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110901
-
-Upstream-Status: Inappropriate [Workaround for a GCC issue]
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
+The workaround is that explicit .arch directive overrides both -mcpu
+and -march, and since that's what the actual SVE memcpy uses the
+configure check should use that too even if the GCC issue is fixed
+independently.
+Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=73c26018ed0ecd9c807bb363cc2c2ab4aca66a82]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Reviewed-by: Florian Weimer <fweimer@redhat.com>
---
- sysdeps/aarch64/configure | 2 +-
- sysdeps/aarch64/configure.ac | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
+ sysdeps/aarch64/configure | 5 +++--
+ sysdeps/aarch64/configure.ac | 5 +++--
+ 2 files changed, 6 insertions(+), 4 deletions(-)
+ mode change 100644 => 100755 sysdeps/aarch64/configure
diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure
-index 5e91fab023..39dddc66d4 100644
+old mode 100644
+new mode 100755
+index ca57edce47..9606137e8d
--- a/sysdeps/aarch64/configure
+++ b/sysdeps/aarch64/configure
-@@ -327,7 +327,7 @@ else $as_nop
+@@ -325,9 +325,10 @@ then :
+ printf %s "(cached) " >&6
+ else $as_nop
cat > conftest.s <<\EOF
- ptrue p0.b
+- ptrue p0.b
++ .arch armv8.2-a+sve
++ ptrue p0.b
EOF
-if { ac_try='${CC-cc} -c -march=armv8.2-a+sve conftest.s 1>&5'
-+if { ac_try='${CC-cc} -c -mcpu=generic+sve -march=armv8.2-a+sve conftest.s 1>&5'
++if { ac_try='${CC-cc} -c conftest.s 1>&5'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5
ac_status=$?
diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac
-index 8a708f2ef4..b6a146d2be 100644
+index 27874eceb4..56d12d661d 100644
--- a/sysdeps/aarch64/configure.ac
+++ b/sysdeps/aarch64/configure.ac
-@@ -92,7 +92,7 @@ AC_CACHE_CHECK([for SVE support in assembler], [libc_cv_aarch64_sve_asm], [dnl
+@@ -90,9 +90,10 @@ LIBC_CONFIG_VAR([aarch64-variant-pcs], [$libc_cv_aarch64_variant_pcs])
+ # Check if asm support armv8.2-a+sve
+ AC_CACHE_CHECK([for SVE support in assembler], [libc_cv_aarch64_sve_asm], [dnl
cat > conftest.s <<\EOF
- ptrue p0.b
+- ptrue p0.b
++ .arch armv8.2-a+sve
++ ptrue p0.b
EOF
-if AC_TRY_COMMAND(${CC-cc} -c -march=armv8.2-a+sve conftest.s 1>&AS_MESSAGE_LOG_FD); then
-+if AC_TRY_COMMAND(${CC-cc} -c -mcpu=generic+sve -march=armv8.2-a+sve conftest.s 1>&AS_MESSAGE_LOG_FD); then
++if AC_TRY_COMMAND(${CC-cc} -c conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_aarch64_sve_asm=yes
else
libc_cv_aarch64_sve_asm=no
+--
+2.44.0
+
diff --git a/poky/meta/recipes-core/glibc/glibc/0024-qemu-stale-process.patch b/poky/meta/recipes-core/glibc/glibc/0024-qemu-stale-process.patch
new file mode 100644
index 0000000000..c0a467fcec
--- /dev/null
+++ b/poky/meta/recipes-core/glibc/glibc/0024-qemu-stale-process.patch
@@ -0,0 +1,45 @@
+glibc: Skip 2 qemu tests that can hang in oe-selftest
+
+qemumips and qemuppc were leaving stale processes behind after
+running glibc oe-selftest. During analysis, it was found that
+it was due to "tst-scm_rights" and "tst-scm_rights-time64" tests.
+Disable them so that there are no stale processes left behind.
+
+[YOCTO #15423]
+https://bugzilla.yoctoproject.org/show_bug.cgi?id=15423
+
+Upstream-Status: Inappropriate [oe-core specific]
+Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
+---
+diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile
+--- a/sysdeps/unix/sysv/linux/Makefile 2024-03-18 01:15:49.019202881 -0700
++++ b/sysdeps/unix/sysv/linux/Makefile 2024-03-14 06:26:18.581404107 -0700
+@@ -222,7 +222,6 @@
+ tst-process_mrelease \
+ tst-quota \
+ tst-rlimit-infinity \
+- tst-scm_rights \
+ tst-sigtimedwait \
+ tst-sync_file_range \
+ tst-sysconf-iov_max \
+@@ -233,6 +232,8 @@
+ tst-timerfd \
+ tst-ttyname-direct \
+ tst-ttyname-namespace \
++ # Skip this test to avoid stale qemu process
++ # tst-scm_rights \
+ # tests
+
+ # process_madvise requires CAP_SYS_ADMIN.
+@@ -270,9 +271,10 @@
+ tst-ntp_gettimex-time64 \
+ tst-ppoll-time64 \
+ tst-prctl-time64 \
+- tst-scm_rights-time64 \
+ tst-sigtimedwait-time64 \
+ tst-timerfd-time64 \
++ # Skip this test to avoid stale qemu process
++ # tst-scm_rights-time64 \
+ # tests-time64
+
+ tests-clone-internal = \
diff --git a/poky/meta/recipes-core/glibc/glibc_2.39.bb b/poky/meta/recipes-core/glibc/glibc_2.39.bb
index b203060064..9122472689 100644
--- a/poky/meta/recipes-core/glibc/glibc_2.39.bb
+++ b/poky/meta/recipes-core/glibc/glibc_2.39.bb
@@ -49,6 +49,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
file://0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch \
file://0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch \
file://0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch \
+ file://0024-qemu-stale-process.patch \
"
S = "${WORKDIR}/git"
B = "${WORKDIR}/build-${TARGET_SYS}"
diff --git a/poky/meta/recipes-core/meta/cve-update-nvd2-native.bb b/poky/meta/recipes-core/meta/cve-update-nvd2-native.bb
index bfe48b27e7..1901641965 100644
--- a/poky/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/poky/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -26,13 +26,17 @@ NVDCVE_API_KEY ?= ""
# Use a negative value to skip the update
CVE_DB_UPDATE_INTERVAL ?= "86400"
-# Number of attmepts for each http query to nvd server before giving up
+# CVE database incremental update age threshold, in seconds. If the database is
+# older than this threshold, do a full re-download, else, do an incremental
+# update. By default: the maximum allowed value from NVD: 120 days (120*24*60*60)
+# Use 0 to force a full download.
+CVE_DB_INCR_UPDATE_AGE_THRES ?= "10368000"
+
+# Number of attempts for each http query to nvd server before giving up
CVE_DB_UPDATE_ATTEMPTS ?= "5"
CVE_DB_TEMP_FILE ?= "${CVE_CHECK_DB_DIR}/temp_nvdcve_2.db"
-CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvdcve_2.db"
-
python () {
if not bb.data.inherits_class("cve-check", d):
raise bb.parse.SkipRecipe("Skip recipe when cve-check class is not loaded.")
@@ -119,7 +123,8 @@ def nvd_request_wait(attempt, min_wait):
def nvd_request_next(url, attempts, api_key, args, min_wait):
"""
- Request next part of the NVD dabase
+ Request next part of the NVD database
+ NVD API documentation: https://nvd.nist.gov/developers/vulnerabilities
"""
import urllib.request
@@ -172,18 +177,24 @@ def update_db_file(db_tmp_file, d, database_time):
req_args = {'startIndex' : 0}
- # The maximum range for time is 120 days
- # Force a complete update if our range is longer
- if (database_time != 0):
+ incr_update_threshold = int(d.getVar("CVE_DB_INCR_UPDATE_AGE_THRES"))
+ if database_time != 0:
database_date = datetime.datetime.fromtimestamp(database_time, tz=datetime.timezone.utc)
today_date = datetime.datetime.now(tz=datetime.timezone.utc)
delta = today_date - database_date
- if delta.days < 120:
+ if incr_update_threshold == 0:
+ bb.note("CVE database: forced full update")
+ elif delta < datetime.timedelta(seconds=incr_update_threshold):
bb.note("CVE database: performing partial update")
+ # The maximum range for time is 120 days
+ if delta > datetime.timedelta(days=120):
+ bb.error("CVE database: Trying to do an incremental update on a larger than supported range")
req_args['lastModStartDate'] = database_date.isoformat()
req_args['lastModEndDate'] = today_date.isoformat()
else:
bb.note("CVE database: file too old, forcing a full update")
+ else:
+ bb.note("CVE database: no preexisting database, do a full download")
with bb.progress.ProgressHandler(d) as ph, open(os.path.join(d.getVar("TMPDIR"), 'cve_check'), 'a') as cve_f:
@@ -313,6 +324,10 @@ def update_db(conn, elt):
vectorString = None
cveId = elt['cve']['id']
if elt['cve']['vulnStatus'] == "Rejected":
+ c = conn.cursor()
+ c.execute("delete from PRODUCTS where ID = ?;", [cveId])
+ c.execute("delete from NVD where ID = ?;", [cveId])
+ c.close()
return
cveDesc = ""
for desc in elt['cve']['descriptions']:
@@ -346,6 +361,10 @@ def update_db(conn, elt):
[cveId, cveDesc, cvssv2, cvssv3, date, accessVector, vectorString]).close()
try:
+ # Remove any pre-existing CVE configuration. Even for partial database
+ # update, those will be repopulated. This ensures that old
+ # configuration is not kept for an updated CVE.
+ conn.execute("delete from PRODUCTS where ID = ?", [cveId]).close()
for config in elt['cve']['configurations']:
# This is suboptimal as it doesn't handle AND/OR and negate, but is better than nothing
for node in config["nodes"]:
diff --git a/poky/meta/recipes-core/ovmf/ovmf_git.bb b/poky/meta/recipes-core/ovmf/ovmf_git.bb
index 3dc031d3b6..5b1353b8e8 100644
--- a/poky/meta/recipes-core/ovmf/ovmf_git.bb
+++ b/poky/meta/recipes-core/ovmf/ovmf_git.bb
@@ -30,6 +30,9 @@ PV = "edk2-stable202308"
SRCREV = "819cfc6b42a68790a23509e4fcc58ceb70e1965e"
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>edk2-stable.*)"
+CVE_PRODUCT = "edk2"
+CVE_VERSION = "${@d.getVar('PV').split('stable')[1]}"
+
inherit deploy
PARALLEL_MAKE = ""
diff --git a/poky/meta/recipes-core/readline/readline/readline82-001.patch b/poky/meta/recipes-core/readline/readline/readline82-001.patch
new file mode 100644
index 0000000000..4e9839db9c
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-001.patch
@@ -0,0 +1,45 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-001
+
+Bug-Reported-by: Kan-Ru Chen <koster@debian.org>
+Bug-Reference-ID:
+Bug-Reference-URL: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021109
+
+Bug-Description:
+
+Starting a readline application with an invalid locale specification for
+LC_ALL/LANG/LC_CTYPE can cause it crash on the first call to readline.
+
+Patch (apply with `patch -p0'):
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/nls.c 2022-08-15 09:38:51.000000000 -0400
+--- nls.c 2022-10-05 09:23:22.000000000 -0400
+***************
+*** 142,145 ****
+--- 142,149 ----
+ lspec = "";
+ ret = setlocale (LC_CTYPE, lspec); /* ok, since it does not change locale */
++ if (ret == 0 || *ret == 0)
++ ret = setlocale (LC_CTYPE, (char *)NULL);
++ if (ret == 0 || *ret == 0)
++ ret = RL_DEFAULT_LOCALE;
+ #else
+ ret = (lspec == 0 || *lspec == 0) ? RL_DEFAULT_LOCALE : lspec;
+
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 0
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 1
diff --git a/poky/meta/recipes-core/readline/readline/readline82-002.patch b/poky/meta/recipes-core/readline/readline/readline82-002.patch
new file mode 100644
index 0000000000..5629685dc1
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-002.patch
@@ -0,0 +1,51 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-002
+
+Bug-Reported-by: srobertson@peratonlabs.com
+Bug-Reference-ID:
+Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00049.html
+
+Bug-Description:
+
+It's possible for readline to try to zero out a line that's not null-
+terminated, leading to a memory fault.
+
+Patch (apply with `patch -p0'):
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/display.c 2022-04-05 10:47:31.000000000 -0400
+--- display.c 2022-12-13 13:11:22.000000000 -0500
+***************
+*** 2684,2692 ****
+
+ if (visible_line)
+! {
+! temp = visible_line;
+! while (*temp)
+! *temp++ = '\0';
+! }
+ rl_on_new_line ();
+ forced_display++;
+--- 2735,2740 ----
+
+ if (visible_line)
+! memset (visible_line, 0, line_size);
+!
+ rl_on_new_line ();
+ forced_display++;
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 1
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 2
diff --git a/poky/meta/recipes-core/readline/readline/readline82-003.patch b/poky/meta/recipes-core/readline/readline/readline82-003.patch
new file mode 100644
index 0000000000..61570bf4f4
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-003.patch
@@ -0,0 +1,46 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-003
+
+Bug-Reported-by: Stefan Klinger <readline-gnu.org@stefan-klinger.de>
+Bug-Reference-ID:
+Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2023-08/msg00018.html
+
+Bug-Description:
+
+Patch (apply with `patch -p0'):
+
+The custom color prefix that readline uses to color possible completions
+must have a leading `.'.
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/colors.c 2021-12-08 11:38:25.000000000 -0500
+--- colors.c 2023-08-28 16:40:04.000000000 -0400
+***************
+*** 74,78 ****
+ static void restore_default_color (void);
+
+! #define RL_COLOR_PREFIX_EXTENSION "readline-colored-completion-prefix"
+
+ COLOR_EXT_TYPE *_rl_color_ext_list = 0;
+--- 74,78 ----
+ static void restore_default_color (void);
+
+! #define RL_COLOR_PREFIX_EXTENSION ".readline-colored-completion-prefix"
+
+ COLOR_EXT_TYPE *_rl_color_ext_list = 0;
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 2
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 3
diff --git a/poky/meta/recipes-core/readline/readline/readline82-004.patch b/poky/meta/recipes-core/readline/readline/readline82-004.patch
new file mode 100644
index 0000000000..cedc3d0fe4
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-004.patch
@@ -0,0 +1,68 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-004
+
+Bug-Reported-by: Henry Bent <henry.r.bent@gmail.com>
+Bug-Reference-ID:
+Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-11/msg00044.html
+
+Bug-Description:
+
+Patch (apply with `patch -p0'):
+
+There are systems that supply one of select or pselect, but not both.
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/input.c 2022-04-08 15:43:24.000000000 -0400
+--- input.c 2022-11-28 09:41:08.000000000 -0500
+***************
+*** 152,156 ****
+--- 152,158 ----
+ int _rl_timeout_init (void);
+ int _rl_timeout_sigalrm_handler (void);
++ #if defined (RL_TIMEOUT_USE_SELECT)
+ int _rl_timeout_select (int, fd_set *, fd_set *, fd_set *, const struct timeval *, const sigset_t *);
++ #endif
+
+ static void _rl_timeout_handle (void);
+***************
+*** 249,253 ****
+ int chars_avail, k;
+ char input;
+! #if defined(HAVE_SELECT)
+ fd_set readfds, exceptfds;
+ struct timeval timeout;
+--- 251,255 ----
+ int chars_avail, k;
+ char input;
+! #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
+ fd_set readfds, exceptfds;
+ struct timeval timeout;
+***************
+*** 806,810 ****
+ unsigned char c;
+ int fd;
+! #if defined (HAVE_PSELECT)
+ sigset_t empty_set;
+ fd_set readfds;
+--- 815,819 ----
+ unsigned char c;
+ int fd;
+! #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
+ sigset_t empty_set;
+ fd_set readfds;
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 3
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 4
diff --git a/poky/meta/recipes-core/readline/readline/readline82-005.patch b/poky/meta/recipes-core/readline/readline/readline82-005.patch
new file mode 100644
index 0000000000..69c2e4f77a
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-005.patch
@@ -0,0 +1,53 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-005
+
+Bug-Reported-by: Simon Marchi <simon.marchi@polymtl.ca>
+Bug-Reference-ID:
+Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2022-09/msg00005.html
+
+Bug-Description:
+
+If an application is using readline in callback mode, and a signal arrives
+after readline checks for it in rl_callback_read_char() but before it
+restores the application's signal handlers, it won't get processed until the
+next time the application calls rl_callback_read_char(). Readline needs to
+check for and resend any pending signals after restoring the application's
+signal handlers.
+
+Patch (apply with `patch -p0'):
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/callback.c 2022-04-29 12:02:56.000000000 -0400
+--- callback.c 2022-10-11 10:59:06.000000000 -0400
+***************
+*** 116,120 ****
+ do { \
+ if (rl_persistent_signal_handlers == 0) \
+! rl_clear_signals (); \
+ return; \
+ } while (0)
+--- 116,123 ----
+ do { \
+ if (rl_persistent_signal_handlers == 0) \
+! { \
+! rl_clear_signals (); \
+! if (_rl_caught_signal) _rl_signal_handler (_rl_caught_signal); \
+! } \
+ return; \
+ } while (0)
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 4
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 5
diff --git a/poky/meta/recipes-core/readline/readline/readline82-006.patch b/poky/meta/recipes-core/readline/readline/readline82-006.patch
new file mode 100644
index 0000000000..d66afe82c9
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-006.patch
@@ -0,0 +1,102 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-006
+
+Bug-Reported-by: Tom de Vries <tdevries@suse.de>
+Bug-Reference-ID:
+Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2022-09/msg00001.html
+
+Bug-Description:
+
+This is a variant of the same issue as the one fixed by patch 5. In this
+case, the signal arrives and is pending before readline calls rl_getc().
+When this happens, the pending signal will be handled by the loop, but may
+alter or destroy some state that the callback uses. Readline needs to treat
+this case the same way it would if a signal interrupts pselect/select, so
+compound operations like searches and reading numeric arguments get cleaned
+up properly.
+
+Patch (apply with `patch -p0'):
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/input.c 2022-12-22 16:15:48.000000000 -0500
+--- input.c 2023-01-10 11:53:45.000000000 -0500
+***************
+*** 812,816 ****
+ rl_getc (FILE *stream)
+ {
+! int result;
+ unsigned char c;
+ int fd;
+--- 812,816 ----
+ rl_getc (FILE *stream)
+ {
+! int result, ostate, osig;
+ unsigned char c;
+ int fd;
+***************
+*** 823,828 ****
+--- 823,842 ----
+ while (1)
+ {
++ osig = _rl_caught_signal;
++ ostate = rl_readline_state;
++
+ RL_CHECK_SIGNALS ();
+
++ #if defined (READLINE_CALLBACKS)
++ /* Do signal handling post-processing here, but just in callback mode
++ for right now because the signal cleanup can change some of the
++ callback state, and we need to either let the application have a
++ chance to react or abort some current operation that gets cleaned
++ up by rl_callback_sigcleanup(). If not, we'll just run through the
++ loop again. */
++ if (osig != 0 && (ostate & RL_STATE_CALLBACK))
++ goto postproc_signal;
++ #endif
++
+ /* We know at this point that _rl_caught_signal == 0 */
+
+***************
+*** 888,891 ****
+--- 902,908 ----
+
+ handle_error:
++ osig = _rl_caught_signal;
++ ostate = rl_readline_state;
++
+ /* If the error that we received was EINTR, then try again,
+ this is simply an interrupted system call to read (). We allow
+***************
+*** 928,933 ****
+--- 945,959 ----
+ #endif /* SIGALRM */
+
++ postproc_signal:
++ /* POSIX says read(2)/pselect(2)/select(2) don't return EINTR for any
++ reason other than being interrupted by a signal, so we can safely
++ call the application's signal event hook. */
+ if (rl_signal_event_hook)
+ (*rl_signal_event_hook) ();
++ #if defined (READLINE_CALLBACKS)
++ else if (osig == SIGINT && (ostate & RL_STATE_CALLBACK) && (ostate & (RL_STATE_ISEARCH|RL_STATE_NSEARCH|RL_STATE_NUMERICARG)))
++ /* just these cases for now */
++ _rl_abort_internal ();
++ #endif
+ }
+ }
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 5
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 6
diff --git a/poky/meta/recipes-core/readline/readline/readline82-007.patch b/poky/meta/recipes-core/readline/readline/readline82-007.patch
new file mode 100644
index 0000000000..9fa1ccb552
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-007.patch
@@ -0,0 +1,51 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-007
+
+Bug-Reported-by: Kevin Pulo <kev@pulo.com.au>
+Bug-Reference-ID:
+Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2022-11/msg00002.html
+
+Bug-Description:
+
+If readline is called with no prompt, it should display a newline if return
+is typed on an empty line. It should still suppress the final newline if
+return is typed on the last (empty) line of a multi-line command.
+
+Patch (apply with `patch -p0'):
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/display.c 2022-04-05 10:47:31.000000000 -0400
+--- display.c 2022-12-13 13:11:22.000000000 -0500
+***************
+*** 3342,3348 ****
+ &last_face[_rl_screenwidth - 1 + woff], 1);
+ }
+! _rl_vis_botlin = 0;
+! if (botline_length > 0 || _rl_last_c_pos > 0)
+ rl_crlf ();
+ fflush (rl_outstream);
+ rl_display_fixed++;
+--- 3394,3400 ----
+ &last_face[_rl_screenwidth - 1 + woff], 1);
+ }
+! if ((_rl_vis_botlin == 0 && botline_length == 0) || botline_length > 0 || _rl_last_c_pos > 0)
+ rl_crlf ();
++ _rl_vis_botlin = 0;
+ fflush (rl_outstream);
+ rl_display_fixed++;
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 6
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 7
diff --git a/poky/meta/recipes-core/readline/readline/readline82-008.patch b/poky/meta/recipes-core/readline/readline/readline82-008.patch
new file mode 100644
index 0000000000..660cb1e00b
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-008.patch
@@ -0,0 +1,80 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-008
+
+Bug-Reported-by:
+Bug-Reference-ID:
+Bug-Reference-URL:
+
+Bug-Description:
+
+Add missing prototypes for several function declarations.
+
+Patch (apply with `patch -p0'):
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/text.c Wed Oct 27 11:03:59 2021
+--- text.c Thu Nov 16 16:24:58 2023
+***************
+*** 1765,1770 ****
+ #if defined (READLINE_CALLBACKS)
+ static int
+! _rl_char_search_callback (data)
+! _rl_callback_generic_arg *data;
+ {
+ _rl_callback_func = 0;
+--- 1765,1769 ----
+ #if defined (READLINE_CALLBACKS)
+ static int
+! _rl_char_search_callback (_rl_callback_generic_arg *data)
+ {
+ _rl_callback_func = 0;
+*** ../readline-8.2-patched/bind.c Wed Feb 9 11:02:22 2022
+--- bind.c Thu Nov 16 16:25:17 2023
+***************
+*** 1168,1174 ****
+
+ static int
+! parse_comparison_op (s, indp)
+! const char *s;
+! int *indp;
+ {
+ int i, peekc, op;
+--- 1168,1172 ----
+
+ static int
+! parse_comparison_op (const char *s, int *indp)
+ {
+ int i, peekc, op;
+*** ../readline-8.2-patched/rltty.c Fri Feb 18 11:14:22 2022
+--- rltty.c Thu Nov 16 16:25:36 2023
+***************
+*** 81,86 ****
+ to get the tty settings. */
+ static void
+! set_winsize (tty)
+! int tty;
+ {
+ #if defined (TIOCGWINSZ)
+--- 81,85 ----
+ to get the tty settings. */
+ static void
+! set_winsize (int tty)
+ {
+ #if defined (TIOCGWINSZ)
+
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 7
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 8
diff --git a/poky/meta/recipes-core/readline/readline/readline82-009.patch b/poky/meta/recipes-core/readline/readline/readline82-009.patch
new file mode 100644
index 0000000000..1fcf7b3535
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-009.patch
@@ -0,0 +1,76 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-009
+
+Bug-Reported-by: Stefan H. Holek <stefan@epy.co.at>
+Bug-Reference-ID: <50F8DA45-B7F3-4DE1-AB94-19AE42649CDC@epy.co.at>
+Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2022-10/msg00021.html
+
+Bug-Description:
+
+Fix issue where the directory name portion of the word to be completed (the
+part that is passed to opendir()) requires both tilde expansion and dequoting.
+Readline only performed tilde expansion in this case, so filename completion
+would fail.
+
+Patch (apply with `patch -p0'):
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/complete.c 2022-04-05 10:47:06.000000000 -0400
+--- complete.c 2022-10-26 15:08:51.000000000 -0400
+***************
+*** 2527,2531 ****
+ xfree (dirname);
+ dirname = temp;
+! tilde_dirname = 1;
+ }
+
+--- 2527,2532 ----
+ xfree (dirname);
+ dirname = temp;
+! if (*dirname != '~')
+! tilde_dirname = 1; /* indicate successful tilde expansion */
+ }
+
+***************
+*** 2546,2554 ****
+ users_dirname = savestring (dirname);
+ }
+! else if (tilde_dirname == 0 && rl_completion_found_quote && rl_filename_dequoting_function)
+ {
+! /* delete single and double quotes */
+ xfree (dirname);
+! dirname = savestring (users_dirname);
+ }
+ directory = opendir (dirname);
+--- 2547,2560 ----
+ users_dirname = savestring (dirname);
+ }
+! else if (rl_completion_found_quote && rl_filename_dequoting_function)
+ {
+! /* We already ran users_dirname through the dequoting function.
+! If tilde_dirname == 1, we successfully performed tilde expansion
+! on dirname. Now we need to reconcile those results. We either
+! just copy the already-dequoted users_dirname or tilde expand it
+! if we tilde-expanded dirname. */
+! temp = tilde_dirname ? tilde_expand (users_dirname) : savestring (users_dirname);
+ xfree (dirname);
+! dirname = temp;
+ }
+ directory = opendir (dirname);
+
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 8
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 9
diff --git a/poky/meta/recipes-core/readline/readline/readline82-010.patch b/poky/meta/recipes-core/readline/readline/readline82-010.patch
new file mode 100644
index 0000000000..6152953e91
--- /dev/null
+++ b/poky/meta/recipes-core/readline/readline/readline82-010.patch
@@ -0,0 +1,70 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 8.2
+Patch-ID: readline82-010
+
+Bug-Reported-by: Martin Castillo <castilma@uni-bremen.de>
+Bug-Reference-ID: <2d42153b-cf65-caba-dff1-cd3bc6268c7e@uni-bremen.de>
+Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2023-01/msg00000.html
+
+Bug-Description:
+
+Fix the case where text to be completed from the line buffer (quoted) is
+compared to the common prefix of the possible matches (unquoted) and the
+quoting makes the former appear to be longer than the latter. Readline
+assumes the match doesn't add any characters to the word and doesn't display
+multiple matches.
+
+Patch (apply with `patch -p0'):
+
+Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+*** ../readline-8.2-patched/complete.c Tue Apr 5 10:47:06 2022
+--- complete.c Sat Jan 7 14:19:45 2023
+***************
+*** 2032,2038 ****
+ text = rl_copy_text (start, end);
+ matches = gen_completion_matches (text, start, end, our_func, found_quote, quote_char);
+ /* nontrivial_lcd is set if the common prefix adds something to the word
+ being completed. */
+! nontrivial_lcd = matches && compare_match (text, matches[0]) != 0;
+ if (what_to_do == '!' || what_to_do == '@')
+ tlen = strlen (text);
+--- 2038,2060 ----
+ text = rl_copy_text (start, end);
+ matches = gen_completion_matches (text, start, end, our_func, found_quote, quote_char);
++ /* If TEXT contains quote characters, it will be dequoted as part of
++ generating the matches, and the matches will not contain any quote
++ characters. We need to dequote TEXT before performing the comparison.
++ Since compare_match performs the dequoting, and we only want to do it
++ once, we don't call compare_matches after dequoting TEXT; we call
++ strcmp directly. */
+ /* nontrivial_lcd is set if the common prefix adds something to the word
+ being completed. */
+! if (rl_filename_completion_desired && rl_filename_quoting_desired &&
+! rl_completion_found_quote && rl_filename_dequoting_function)
+! {
+! char *t;
+! t = (*rl_filename_dequoting_function) (text, rl_completion_quote_character);
+! xfree (text);
+! text = t;
+! nontrivial_lcd = matches && strcmp (text, matches[0]) != 0;
+! }
+! else
+! nontrivial_lcd = matches && strcmp (text, matches[0]) != 0;
+ if (what_to_do == '!' || what_to_do == '@')
+ tlen = strlen (text);
+
+*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
+--- patchlevel 2014-03-21 08:28:40.000000000 -0400
+***************
+*** 1,3 ****
+ # Do not edit -- exists only for use by patch
+
+! 9
+--- 1,3 ----
+ # Do not edit -- exists only for use by patch
+
+! 10
diff --git a/poky/meta/recipes-core/readline/readline_8.2.bb b/poky/meta/recipes-core/readline/readline_8.2.bb
index 3a47297fe1..f0dba31251 100644
--- a/poky/meta/recipes-core/readline/readline_8.2.bb
+++ b/poky/meta/recipes-core/readline/readline_8.2.bb
@@ -2,4 +2,16 @@ require readline.inc
SRC_URI += " file://norpath.patch"
+SRC_URI += "file://readline82-001.patch;striplevel=0 \
+ file://readline82-002.patch;striplevel=0 \
+ file://readline82-003.patch;striplevel=0 \
+ file://readline82-004.patch;striplevel=0 \
+ file://readline82-005.patch;striplevel=0 \
+ file://readline82-006.patch;striplevel=0 \
+ file://readline82-007.patch;striplevel=0 \
+ file://readline82-008.patch;striplevel=0 \
+ file://readline82-009.patch;striplevel=0 \
+ file://readline82-010.patch;striplevel=0 \
+ "
+
SRC_URI[archive.sha256sum] = "3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35"
diff --git a/poky/meta/recipes-core/systemd/systemd/0001-NamePolicy.patch b/poky/meta/recipes-core/systemd/systemd/0001-NamePolicy.patch
new file mode 100644
index 0000000000..46955cbcbb
--- /dev/null
+++ b/poky/meta/recipes-core/systemd/systemd/0001-NamePolicy.patch
@@ -0,0 +1,33 @@
+From 9bb09886320eb286108fb370b2634a66b3e3b9ff Mon Sep 17 00:00:00 2001
+From: Joe Slater <joe.slater@windriver.com>
+Date: Thu, 21 Mar 2024 16:28:31 +0000
+Subject: [PATCH] systemd: enable mac based names in NamePolicy
+
+The default NamePolicy for network interface names does not
+include names based on mac addresses. Some BSPs, though, do
+not provide information to compute other names, so we enable
+mac names as a last resort.
+
+Upstream-Status: Inappropriate [enable feature]
+
+Signed-off-by: Joe Slater <joe.slater@windriver.com>
+---
+ network/99-default.link | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/network/99-default.link b/network/99-default.link
+index 429ac31e80..543ce54661 100644
+--- a/network/99-default.link
++++ b/network/99-default.link
+@@ -15,6 +15,6 @@
+ OriginalName=*
+
+ [Link]
+-NamePolicy=keep kernel database onboard slot path
+-AlternativeNamesPolicy=database onboard slot path
++NamePolicy=keep kernel database onboard slot path mac
++AlternativeNamesPolicy=database onboard slot path mac
+ MACAddressPolicy=persistent
+--
+2.35.5
+
diff --git a/poky/meta/recipes-core/systemd/systemd_255.4.bb b/poky/meta/recipes-core/systemd/systemd_255.4.bb
index bcef3e6b7a..8a816c4bc1 100644
--- a/poky/meta/recipes-core/systemd/systemd_255.4.bb
+++ b/poky/meta/recipes-core/systemd/systemd_255.4.bb
@@ -28,6 +28,7 @@ SRC_URI += " \
file://systemd-pager.sh \
file://0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch \
file://0008-implment-systemd-sysv-install-for-OE.patch \
+ file://0001-NamePolicy.patch \
"
# patches needed by musl
@@ -248,6 +249,7 @@ EXTRA_OEMESON += "-Dnobody-user=nobody \
-Dsystem-alloc-gid-min=101 \
-Dsystem-gid-max=999 \
-Dcreate-log-dirs=false \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', '-Ddefault-mdns=no -Ddefault-llmnr=no', '', d)} \
"
# Hardcode target binary paths to avoid using paths from sysroot or worse
diff --git a/poky/meta/recipes-core/util-linux/util-linux.inc b/poky/meta/recipes-core/util-linux/util-linux.inc
index 4e9d22f269..d506783f9a 100644
--- a/poky/meta/recipes-core/util-linux/util-linux.inc
+++ b/poky/meta/recipes-core/util-linux/util-linux.inc
@@ -6,14 +6,15 @@ disk partitioning, kernel message management, filesystem creation, and system lo
SECTION = "base"
-LICENSE = "GPL-1.0-or-later & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause"
+LICENSE = "GPL-1.0-or-later & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
+LICENSE:${PN}-fcntl-lock = "MIT"
LICENSE:${PN}-fdisk = "GPL-1.0-or-later"
LICENSE:${PN}-libblkid = "LGPL-2.1-or-later"
LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later"
LICENSE:${PN}-libmount = "LGPL-2.1-or-later"
LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later"
-LIC_FILES_CHKSUM = "file://README.licensing;md5=6b0e0a2320e66e62eef9b8149a6faec4 \
+LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba \
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \
@@ -29,6 +30,7 @@ LIC_FILES_CHKSUM = "file://README.licensing;md5=6b0e0a2320e66e62eef9b8149a6faec4
FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:"
MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \
+ file://mit-license.patch \
file://configure-sbindir.patch \
file://runuser.pamd \
file://runuser-l.pamd \
@@ -37,6 +39,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
file://display_testname_for_subtest.patch \
file://avoid_parallel_tests.patch \
file://0001-login-utils-include-libgen.h-for-basename-API.patch \
+ file://fcntl-lock.c \
"
SRC_URI[sha256sum] = "7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f"
diff --git a/poky/meta/recipes-core/util-linux/util-linux/fcntl-lock.c b/poky/meta/recipes-core/util-linux/util-linux/fcntl-lock.c
new file mode 100644
index 0000000000..966d8c5ecb
--- /dev/null
+++ b/poky/meta/recipes-core/util-linux/util-linux/fcntl-lock.c
@@ -0,0 +1,332 @@
+// From https://github.com/magnumripper/fcntl-lock
+// SPDX-License-Identifier: MIT
+/* ----------------------------------------------------------------------- *
+ *
+ * Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
+ * Copyright 2015 magnum (fcntl version)
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom
+ * the Software is furnished to do so, subject to the following
+ * conditions:
+ *
+ * The above copyright notice and this permission notice shall
+ * be included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * ----------------------------------------------------------------------- */
+
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <getopt.h>
+#include <signal.h>
+#include <ctype.h>
+#include <string.h>
+#include <paths.h>
+#include <sysexits.h>
+#include <sys/types.h>
+#include <sys/file.h>
+#include <sys/time.h>
+#include <sys/wait.h>
+
+#define PACKAGE_STRING "magnum"
+#define _(x) (x)
+
+static const struct option long_options[] = {
+ { "shared", 0, NULL, 's' },
+ { "exclusive", 0, NULL, 'x' },
+ { "unlock", 0, NULL, 'u' },
+ { "nonblocking", 0, NULL, 'n' },
+ { "nb", 0, NULL, 'n' },
+ { "timeout", 1, NULL, 'w' },
+ { "wait", 1, NULL, 'w' },
+ { "close", 0, NULL, 'o' },
+ { "help", 0, NULL, 'h' },
+ { "version", 0, NULL, 'V' },
+ { 0, 0, 0, 0 }
+};
+
+const char *program;
+
+static void usage(int ex)
+{
+ fputs("fcntl-lock (" PACKAGE_STRING ")\n", stderr);
+ fprintf(stderr,
+ _("Usage: %1$s [-sxun][-w #] fd#\n"
+ " %1$s [-sxon][-w #] file [-c] command...\n"
+ " %1$s [-sxon][-w #] directory [-c] command...\n"
+ " -s --shared Get a shared lock\n"
+ " -x --exclusive Get an exclusive lock\n"
+ " -u --unlock Remove a lock\n"
+ " -n --nonblock Fail rather than wait\n"
+ " -w --timeout Wait for a limited amount of time\n"
+ " -o --close Close file descriptor before running command\n"
+ " -c --command Run a single command string through the shell\n"
+ " -h --help Display this text\n"
+ " -V --version Display version\n"),
+ program);
+ exit(ex);
+}
+
+
+static sig_atomic_t timeout_expired = 0;
+
+static void timeout_handler(int sig)
+{
+ (void)sig;
+
+ timeout_expired = 1;
+}
+
+
+static char * strtotimeval(const char *str, struct timeval *tv)
+{
+ char *s;
+ long fs; /* Fractional seconds */
+ int i;
+
+ tv->tv_sec = strtol(str, &s, 10);
+ fs = 0;
+
+ if ( *s == '.' ) {
+ s++;
+
+ for ( i = 0 ; i < 6 ; i++ ) {
+ if ( !isdigit(*s) )
+ break;
+
+ fs *= 10;
+ fs += *s++ - '0';
+ }
+
+ for ( ; i < 6; i++ )
+ fs *= 10;
+
+ while ( isdigit(*s) )
+ s++;
+ }
+
+ tv->tv_usec = fs;
+ return s;
+}
+
+int main(int argc, char *argv[])
+{
+ struct itimerval timeout, old_timer;
+ int have_timeout = 0;
+ int type = F_WRLCK;
+ int block = F_SETLKW;
+ int fd = -1;
+ int opt, ix;
+ int do_close = 0;
+ int err;
+ int status;
+ char *eon;
+ char **cmd_argv = NULL, *sh_c_argv[4];
+ struct flock lock;
+ const char *filename = NULL;
+ struct sigaction sa, old_sa;
+
+ program = argv[0];
+
+ if ( argc < 2 )
+ usage(EX_USAGE);
+
+ memset(&timeout, 0, sizeof timeout);
+
+ optopt = 0;
+ while ( (opt = getopt_long(argc, argv, "+sexnouw:hV?", long_options, &ix)) != EOF ) {
+ switch(opt) {
+ case 's':
+ type = F_RDLCK;
+ break;
+ case 'e':
+ case 'x':
+ type = F_WRLCK;
+ break;
+ case 'u':
+ type = F_UNLCK;
+ break;
+ case 'o':
+ do_close = 1;
+ break;
+ case 'n':
+ block = F_SETLK;
+ break;
+ case 'w':
+ have_timeout = 1;
+ eon = strtotimeval(optarg, &timeout.it_value);
+ if ( *eon )
+ usage(EX_USAGE);
+ break;
+ case 'V':
+ printf("fcntl-lock (%s)\n", PACKAGE_STRING);
+ exit(0);
+ default:
+ /* optopt will be set if this was an unrecognized option, i.e. *not* 'h' or '?' */
+ usage(optopt ? EX_USAGE : 0);
+ break;
+ }
+ }
+
+ if ( argc > optind+1 ) {
+ /* Run command */
+
+ if ( !strcmp(argv[optind+1], "-c") ||
+ !strcmp(argv[optind+1], "--command") ) {
+
+ if ( argc != optind+3 ) {
+ fprintf(stderr, _("%s: %s requires exactly one command argument\n"),
+ program, argv[optind+1]);
+ exit(EX_USAGE);
+ }
+
+ cmd_argv = sh_c_argv;
+
+ cmd_argv[0] = getenv("SHELL");
+ if ( !cmd_argv[0] || !*cmd_argv[0] )
+ cmd_argv[0] = _PATH_BSHELL;
+
+ cmd_argv[1] = "-c";
+ cmd_argv[2] = argv[optind+2];
+ cmd_argv[3] = 0;
+ } else {
+ cmd_argv = &argv[optind+1];
+ }
+
+ filename = argv[optind];
+ fd = open(filename, O_RDWR|O_NOCTTY|O_CREAT, 0666);
+ /* Linux doesn't like O_CREAT on a directory, even though it should be a
+ no-op */
+ if (fd < 0 && errno == EISDIR)
+ fd = open(filename, O_RDONLY|O_NOCTTY);
+
+ if ( fd < 0 ) {
+ err = errno;
+ fprintf(stderr, _("%s: cannot open lock file %s: %s\n"),
+ program, argv[optind], strerror(err));
+ exit((err == ENOMEM||err == EMFILE||err == ENFILE) ? EX_OSERR :
+ (err == EROFS||err == ENOSPC) ? EX_CANTCREAT :
+ EX_NOINPUT);
+ }
+
+ } else if (optind < argc) {
+ /* Use provided file descriptor */
+
+ fd = (int)strtol(argv[optind], &eon, 10);
+ if ( *eon || !argv[optind] ) {
+ fprintf(stderr, _("%s: bad number: %s\n"), program, argv[optind]);
+ exit(EX_USAGE);
+ }
+
+ } else {
+ /* Bad options */
+
+ fprintf(stderr, _("%s: requires file descriptor, file or directory\n"),
+ program);
+ exit(EX_USAGE);
+ }
+
+
+ if ( have_timeout ) {
+ if ( timeout.it_value.tv_sec == 0 &&
+ timeout.it_value.tv_usec == 0 ) {
+ /* -w 0 is equivalent to -n; this has to be special-cased
+ because setting an itimer to zero means disabled! */
+
+ have_timeout = 0;
+ block = F_SETLK;
+ } else {
+ memset(&sa, 0, sizeof sa);
+
+ sa.sa_handler = timeout_handler;
+ sa.sa_flags = SA_RESETHAND;
+ sigaction(SIGALRM, &sa, &old_sa);
+
+ setitimer(ITIMER_REAL, &timeout, &old_timer);
+ }
+ }
+
+ memset(&lock, 0, sizeof(lock));
+ lock.l_type = type;
+ while ( fcntl(fd, block, &lock) ) {
+ switch( (err = errno) ) {
+ case EAGAIN: /* -n option set and failed to lock */
+ case EACCES: /* -n option set and failed to lock */
+ exit(1);
+ case EINTR: /* Signal received */
+ if ( timeout_expired )
+ exit(1); /* -w option set and failed to lock */
+ continue; /* otherwise try again */
+ default: /* Other errors */
+ if ( filename )
+ fprintf(stderr, "%s: %s: %s\n", program, filename, strerror(err));
+ else
+ fprintf(stderr, "%s: %d: %s\n", program, fd, strerror(err));
+ exit((err == ENOLCK||err == ENOMEM) ? EX_OSERR : EX_DATAERR);
+ }
+ }
+
+ if ( have_timeout ) {
+ setitimer(ITIMER_REAL, &old_timer, NULL); /* Cancel itimer */
+ sigaction(SIGALRM, &old_sa, NULL); /* Cancel signal handler */
+ }
+
+ status = 0;
+
+ if ( cmd_argv ) {
+ pid_t w, f;
+
+ /* Clear any inherited settings */
+ signal(SIGCHLD, SIG_DFL);
+ f = fork();
+
+ if ( f < 0 ) {
+ err = errno;
+ fprintf(stderr, _("%s: fork failed: %s\n"), program, strerror(err));
+ exit(EX_OSERR);
+ } else if ( f == 0 ) {
+ if ( do_close )
+ close(fd);
+ err = errno;
+ execvp(cmd_argv[0], cmd_argv);
+ /* execvp() failed */
+ fprintf(stderr, "%s: %s: %s\n", program, cmd_argv[0], strerror(err));
+ _exit((err == ENOMEM) ? EX_OSERR: EX_UNAVAILABLE);
+ } else {
+ do {
+ w = waitpid(f, &status, 0);
+ if (w == -1 && errno != EINTR)
+ break;
+ } while ( w != f );
+
+ if (w == -1) {
+ err = errno;
+ status = EXIT_FAILURE;
+ fprintf(stderr, "%s: waitpid failed: %s\n", program, strerror(err));
+ } else if ( WIFEXITED(status) )
+ status = WEXITSTATUS(status);
+ else if ( WIFSIGNALED(status) )
+ status = WTERMSIG(status) + 128;
+ else
+ status = EX_OSERR; /* WTF? */
+ }
+ }
+
+ return status;
+}
diff --git a/poky/meta/recipes-core/util-linux/util-linux/mit-license.patch b/poky/meta/recipes-core/util-linux/util-linux/mit-license.patch
new file mode 100644
index 0000000000..afbec98f18
--- /dev/null
+++ b/poky/meta/recipes-core/util-linux/util-linux/mit-license.patch
@@ -0,0 +1,45 @@
+From 5b8fab1584017d9d9be008c23b90128bba41a7b5 Mon Sep 17 00:00:00 2001
+From: Richard Purdie <richard.purdie@linuxfoundation.org>
+Date: Thu, 28 Mar 2024 12:16:57 +0000
+Subject: [PATCH] README.licensing/flock: Add MIT license mention
+
+Looking at the license text, flock.c is under the MIT license (see
+https://spdx.org/licenses/MIT).
+
+Add an SPDX license identifier header and add to the list of licenses the
+source so everything is correctly listed/identified.
+
+Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
+
+Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2870]
+
+---
+ README.licensing | 2 ++
+ sys-utils/flock.c | 4 +++-
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/README.licensing b/README.licensing
+index 4454f8392a..535ad34813 100644
+--- a/README.licensing
++++ b/README.licensing
+@@ -12,6 +12,8 @@ There is code under:
+
+ * LGPL-2.1-or-later - GNU Lesser General Public License 2.1 or any later version
+
++ * MIT - MIT License
++
+ * BSD-2-Clause - Simplified BSD License
+
+ * BSD-3-Clause - BSD 3-Clause "New" or "Revised" License
+diff --git a/sys-utils/flock.c b/sys-utils/flock.c
+index fed29d7270..7d878ff810 100644
+--- a/sys-utils/flock.c
++++ b/sys-utils/flock.c
+@@ -1,4 +1,6 @@
+-/* Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
++/* SPDX-License-Identifier: MIT
++ *
++ * Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
diff --git a/poky/meta/recipes-core/util-linux/util-linux_2.39.3.bb b/poky/meta/recipes-core/util-linux/util-linux_2.39.3.bb
index 3e87dcc2c2..83b3f4e05b 100644
--- a/poky/meta/recipes-core/util-linux/util-linux_2.39.3.bb
+++ b/poky/meta/recipes-core/util-linux/util-linux_2.39.3.bb
@@ -147,6 +147,11 @@ SYSTEMD_AUTO_ENABLE:${PN}-uuidd = "disable"
SYSTEMD_SERVICE:${PN}-fstrim = "fstrim.timer fstrim.service"
SYSTEMD_AUTO_ENABLE:${PN}-fstrim = "disable"
+do_compile:append () {
+ cp ${WORKDIR}/fcntl-lock.c ${S}/fcntl-lock.c
+ ${CC} ${CFLAGS} ${LDFLAGS} ${S}/fcntl-lock.c -o ${B}/fcntl-lock
+}
+
do_install () {
# with ccache the timestamps on compiled files may
# end up earlier than on their inputs, this allows
@@ -182,6 +187,8 @@ do_install () {
echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall
rm -f ${D}${bindir}/chkdupexe
+
+ install -m 0755 ${B}/fcntl-lock ${D}${bindir}
}
do_install:append:class-target () {