[OE-core] [PATCH 2/2] coreutils: Add config.h to ptest package

2023-09-12 Thread Khem Raj
This is needed by several tests during run on target Fixes grep: /usr/lib/coreutils/ptest/lib/config.h: No such file or directory inotify-race.sh: skipped test: inotify is not supported More tests are now passing Test

[OE-core] [PATCH 1/2] coreutils: Upgrade to 9.4

2023-09-12 Thread Khem Raj
Drop a backport which is already in 9.4 Signed-off-by: Khem Raj --- .../coreutils/stdlib-mb-cur-max.patch | 33 --- .../{coreutils_9.3.bb => coreutils_9.4.bb}| 4 +-- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 meta/recipes-core/coreutils/co

[OE-core] [PATCH] goarch.bbclass: not compatible with riscv32

2023-09-12 Thread Kai Kang
From: Kai Kang It fails to build recipes which inherit goarch.bbclass for qemuriscv32: | ERROR: Nothing PROVIDES 'docker-moby' | docker-moby was skipped: Unsupported CPU architecture: riscv32 So empty COMPATIBLE_HOST for riscv32. Signed-off-by: Kai Kang --- meta/classes-recipe/goarch.bbclass

Re: [OE-core] mickledore - adding rust tooling to sdk seems to create problematic rustc/cargo executable configurations

2023-09-12 Thread Danny Hadley
Hi Alex! Thanks for the quick response. I tried removing my `TOOLCHAIN_HOST_TASK` assignment and adding the `SDK_TOOLCHAIN_LANGS` entry but I'm still seeing the error. fwiw the output from `cargo build --verbose` shows me the `rustc` calls: ``` rustc --crate-name omg --edition=2021 src/main.rs --

[OE-core] [PATCH] scripts/yocto_testresults_query.py: ensure tag is fetched

