[OE-core] [hardknott][PATCH 3/3] expat: fix CVE-2022-25315

2022-03-30 Thread kai
From: Kai Kang Backport patch to fix CVE-2022-25315. CVE: CVE-2022-25315 Signed-off-by: Kai Kang --- .../expat/expat/CVE-2022-25315.patch | 149 ++ meta/recipes-core/expat/expat_2.2.10.bb | 1 + 2 files changed, 150 insertions(+) create mode 100644

[OE-core] [hardknott][PATCH 1/3] expat: fix CVE-2022-25313

2022-03-30 Thread kai
From: Kai Kang Backport patch to fix CVE-2022-25313. CVE: CVE-2022-25313 Signed-off-by: Kai Kang --- .../expat/expat/CVE-2022-25313.patch | 233 ++ meta/recipes-core/expat/expat_2.2.10.bb | 1 + 2 files changed, 234 insertions(+) create mode 100644

[OE-core] [hardknott][PATCH 2/3] expat: fix CVE-2022-25314

2022-03-30 Thread kai
From: Kai Kang Backport patch to fix CVE-2022-25314 for expat. CVE: CVE-2022-25314 Signed-off-by: Kai Kang --- .../expat/expat/CVE-2022-25314.patch | 35 +++ meta/recipes-core/expat/expat_2.2.10.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644

[OE-core][PATCH] cmake: support to create per-toolchain cmake file in SDK

2022-03-30 Thread Jagadeesh Krishnanjanappa
The patch creates ${MULTIMACH_TARGET_SYS}-toolchain.cmake file at ${SDK_INSTALL_DIR}/sysroots/${SDK_SYS}/usr/share/cmake/, which is per-toolchain CMake toolchain file containing arch-specific values and independent of OE environment variables. The file gets created after installing SDK toolchain

Re: [OE-core] [PATCH][dunfell] zlib: backport the fix for CVE-2018-25032

2022-03-30 Thread Anuj Mittal
On Wed, 2022-03-30 at 21:40 +0100, Ross Burton wrote: > Hm, turns out I was being too clever back in 2019. > > Anuj: the quick fix is to not use :prepend/:remove to manipulate > SRC_URI, but just override it entirely.  You won't get the CVE but > that will be flagged in scans and you (or even

Re: [OE-core] [PATCH][dunfell] zlib: backport the fix for CVE-2018-25032

2022-03-30 Thread Steve Sakoman
On Wed, Mar 30, 2022 at 10:40 AM Ross Burton wrote: > > Hm, turns out I was being too clever back in 2019. > > Anuj: the quick fix is to not use :prepend/:remove to manipulate > SRC_URI, but just override it entirely. You won't get the CVE but > that will be flagged in scans and you (or even

Re: [OE-core] [PATCH 1/2] kmod: Add an exclude directive to depmod

2022-03-30 Thread Saul Wold
I got some feedback from the kmod upstream, a v2 will be coming soon. Sau! On 3/30/22 15:11, Saul Wold wrote: This adds a new configuration directive to depmod that causes depmod to exclude a give path entry like .debug. kernel-dbg provides the modules .debug/.ko files and when installed

Re: [OE-core] [PATCH 2/2] depmodwrapper: Use native staging dir

2022-03-30 Thread Richard Purdie
On Wed, 2022-03-30 at 15:11 -0700, Saul Wold wrote: > Use the native staging dir so that we can get the correct depmod.d > configuration > files. When depmod runs we want to ensure that the newly supported > exclude.conf > is read so that .debug/.ko files are excluded. > > Signed-off-by: Saul

[OE-core] [PATCH 2/2] depmodwrapper: Use native staging dir

2022-03-30 Thread Saul Wold
Use the native staging dir so that we can get the correct depmod.d configuration files. When depmod runs we want to ensure that the newly supported exclude.conf is read so that .debug/.ko files are excluded. Signed-off-by: Saul Wold --- meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 4

[OE-core] [PATCH 1/2] kmod: Add an exclude directive to depmod

2022-03-30 Thread Saul Wold
This adds a new configuration directive to depmod that causes depmod to exclude a give path entry like .debug. kernel-dbg provides the modules .debug/.ko files and when installed either directly or when dbg-pkgs are selected this can cause depmod to fail. This patch will be submitted to upstream

Re: [OE-core] [PATCH][dunfell] zlib: backport the fix for CVE-2018-25032

2022-03-30 Thread Ross Burton
Hm, turns out I was being too clever back in 2019. Anuj: the quick fix is to not use :prepend/:remove to manipulate SRC_URI, but just override it entirely. You won't get the CVE but that will be flagged in scans and you (or even better,the fork maintainer) can rebase the CVE patch. As this is a

[OE-core] [PATCH] weston: Add a knob to control simple clients

2022-03-30 Thread Khem Raj
Some graphics driver implementations ( e.g sgx ) do not yet support APIs from mesa 21.x, and some portions of weston simple clients depend on these APIs, therefore introduce a way to specify all or a selection fo clients to build Fixes clients/weston-simple-dmabuf-feedback.p/simple-dmabuf-

Re: [oe-core][dunfell][PATCH] go: backport patch fix for CVE-2021-38297

2022-03-30 Thread Steve Sakoman
On Wed, Mar 30, 2022 at 6:16 AM Steve Sakoman via lists.openembedded.org wrote: > > Unfortunately this patch doesn't seem to apply: > > Applying: go: backport patch fix for CVE-2021-38297 > Using index info to reconstruct a base tree... > M meta/recipes-devtools/go/go-1.14.inc >

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Khem Raj
On Wed, Mar 30, 2022 at 1:16 AM Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add a base package version (BPV) variable and use it as default for the > package version (PV) variable. The BPV variable contains the base > package version of the recipe read from the recipe

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Stefan Herbrechtsmeier
Hi Richard, Am 30.03.2022 um 13:51 schrieb Richard Purdie: On Wed, 2022-03-30 at 10:16 +0200, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Add a base package version (BPV) variable and use it as default for the package version (PV) variable. The BPV variable contains the base

