cargo.bbclass: set up cargo environment in common do_compile
cargo_do_compile runs only if the recipe is built using cargo
as the top level tool. Some recipes hide usage of cargo inside setuptools
(or autoconf) and use do_compile definitions specific to those,
and so the environment isn't properly set up.
This was exposed by latest versions of python3-cryptography.
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
There was a race condition during the Makefile execution in
between the assemble and compile targets, only the assemble
target had a dependency on creating the build directory.
If the compile target was executed first, an error was thrown
by bitbake since the build directory did not exist yet:
| Assembler messages:
| Fatal error: can't create build/hello_baremetal_aarch64.o:
No such file or directory
Update the SRCREV to reflect the latest changes serializing
the makefile targets to avoid such race condition from happening.
Ross Burton [Fri, 23 Jun 2023 12:32:50 +0000 (13:32 +0100)]
cve-update-nvd2-native: use exact times, don't truncate
When requesting updates in a specific range, use the actual current time
and database mtime instead of truncating to midnight, and explicitly set
the timezone to UTC so that NIST don't treat the timestamps as _their_ local
time when they're _our_ local time.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Fri, 28 Apr 2023 08:43:50 +0000 (10:43 +0200)]
defaultsetup: Enable largefile and 64bit time_t support systemwide for 32 bit platforms
There is a problem with 32 bit time looming for many 32 bit platforms
including arm, mip32, powerpc and x86 (but not riscv32) in 2038 when the
32 bit field time_t can no longer store the time value correctly due
to overflow.
Preparing for this is tricky as the ABI between libraries and binaries
will change and it isn't possible to migrate easily as structures and
return values change size.
As we're a source based system, the project has taken the decision that
we should change the compiler flags to switch to both largefile and 64
bit time_t. With OE-Core we've ironed out the issues we could spot
apart from some testing issues in strace and lttng-tools for which
discussions are ongoing upstream. There is more testing to be done
but we wanted to make this switch now in good time before our next
LTS release so we can work through any issues arrising.
We had already tried to mandate largefile everywhere before this but
this gives an opportunity to ensure that at the same time.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Tom Hochstein [Thu, 22 Jun 2023 20:39:13 +0000 (15:39 -0500)]
weston: Cleanup and fix x11 and xwayland dependencies
For the x11 backend package config, drop the redundant dependencies
libxcb and cairo. The former is listed twice in the package config,
while the latter is also listed globally.
For the xwayland package config, add the missing dependencies libxcb
and libxcursor. These dependencies are hidden when the x11 backend is
enabled by default. When the default setting is overridden to disable
the x11 backend, the following error occurs:
```
| Run-time dependency xcursor found: NO (tried pkgconfig and cmake)
|
| ../git/xwayland/meson.build:34:2: ERROR: Problem encountered: xwayland requires xcursor which was not found. Or, you can use '-Dxwayland=false'.
```
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bruce Ashfield [Thu, 22 Jun 2023 21:38:47 +0000 (17:38 -0400)]
linux-yocto/6.1: update to v6.1.35
Updating to the latest korg -stable release that comprises
the following commits:
e84a4e368abe Linux 6.1.35 a76d4933c38e kbuild: Update assembler calls to use proper flags and language target 5abcd2c18dbb MIPS: Prefer cc-option for additions to cflags 1d485ddcba85 MIPS: Move '-Wa,-msoft-float' check from as-option to cc-option d51d258997e5 x86/boot/compressed: prefer cc-option for CFLAGS additions bdd22f2aa131 scsi: target: core: Fix error path in target_setup_session() 741c96715fb7 neighbour: delete neigh_lookup_nodev as not used 26435338f9dd net/sched: act_api: add specific EXT_WARN_MSG for tc action ab1bbd79f48e Revert "net/sched: act_api: move TCA_EXT_WARN_MSG to the correct hierarchy" 8f3759981104 net/sched: act_api: move TCA_EXT_WARN_MSG to the correct hierarchy 4b4cae8e4b37 drm/amdgpu: Don't set struct drm_driver.output_poll_changed c6cbb4e1c10c rcu/kvfree: Avoid freeing new kfree_rcu() memory after old grace period 8d842af30bc2 parisc: Delete redundant register definitions in <asm/assembly.h> 616aba553640 afs: Fix vlserver probe RTT handling 34dc1eed9918 octeon_ep: Add missing check for ioremap 35d848164fec selftests/ptp: Fix timestamp printf format for PTP_SYS_OFFSET 6ab77b3b852d net: tipc: resize nlattr array to correct size d24c96581775 dm: don't lock fs when the map is NULL during suspend or resume 010179208c66 sfc: fix XDP queues mode with legacy IRQ 23efdbfa8eef net: macsec: fix double free of percpu stats 4ea1f3344472 net: lapbether: only support ethernet devices 59f0c7bec3ca net: dsa: felix: fix taprio guard band overflow at 10Mbps with jumbo frames 3626e93cd841 net/sched: cls_api: Fix lockup on flushing explicitly created chain fa285d799d1d ext4: drop the call to ext4_error() from ext4_get_group_info() d7d6e830cd0f cifs: fix lease break oops in xfstest generic/098 e8119d4d1611 selftests: forwarding: hw_stats_l3: Set addrgenmode in a separate step ea3f336f717a net/sched: qdisc_destroy() old ingress and clsact Qdiscs before grafting ac57be24dcf1 net/sched: Refactor qdisc_graft() for ingress and clsact Qdiscs 096c00ea80db sched: add new attr TCA_EXT_WARN_MSG to report tc extact message e568e0e16830 selftests/tc-testing: Fix SFB db test 700d7bf300c1 selftests/tc-testing: Fix Error: failed to find target LOG 8a086daf20a8 selftests/tc-testing: Fix Error: Specified qdisc kind is unknown. 62aecf23f3d1 drm/nouveau: add nv_encoder pointer check for NULL fb725beca62d drm/nouveau/dp: check for NULL nv_connector->native_mode a5acbe4ea5d0 drm/bridge: ti-sn65dsi86: Avoid possible buffer overflow 90748be0f4f3 drm/nouveau: don't detect DSM for non-NVIDIA device 835457c0d608 net: phylink: use a dedicated helper to parse usgmii control word fabf9cb41334 net: phylink: report correct max speed for QUSGMII df7477a8bdcb igb: fix nvm.ops.read() error handling 9710e5c30bd4 igc: Fix possible system crash when loading module c6612bf33ebe igc: Clean the TX buffer and TX descriptor ring fe289f8fee9a sctp: fix an error code in sctp_sf_eat_auth() 0b8ae7d6e4ad ipvlan: fix bound dev checking for IPv6 l3s mode 33bd6b76ac77 net: ethtool: correct MAX attribute value for stats 277fbf63b34a IB/isert: Fix incorrect release of isert connection f77965f48792 IB/isert: Fix possible list corruption in CMA handler 4e55c9abe947 IB/isert: Fix dead lock in ib_isert 1def2a94f4ee RDMA/mlx5: Fix affinity assignment 8618f8f72389 IB/uverbs: Fix to consider event queue closing also upon non-blocking mode 4dc0b367c390 RDMA/cma: Always set static rate to 0 for RoCE ec6d49687d2b RDMA/mlx5: Create an indirect flow table for steering anchor 3a83145b660c RDMA/mlx5: Initiate dropless RQ for RAW Ethernet functions c764fed5e544 octeontx2-af: fix lbk link credits on cn10k 7c6d50414649 octeontx2-af: fixed resource availability check b4a3cae58cd8 iavf: remove mask from iavf_irq_enable_queues() 26256aa7edcd RDMA/rxe: Fix the use-before-initialization error of resp_pkts b0b3848e0363 RDMA/rxe: Removed unused name from rxe_task struct e83bc9388627 wifi: mac80211: take lock before setting vif links 170ceadf4a57 wifi: cfg80211: fix link del callback to call correct handler 49f3a79f03bd wifi: mac80211: fix link activation settings order 07f9cc229b44 net/sched: cls_u32: Fix reference counter leak leading to overflow c9411f014e5c octeontx2-af: Fix promiscuous mode 5cf38fbc82ba net/sched: act_pedit: Parse L3 Header for L4 offset fb25478f6699 net/sched: act_pedit: remove extra check for key type b4e5d0c4cf07 net/sched: simplify tcf_pedit_act 300be9f1dc4b igb: Fix extts capture value format for 82580/i354/i350 a4a912aee14e ping6: Fix send to link-local addresses with VRF. 381d49ec68ca net: enetc: correct the indexes of highest and 2nd highest TCs 4aaa3b730d16 netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE bec51844f9ba ice: Fix XDP memory leak when NIC is brought up and down 8fddf3f05156 netfilter: nfnetlink: skip error delivery on batch in case of ENOMEM 55b7a00f3422 netfilter: nf_tables: integrate pipapo into commit protocol 839d38d3b0aa spi: fsl-dspi: avoid SCK glitches with continuous transfers 485792480660 spi: cadence-quadspi: Add missing check for dma_set_mask 2906e0d75b50 RDMA/rxe: Fix ref count error in check_rkey() 7617a59f0056 RDMA/rxe: Fix packet length checks 00b276bc7b62 RDMA/rtrs: Fix rxe_dealloc_pd warning 77226c9785f8 RDMA/rtrs: Fix the last iu->buf leak in err path 03285557deb6 usb: dwc3: gadget: Reset num TRBs before giving back the request 7bee7f13c039 USB: dwc3: fix use-after-free on core driver unbind 307fe59490bd USB: dwc3: qcom: fix NULL-deref on suspend d8195536ce26 usb: gadget: udc: core: Prevent soft_connect_store() race 3c048d42c305 usb: gadget: udc: core: Offload usb_udc_vbus_handler processing 3a1882841f64 usb: typec: Fix fast_role_swap_current show function 2bf8ea2e9e39 usb: typec: ucsi: Fix command cancellation b352f7b6a646 serial: lantiq: add missing interrupt ack 04b3145db225 USB: serial: option: add Quectel EM061KGL series 03b5964a2825 clk: pxa: fix NULL pointer dereference in pxa3xx_clk_update_accr 5532962c9ed2 thunderbolt: Mask ring interrupt on Intel hardware as well d799f73d5d44 thunderbolt: dma_test: Use correct value for absent rings when creating paths 081b5f1ebc73 thunderbolt: Do not touch CL state configuration during discovery 1eb0eff7da97 ALSA: hda/realtek: Add a quirk for Compaq N14JP6 21863dc45aed drm/amdgpu: add missing radeon secondary PCI ID 6f5b5ce9397d drm/amd/pm: workaround for compute workload type on some skus b69a10df9003 drm/amd: Tighten permissions on VBIOS flashing attributes b2706d862b65 drm/amd: Make sure image is written to trigger VBIOS image update flow ee8c6580c310 drm/amd/display: edp do not add non-edid timings 2cb6026df193 net: usb: qmi_wwan: add support for Compal RXM-G1 5d1fdfb3d185 drm/amdgpu: vcn_4_0 set instance 0 init sched score to 1 f6d74371ce15 RDMA/uverbs: Restrict usage of privileged QKEYs 5a144bad3e75 nouveau: fix client work fence deletion race 33965ac34091 net: ethernet: stmicro: stmmac: fix possible memory leak in __stmmac_open bfaf388d3599 dm thin: fix issue_discard to pass GFP_NOIO to __blkdev_issue_discard 088ad777eeae dm thin metadata: check fail_io before using data_sm 1886db9a4ee1 ALSA: usb-audio: Add quirk flag for HEM devices to enable native DSD playback 029e0f1f7521 ALSA: usb-audio: Fix broken resume due to UAC3 power state 9e1c7968a275 btrfs: can_nocow_file_extent should pass down args->strict from callers 4e9da0cda149 btrfs: fix iomap_begin length for nocow writes 4389fb6b6a9d btrfs: do not ASSERT() on duplicated global roots 7e23b1ec720a powerpc/purgatory: remove PGO flags 352f62431ad3 riscv/purgatory: remove PGO flags 2cf6e32e86ea x86/purgatory: remove PGO flags 013027918a4e kexec: support purgatories with .text.hot sections c9c3163c7ab9 io_uring/net: save msghdr->msg_control for retries cffaa97ffb67 LoongArch: Fix perf event id calculation ad64865722b6 nilfs2: reject devices with insufficient block count 69caea4eed1c nilfs2: fix possible out-of-bounds segment allocation in resize ioctl 8f47a9665aee nilfs2: fix incomplete buffer cleanup in nilfs_btnode_abort_change_key() 3d4bc38f716c nios2: dts: Fix tse_mac "max-frame-size" property 447f325497dc zswap: do not shrink if cgroup may not zswap 9f17645f8528 ocfs2: check new file size on fallocate call 534b4bbc8589 ocfs2: fix use-after-free when unmounting read-only filesystem 3a340c63c0c3 epoll: ep_autoremove_wake_function should use list_del_init_careful 6d304091e091 wifi: cfg80211: fix double lock bug in reg_wdev_chan_valid() b11f953a61e9 wifi: cfg80211: fix locking in regulatory disconnect 9a9adc42a590 irqchip/gic: Correctly validate OF quirk descriptors 22efb27a21b6 NVMe: Add MAXIO 1602 to bogus nid list. c9c205945033 io_uring: unlock sqd->lock before sq thread release CPU 8ca9880735b0 drm:amd:amdgpu: Fix missing buffer object unlock in failure path 41c383c49657 xen/blkfront: Only check REQ_FUA for writes 75955d698636 ASoC: dwc: move DMA init to snd_soc_dai_driver probe() 7e57a56374aa ASoC: cs35l41: Fix default regmap values for some registers 424fc902728c mips: Move initrd_start check after initrd address sanitisation. dd035c08ee96 MIPS: Alchemy: fix dbdma2 34dd1a90ab64 MIPS: Restore Au1300 support 048ad52d528e MIPS: unhide PATA_PLATFORM 3d48ea53c44b parisc: Flush gatt writes and adjust gatt mask in parisc_agp_mask_memory() e522a12e4892 parisc: Improve cache flushing for PCXL in arch_sync_dma_for_cpu() 0b09b35cae86 ASoC: Intel: avs: Add missing checks on FE startup 5daa27bcb31d ASoC: Intel: avs: Account for UID of ACPI device c33fded7f17f ASoC: soc-pcm: test if a BE can be prepared 0a9b2164b7d8 btrfs: handle memory allocation failure in btrfs_csum_one_bio e9a5175d5e83 btrfs: scrub: try harder to mark RAID56 block groups read-only c45aed74318e drm: panel-orientation-quirks: Change Air's quirk to support Air Plus 2d9144c0ca82 power: supply: Fix logic checking if system is running from battery 808e103ebac9 irqchip/meson-gpio: Mark OF related data as maybe unused 0cdb593c2fe9 irqchip/gic-v3: Disable pseudo NMIs on Mediatek devices w/ firmware issues bf8324676b1c regulator: Fix error checking for debugfs_create_dir c94be1f039c3 platform/x86: asus-wmi: Ignore WMI events with codes 0x7B, 0xC0 cdf9cfc1bbd7 PCI/DPC: Quirk PIO log size for Intel Ice Lake Root Ports 22358b9c418c power: supply: Ratelimit no data debug output a7620312a082 selftests: gpio: gpio-sim: Fix BUG: test FAILED due to recent change 79a0a3695e01 tools: gpio: fix debounce_period_us output of lsgpio cc1444a36398 ARM: dts: vexpress: add missing cache properties 398bf0d67bcc power: supply: bq27xxx: Use mod_delayed_work() instead of cancel() + schedule() 66a88d04cf5d power: supply: sc27xx: Fix external_power_changed race e3d2bdca180b power: supply: ab8500: Fix external_power_changed race 628e40a225a0 of: overlay: Fix missing of_node_put() in error case of init_overlay_changeset() e01fc7caac9c ksmbd: validate smb request protocol id fec79e4f7df5 EDAC/qcom: Get rid of hardcoded register offsets 4b3ec6b6ff24 qcom: llcc/edac: Fix the base address used for accessing LLCC banks 314e973f36a5 cgroup: fix missing cpus_read_{lock,unlock}() in cgroup_transfer_tasks() c68b4db58138 cgroup: always put cset in cgroup_css_set_put_fork 7a2e2ca9ad21 cgroup: bpf: use cgroup_lock()/cgroup_unlock() wrappers 6111f0add6ff test_firmware: prevent race conditions by a correct implementation of locking aa2dfdc4ed25 test_firmware: Use kstrtobool() instead of strtobool() 100cd6d0e563 x86/head/64: Switch to KERNEL_CS as soon as new GDT is installed
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Adrian Freihofer [Thu, 22 Jun 2023 17:01:25 +0000 (19:01 +0200)]
runqemu-gen-tapdevs: remove staging dir parameter
The parameter staging_bindir_native is no longer used. Remove it.
For now the script is backward compatible. With 4 parameters it logs an
error message but still works.
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Adrian Freihofer [Thu, 22 Jun 2023 17:01:24 +0000 (19:01 +0200)]
runqemu-ifup: remove only our taps
If there are other tap interfaces than the interfaces created by the
runqemu-* scripts, these interfaces are not ignored. This is now fixed
by filtering the interfaces for a specific prefix in the interface name.
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Adrian Freihofer [Thu, 22 Jun 2023 17:01:23 +0000 (19:01 +0200)]
runqemu-ifup: fix tap index
Recent patches changed the index of the tap interfaces. They start now
with tap1 instead of tap0. Also the IP address starts with 192.168.7.3
instead of 192.168.7.1. This gets reverted to the previous behavior.
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Adrian Freihofer [Thu, 22 Jun 2023 17:01:22 +0000 (19:01 +0200)]
runqemu-ifup: configurable tap names
Feature: Hard-coding the interface names to tap* is not always a good
idea. Introduce an environment variable which allows to change this:
OE_TAP_NAME.
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This error is only reported once as logrotate removes
the world-readable permissions if this happens.
Since logrotate creates this file if it does not exist,
there should be no need to install it in the first place.
Ross Burton [Wed, 21 Jun 2023 14:22:12 +0000 (15:22 +0100)]
base: improve LICENSE_FLAGS_DETAILS output
Don't prefix the output of LICENSE_FLAGS_DETAILS with "For further
details, see" so that recipes can put arbitrary text in their license
details instead of being limited to a specific sentence structure.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
commits: 55d11f57 doc/dbus-api-design: fix wrong closing tag a96f417f CI: Run a detached pipeline for merge requests 9e0477fc CI: Only run for pushes to dbus 077f7e43 CI: Remove an obsolete workaround 07fe44f4 CI: Update Windows runners ec708d55 CI: Avoid using a no-op download location that gives a 403 error 45e6e93e dbus_message_iter_get_signature: Fix two memory leaks on OOM 0bb1942e dbus-internals: use `_DBUS_FUNCTION_NAME` in `_dbus_verbose()` 8df1b8be dbus-sysdeps-win: do not log function name twice 5c3a4e81 dbus-spawn-win: use `_DBUS_FUNCTION_NAME` instead of `__FUNCTION__` 8e457296 Update NEWS e1ffce17 Revert "CI: Remove an obsolete workaround" 40c0802f monitor test: Log the messages that we monitored a70c8f2f bus: Assign a serial number for messages from the driver 39b5c617 monitor test: Reproduce #457 f99e5de1 Update NEWS 21414587 AUTHORS: Update f90d4f16 Release v1.14.8
Ross Burton [Tue, 20 Jun 2023 12:34:04 +0000 (13:34 +0100)]
sysfsutils: don't install to base_libdir
This library now ships a pkgconfig file but $base_libdir isn't in the
search path, so can't be used.
As the base_libdir/libdir split is pretty meaningless these days, simply
stop installing into base_libdir. This was added to silence warnings
from pcmciautils[1] but PCMCIA isn't really a thing anymore so this
shouldn't be a problem.
Alberto Planas [Mon, 19 Jun 2023 06:42:48 +0000 (08:42 +0200)]
rpm2cpio.sh: update to the last 4.x version
openSUSE RPMs are compressing the RPM payload using zstd, that
correspond to the magic ID 0x28, 0xb5, 0x2f.
This patch update the script to the last version from the rpm project,
and add support to this compression format, and extract the cpio payload
using the "unzstd" binary.
Signed-off-by: Alberto Planas <aplanas@suse.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Chen Qi [Mon, 19 Jun 2023 04:35:56 +0000 (12:35 +0800)]
unzip: remove hardcoded LARGE_FILE_SUPPORT
Now that unzip's configure can correctly do the detection even in
case of cross compilation, there's no need to use this hardcoded
LARGE_FILE_SUPPORT flag.
Chen Qi [Mon, 19 Jun 2023 04:35:55 +0000 (12:35 +0800)]
unzip: fix configure check for cross compilation
The original configure runs a generated binary to determine
features. This is not correct for cross compilation. So change
the runtime tests into compile-time tests to fix the issue.
Chen Qi [Mon, 19 Jun 2023 04:35:54 +0000 (12:35 +0800)]
zip: remove unnecessary LARGE_FILE_SUPPORT CLFAGS
As the zip's configure has been updated to use compile-time
check, it now can do the check correctly, thus no need to
pass LARGE_FILE_SUPPORT to CFLAGS.
Chen Qi [Mon, 19 Jun 2023 04:35:53 +0000 (12:35 +0800)]
zip: fix configure check by using _Static_assert
It's incorrect to run a cross-compiled program on build machine
to check if some feature is available or not. As these two checks
in zip are basically just checking the size, we can use _Static_assert
and sizeof to do such check at compile time.
Khem Raj [Sun, 18 Jun 2023 21:48:24 +0000 (14:48 -0700)]
python3-bcrypt: Use BFD linker when building tests
Some of the tests use symbols from libpython3 e.g. PyBytes_FromStringAndSize
but does not add it to linker cmdline, its perhaps cargo which
should be fixed for that, this however is not something we can
fix in OE. So switch to using bfd linker explicitly when
building with ptests
runqemu: Stop passing bindir to the runqemu-ifup call
Since https://git.yoctoproject.org/poky/commit/?id=51063c1e6ac
we need to pass exactly 2 arguments to runqemu-ifup, otherwise
the script will return an error since bindir is no longer being
used.
However the call to runqemu-ifup from runqemu is still passing
bindir as an argument resulting in the error mentioned above,
remove the bindir argument to fix this issue.
[YOCTO #15150]
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Trevor Gamblin [Tue, 20 Jun 2023 17:59:13 +0000 (13:59 -0400)]
glib-networking: use correct error code in ptest
The eagain patch is currently using G_IO_ERROR_BUSY as part of the check
to retry when the simul_read_thread test fails during ptests, but the
actual error code is 27, which corresponds to G_IO_ERROR_WOULD_BLOCK.
Change the check so that it looks for the right code.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Mon, 19 Jun 2023 13:40:55 +0000 (14:40 +0100)]
insane: Improve patch-status layer filtering
Now that we have layer overrides, we can easily enable patch-status in
ERROR_QA without the hardcoded code making it easier for other layers
to opt into the checks.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Mon, 19 Jun 2023 13:40:33 +0000 (14:40 +0100)]
bitbake.conf: Add layer-<layername> override support
Add a new layer specific override based upon the FILE_LAYERNAME support now present
in bitbake. In particular this allows layer specific QA warnings and errors to
be made more easily.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sun, 18 Jun 2023 23:00:25 +0000 (00:00 +0100)]
ptest-runner: Ensure data writes don't race
Currently the code can race as there is a read/write thread handling the stdio but
there is no guarantee that when the process exits, the thread has handled all the
data. This results in output where "END:" isn't actually at the end of the logs
but somewhere in the middle of the output.
Update to a revision with this fix.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton [Mon, 19 Jun 2023 11:49:27 +0000 (12:49 +0100)]
ghostscript: mostly rewrite recipe
This started as a patch cleanup but escalated rapidly.
Remove unneeded patches:
- mkdir-p.patch isn't needed now the Makefiles appear to have the correct
dependencies.
- ghostscript-9.15-parallel-make.patch appears to be unneeded for the same
reason
- base-genht.c-add-a-preprocessor-define-to-allow-fope.patch isn't needed
- cups-no-gcrypt.patch isn't needed
- do-not-check-local-libpng-source.patch can be replaced by deleting
the libpng/ directory, as is already done for jpeg/
- ghostscript-9.21-native-fix-disable-system-libtiff.patch is not needed
when we stop doing native builds (see below)
Remove the need for ghostscript-native to build and install tools that
are needed at target build-time: ghostscript can do this itself. Remove
the BBCLASSEXTEND and all of the native overrides.
Inherit pkgconfig and explicitly tell configure to use the pkgconfig
binary: unless told otherwise this configure will refuse to use an
unprefixed pkgconfig in cross builds.
Review DEPENDS and add missing freetype and zlib dependencies.
Ghostcript will use the embedded copies of libraries over system
libraries, so extend the deletion of jpeg and libpng to include expat,
freetype, and cups as we want to link to our build of those. We can't
delete zlib as it is explicitly used when building the native tools.
Add PACKAGECONFIGs for optional libidn and libpaper dependencies.
Remove HAVE_SYS_TIME_H assignments, the upstream bug was fixed in 2011.
Clean up comments: there's no need to explain how to use PACKAGECONFIG,
and justify the use of autotools-brokensep.
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Chen Qi [Mon, 19 Jun 2023 07:41:10 +0000 (00:41 -0700)]
rpm: write macros under libdir
If we create a macros file under etc/, the populate_sdk task would
fail if 'package-management' is in SDKIMAGE_FEATURES and nativesdk-rpm-build
is installed.. The error message is like below:
unable to place /.../sdk/image/etc/rpm in final SDK location
This is because it's trying to move the etc/rpm dictory into the
host sysroot but the <host_sysroot>/etc/rpm has already exists.
To solve this problem, avoid creating /etc/rpm/macros for nativesdk-rpm-build,
use ${libdir}/macros instead. In this way, the macros file is hold
in nativesdk-rpm. As nativesdk-rpm-build depends on nativesdk-rpm,
the 'rpmbuild' command inside SDK can still correctly find find-debuginfo
binary.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sun, 18 Jun 2023 09:09:16 +0000 (10:09 +0100)]
ptest-runner: Pull in sync fix to improve log warnings
Pulls in:
utils: Ensure buffers are flushed after child exits
We currently wait for the child to exit but we don't flush the buffers.
This can mean the output ends up out of sync and the END: line isn't at
the end of the logs.
We've recently seen a lot of issues related to this on the autobuilder.
Add in a flush call for all fds to ensure buffers are in sync. This
does appear to improve warnings on the autobuilder now we started detecting
the issue.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Alexis Lothoré [Fri, 9 Jun 2023 06:48:01 +0000 (08:48 +0200)]
testimage: implement test artifacts retriever for failing tests
Add a basic artifacts retrievers in testimage class which:
- triggers when at least one runtime test fails but tests execution
encountered no major issue
- reads a list of paths to retrieve from TESTIMAGE_FAILED_QA_ARTIFACTS
- checks for artifacts presence on target
- retrieve those files over scp thanks to existing ssh class
- store those files in an "artifacts" directory in "tmp/log/oeqa/<image>"
This implementation assumes that the SSH or Qemu target has run and
finished gracefully. If tests do not finish because of an exception,
artifacts will not be retrieved
Bring partial solution to [YOCTO #14901]
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Alexis Lothoré [Fri, 9 Jun 2023 06:47:59 +0000 (08:47 +0200)]
oeqa/core/runner: add helper to know about expected failures
Testing framework currently uses the unittest.expectedFailure decorator for
tests that can have intermittent failures (see PTEST_EXPECT_FAILURE = "1")
in core-image-ptest.bb. While it allows upper layers to run tests without
failing on "fragile" tests, it prevents those from knowing more about those
failing tests since they are not accounting as failures (for example we
could want to retrieve some logs about failed tests to improve them, and
eventually to drop expectFailure decorator)
Add a helper to allow upper layers to know about those failures which won't
make global testing session
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Louis Rannou [Thu, 15 Jun 2023 11:43:55 +0000 (13:43 +0200)]
base-passwd: add the wheel group
The wheel group is not declared while it can be used to access the systemd
journal and to configure printers in CUPS. It can also be used for su and sudo
permissions.
So far it was created later in the rootfs postcommand systemd_create_users.
Signed-off-by: Louis Rannou <lrannou@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Louis Rannou [Thu, 15 Jun 2023 11:43:54 +0000 (13:43 +0200)]
systemd: replace the sysusers.d basic configuration
The default sysusers basic.conf.in file sets the root home directory to `/root`
and does not permit its configuration. Replace the file delivered by systemd so
the root home directory matches the `ROOT_HOME` variable.
Signed-off-by: Louis Rannou <lrannou@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Louis Rannou [Thu, 15 Jun 2023 11:43:53 +0000 (13:43 +0200)]
rootfs-postcommands: change sysusers.d command
The configuration in sysusers.d used to be parsed to create users/groups at
build time instead at runtime. This was leading to several conflicts with
users/groups defined in base-passwd recipe and specific definitions in recipes
inheriting the useradd class. Some of those conflicts raised unseen errors in
the do_rootfs command's logs.
As an example, the root home directory is set by default to `/home/root` but
systemd expects it as `/root`.
The new command `systemd_sysusers_check` checks each configuration for
users/groups and compare their properties to what is actually defined in the
`/etc/passwd` and `/etc/group` of the target rootfs.
Signed-off-by: Louis Rannou <lrannou@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Fri, 16 Jun 2023 16:12:46 +0000 (17:12 +0100)]
strace: Disable failing test
This test is failing for uncertain reasons. We have reported upstream, disable
it until we can work out why this happened. The point it started failing is
unclear due to other test framework issues.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Fri, 16 Jun 2023 15:41:43 +0000 (16:41 +0100)]
oeqa/logparser: Fix ptest No-section exception
Occasionally we see:
File "/media/build/poky/meta/lib/oeqa/runtime/cases/ptest.py", line 27, in test_ptestrunner_expectfail
self.do_ptestrunner()
File "/media/build/poky/meta/lib/oeqa/runtime/cases/ptest.py", line 77, in do_ptestrunner
results, sections = parser.parse(ptest_runner_log)
File "/media/build/poky/meta/lib/oeqa/utils/logparser.py", line 80, in parse
self.results[current_section['name']][result.group(1).strip()] = t
KeyError: 'No-section'
which occurs when there are "results" outside the main log section. The strace
tests do then upon failure as they dump logs there.
Add code to avoid the tracebacks and just make them warnings.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Sat, 17 Jun 2023 10:30:16 +0000 (11:30 +0100)]
oeqa/selftest/oescripts: Fix qemu-helper selftest
The updated selftest was assuming qemu-bridge-helper was available on the host
system which isn't always the case. Tweak the test case to avoid this issue by
adding dedicated help output and checking for this specifically.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie [Thu, 15 Jun 2023 16:59:06 +0000 (17:59 +0100)]
runqemu/qemu-helper: Drop tunctl
ip tuntap provides the functionality that we obtained from tunctl. We only
needed tunctl when ifconfig was more available than ip. That isn't the case
now so we can drop tunctl and all the hoops we need to jump through to build
and provide it.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
License-Update: BSD-3-Clause code removed in
https://github.com/sphinx-doc/sphinx/commit/a7f5d91c29d6f377b9fe7e926965c6f9d3e7b802
which was a part of 7.0.1 update
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>