[OE-core] [PATCH 1/2] libusb1: Link with latomic only if compiler has no atomic builtins

2023-01-20 Thread Khem Raj
This makes build use compiler to decide from where to get atomics instead of assuming that it should always come from libatomic, helps sharing build artifacts with OSes which may not have libatomic installed because it is not required on those hosts. Signed-off-by: Khem Raj ---

[OE-core] [PATCH 2/2] libusb1: Strip trailing whitespaces

2023-01-20 Thread Khem Raj
Signed-off-by: Khem Raj --- meta/recipes-support/libusb/libusb1_1.0.26.bb | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/meta/recipes-support/libusb/libusb1_1.0.26.bb b/meta/recipes-support/libusb/libusb1_1.0.26.bb index 301e60c14f..122c3d48b4 100644 ---

Re: [OE-core] [PATCH 1/3] insane: Improve patch warning/error handling

2023-01-20 Thread Richard Purdie
On Fri, 2023-01-20 at 20:38 +0100, Alexander Kanavin wrote: > On Fri, 20 Jan 2023 at 20:29, Bruce Ashfield wrote: > > Because I'm simply not going to insist on it in all the patches. I > > need all the contributions I can get, and I'm not going to > > pedantically insist on that. > > > >

Re: [OE-core] [PATCH 1/3] insane: Improve patch warning/error handling

2023-01-20 Thread Alexander Kanavin
On Fri, 20 Jan 2023 at 20:29, Bruce Ashfield wrote: > Because I'm simply not going to insist on it in all the patches. I > need all the contributions I can get, and I'm not going to > pedantically insist on that. > > meta-virt is not oe-core, I do the lifting. Therefore, if bitbake > errors, I

Re: [OE-core] [PATCH 1/3] insane: Improve patch warning/error handling

2023-01-20 Thread Bruce Ashfield
On Fri, Jan 20, 2023 at 2:10 PM Alexander Kanavin wrote: > > On Fri, 20 Jan 2023 at 15:26, Bruce Ashfield wrote: > > but again, I won't insist that everyone does that > > on submission, so not having the warning/error disabled is just an > > extra load placed on me. > > I'm not sure I understand

Re: [OE-core] [PATCH 1/3] insane: Improve patch warning/error handling

2023-01-20 Thread Alexander Kanavin
On Fri, 20 Jan 2023 at 15:26, Bruce Ashfield wrote: > but again, I won't insist that everyone does that > on submission, so not having the warning/error disabled is just an > extra load placed on me. I'm not sure I understand this. If the appropriate upstream-status is enforced by bitbake, then

[OE-core][langdale 41/41] selftest/virgl: use pkg-config from the host

2023-01-20 Thread Steve Sakoman
From: Alexander Kanavin The check needs to report dri location on the host machine, so pkg-config binary needs to be capable of finding the needed dri.pc file on the host, and therefore needs to know where host .pc files are located. This may not be the case when using pkg-config from

[OE-core][langdale 40/41] lib/oe/reproducible: Use git log without gpg signature

2023-01-20 Thread Steve Sakoman
From: Benoît Mauduit Previously, if "showSignature" is present in user gitconfig, parsing of the timestamp will fail. Ideally we should replace this command with a git plumbing command. Signed-off-by: Benoît Mauduit Signed-off-by: Alexandre Belloni (cherry picked from commit

[OE-core][langdale 39/41] at: Change when files are copied

2023-01-20 Thread Steve Sakoman
From: Saul Wold The create_spdx code relies on patched code, if files are changed or added during the do_configure phase they will be missed by the create_spdx process. So we need to ensure files modifications/additions happen in the do_patch phase. Signed-off-by: Saul Wold Signed-off-by:

[OE-core][langdale 38/41] curl: don't enable debug builds

2023-01-20 Thread Steve Sakoman
From: Ross Burton In oe-core 27824261 --enable-debug was added to the configure arguments to turn on debugging symbols. However, enabling debug mode does more than turn on debugging symbols and introduces some codepaths that can be controlled with environment variables. Bluntly, the curl

[OE-core][langdale 37/41] toolchain-scripts: compatibility with unbound variable protection

2023-01-20 Thread Steve Sakoman
From: Jan Kircher Fixed an error when Bash's unbound variable protection is enabled (set -u) and variable "LD_LIBRARY_PATH" does not exist. Signed-off-by: Jan Kircher Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit

[OE-core][langdale 36/41] libseccomp: fix typo in DESCRIPTION

2023-01-20 Thread Steve Sakoman
From: Chen Qi Fix typo in DESCRIPTION: and -> an. Signed-off-by: Chen Qi Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 349e63045298054f9454025d793c67284fce750b) Signed-off-by: Steve Sakoman --- meta/recipes-support/libseccomp/libseccomp_2.5.4.bb

