Re: [OE-core] [PATCH 1/3] selftest/sstatetests: add tests for 'bitbake -S printdiff'

2023-10-26 Thread Alexander Kanavin
On Thu, 26 Oct 2023 at 22:02, Luca Ceresoli wrote: > Is this different from the series you sent on the 23rd? There is no > vN tag and no ChangeLog, so it's not obvious. Only the third patch should be different, and it has core-image-weston removed (as it was causing missing objects, as reported

Re: [OE-core] [PATCH 1/3] selftest/sstatetests: add tests for 'bitbake -S printdiff'

2023-10-26 Thread Luca Ceresoli via lists.openembedded.org
Hello Alex, On Thu, 26 Oct 2023 12:33:18 +0200 "Alexander Kanavin" wrote: > 'bitbake -S printdiff' is a useful diagnostic facility for finding out > why sstate is not being reused, but until now it had no tests that would > ensure it works. This commit adds three basic scenarios: > > 1. make a

[OE-core] is it worth a newbie cleanup task to update "class Whatever(object)"?

2023-10-26 Thread Robert P. J. Day
just noticed that there is a lot of "class Something(object):" in oe-core, where AIUI, the argument of "object" is a throwback to Python2 and shouldn't(?) be necessary. is there any value in letting a newbie loose on a task to clean all that up? or is that more churn than it's worth? rday