2023-09-12 Thread Alexandre Belloni via lists.openembedded.org
From: Alexandre Belloni Ensure we fetch the tag before listing the first commit. [ YOCTO #15193 ] Signed-off-by: Alexandre Belloni --- scripts/yocto_testresults_query.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/yocto_testresults_query.py b/scripts/yocto_t

Re: [OE-core] [PATCH 1/4] patchtest: Add tests from patchtest-oe repo

2023-09-12 Thread Trevor Gamblin
Please ignore this for now. While starting to work on next steps for patchtest, I realized that there might be some more functionality changes I'd like to make. I'll keep it until the end of the week and look at resubmitting then. - Trevor On 2023-09-12 13:19, Trevor Gamblin via lists.openemb

Re: [OE-core] mickledore - adding rust tooling to sdk seems to create problematic rustc/cargo executable configurations

2023-09-12 Thread Alexander Kanavin
On Tue, 12 Sept 2023 at 19:26, Danny Hadley wrote: > I can provide as much additional information as needed! I think you need to set SDK_TOOLCHAIN_LANGS = "rust" and then things should just work. Alex -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online

[OE-core] mickledore - adding rust tooling to sdk seems to create problematic rustc/cargo executable configurations

2023-09-12 Thread Danny Hadley
1" TARGET_SYS = "arm-linux-gnueabi" MACHINE = "stm32mp13-disco" DISTRO = "openstlinux-weston" DISTRO_VERSION = "4.2.1-snapshot-20230912" TUNE_FEATURES= "arm vfp cortexa7 neon vfpv4 thumb callconvention-h

[OE-core] [PATCH][mickledore] gcc: Fix -fstack-protector issue on aarch64

2023-09-12 Thread Ross Burton
From: Ross Burton This series of patches fixes deficiencies in GCC's -fstack-protector implementation for AArch64 when using dynamically allocated stack space. This is CVE-2023-4039. See: https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64 https:/

[OE-core] [PATCH][dunfell] gcc: Fix -fstack-protector issue on aarch64

2023-09-12 Thread Ross Burton
From: Ross Burton This series of patches fixes deficiencies in GCC's -fstack-protector implementation for AArch64 when using dynamically allocated stack space. This is CVE-2023-4039. See: https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64 https:/

[OE-core] [PATCH][kirkstone] gcc: Fix -fstack-protector issue on aarch64

2023-09-12 Thread Ross Burton
From: Ross Burton This series of patches fixes deficiencies in GCC's -fstack-protector implementation for AArch64 when using dynamically allocated stack space. This is CVE-2023-4039. See: https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64 https:/

[OE-core] [PATCH][master] gcc: Fix -fstack-protector issue on aarch64

2023-09-12 Thread Ross Burton
From: Ross Burton This series of patches fixes deficiencies in GCC's -fstack-protector implementation for AArch64 when using dynamically allocated stack space. This is CVE-2023-4039. See: https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64 https:/

[OE-core] [PATCH 1/4] patchtest: Add tests from patchtest-oe repo

2023-09-12 Thread Trevor Gamblin
Migrate the following from https://git.yoctoproject.org/patchtest-oe/: - selftest/selftest script - selftest/files directory (patch files used by selftest) - tests/ directory (the actual tests) Signed-off-by: Trevor Gamblin --- .../files/Author.test_author_valid.1.fail | 32 +++ .../files/

[OE-core] [PATCH 3/4] patchtest: add requirements.txt

2023-09-12 Thread Trevor Gamblin
Add a requirements.txt file with the Python modules needed for Patchtest to run. Signed-off-by: Trevor Gamblin --- meta/lib/patchtest/requirements.txt | 4 1 file changed, 4 insertions(+) create mode 100644 meta/lib/patchtest/requirements.txt diff --git a/meta/lib/patchtest/requirements.t

[OE-core] [PATCH 4/4] patchtest: Add README.md for selftests

2023-09-12 Thread Trevor Gamblin
Signed-off-by: Trevor Gamblin --- meta/lib/patchtest/README.md | 20 1 file changed, 20 insertions(+) create mode 100644 meta/lib/patchtest/README.md diff --git a/meta/lib/patchtest/README.md b/meta/lib/patchtest/README.md new file mode 100644 index 00..354702ee4f -

[OE-core] [PATCH 2/4] selftest: remove configurable target

2023-09-12 Thread Trevor Gamblin
The ability to pass the target (i.e. oe-core) as an argument was a testing mechanism and isn't needed when the tests are part of the repo, so remove it and use os.path.dirname to get it instead. Signed-off-by: Trevor Gamblin --- meta/lib/patchtest/selftest/selftest | 14 ++ 1 file ch

[OE-core][PATCH 0/4] patchtest: Add test suite for oe-core

2023-09-12 Thread Trevor Gamblin
As part of the patchtest revitalization project, the patchtest-oe repository (https://git.yoctoproject.org/patchtest-oe/) has been updated with fixes to tests, patch files used for testing, and the selftest script. Since it is designed specifically as a test suite for openembedded-core, it makes se

[OE-core][PATCH] nfs-utils: Add StateDirectory for systemd services

2023-09-12 Thread Joshua Watt
Adds `StateDirectory=nfs` for the systemd service. This ensures that 1) and .mount services required for /var/lib/nfs are started before these services, and 2) that /var/lib/nfs exists before starting the services. Signed-off-by: Joshua Watt --- meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-

[OE-core][PATCH] nfs-utils: Don't start nfs-statsd.service without exports

2023-09-12 Thread Joshua Watt
Adds a `ConditionPathExists` to nfs-statsd.service. This allows it to match the other NFS services and not start if nothing is exported. Signed-off-by: Joshua Watt --- meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes

[OE-core] Yocto Project Status 12 September 2023 (WW37)