Re: [oe-core][dunfell][PATCH] go: backport patch fix for CVE-2021-38297

2022-03-30 Thread Steve Sakoman
Unfortunately this patch doesn't seem to apply: Applying: go: backport patch fix for CVE-2021-38297 Using index info to reconstruct a base tree... M meta/recipes-devtools/go/go-1.14.inc .git/rebase-apply/patch:73: space before tab in indent. offset += 8; .git/rebase-apply/patch:74: space before

[oe-core][dunfell][PATCH] go: backport patch fix for CVE-2021-38297

2022-03-30 Thread Davide Gardenal
Patch taken from https://github.com/golang/go/commit/4548fcc8dfd933c237f29bba6f90040a85922564 from the following issue https://github.com/golang/go/issues/48797 Original repo https://go.googlesource.com/go/+/77f2750f4398990eed972186706f160631d7dae4 Signed-off-by: Davide Gardenal ---

[OE-core] [RFC PATCH] cve-check: ensure database is closed on error

2022-03-30 Thread Ralph Siemsen
In case of an error during download or parse of NVD JSON files, the previously opened sqlite3 database should be closed. Also any pending transactions should be flushed using conn.commit(). Otherwise there can be a "hot journal" left behind, which can cause a subsequent read-only connection to

[OE-core] [PATCH RFC] mirrors: Switch glibc and binutils to use shallow mirror tarballs

2022-03-30 Thread Richard Purdie
These two repositories are large and overload our downloads server as a premirror but the recipes are easier to maintain as git urls. Compromise and use shallow clones for them. In order to be effective, we need premirror entries on where to find the shallow mirror tarballs. Signed-off-by:

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Richard Purdie
On Wed, 2022-03-30 at 10:16 +0200, Stefan Herbrechtsmeier wrote: > From: Stefan Herbrechtsmeier > > Add a base package version (BPV) variable and use it as default for the > package version (PV) variable. The BPV variable contains the base > package version of the recipe read from the recipe

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Alexander Kanavin
The intention is that changing bitbake.conf is heavy handed, and the use case is not well presented. Why and where this is needed? Alex On Wed, 30 Mar 2022 at 13:42, Stefan Herbrechtsmeier wrote: > > Hi Alex, > > Am 30.03.2022 um 10:41 schrieb Alexander Kanavin: > > Mangling PV is more flexibly

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Stefan Herbrechtsmeier
Hi Alex, Am 30.03.2022 um 10:41 schrieb Alexander Kanavin: Mangling PV is more flexibly done with a lambda function in the recipe, where you can trim and tweak PV to your heart's desire, e.g. gnomebase.bbclass: def gnome_verdir(v): return ".".join(v.split(".")[:-1]) SRC_URI =

[OE-core] [PATCH] git: make expat and curl into PACKAGECONFIG items

2022-03-30 Thread Rasmus Villemoes via lists.openembedded.org
It can be useful to use git on target (e.g. with some wrapper like etckeeper for keeping track of changes to /etc), and for such cases, it is likely one has no need for pulling from/pushing to http[s] repositories. From the INSTALL file: - "libcurl" library ... If you do not use http:// or

[OE-core] [PATCH] mirrors: Add missing gitsm entries for yocto/oe mirrors

2022-03-30 Thread Richard Purdie
The missing gitsm:// mappings looks like an oversight, add them. Signed-off-by: Richard Purdie --- meta/classes/mirrors.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/mirrors.bbclass b/meta/classes/mirrors.bbclass index 8e7b35d9000..37dc449ade7 100644 ---

[OE-core] [RFC PATCH 1/1] kernel: add kernel-image-fitimage-initramfs

2022-03-30 Thread Claudius Heine
When creating an initramfs bundled into a kernel fitimage, the resulting fitimage will only be placed into the deploy directory and not packaged by the kernel recipe/class. Changing the kernel recipe/class to produce a package with the fitimage containing the initramfs is not possible, because

[OE-core] [RFC PATCH 0/1] Packaging a fitimage with initramfs

2022-03-30 Thread Claudius Heine
Hi, I am currently investigating how to package a fitimage with embedded initramfs and came up with the following recipe. The recipe will have issues because its version is not linked to the kernel version, so updating via package repos will not work. But that would not be important for my

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Alexander Kanavin
Not lambda in this case, but nevermind :) Alex On Wed, 30 Mar 2022 at 10:41, Alexander Kanavin wrote: > > Mangling PV is more flexibly done with a lambda function in the > recipe, where you can trim and tweak PV to your heart's desire, e.g. > gnomebase.bbclass: > > def gnome_verdir(v): >

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Alexander Kanavin
Mangling PV is more flexibly done with a lambda function in the recipe, where you can trim and tweak PV to your heart's desire, e.g. gnomebase.bbclass: def gnome_verdir(v): return ".".join(v.split(".")[:-1]) SRC_URI =

[OE-core] [PATCH] convert-variable-renames: Fix typo in description

2022-03-30 Thread Simon Kuhnle via lists.openembedded.org
Signed-off-by: Simon Kuhnle --- scripts/contrib/convert-variable-renames.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/contrib/convert-variable-renames.py b/scripts/contrib/convert-variable-renames.py index 856c001e11..eded90ca61 100755 ---

[OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add a base package version (BPV) variable and use it as default for the package version (PV) variable. The BPV variable contains the base package version of the recipe read from the recipe filename. The base package version variable supports an expansion of the