Re: [OE-core] [PATCH v2] create-spdx: add support for SDKs

2022-02-10 Thread Paul Eggleton
On Thursday, 27 January 2022 07:16:48 NZDT Andres Beltran wrote: > Currently, SPDX SBOMs are only created for images. Add support for > SDKs. Fix json indent when outputting SBOMs for better readability. Hey folks, gentle ping on this patch - any comments? Thanks Paul -=-=-=-=-=-=-=-=-=-=-=-

Re: [OE-core] [poky][master][PATCHv2] buildhistory.bbclass: Enable exporting more recipe and package data

2022-02-10 Thread Paul Eggleton
On Thursday, 10 February 2022 04:34:16 NZDT Richard Purdie wrote: > On Wed, 2022-02-09 at 14:27 +, mikko.rap...@bmw.de wrote: > > On Wed, Feb 09, 2022 at 01:40:22PM +, Richard Purdie wrote: > > > On Wed, 2022-02-09 at 13:27 +, mikko.rap...@bmw.de wrote: > > > > Hi, > > > > > > > > On

[OE-core] [PATCH v2] ed: upgrade 1.17 -> 1.18

2022-02-10 Thread wangmy
License-Update: year updated to 2022. license changed from GPLv3+ to GPLv2. (In version 1.5 the maintainer mistakenly changed the copyright holder from Andrew Moore to the FSF. In versions 1.18 he restored the original COPYING.) Changelog: = * main_loop.c (get_shell_command): Flush stdout

[OE-core] [PATCH] ed: upgrade 1.17 -> 1.18

2022-02-10 Thread wangmy
License-Update: year updated to 2022. license changed from GPLv3+ to GPLv2. (In version 1.5 the maintainer mistakenly changed the copyright holder from Andrew Moore to the FSF. In versions 1.18 he restored the original COPYING.) Changelog: = * main_loop.c (get_shell_command): Flush stdout

Re: [OE-core] [PATCH] kernel-fitimage: Add missing dependency for UBOOT_ENV

2022-02-10 Thread Marek Vasut
On 1/29/22 01:57, Marek Vasut wrote: For $UBOOT_ENV file to appear in sysroot, virtual/bootloader must populate sysroot first. Add the missing dependency. Signed-off-by: Marek Vasut Cc: Richard Purdie --- meta/classes/kernel-fitimage.bbclass | 4 1 file changed, 4 insertions(+) diff

[OE-core] [PATCH] libpcap: Disable DPDK explicitly

2022-02-10 Thread Sean Anderson via lists.openembedded.org
libpcap looks for DPDK in the same way it looks for DAG. This can poison the build even if it doesn't find anything. Explicitly disable dpdk. Signed-off-by: Sean Anderson --- meta/recipes-connectivity/libpcap/libpcap_1.10.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[OE-core] [PATCH] initramfs-framework: unmount automounts before switch_root

2022-02-10 Thread Justin Bronder
If mounts are left lingering, then after we switch_root, attempts to modify the block devices will result in an EBUSY with no way to unmount them. As we're about to switch_root anyways, there isn't much use to keep anything mounted unless it has the new rootfs. Signed-off-by: Justin Bronder ---

[OE-core] [PATCH 1/2] buildtools: Allow testsdk to access the network

2022-02-10 Thread Richard Purdie
Some of the buildtools tests test network access so allow this. Signed-off-by: Richard Purdie --- meta/recipes-core/meta/buildtools-tarball.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-core/meta/buildtools-tarball.bb b/meta/recipes-core/meta/buildtools-tarball.bb index

[OE-core] [PATCH 2/2] selftest/bbtests: Add tests for git floating tag resolution

2022-02-10 Thread Richard Purdie
This test ensures that where a floating tag is used for a git url, there aren't a number of different bugs such as inconsistent source revisions for the tag within a given build and that the recipe is reparsed at each run to ensure the tag is checked. A test is also added to ensure that the build

Re: [OE-core] [PATCH] cve-check: add json format

2022-02-10 Thread Ross Burton
On Thu, 10 Feb 2022 at 16:28, Marta Rybczynska wrote: >> This isn't part of the standard Python library, you'll have to >> replicate the logic. > > Do you mean copying part of the class or reimplementing it? Reimplement, unless it's so complicated that we need to embed a copy. As this is just