2023-09-12 Thread Stephen Jolley
Current Dev Position: YP 4.3 M4 (Feature Freeze) Next Deadline: 2nd October 2023 YP 4.3 M4 build date Next Team Meetings: - Bug Triage meeting Thursday September 14th 7:30 am PDT ( https://zoom.us/j/454367603?pwd=ZGxoa2ZXL3FkM3Y0bFd5aVpHVVZ6dz09) - Weekly Project Engineering Syn

[OE-core][PATCH] classes/create-spdx-2.2: Add extra debugging for missing package files

2023-09-12 Thread Joshua Watt
In a effort to debug YOCTO #15185, improve the logging when a package file cannot be found in the list of SPDX files. Signed-off-by: Joshua Watt --- meta/classes/create-spdx-2.2.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/create-spdx-2.2.bbclass b/

Re: [OE-core] [PATCH 1/3] meta-selftest/staticids: add nogroup group for distcc

2023-09-12 Thread Richard Purdie
On Tue, 2023-09-12 at 08:43 -0500, JD Schroeder wrote: > This patch adds the nogroup to the staticids to help address the > warning about changing the nogroup's gid. > > Signed-off-by: JD Schroeder > --- > meta-selftest/files/static-group | 1 + > 1 file changed, 1 insertion(+) > > diff --git a

[OE-core][dunfell 14/14] oeqa/runtime/ltp: Increase ltp test output timeout

2023-09-12 Thread Steve Sakoman
From: Richard Purdie On our slower arm server, the tests currently timeout leading to inconsistent test results. Increase the timeout to avoid this and aim to make the test results consistent. Signed-off-by: Richard Purdie (cherry picked from commit 9a8b49208f3c99e184eab426360b137bc773aa31) Si

[OE-core][dunfell 13/14] oeqa/target/ssh: Ensure EAGAIN doesn't truncate output

2023-09-12 Thread Steve Sakoman
From: Richard Purdie We have a suspicion that the read() call may return EAGAIN on the non-blocking fd and this may truncate test output leading to some of our intermittent failures. Tweak the code to avoid this potential issue. Signed-off-by: Richard Purdie (cherry picked from commit a8920c10

[OE-core][dunfell 12/14] selftest/cases/glibc.py: switch to using NFS over TCP

2023-09-12 Thread Steve Sakoman
From: Anuj Mittal This provides a more reliable test execution when running tests that write a large buffer/file and significantly reduces the localedata test failures. Signed-off-by: Anuj Mittal Signed-off-by: Richard Purdie (cherry picked from commit 97a7612e3959bc9c75116a4e696f47cc31aea75d)

[OE-core][dunfell 11/14] oeqa/utils/nfs: allow requesting non-udp ports

2023-09-12 Thread Steve Sakoman
From: Anuj Mittal Allows setting up NFS over TCP as well. Signed-off-by: Anuj Mittal Signed-off-by: Richard Purdie (cherry picked from commit e1ff9b9a3b7f7924aea67d2024581bea2e916036) Signed-off-by: Steve Sakoman --- meta/lib/oeqa/utils/nfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[OE-core][dunfell 10/14] selftest/cases/glibc.py: increase the memory for testing

2023-09-12 Thread Steve Sakoman
From: Anuj Mittal Some of the tests trigger OOM and fail. Increase the amount of memory available so we dont run into these issues. Signed-off-by: Anuj Mittal Signed-off-by: Richard Purdie (cherry picked from commit 4d22dba482cb19ffcff5abee73f24526ea9d1c2a) Signed-off-by: Steve Sakoman --- m

[OE-core][dunfell 09/14] glibc/check-test-wrapper: don't emit warnings from ssh

2023-09-12 Thread Steve Sakoman
From: Anuj Mittal Dont fill up the test log with ssh warning about having added the host to list of known hosts. Also helps fix a test case failure where stderr log was being compared to a known value. Signed-off-by: Anuj Mittal Signed-off-by: Richard Purdie (cherry picked from commit 63b31ff

[OE-core][dunfell 08/14] kernel: Fix path comparison in kernel staging dir symlinking

2023-09-12 Thread Steve Sakoman
From: Staffan Rydén Due to an oversight in the do_symlink_kernsrc function, the path comparison between "S" and "STAGING_KERNEL_DIR" is broken. The code obtains both variables, but modifies the local copy of "S" before comparing them, causing the comparison to always return false. This can cause

[OE-core][dunfell 07/14] resulttool/resultutils: allow index generation despite corrupt json

2023-09-12 Thread Steve Sakoman
From: Michael Halstead non-release indexes will continue to generate when test output is corrupted. Signed-off-by: Michael Halstead Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 1a9157684a6bff8406c9bb470cb2e16ee006bbe9) Signed-off-by: Steve Sakoman

[OE-core][dunfell 06/14] yocto-uninative: Update to 4.3

2023-09-12 Thread Steve Sakoman
From: Michael Halstead Add in stable updates to glibc 2.38 to fix malloc bugs Signed-off-by: Michael Halstead Signed-off-by: Richard Purdie (cherry picked from commit 39f987fcb20ad7c0e45425b9f508d463c50ce0c1) Signed-off-by: Steve Sakoman --- meta/conf/distro/include/yocto-uninative.inc | 8 +

[OE-core][dunfell 05/14] rootfs-post: remove traling blanks from tasks

2023-09-12 Thread Steve Sakoman
From: Priyal Doshi remove the traling blanks before the ;-delimiter, so one could use "_remove" to avoid running tasks like 'rootfs_update_timestamp', which are currently hardcoded and not bound to any configurable feature flag Signed-off-by: Priyal Doshi Signed-off-by: Steve Sakoman --- meta

[OE-core][dunfell 04/14] qemu: Backport fix for CVE-2023-0330

2023-09-12 Thread Steve Sakoman
From: Vijay Anusuri A DMA-MMIO reentrancy problem may lead to memory corruption bugs like stack overflow or use-after-free. Summary of the problem from Peter Maydell: https://lore.kernel.org/qemu-devel/cafeaca_23vc7he3iam-jva6w38lk4hjowae5kcknhprd5fp...@mail.gmail.com Reference: https://gitlab.

[OE-core][dunfell 03/14] qemu: Backport fix CVE-2023-3180

2023-09-12 Thread Steve Sakoman
From: Ashish Sharma Upstream-Status: Backport from [https://gitlab.com/qemu-project/qemu/-/commit/9d38a8434721a6479fe03fb5afb150ca793d3980] CVE: CVE-2023-3180 Signed-off-by: Ashish Sharma Signed-off-by: Steve Sakoman --- meta/recipes-devtools/qemu/qemu.inc | 1 + .../qemu/qemu/CVE-

[OE-core][dunfell 02/14] openssh: Securiry fix for CVE-2023-38408

2023-09-12 Thread Steve Sakoman
From: Shubham Kulkarni The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in /usr/lib is not necessarily safe for loading into ssh-agent.) NOTE: t

[OE-core][dunfell 01/14] bind: Backport fix for CVE-2023-2828

2023-09-12 Thread Steve Sakoman
From: Vijay Anusuri Upstream Patch: https://downloads.isc.org/isc/bind9/9.16.42/patches/0001-CVE-2023-2828.patch LINK: https://security-tracker.debian.org/tracker/CVE-2023-2828 Signed-off-by: Vijay Anusuri Signed-off-by: Steve Sakoman --- .../bind/bind/CVE-2023-2828.patch | 166

[OE-core][dunfell 00/14] Patch review

2023-09-12 Thread Steve Sakoman
Please review this set of changes for dunfell and have comments back by end of day Thursday, September 14. Passed a-full on autobuilder: https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/5868 The following changes since commit c953ccba6c2a334cc58a97eee073bdb51a68f1d3: linux/cv

[OE-core] [PATCH 3/3] ppp-dialin: Fix groupname gid change warning

2023-09-12 Thread JD Schroeder
This patch fixes warnings when useradd-staticids.bbclass is used and USERADD_PARAM is used to add the user to a group that has not been explicitly created yet. By adding the GROUPADD_PARAM for the new group being used the warnings for changing the gid from GID-OLD to GID-NEW is eliminated. Warning

[OE-core] [PATCH 2/3] distcc: Fix groupname gid change warning

2023-09-12 Thread JD Schroeder
This patch fixes warnings when useradd-staticids.bbclass is used and USERADD_PARAM is used to add the user to a group that has not been explicitly created yet. By adding the GROUPADD_PARAM for the new group being used the warnings for changing the gid from GID-OLD to GID-NEW is eliminated. Warning

[OE-core] [PATCH 1/3] meta-selftest/staticids: add nogroup group for distcc

2023-09-12 Thread JD Schroeder
This patch adds the nogroup to the staticids to help address the warning about changing the nogroup's gid. Signed-off-by: JD Schroeder --- meta-selftest/files/static-group | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-selftest/files/static-group b/meta-selftest/files/static-group inde

Re: [OE-core] [PATCH] oeqa/selftest/runtime_test: No need to use append with TEST_RUNQEMUPARAMS

2023-09-12 Thread Mikko Rapeli
Hi, On Tue, Sep 12, 2023 at 12:50:26PM +0100, Richard Purdie wrote: > On Tue, 2023-09-12 at 14:46 +0300, Mikko Rapeli wrote: > > Hi, > > > > On Tue, Sep 12, 2023 at 12:32:42PM +0100, Richard Purdie wrote: > > > A simple += operation is fine for working with TEST_RUNQEMUPARAMS so > > > remove > >

Re: [OE-core] [PATCH] oeqa/selftest/runtime_test: No need to use append with TEST_RUNQEMUPARAMS

2023-09-12 Thread Richard Purdie
On Tue, 2023-09-12 at 14:46 +0300, Mikko Rapeli wrote: > Hi, > > On Tue, Sep 12, 2023 at 12:32:42PM +0100, Richard Purdie wrote: > > A simple += operation is fine for working with TEST_RUNQEMUPARAMS so remove > > the heavier append override usage. > > Ok, but I was being consistent with the other

Re: [OE-core] [PATCH] oeqa/selftest/runtime_test: No need to use append with TEST_RUNQEMUPARAMS

2023-09-12 Thread Mikko Rapeli
Hi, On Tue, Sep 12, 2023 at 12:32:42PM +0100, Richard Purdie wrote: > A simple += operation is fine for working with TEST_RUNQEMUPARAMS so remove > the heavier append override usage. Ok, but I was being consistent with the other variables in the tests. Cheers, -Mikko > Signed-off-by: Richard P

Re: [OE-core] [PATCH v2 2/9] testimage.bbclass: detect slirp from TEST_RUNQEMUPARAMS

2023-09-12 Thread Mikko Rapeli
On Tue, Sep 12, 2023 at 11:30:57AM +, Ross Burton wrote: > On 12 Sep 2023, at 12:29, Mikko Rapeli wrote: > > > > Hi, > > > > On Tue, Sep 12, 2023 at 11:25:28AM +, Ross Burton wrote: > >> On 23 Aug 2023, at 07:10, Mikko Rapeli via lists.openembedded.org > >> wrote: > >>> -if d.getVa

[OE-core] [PATCH] oeqa/selftest/runtime_test: No need to use append with TEST_RUNQEMUPARAMS

2023-09-12 Thread Richard Purdie
A simple += operation is fine for working with TEST_RUNQEMUPARAMS so remove the heavier append override usage. Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/runtime_test.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/r

Re: [OE-core] [PATCH v2 2/9] testimage.bbclass: detect slirp from TEST_RUNQEMUPARAMS

2023-09-12 Thread Ross Burton
On 12 Sep 2023, at 12:29, Mikko Rapeli wrote: > > Hi, > > On Tue, Sep 12, 2023 at 11:25:28AM +, Ross Burton wrote: >> On 23 Aug 2023, at 07:10, Mikko Rapeli via lists.openembedded.org >> wrote: >>> -if d.getVar("QEMU_USE_SLIRP"): >>> +if d.getVar("QEMU_USE_SLIRP") or >>> bb.utils.

Re: [OE-core] [PATCH v2 2/9] testimage.bbclass: detect slirp from TEST_RUNQEMUPARAMS

2023-09-12 Thread Mikko Rapeli
Hi, On Tue, Sep 12, 2023 at 11:25:28AM +, Ross Burton wrote: > On 23 Aug 2023, at 07:10, Mikko Rapeli via lists.openembedded.org > wrote: > > -if d.getVar("QEMU_USE_SLIRP"): > > +if d.getVar("QEMU_USE_SLIRP") or > > bb.utils.contains('TEST_RUNQEMUPARAMS', 'slirp', True, False, d): >

Re: [OE-core] [PATCH v2 2/9] testimage.bbclass: detect slirp from TEST_RUNQEMUPARAMS

2023-09-12 Thread Ross Burton
On 23 Aug 2023, at 07:10, Mikko Rapeli via lists.openembedded.org wrote: > -if d.getVar("QEMU_USE_SLIRP"): > +if d.getVar("QEMU_USE_SLIRP") or bb.utils.contains('TEST_RUNQEMUPARAMS', > 'slirp', True, False, d): > slirp = True This means we can remove the QEMU_USE_SLIRP variable

Re: [OE-core] [PATCH] meta/conf/templates/default/conf-description.txt: add a template description

2023-09-12 Thread Alexander Kanavin
On Tue, 12 Sept 2023 at 13:10, Alexander Kanavin wrote: > When a user needs to select a config template or get an overview of > them, oe-setup-build (or other similar tooling) would show the notes, > but not the description. Got this backwards of course :) Alex -=-=-=-=-=-=-=-=-=-=-=- Links: Yo

Re: [OE-core] [PATCH] meta/conf/templates/default/conf-description.txt: add a template description

2023-09-12 Thread Alexander Kanavin
On Tue, 12 Sept 2023 at 12:58, Ross Burton wrote: > > On 30 Aug 2023, at 15:15, Alexander Kanavin via lists.openembedded.org > wrote: > > There is a need to separate the template notes (which are lengthy > > instructions about how to use the template) and template description > > (which is a sho

Re: [OE-core] [PATCH 1/2] distcc: Fix groupname gid change warning

2023-09-12 Thread Ross Burton
On 1 Sep 2023, at 11:03, Alexandre Belloni via lists.openembedded.org wrote: > > Hello, > > This fails on the autobuilders: > > https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/3449/steps/12/logs/stdio > > ERROR: Nothing RPROVIDES 'distcc' (but > /home/pokybuild/yocto-worke

[oe-core][PATCH] mesa: upgrade 23.1.3 -> 23.1.7

2023-09-12 Thread Markus Volk
Signed-off-by: Markus Volk --- .../mesa/{mesa-gl_23.1.3.bb => mesa-gl_23.1.7.bb} | 0 meta/recipes-graphics/mesa/mesa.inc | 2 +- meta/recipes-graphics/mesa/{mesa_23.1.3.bb => mesa_23.1.7.bb} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename m

Re: [OE-core] [PATCH] meta/conf/templates/default/conf-description.txt: add a template description

2023-09-12 Thread Ross Burton
On 30 Aug 2023, at 15:15, Alexander Kanavin via lists.openembedded.org wrote: > There is a need to separate the template notes (which are lengthy > instructions about how to use the template) and template description > (which is a short explanation of what the template is for). What’s this need?