[OE-core][langdale 35/41] dhcpcd: backport two patches to fix runtime error

2023-01-20 Thread Steve Sakoman
From: Chen Qi In case of nodistro, dhcpcd gives us 'Bad system call' error and exits. This is because there are syscalls that should be allowed but not in privsep. Backport two patches to fix this issue. Signed-off-by: Chen Qi Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie

[OE-core][langdale 34/41] libpng: Enable NEON for aarch64 to enensure consistency with arm32.

2023-01-20 Thread Steve Sakoman
From: leimaohui NEON is enabled for aarch64 by default, so, to ensure consistency with arm32, reference to libpng-1.6.38/configure, added enable_hardware_optimizations option for aarch64. Signed-off-by: Lei Maohui Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked

[OE-core][langdale 33/41] opkg: ensure opkg uses private gpg.conf when applying keys.

2023-01-20 Thread Steve Sakoman
From: Charlie Johnston Currently, the opkg-key utility calls gpg with --no-options, which uses /dev/null as the configuration file. This means any configurations in /etc/opkg/gpg/gpg.conf were being ignored. This change applies a patch to remove the --no-options flag. Signed-off-by: Charlie

[OE-core][langdale 32/41] librsvg: enable vapi build

2023-01-20 Thread Steve Sakoman
From: Markus Volk Otherwise gnome-chess will fail like this: | error: Package `librsvg-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories | Compilation failed: 1 error(s), 0 warning(s) Signed-off-by: Markus Volk Signed-off-by: Alexandre Belloni

[OE-core][langdale 31/41] rust: Do not use default compiler flags defined in CC crate

2023-01-20 Thread Steve Sakoman
From: Anton Antonov Rust crates build dependecy C libraries using "CC" crate. This crate adds some default compiler parameters depending on target arch. For some targets these parameters conflict with the parameters defined by OE. Warnings/errors like this can be seen in the case: cc1: error:

[OE-core][langdale 30/41] harfbuzz: remove bindir only if it exists

2023-01-20 Thread Steve Sakoman
From: Petr Kubizňák In some scenarios (e.g. when "glib" removed from PACKAGECONFIG), "${D}${bindir}" might not exist which caused `rmdir` to fail. Signed-off-by: Petr Kubizňák Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit

[OE-core][langdale 28/41] tiff: Add packageconfig knob for webp

2023-01-20 Thread Steve Sakoman
From: Khem Raj tiff-native otherwise falsely detects webp if its installed on build host. This ensures deterministic behavior regardless of host. Signed-off-by: Khem Raj Signed-off-by: Richard Purdie (cherry picked from commit 718c44f282310b2ca85877fed706460ccc1eebea) Signed-off-by: Steve

[OE-core][langdale 29/41] oeqa/selftest/debuginfod: improve testcase

2023-01-20 Thread Steve Sakoman
From: Ross Burton Primarily, before running the debuginfod-find tool, check that the debuginfod server has finished sweeping the deploy directory. If we make the request too soon then there's a rare chance that we run the client before it has scanned the right packages, and the log gets swamped

[OE-core][langdale 27/41] kernel-fitimage: Allow user to select dtb when multiple dtb exists

2023-01-20 Thread Steve Sakoman
From: Sandeep Gundlupet Raju Allow user to select the default DTB for FIT image when multiple dtb's exists. >From machine.conf or local.conf user can specify the default dtb for FIT image as shown below. FIT_CONF_DEFAULT_DTB = "board-default.dtb" Also fallback to avaialable dtb when

[OE-core][langdale 26/41] kernel-fitimage: Adjust order of dtb/dtbo files

2023-01-20 Thread Steve Sakoman
From: Sandeep Gundlupet Raju The dtb files must be before the dtbo files, otherwise the overlays may not be applied correctly. >From Bruce Ashfield: We can split between dtbs and dtbos, they just need to be sorted for reproducibility reasons. Of course, this was only working by luck

[OE-core][langdale 25/41] busybox: rm temporary files if do_compile was interrupted

2023-01-20 Thread Steve Sakoman
From: Antonin Godard To avoid working with undeterministic config files, remove all the temporary files to start from scratch. Signed-off-by: Richard Purdie (cherry picked from commit 74cd440c4e3df0ed3b81cf5c60a3f92e0dd3fe6c) Signed-off-by: Steve Sakoman ---

[OE-core][langdale 24/41] busybox: always start do_compile with orig config files

2023-01-20 Thread Steve Sakoman
From: Antonin Godard When compiling busybox a second time (e.g. with `compile -f`), busybox can use an altered autoconf.h file for compiling, which can ultimately produces different and unwanted binaries. This can produce errors like this one: ERROR: busybox-1.35.0-r0 do_package: Error

[OE-core][langdale 23/41] classes: image: Set empty weak default IMAGE_LINGUAS

2023-01-20 Thread Steve Sakoman
From: Alex Kiernan This is already set in default-distrovars.inc and so this assignment will almost never succeed. Rather than leaving it to confuse, set an empty weak default. Signed-off-by: Alex Kiernan Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from

[OE-core][langdale 22/41] bitbake-layers: fix a typo

2023-01-20 Thread Steve Sakoman
From: Enguerrand de Ribaucourt Signed-off-by: Enguerrand de Ribaucourt Signed-off-by: Richard Purdie (cherry picked from commit fab3aa7b1b7003bb03678c5cfc62ad2b597f0932) Signed-off-by: Steve Sakoman --- meta/lib/bblayers/makesetup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[OE-core][langdale 21/41] mesa-gl: gallium is required when enabling x11

2023-01-20 Thread Steve Sakoman
From: Carlos Alberto Lopez Perez Otherwise Meson will fail wit this error: - meson.build:555:6: ERROR: Problem encountered: xlib based GLX requires at least one gallium driver Related: https://github.com/agherzan/meta-raspberrypi/pull/1119 Signed-off-by: Alexandre Belloni Signed-off-by:

[OE-core][langdale 20/41] uninative: Upgrade to 3.8.1 to include libgcc

2023-01-20 Thread Steve Sakoman
From: Michael Halstead Including libgcc solves issues with libpthread. Signed-off-by: Michael Halstead Signed-off-by: Richard Purdie (cherry picked from commit 36eb46589fb01374d4738a2c376386c68d06aa83) Signed-off-by: Steve Sakoman --- meta/conf/distro/include/yocto-uninative.inc | 8

[OE-core][langdale 19/41] vim: upgrade 9.0.0947 -> 9.0.1211

2023-01-20 Thread Steve Sakoman
From: Randy MacLeod Includes fixes for: https://nvd.nist.gov/vuln/detail/CVE-2023-0049 https://nvd.nist.gov/vuln/detail/CVE-2023-0051 https://nvd.nist.gov/vuln/detail/CVE-2023-0054 https://nvd.nist.gov/vuln/detail/CVE-2023-0288 Signed-off-by: Randy MacLeod Signed-off-by: Luca

Re: [OE-core] [PATCH v3 1/3] binutils: Upgrade to 2.40 release

2023-01-20 Thread Khem Raj
On Fri, Jan 20, 2023 at 3:47 AM Luca Ceresoli wrote: > > Hi Khem, > > On Thu, 19 Jan 2023 15:51:39 -0800 > "Khem Raj" wrote: > > > Signed-off-by: Khem Raj > > I'm afraid this time the patch does _really_ not apply, and the simple > sorcery I did for v1 and v2 is not working anymore. If you

[OE-core][langdale 18/41] git: Upgrade to 2.37.4

2023-01-20 Thread Steve Sakoman
From: Lee Chee Yang upgrade include fixes for CVE-2022-39253 CVE-2022-39260 Release notes: https://github.com/git/git/blob/master/Documentation/RelNotes/2.37.4.txt Signed-off-by: Lee Chee Yang Signed-off-by: Steve Sakoman --- meta/recipes-devtools/git/{git_2.37.3.bb => git_2.37.4.bb} | 2 +-

[OE-core][langdale 17/41] linux-yocto/5.19: powerpc: Fix reschedule bug in KUAP-unlocked user copy

2023-01-20 Thread Steve Sakoman
From: Bruce Ashfield Integrating the following commit(s) to linux-yocto/5.19: 84f2f8e7a625 powerpc: Fix reschedule bug in KUAP-unlocked user copy Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie (cherry picked from commit 438b3523625807e2deca1797ce20649531270676)

[OE-core][langdale 15/41] linux-yocto/5.15: update to v5.15.84

2023-01-20 Thread Steve Sakoman
From: Bruce Ashfield Updating to the latest korg -stable release that comprises the following commits: d68f50bfb00f Linux 5.15.84 972707bae3d7 net: fec: properly guard irq coalesce setup 289721fe0993 ASoC: ops: Correct bounds check for second channel on SX controls

[OE-core][langdale 16/41] linux-yocto/5.15: powerpc: Fix reschedule bug in KUAP-unlocked user copy

2023-01-20 Thread Steve Sakoman
From: Bruce Ashfield Integrating the following commit(s) to linux-yocto/5.15: f100c753aa1f powerpc: Fix reschedule bug in KUAP-unlocked user copy Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie (cherry picked from commit b457e6976e9e64a737517f9d9142ab290cdce214)

[OE-core][langdale 14/41] linux-yocto/5.15: libbpf: Fix build warning on ref_ctr_off

2023-01-20 Thread Steve Sakoman
From: Bruce Ashfield Integrating the following commit(s) to linux-yocto/5.15: da5513f30187 libbpf: Fix build warning on ref_ctr_off Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie (cherry picked from commit eb75d561256c794baf6c89c1975967343145da87) Signed-off-by: Steve

[OE-core][langdale 13/41] linux-yocto/5.15: fix perf build with clang

2023-01-20 Thread Steve Sakoman
From: Bruce Ashfield Integrating the following commit(s) to linux-yocto/5.15: 4c5a089621a8 perf python: Account for multiple words in CC Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie (cherry picked from commit 1cf78a856beb42a2d68e6c49bfdbc33fea68ebb5) Signed-off-by: Steve

[OE-core][langdale 12/41] linux-yocto/5.15: ltp and squashfs fixes

2023-01-20 Thread Steve Sakoman
From: Bruce Ashfield Integrating the following commit(s) to linux-yocto/5.15: 1c5699ee85d4 fs: move S_ISGID stripping into the vfs_*() helpers 838f5d0701d8 fs: add mode_strip_sgid() helper d97172683641 squashfs: provide backing_dev_info in order to disable read-ahead

[OE-core][langdale 11/41] linux-yocto/5.19: fix perf build with clang

2023-01-20 Thread Steve Sakoman
From: Bruce Ashfield Integrating the following commit(s) to linux-yocto/5.19: 3326dff489c8 tools: Remove some options from CLANG_CROSS_FLAGS 5b92f7def854 libbpf: Fix build warning on ref_ctr_off b7cd8e00afcd perf python: Account for multiple words in CC Signed-off-by: Bruce

[OE-core][langdale 10/41] xserver-xorg: upgrade 21.1.4 -> 21.1.6

2023-01-20 Thread Steve Sakoman
From: Alexander Kanavin Changelog: https://fossies.org/linux/misc/xorg-server-21.1.6.tar.xz/xorg-server-21.1.6/ChangeLog Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 009e8d6a292690a0c355d12be2368a9677c701f5)

[OE-core][langdale 09/41] xwayland: upgrade 22.1.5 -> 22.1.7

2023-01-20 Thread Steve Sakoman
From: Alexander Kanavin Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit c37ec8b2d91605d6eb5228f0a447fb83f111edc3) Signed-off-by: Steve Sakoman --- .../xwayland/{xwayland_22.1.5.bb => xwayland_22.1.7.bb} | 2

[OE-core][langdale 08/41] linux-firmware: upgrade 20221109 -> 20221214

2023-01-20 Thread Steve Sakoman
From: Alexander Kanavin License-Update: additional files Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 15f3a9f6c4406ddc00f7dc0ca7e1beafe9c71a9f) Signed-off-by: Steve Sakoman --- ...{linux-firmware_20221109.bb =>

[OE-core][langdale 07/41] libksba: update 1.6.2 -> 1.6.3

2023-01-20 Thread Steve Sakoman
From: Alexander Kanavin Noteworthy changes in version 1.6.3 (2022-12-06) Fix another integer overflow in the CRL parser. [T6284,CVE-2022-47629] Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit

[OE-core][langdale 06/41] pango: upgrade 1.50.11 -> 1.50.12

2023-01-20 Thread Steve Sakoman
From: Ross Burton Overview of changes in 1.50.12, 18-11-2022 == - Fix weight conversion on MacOS - Update to Unicode 15 - Some introspection annotation fixes - Improve PangoAttrList serialization - Fix char offset calculatiosn in multi-paragraph layouts

[OE-core][langdale 05/41] curl: Fix CVE-2022-43551 and CVE-2022-43552

2023-01-20 Thread Steve Sakoman
From: Robert Joslyn Backport patches to address these CVEs. * https://curl.se/docs/CVE-2022-43551.html * https://curl.se/docs/CVE-2022-43552.html Signed-off-by: Robert Joslyn Signed-off-by: Steve Sakoman --- .../curl/curl/CVE-2022-43551.patch| 32

[OE-core][langdale 04/41] cairo: fix CVE patches assigned wrong CVE number

2023-01-20 Thread Steve Sakoman
From: Quentin Schulz CVE-2019-6461 and CVE-2019-6462 are fixed, but the reporting is incorrect as the patch for CVE-2019-6461 is actually for CVE-2019-6462 and vice-versa. This swaps both files and edit the CVE field to report the correct identifier. Cc: Quentin Schulz Signed-off-by: Quentin

[OE-core][langdale 03/41] cve-check: write the cve manifest to IMGDEPLOYDIR

2023-01-20 Thread Steve Sakoman
From: Jermain Horsman When building an image cve_check_write_rootfs_manifest() would sometimes fail with a FileNotFoundError when writing the manifest.cve due to the parent directory (DEPLOY_DIR_IMAGE) not (yet) existing. The image task will provide the manifest in the deploy directory

[OE-core][langdale 02/41] cve-update-db-native: show IP on failure

2023-01-20 Thread Steve Sakoman
From: Ross Burton We get random SSL failures when fetching the CVE database, and it's notable that the NVD server is behind a DNS round-robin or geographically diverse servers. On a hunch that there is one misconfigured server, dump the IP that we connected to. Signed-off-by: Ross Burton

[OE-core][langdale 01/41] cve-update-db-native: avoid incomplete updates

2023-01-20 Thread Steve Sakoman
From: Marta Rybczynska The database update has been done on the original file. In case of network connection issues, temporary outage of the NVD server or a similar situation, the function could exit with incomplete data in the database. This patch solves the issue by performing the update on a

[OE-core][langdale 00/41] Patch review

2023-01-20 Thread Steve Sakoman
Please review this set of patches for langdale and have comments back by end of day Tuesday. Passed a-full on autobuilder: https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/4817 The following changes since commit b2dfb2fe86de887d0239078ded0a4f9e8c677d83: devtool: process

[OE-core] [PATCH 13/14] oeqa qemurunner.py: add debug output to run_serial()

2023-01-20 Thread Mikko Rapeli
Add debug output which is useful if qemu system hangs and doesn't respond in time. Signed-off-by: Mikko Rapeli --- meta/lib/oeqa/utils/qemurunner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index

[OE-core] [PATCH 14/14] oeqa qemurunner.py: improve logging in run_serial()

2023-01-20 Thread Mikko Rapeli
When serial communication times outs, write note also to bitbake task output. Then add a small sleep to collect more output to avoid reading data one character at a time. This makes logs much more readable. Signed-off-by: Mikko Rapeli --- meta/lib/oeqa/utils/qemurunner.py | 3 +++ 1 file

[OE-core] [PATCH 11/14] oeqa qemurunner.py: add timeout to QMP calls

2023-01-20 Thread Mikko Rapeli
When a qemu machine hangs, the QMP calls can hang for ever too, and when this happens any failing test commands from ssh runner may be followed by dump_monitor() calls which then also hang. Hangs followed by hangs. Use runqemutime at setup and run_monitor() specific timeout for later calls.

[OE-core] [PATCH 12/14] oeqa qemurunner.py: kill qemu if it hangs

2023-01-20 Thread Mikko Rapeli
qemu doesn't always behave well and can hang too. Log calls to stop qemu and finally kill it with force if was still alive. Signed-off-by: Mikko Rapeli --- meta/lib/oeqa/utils/qemurunner.py | 9 + 1 file changed, 9 insertions(+) diff --git a/meta/lib/oeqa/utils/qemurunner.py

[OE-core] [PATCH 09/14] oeqa qemurunner.py: increase boot failure warning log from 25 to 100 lines

2023-01-20 Thread Mikko Rapeli
More details are needed to debug issues. Warning is printed to bitbake output console. Task execution logs will contain all debug output. Signed-off-by: Mikko Rapeli --- meta/lib/oeqa/utils/qemurunner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[OE-core] [PATCH 10/14] oeqa qemurunner.py: add debug prints to stop()

2023-01-20 Thread Mikko Rapeli
These help to investigate if any of the functions hang when test target hangs. Signed-off-by: Mikko Rapeli --- meta/lib/oeqa/utils/qemurunner.py | 8 1 file changed, 8 insertions(+) diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index

[OE-core] [PATCH 07/14] oeqa qemurunner.py: use os.set_blocking() instead of fcntl()

2023-01-20 Thread Mikko Rapeli
It's now available since python 3.5. Then add debug prints to leave traces if something still hangs or fails. Signed-off-by: Mikko Rapeli --- meta/lib/oeqa/utils/qemurunner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/utils/qemurunner.py

[OE-core] [PATCH 05/14] testimage.bbclass: add debug prints for major state changes

2023-01-20 Thread Mikko Rapeli
When a test target hangs completely, it is important to know what happened before that in do_testimage() task logs. Signed-off-by: Mikko Rapeli --- meta/classes-recipe/testimage.bbclass | 8 1 file changed, 8 insertions(+) diff --git a/meta/classes-recipe/testimage.bbclass

[OE-core] [PATCH 08/14] oeqa qemurunner: read more data at a time from serial and log all of it

2023-01-20 Thread Mikko Rapeli
Use a short sleep to bundle serial console reads so that we are not reading one character at a time which makes logs more readable. Then write full serial log to debug output so that boot issues can be investigated from do_testimage task logs. Signed-off-by: Mikko Rapeli ---

[OE-core] [PATCH 06/14] oeqa dump.py: add error counter and stop after 5 failures

2023-01-20 Thread Mikko Rapeli
If test target qemu machine hangs completely, dump_target() calls over serial console are taking a long time to time out, possibly for every failing ssh command execution and a lot of test cases, and same with dump_monitor(). Instead of trying for ever, count errors and after 5 stop trying to

[OE-core] [PATCH 01/14] oeqa ssh.py: move output prints to new line

2023-01-20 Thread Mikko Rapeli
The output from is garbled otherwise and it's not easy to remove debug output form real command output on target. Signed-off-by: Mikko Rapeli --- meta/lib/oeqa/core/target/ssh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/core/target/ssh.py

[OE-core] [PATCH 00/14] oeqa runtime tests when qemu hangs

2023-01-20 Thread Mikko Rapeli
I get a qemu hang on kirkstone, swtpm and optee. One of the optee-test/xtest hangs the qemu machine in some kind of deadlock. While this needs to be debugged and tested, the oeqa runtime tests also hanged and never returned. Thus this patch set. With these changes qemu deadlock is detected and

[OE-core] [PATCH 03/14] oeqa ssh.py: clarify timeout API and add more debug prints to run()

2023-01-20 Thread Mikko Rapeli
Clarify timeout handling. Timeout calculation is from start of command OR last output from ssh command. When the ssh command output is captured, that resets the timeout timer. Timeout is effetively an "inactive timeout". Print process output to a new line to keep the output more readable. Then

[OE-core] [PATCH 02/14] oeqa ssh.py: fix hangs in run() and add debug prints

2023-01-20 Thread Mikko Rapeli
When qemu machine hangs, the ssh commands done by tests are not timing out. do_testimage() task has last logs like this: DEBUG: time: 1673531086.3155053, endtime: 1673531686.315502 The test process is stuck for hours, or for ever if the executing command or test case did not set a timeout

[OE-core] [PATCH 04/14] oeqa ssh.py: add connection keep alive options to ssh client

2023-01-20 Thread Mikko Rapeli
Configure ssh client to test that connection with server is up. If the server does not respond within a minute then the connection, target machine or sshd daemon are stuck and it's better to exit the command execution with errors. Some tests can execute a long time without returning

Re: [OE-core] [PATCH 1/3] insane: Improve patch warning/error handling

2023-01-20 Thread Bruce Ashfield
On Thu, Jan 19, 2023 at 9:56 AM Ross Burton wrote: > > On 19 Jan 2023, at 13:55, Bruce Ashfield via lists.openembedded.org > wrote: > > I'd prefer the upstream-status check to be disabled for meta-virtualization. > > > > This isn't something that I'm strictly enforcing, and not something that I

[OE-core] [PATCHv2] librsvg: Only enable the Vala bindings if GObject Introspection is enabled

2023-01-20 Thread Peter Kjellerstedt
This avoids the following error: configure: error: Vala bindings require GObject Introspection Signed-off-by: Peter Kjellerstedt --- PATCHv2: Only enable the vala PACKAGECONFIG for target. meta/recipes-gnome/librsvg/librsvg_2.54.5.bb | 4 ++-- 1 file changed, 2 insertions(+), 2

[OE-core] [PATCH] native: Drop special variable handling

2023-01-20 Thread Richard Purdie
Back when it was merged in https://git.yoctoproject.org/poky/commit/?id=c4257ed8b1040a5a0e9a95846d81961741239116 it appeared special handling in setVar was necessary. Likely due to other fixes and improvements it no longer appears to be. The results of "bitbake world -g" before and after this

Re: [OE-core] [PATCH] librsvg: Only enable the Vala bindings if GObject Introspection is enabled

2023-01-20 Thread Peter Kjellerstedt
> -Original Message- > From: Luca Ceresoli > Sent: den 20 januari 2023 00:09 > To: Luca Ceresoli via lists.openembedded.org > > Cc: luca.ceres...@bootlin.com; Peter Kjellerstedt > ; openembedded-core@lists.openembedded.org; > Richard Purdie > Subject: Re: [OE-core] [PATCH] librsvg: Only

[OE-core] [PATCH] quilt: use upstreamed faildiff.test fix

2023-01-20 Thread Ross Burton
Signed-off-by: Ross Burton --- .../quilt/quilt/faildiff-order.patch | 47 --- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/meta/recipes-devtools/quilt/quilt/faildiff-order.patch b/meta/recipes-devtools/quilt/quilt/faildiff-order.patch index

Re: [OE-core] [PATCH v3 1/3] binutils: Upgrade to 2.40 release

2023-01-20 Thread Luca Ceresoli via lists.openembedded.org
Hi Khem, On Thu, 19 Jan 2023 15:51:39 -0800 "Khem Raj" wrote: > Signed-off-by: Khem Raj I'm afraid this time the patch does _really_ not apply, and the simple sorcery I did for v1 and v2 is not working anymore. If you could recreate the patches based on a clean oe-core master branch that

Re: [OE-core] Rust crate checksums

2023-01-20 Thread Alex Kiernan
On Fri, Jan 20, 2023 at 9:48 AM Alexander Kanavin wrote: > > On Fri, 20 Jan 2023 at 10:17, Alex Kiernan wrote: > > > But if you list a crate as the primary source, rather than pulling it > > from git, something like this: > > > > LICENSE = "MIT" > > LIC_FILES_CHKSUM =

Re: [OE-core] Rust crate checksums

2023-01-20 Thread Alexander Kanavin
On Fri, 20 Jan 2023 at 10:48, Alexander Kanavin wrote: > Should there be a ticket for checking the primary crate? Come to think of it, each crate entry needs a parameter: checksummedbycargo=bool. So anything generated by cargo-update-crates class would have that set to true, and the fetcher

Re: [OE-core] Rust crate checksums

2023-01-20 Thread Alexander Kanavin
On Fri, 20 Jan 2023 at 10:17, Alex Kiernan wrote: > But if you list a crate as the primary source, rather than pulling it > from git, something like this: > > LICENSE = "MIT" > LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d426d11f66aaa533f62910f3bd79dfb6" > > SRC_URI =

Re: [OE-core] Rust crate checksums

2023-01-20 Thread Alex Kiernan
On Thu, Jan 19, 2023 at 9:18 AM Alex Kiernan via lists.openembedded.org wrote: > > On Thu, Jan 19, 2023 at 8:53 AM Alexander Kanavin > wrote: > > > > I think Cargo.lock contains those checksums and that forces cargo to > > verify them? Can you check that verification happens and fails when it >