Re: [OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Richard Purdie
On Thu, 2023-10-26 at 16:36 +0200, Alexander Kanavin wrote: > On Thu, 26 Oct 2023 at 14:53, Richard Purdie > wrote: > > https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6105/steps/25/logs/stdio > > > > AssertionError: False is not true : Missing objects in the cache: > >

[OE-core] [kirkstone][PATCH] package_rpm: Allow compression mode override

2023-10-26 Thread Niko Mauno via lists.openembedded.org
From: Niko Mauno Commit 4a4d5f78a6962dda5f63e9891825c80a8a87bf66 ("package_rpm: use zstd instead of xz") changed the rpm package compressor from 'xz' to 'zstd' which results in decompression failure with BusyBox-provided 'rpm2cpio' applet and 'rpm' applet when given the '-i' (Install package)

Re: [OE-core] [PATCH] convert-overrides.py: remove "edgerouter" string

2023-10-26 Thread Richard Purdie
On Thu, 2023-10-26 at 16:58 +0200, Michael Opdenacker via lists.openembedded.org wrote: > From: Michael Opdenacker > > The "edgerouter" machine has been removed since > https://git.yoctoproject.org/poky/commit/?id=0c64d0e4317e3749f7f7ed9ecd5d08bbb0cedc9e > > Signed-off-by: Michael Opdenacker >

[OE-core] [PATCH] oeqa/runtime/cases/parselogs: remove "edgerouter" case

2023-10-26 Thread Michael Opdenacker via lists.openembedded.org
From: Michael Opdenacker The "edgerouter" machine has been removed since https://git.yoctoproject.org/poky/commit/?id=0c64d0e4317e3749f7f7ed9ecd5d08bbb0cedc9e Signed-off-by: Michael Opdenacker --- meta/lib/oeqa/runtime/cases/parselogs.py | 6 -- 1 file changed, 6 deletions(-) diff --git

[OE-core] [PATCH] convert-overrides.py: remove "edgerouter" string

2023-10-26 Thread Michael Opdenacker via lists.openembedded.org
From: Michael Opdenacker The "edgerouter" machine has been removed since https://git.yoctoproject.org/poky/commit/?id=0c64d0e4317e3749f7f7ed9ecd5d08bbb0cedc9e Signed-off-by: Michael Opdenacker --- scripts/contrib/convert-overrides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Alexander Kanavin
On Thu, 26 Oct 2023 at 14:53, Richard Purdie wrote: > https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6105/steps/25/logs/stdio > > AssertionError: False is not true : Missing objects in the cache: > connman-gnome_0.7.bb:do_package_write_rpm >

Re: [OE-core] [PATCH] kernel: Commit without running hooks

2023-10-26 Thread Bruce Ashfield
On Thu, Oct 26, 2023 at 6:38 AM William Kennington wrote: > > On Wed, Oct 25, 2023 at 7:08 PM Bruce Ashfield > wrote: > > > > On Wed, Oct 25, 2023 at 6:37 PM William A. Kennington III via > > lists.openembedded.org wrote: > > > > > > The hooks are pulled from the impure environment and are

[OE-core][PATCH] patchtest: simplify test directory structure

2023-10-26 Thread Trevor Gamblin
Consolidate the various mbox tests into a new TestMbox class, metadata tests into TestMetadata, and patch tests into TestPatch. Also update the selftest filenames to match the changes. The test contents are not significantly changed (other than to reference the new class names). While this doesn't

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

2023-10-26 Thread JD Schroeder
On Wed, Sep 27, 2023 at 09:01 AM, Richard Purdie wrote: > > On Wed, 2023-09-27 at 06:07 -0700, JD Schroeder wrote: > >> On Tue, Sep 12, 2023 at 06:03 AM, Ross Burton wrote: >> >>> On 1 Sep 2023, at 11:03, Alexandre Belloni via >>> lists.openembedded.org >>> wrote: >>> Hello,

[OE-core] OpenEmbedded Workshop CFP - February 5th, 2024

2023-10-26 Thread Josef Holzmayr
We are hosting a workshop on Monday, February 5th 2024 in Brussels. Yes exactly, the day right after FOSDEM. So make sure to extend your stay and share your findings or the things you bring. How? By submitting to the OE Workshop 2024 CFP. Open now and waiting for you.

Re: [OE-core][PATCH] linux-yocto: make sure the pahole-native available before do_kernel_configme

2023-10-26 Thread Bruce Ashfield
On Thu, Oct 26, 2023 at 2:39 AM Xiangyu Chen wrote: > > From: Xiangyu Chen > > When using debug-btf.scc in a clean workspace, the > CONFIG_MODULE_ALLOW_BTF_MISMATCH cannot > apply to kernel until clean the kernel code(bitbake linux-yocto -c cleanall) > and rebuild. > > After tracking the code,

Re: [OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Richard Purdie
On Thu, 2023-10-26 at 13:32 +0200, Alexander Kanavin wrote: > On Thu, 26 Oct 2023 at 13:26, Richard Purdie > wrote: > > > We need to think of ways to test/debug this that don't require running > > > a-full. > > > > We can create a separate target (builder) on the AB to just run the > > test? >

Re: [OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Richard Purdie
On Thu, 2023-10-26 at 13:32 +0200, Alexander Kanavin wrote: > On Thu, 26 Oct 2023 at 13:26, Richard Purdie > wrote: > > > We need to think of ways to test/debug this that don't require running > > > a-full. > > > > We can create a separate target (builder) on the AB to just run the > > test? >

Re: [OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Alexander Kanavin
On Thu, 26 Oct 2023 at 13:26, Richard Purdie wrote: > > We need to think of ways to test/debug this that don't require running > > a-full. > > We can create a separate target (builder) on the AB to just run the > test? But it needs to run just after the task (e.g. world or some other which

Re: [OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Richard Purdie
On Thu, 2023-10-26 at 13:16 +0200, Alexander Kanavin wrote: > On Thu, 26 Oct 2023 at 12:53, Richard Purdie > wrote: > > Can we file a bug to look into that? > > > > I'm also a little puzzled as this does seem to work some of the time as > > I managed green builds of this. > > Filed: >

Re: [OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Alexander Kanavin
On Thu, 26 Oct 2023 at 12:53, Richard Purdie wrote: > Can we file a bug to look into that? > > I'm also a little puzzled as this does seem to work some of the time as > I managed green builds of this. Filed: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15253 We need to think of ways to

Re: [OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Richard Purdie
On Thu, 2023-10-26 at 12:26 +0200, Alexander Kanavin wrote: > On Tue, 24 Oct 2023 at 10:33, Luca Ceresoli wrote: > > This is triggering: > > > > AssertionError: False is not true : Missing objects in the cache: > > weston_12.0.2.bb:do_package_write_ipk > > weston_12.0.2.bb:do_package_write_deb >

[OE-core] [RFC][OE-core 7/7] create-spdx-3.0: support for recipe spdx creation

2023-10-26 Thread Marta Rybczynska
From: Samantha Jalabert Change functions and tasks to match the SPDX 3 model. Signed-off-by: Samantha Jalabert --- meta/classes/create-spdx-3.0.bbclass | 728 +-- 1 file changed, 224 insertions(+), 504 deletions(-) diff --git a/meta/classes/create-spdx-3.0.bbclass

[OE-core] [RFC][OE-core 6/7] README.SPDX3: add file

2023-10-26 Thread Marta Rybczynska
Add a specific readme for SPDX3 with open questions and other notes related to the PoC. Signed-off-by: Marta Rybczynska --- README.SPDX3 | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 README.SPDX3 diff --git a/README.SPDX3 b/README.SPDX3

[OE-core] [RFC][OE-core 5/7] oe/sbom: search into json

2023-10-26 Thread Marta Rybczynska
From: Louis Rannou Create a function that search into a json-ld instead of completely loading it. Signed-off-by: Louis Rannou --- meta/lib/oe/sbom.py | 32 1 file changed, 32 insertions(+) diff --git a/meta/lib/oe/sbom.py b/meta/lib/oe/sbom.py index

[OE-core] [RFC][OE-core 4/7] create-spdx-3.0: SPDX3 objects as classes

2023-10-26 Thread Marta Rybczynska
From: Louis Rannou Create SPDX3 objects that classes as they are described in the SPDX3 model. Signed-off-by: Louis Rannou Signed-off-by: Samantha Jalabert --- meta/lib/oe/spdx3.py | 385 +++ 1 file changed, 385 insertions(+) create mode 100644

[OE-core] [RFC][OE-core 3/7] oe/sbom: change the write_doc to prepare for spdx3

2023-10-26 Thread Marta Rybczynska
From: Louis Rannou This changes the prototype of write_doc as the SPDX3 documentation does not specify yet which is the root element. Signed-off-by: Louis Rannou Signed-off-by: Marta Rybczynska Signed-off-by: Samantha Jalabert --- meta/lib/oe/sbom.py | 5 +++-- 1 file changed, 3

[OE-core] [RFC][OE-core 2/7] oe/spdx: extend spdx.py objects

2023-10-26 Thread Marta Rybczynska
From: Louis Rannou Extend objects used to build the spdx scheme: - add support for inheritance - hide all attributes starting by _spdx - add methods to list properties and item pairs - improve the serializer to match the spdx3 scheme Signed-off-by: Louis Rannou --- meta/lib/oe/sbom.py | 2

[OE-core] [RFC][OE-core 1/7] create-spdx-3.0: copy 2.2 class

2023-10-26 Thread Marta Rybczynska
From: Louis Rannou Initialize the work on SPDX 3 with a copy of the SPDX 2.2. Change default to SPDX 3. Signed-off-by: Louis Rannou Signed-off-by: Marta Rybczynska --- meta/classes/create-spdx-3.0.bbclass | 1158 ++ meta/classes/create-spdx.bbclass |2 +- 2

[OE-core] [RFC][OE-core 0/7] SPDX3 Proof-of-Concept

2023-10-26 Thread Marta Rybczynska
This patch-set adds a proof-of-concept implementation of the upcoming SPDX3 standard to the SBOM generation of the Yocto Project/OpenEmbedded. The current code delivers an equivalent of what is produced for SPDX2.2. The standard has not been released yet, and there is some specification work in

Re: [OE-core] [PATCH] kernel: Commit without running hooks

2023-10-26 Thread William A. Kennington III via lists.openembedded.org
On Wed, Oct 25, 2023 at 7:08 PM Bruce Ashfield wrote: > > On Wed, Oct 25, 2023 at 6:37 PM William A. Kennington III via > lists.openembedded.org wrote: > > > > The hooks are pulled from the impure environment and are often broken in > > our environments. There is no reason to add extra metadata

[OE-core] [PATCH] base: Ensure recipes using mercurial-native have certificates

2023-10-26 Thread Richard Purdie
If you try and fetch using mercurial-native, you see certificate errors since it is configured to find ones in the sysroot, not the system. Add the missing dependency so that mercurial recipes using the native tool work. Found trying to make mirroring for old meta-oe stable branches work.

[OE-core] [PATCH 2/3] lib/oe/sstatesig.py: dump locked.sigs.inc only when explicitly asked via -S lockedsigs

2023-10-26 Thread Alexander Kanavin
This was writing out locked-sigs.inc into cwd with every 'bitbake -S' invocation. When the intent is only to to get task stamps (-S none), or print the difference between them (-S printdiff), the file is unnecessary clutter. A couple of selftests/scripts were however relying on this, so they're

[OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Alexander Kanavin
Specifically, the test checks that everything needed for building standard oe-core images for x86_64 and arm64 is available from the cache (with minor exceptions). Going forward, a complete world check could be enabled and additional configurations, but that requires improvements to performance of

[OE-core] [PATCH 1/3] selftest/sstatetests: add tests for 'bitbake -S printdiff'

2023-10-26 Thread Alexander Kanavin
'bitbake -S printdiff' is a useful diagnostic facility for finding out why sstate is not being reused, but until now it had no tests that would ensure it works. This commit adds three basic scenarios: 1. make a change in a really basic, common recipe that is at the very root of dependency trees

Re: [OE-core] [PATCH 3/3] selftest/sstatetests: add a test for CDN sstate cache

2023-10-26 Thread Alexander Kanavin
On Tue, 24 Oct 2023 at 10:33, Luca Ceresoli wrote: > This is triggering: > > AssertionError: False is not true : Missing objects in the cache: > weston_12.0.2.bb:do_package_write_ipk > weston_12.0.2.bb:do_package_write_deb > >

Re: [OE-core] [PATCH] openssh: Don't hardcode the dir in sshd.service

2023-10-26 Thread Jörg Sommer via lists . openembedded . org
On 26.10.23 09:04, Yu, Mingli via lists.openembedded.org wrote: > From: Mingli Yu > > Don't hardcode the directory of the binary in sshd.service. > > Signed-off-by: Mingli Yu > --- > meta/recipes-connectivity/openssh/openssh/sshd.service | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [OE-core] [PATCH v2] cve-check.bbclass: support embedded SW components with different version number

2023-10-26 Thread Richard Purdie
On Thu, 2023-10-26 at 10:33 +0300, Mikko Rapeli wrote: > Hi Richard, > > I see master-next has both v1 and v2 of this change. If there is a rebase, > maybe you can squash them into a single commit which is v2. I've been meaning to look at what was going on there. Many of the patches in -next

Re: [OE-core] [PATCH v2] cve-check.bbclass: support embedded SW components with different version number

2023-10-26 Thread Mikko Rapeli
Hi Richard, I see master-next has both v1 and v2 of this change. If there is a rebase, maybe you can squash them into a single commit which is v2. Cheers, -Mikko -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#189702):

Re: [OE-core] [PATCH v2] cve-check: Classify patched CVEs into 3 statuses

2023-10-26 Thread Luca Ceresoli via lists.openembedded.org
Hello Matsunaga-Shinji, On Wed, 25 Oct 2023 14:13:44 +0900 "Matsunaga-Shinji" wrote: > CVEs that are currently considered "Patched" are classified into the > following 3 statuses: > 1. "Patched" - means that a patch file that fixed the vulnerability has > been applied > 2. "Not affected"

Re: [OE-core] [PATCH v2] cve-check.bbclass: support embedded SW components with different version number

2023-10-26 Thread Mikko Rapeli
Hi, On Fri, Oct 20, 2023 at 08:54:14AM -0700, Khem Raj wrote: > On 10/20/23 12:49 AM, Mikko Rapeli wrote: > > Many recipes embed other SW components. The name and version of the > > embedded SW component differs from the main recipe. To detect CVEs in the > > embedded SW component, it needs to be

[OE-core] [PATCH] openssh: Don't hardcode the dir in sshd.service

2023-10-26 Thread Yu, Mingli
From: Mingli Yu Don't hardcode the directory of the binary in sshd.service. Signed-off-by: Mingli Yu --- meta/recipes-connectivity/openssh/openssh/sshd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/openssh/openssh/sshd.service

[OE-core][PATCH] linux-yocto: make sure the pahole-native available before do_kernel_configme

2023-10-26 Thread Xiangyu Chen
From: Xiangyu Chen When using debug-btf.scc in a clean workspace, the CONFIG_MODULE_ALLOW_BTF_MISMATCH cannot apply to kernel until clean the kernel code(bitbake linux-yocto -c cleanall) and rebuild. After tracking the code, some options depend on CONFIG_PAHOLE_VERSION, it was generated by