Re: [OE-core] [PATCH] cve-check: add json format

2022-02-10 Thread Marta Rybczynska
On Thu, Feb 10, 2022 at 3:36 PM Ross Burton wrote: > > > +from jsonmerge import Merger > > This isn't part of the standard Python library, you'll have to > replicate the logic. > > Do you mean copying part of the class or reimplementing it? > One suggestion would be to move more of the

[OE-core] [PATCH 3/4] selftest: wic: Remove requirement of syslinux from test_rawcopy_plugin

2022-02-10 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Remove bootimg-pcbios from wks to eliminate requirement of syslinux from test_rawcopy_plugin to avoid the following error. ERROR: Couldn't find correct bootimg_dir, exiting Signed-off-by: Stefan Herbrechtsmeier --- meta/lib/oeqa/selftest/cases/wic.py | 6 ++

[OE-core] [PATCH 4/4] selftest: wic: Add rawcopy plugin unpack test

2022-02-10 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Signed-off-by: Stefan Herbrechtsmeier --- meta/lib/oeqa/selftest/cases/wic.py | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index

[OE-core] [PATCH 2/4] wic: rawcopy: Add support for packed images

2022-02-10 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add support for packed images to wic rawcopy handler do minimize disk usage in deploy directory and reuse of packed images between wic and swupdate. Add `unpack` to sourceparams to unpack an bz2, gz and xz archives. Example: part / --source rawcopy

[OE-core] [PATCH 1/4] wic: partition: Support valueless keys in sourceparams

2022-02-10 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Accept valueless keys in sourceparams without equals sign (=) to match the comment and support Boolean entries. Signed-off-by: Stefan Herbrechtsmeier --- scripts/lib/wic/partition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OE-core] [PATCH 1/2] gcc-target: fix glob to remove gcc- binary

2022-02-10 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier The glob to remove the gcc- binary expects a single-digit major version which is no longer true. Signed-off-by: Stefan Herbrechtsmeier --- meta/recipes-devtools/gcc/gcc-target.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OE-core] [PATCH 2/2] gcc-target: move cc1plus to g++ package

2022-02-10 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Move cc1plus from gcc to g++ package. Therefor, remove the duplicate FILES entry from gcc package and keep the entry in g++ package. Signed-off-by: Stefan Herbrechtsmeier --- meta/recipes-devtools/gcc/gcc-target.inc | 1 - 1 file changed, 1 deletion(-) diff

Re: [OE-core] [PATCH] cve-check: add json format

2022-02-10 Thread Ross Burton
On Tue, 25 Jan 2022 at 09:59, Marta Rybczynska wrote: > Add an option to output the CVE check in a JSON-based format. > This format is easier to parse in software than the original > text-based one and allows post-processing by other tools. Nice, thanks. > +from jsonmerge import Merger

Re: [OE-core] [PATCH] kernel: make kernel-base recommend kernel-image, not depend

2022-02-10 Thread Bruce Ashfield
On Thu, Feb 10, 2022 at 6:52 AM Ross Burton wrote: > > As kernel modules depend on the base kernel package, and the base kernel > recipe depends on the kernel image, it's impossible to build file system > images which contain kernel modules but not the kernel itself, such as > an initramfs. > >

Re: [OE-core] Missing python.h when building ntpsec

2022-02-10 Thread Mans Zigher
For anyone stumbling on this issue the solution is to adjust the recipe to contain CFLAGS_append = " -I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}/" instead of CFLAGS_append = " -I${PYTHON_INCLUDE_DIR}" Den tors 10 feb. 2022 kl 12:40 skrev Mans Zigher via lists.openembedded.org : > > Hi, > >

[OE-core] [PATCH] kernel: make kernel-base recommend kernel-image, not depend

2022-02-10 Thread Ross Burton
As kernel modules depend on the base kernel package, and the base kernel recipe depends on the kernel image, it's impossible to build file system images which contain kernel modules but not the kernel itself, such as an initramfs. Change the RDEPENDS to RRECOMMENDS so that the disk images can set

Re: [OE-core] [PATCH 2/2] kernel-module-split: modules should recommend the kernel image

2022-02-10 Thread Ross Burton
On Thu, 10 Feb 2022 at 10:54, Richard Purdie wrote: > > Obviously this won't work in the situations where you want a normal > > image with a kernel but also a initramfs with a kernel module in it, > > as that behaviour isn't machine specific but image specific. > > > > If this was a recommends

Re: [OE-core] [RFC] support for multi project toolchain-cmake

2022-02-10 Thread Richard Purdie
On Wed, 2022-02-09 at 12:02 +0100, yoctoproj...@neumann-web.eu wrote: > Hello Vyacheslav and Richard, > > thank you both for your feedback, > > On Mon, 2022-02-08 at 10:44, Vyacheslav Yurkov wrote: > > Any reason you set SDK to be read-only? Perhaps your use case can be covered > > by extensible

Re: [OE-core] Missing python.h when building ntpsec

2022-02-10 Thread Mans Zigher
Hi, So Python.h does actually exist. It was just me that was looking for the wrong file python.h but the issue is that ntpsec is not able to find the h-file ['arm-oe-linux-gnueabi-gcc', '-march=armv7-a', '-mfpu=neon', '-mfloat-abi=hard', '-fstack-protector-strong', '-pie', '-fPIE',

Re: [OE-core] [PATCH] cmake: stop FetchContent from fetching content

2022-02-10 Thread Ross Burton
On Thu, 10 Feb 2022 at 10:13, Eero Aaltonen wrote: > > what is cmake's default ? I think it could become a constant source > > of pain if it is not default. Since many cmake based packages might > > start to depend on it indirectly in future. > > CMake's default is to allow downloads. > > It's

Re: [OE-core] [PATCH 2/2] kernel-module-split: modules should recommend the kernel image

2022-02-10 Thread Richard Purdie
On Thu, 2022-02-10 at 10:52 +, Ross Burton wrote: > On Wed, 9 Feb 2022 at 20:10, Bruce Ashfield wrote: > > I've always just used this (from kernel.bbclass): > > > > # Allow machines to override this dependency if kernel image files are > > # not wanted in images as standard > >

Re: [OE-core] [PATCH 2/2] kernel-module-split: modules should recommend the kernel image

2022-02-10 Thread Ross Burton
On Wed, 9 Feb 2022 at 20:10, Bruce Ashfield wrote: > I've always just used this (from kernel.bbclass): > > # Allow machines to override this dependency if kernel image files are > # not wanted in images as standard > RDEPENDS:${KERNEL_PACKAGE_NAME}-base ?= "${KERNEL_PACKAGE_NAME}-image > (=

[OE-core] [PATCH] sdk: fix search for dynamic loader

2022-02-10 Thread Christian Eggers
if the package "nativesdk-glibc-dbg" is installed as part of the SDK, the existing search expression finds two files: $OECORE_NATIVE_SYSROOT/lib/.debug/ld-linux-x86-64.so.2 $OECORE_NATIVE_SYSROOT/lib/ld-linux-x86-64.so.2 The generated relocate_sdk.sh shell script contains then an extra newline

Re: [OE-core] [PATCH] cmake: stop FetchContent from fetching content

2022-02-10 Thread Eero Aaltonen
On Wed, 2022-02-09 at 09:45 -0800, Khem Raj via lists.openembedded.org wrote: > On 2/9/22 4:53 AM, Ross Burton wrote: > > CMake includes a FetchContent module, which will download further > > source code at configure time. With the network isolation this > > will now fail, but as not all

Re: [OE-core] [PATCH] ed: upgrade 1.17 -> 1.18

2022-02-10 Thread Alexander Kanavin
Thanks for the research. Yes, please do add this to commit and resend. Alex On Thu, 10 Feb 2022 at 02:07, wan...@fujitsu.com wrote: > > As you can see the ChangeLog shown below, in version 1.5 the maintainer > mistakenly changed the copyright holder from Andrew Moore to the FSF. In > versions

[OE-core] [hardknott][PATCH 00/12] Pull request (cover letter only)

2022-02-10 Thread Anuj Mittal
The following changes since commit d54d7e7b43da621be8e6fcca34feb7b3d49b8160: lighttpd: backport a fix for CVE-2022-22707 (2022-01-26 11:40:00 +0800) are available in the Git repository at: git://push.openembedded.org/openembedded-core-contrib stable/hardknott-next Alexander Kanavin (1):