Re: [OE-core][PATCH] classes: cve-check: Get shared database lock

2022-09-02 Thread Marta Rybczynska
On Tue, Aug 30, 2022 at 5:59 PM Joshua Watt wrote: > > The CVE check database needs to have a shared lock acquired on it before > it is accessed. This to prevent cve-update-db-native from deleting the > database file out from underneath it. > > [YOCTO #14899] > > Signed-off-by: Joshua Watt > +

Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations

2022-09-02 Thread Alexander Kanavin
On Fri, 2 Sept 2022 at 06:32, Alexander Kanavin via lists.openembedded.org wrote: > We can however add a hint to check what is in > build/conf/templateconf.cfg if the test fails, as it is not obvious > that TEMPLATECONF obtained from there takes priority over other > sources (which are, in order,

Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations

2022-09-02 Thread Richard Purdie
On Fri, 2022-09-02 at 09:16 +0200, Alexander Kanavin wrote: > On Fri, 2 Sept 2022 at 06:32, Alexander Kanavin via > lists.openembedded.org > wrote: > > We can however add a hint to check what is in > > build/conf/templateconf.cfg if the test fails, as it is not obvious > > that TEMPLATECONF obtain

Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations

2022-09-02 Thread Alexander Kanavin
On Fri, 2 Sept 2022 at 09:37, Richard Purdie wrote: > > > We can however add a hint to check what is in > > > build/conf/templateconf.cfg if the test fails, as it is not obvious > > > that TEMPLATECONF obtained from there takes priority over other > > > sources (which are, in order, TEMPLATECONF p

Re: [OE-core][PATCH] classes: cve-check: Get shared database lock

2022-09-02 Thread Marta Rybczynska
On Fri, Sep 2, 2022 at 9:09 AM Marta Rybczynska via lists.openembedded.org wrote: > > On Tue, Aug 30, 2022 at 5:59 PM Joshua Watt wrote: > > > > The CVE check database needs to have a shared lock acquired on it before > > it is accessed. This to prevent cve-update-db-native from deleting the > >

[OE-core] [PATCH] ruby: drop capstone support

2022-09-02 Thread Alexandre Belloni via lists.openembedded.org
From: Alexandre Belloni Upstream dropped capstone support and this also causing us reproducibility issues. Signed-off-by: Alexandre Belloni --- ...001-Remove-dependency-on-libcapstone.patch | 36 +++ meta/recipes-devtools/ruby/ruby_3.1.2.bb | 2 +- 2 files changed, 37 ins

Re: [OE-core][PATCH] classes: cve-check: Get shared database lock

2022-09-02 Thread Richard Purdie
On Fri, 2022-09-02 at 10:50 +0200, Marta Rybczynska wrote: > On Fri, Sep 2, 2022 at 9:09 AM Marta Rybczynska via > lists.openembedded.org > wrote: > > > > On Tue, Aug 30, 2022 at 5:59 PM Joshua Watt wrote: > > > > > > The CVE check database needs to have a shared lock acquired on it before > >

Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations

2022-09-02 Thread Alexander Kanavin
Ok, I think I overstated things :) a couple of small targeted fixes incoming, no python rewrite. Alex On Fri 2. Sep 2022 at 9.41, Alexander Kanavin via lists.openembedded.org wrote: > On Fri, 2 Sept 2022 at 09:37, Richard Purdie > wrote: > > > > We can however add a hint to check what is in >

[OE-core] [dunfell][PATCH] sqlite: CVE-2022-35737 assertion failure

2022-09-02 Thread Hitendra Prajapati
Source: https://www.sqlite.org/ MR: 120541 Type: Security Fix Disposition: Backport from https://www.sqlite.org/src/info/aab790a16e1bdff7 ChangeID: cf6d0962be0d1f7d4a5019843da6349eb7f9acda Description: CVE-2022-35737 sqlite: assertion failure via query when compiled with -DSQLITE_ENABLE_S

[OE-core] [PATCH 2/2] scripts/oe-setup-builddir: write to conf/templateconf.cfg after the build is set up

2022-09-02 Thread Alexander Kanavin
This was done before any of the sanity checks or actual setup, which resulted in templateconf.cfg always getting written out, whether it would be valid or not, and the user becoming stuck with it. Signed-off-by: Alexander Kanavin --- scripts/oe-setup-builddir | 8 1 file changed, 4 inse

[OE-core] [PATCH 1/2] scripts/oe-setup-builddir: make environment variable the highest priority source for TEMPLATECONF

2022-09-02 Thread Alexander Kanavin
This sets the following order: 1. TEMPLATECONF set in the unix environment (for example as a prefix to '. oe-init-build-env'). 2. If empty then $BUILDDIR/conf/templateconf.cfg 3. If absent then $OEROOT/.templateconf (oe-init-build-env sets OEROOT to where it is, which is poky or oe-core). I bel

Re: [OE-core] [PATCH 2/2] oeqa/sdk: extend rust test to also use a build script

2022-09-02 Thread Richard Purdie
On Mon, 2022-08-29 at 13:09 +0200, Peter Bergin wrote: > Hi Richard, > > (also adding Khem Raj to CC as maintainer for gcc in oe-core) > > On 2022-08-25 17:25, Richard Purdie wrote: > > On Thu, 2022-08-25 at 14:03 +0200, Peter Bergin wrote: > > > Hi Richard, > > > > > > On 2022-08-25 10:21, Rich

Re: [OE-core] [PATCH 2/2] oeqa/sdk: extend rust test to also use a build script

2022-09-02 Thread Richard Purdie
On Fri, 2022-09-02 at 14:33 +0100, Richard Purdie via lists.openembedded.org wrote: > On Mon, 2022-08-29 at 13:09 +0200, Peter Bergin wrote: > > Hi Richard, > > > > (also adding Khem Raj to CC as maintainer for gcc in oe-core) > > > > On 2022-08-25 17:25, Richard Purdie wrote: > > > On Thu, 2022-

Re: [OE-core][PATCH] classes: cve-check: Get shared database lock

2022-09-02 Thread Steve Sakoman
On Thu, Sep 1, 2022 at 10:51 PM Marta Rybczynska wrote: > > On Fri, Sep 2, 2022 at 9:09 AM Marta Rybczynska via > lists.openembedded.org > wrote: > > > > On Tue, Aug 30, 2022 at 5:59 PM Joshua Watt wrote: > > > > > > The CVE check database needs to have a shared lock acquired on it before > > >

[OE-core] [PATCH] gcc-multilib-config: Fix i686 toolchain relocation issues

2022-09-02 Thread Richard Purdie
This code wasn't changing the linux.h on i686. Make the entry match that for i586 which was correct. This fixes problems where the wrong dynamic loader path was used by nativesdk-gcc on i686 SDK targets by ensuring SYSTEMLIBS_DIR is replaced by %r in the correct header files. Signed-off-by: Richa

Re: [OE-core] [PATCH] baremetal-image.bbclass: avoid inheriting incompatible IMAGE_CLASSES

2022-09-02 Thread Richard Purdie
On Thu, 2022-09-01 at 17:42 -0600, Alejandro Hernandez Samaniego wrote: > There could be IMAGE_CLASSES designed to work on images which arent > necessarily compatible with baremetal-images, one example is the > license_image class which relies on the package managers functionality > during do_rootf

Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations

2022-09-02 Thread Peter Kjellerstedt
> -Original Message- > From: Alexander Kanavin > Sent: den 2 september 2022 06:32 > To: Peter Kjellerstedt > Cc: openembedded-core@lists.openembedded.org; Alexander Kanavin > > Subject: Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate > build/conf/templateconf.cfg to new template

Re: [OE-core] [PATCH] baremetal-image.bbclass: avoid inheriting incompatible IMAGE_CLASSES

2022-09-02 Thread Alejandro Hernandez Samaniego
On Fri, Sep 2, 2022, 9:47 AM Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > On Thu, 2022-09-01 at 17:42 -0600, Alejandro Hernandez Samaniego wrote: > > There could be IMAGE_CLASSES designed to work on images which arent > > necessarily compatible with baremetal-images, one example i

Re: [OE-core] [PATCH] baremetal-image.bbclass: avoid inheriting incompatible IMAGE_CLASSES

2022-09-02 Thread Richard Purdie
On Fri, 2022-09-02 at 09:53 -0500, Alejandro Enedino Hernandez Samaniego wrote: > > > On Fri, Sep 2, 2022, 9:47 AM Richard Purdie > wrote: > > On Thu, 2022-09-01 at 17:42 -0600, Alejandro Hernandez Samaniego > > wrote: > > > There could be IMAGE_CLASSES designed to work on images which > > > are

Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations

2022-09-02 Thread Alexander Kanavin
On Fri, 2 Sept 2022 at 16:47, Peter Kjellerstedt wrote: > The expectation is of course that if one has one's own .templateconf > file, then it will of course have to be updated to match the changes > in OE. Nothing unusual with that. But that is something I do as > maintainer of our environment.

Re: [OE-core] [PATCH] gcc-multilib-config: Fix i686 toolchain relocation issues

2022-09-02 Thread Khem Raj
On Fri, Sep 2, 2022 at 7:41 AM Richard Purdie wrote: > > This code wasn't changing the linux.h on i686. Make the entry match that > for i586 which was correct. > > This fixes problems where the wrong dynamic loader path was used by > nativesdk-gcc on i686 SDK targets by ensuring SYSTEMLIBS_DIR is

Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations

2022-09-02 Thread Peter Kjellerstedt
> -Original Message- > From: Alexander Kanavin > Sent: den 2 september 2022 17:09 > To: Peter Kjellerstedt > Cc: openembedded-core@lists.openembedded.org; Alexander Kanavin > > Subject: Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate > build/conf/templateconf.cfg to new template

[OE-core] [PATCH] kernel: Always set CC and LD for the kernel build

2022-09-02 Thread Richard Purdie
It as been bothering me a bit that we don't set CC and LD consistently for the kernel make calls and this can lead to interesting bugs as the kernel increases in complexity. Add them to EXTRA_OEMAKE so they're always passed in. This makes everything slightly more consistent and less likely to break

[OE-core] [PATCH] kernel: Use consistent make flags for menuconfig

2022-09-02 Thread Richard Purdie
We're currently only passing in a subset of the kernel make flags to menuconfig. Fix this to be consistent with all the other kernel operations since these are becomming increasingly reliant on host compilers and flags and target toolchains as well. Signed-off-by: Richard Purdie --- meta/classes

Re: [OE-core] [PATCH] scripts/oe-setup-builddir: migrate build/conf/templateconf.cfg to new template locations

2022-09-02 Thread Alexander Kanavin
On Fri, 2 Sept 2022 at 17:41, Peter Kjellerstedt wrote: > So based on the documentation, the officially supported ways to > configure the template directory is to either specify TEMPLATECONF > explicitly or by modifying .templateconf to set a default value. Okay, I read that section, and I still

[OE-core] [PATCH] autoconf: Update K & R stype functions

2022-09-02 Thread Khem Raj
This replaces the proposed patch with a backport of what got accepted upstream Signed-off-by: Khem Raj --- ...ilers-that-moan-about-K-R-func-decls.patch | 138 ++ ...totype-for-functions-with-no-paramet.patch | 64 .../autoconf/autoconf_2.71.bb | 2 +-

[OE-core] [PATCH 1/1] ltp: Update list of tests not buildable on musl

2022-09-02 Thread Petr Vorel
From: Petr Vorel These tests are working on musl, thus not deleted: * getcontext01.c fixed for musl during conversion to the new API in 20220527 (commit 0f519d0da) * ebizzy-0.3 fixed in 20200930 (commit 967612c45) Signed-off-by: Petr Vorel --- meta/recipes-extended/ltp/ltp_20220527.bb | 4 +-

[OE-core][kirkstone 00/19] Pull request (cover letter only)

2022-09-02 Thread Steve Sakoman
The following changes since commit 92f122e0c1a7589bec3b628474548aad7fe159b4: wic: depend on cross-binutils (2022-08-31 04:16:07 -1000) are available in the Git repository at: git://git.openembedded.org/openembedded-core-contrib stable/kirkstone-next http://cgit.openembedded.org/openembedd

Re: [OE-core] [PATCH] kernel: Use consistent make flags for menuconfig

2022-09-02 Thread Bruce Ashfield
On Fri, Sep 2, 2022 at 1:30 PM Richard Purdie wrote: > > We're currently only passing in a subset of the kernel make flags to > menuconfig. Fix this to be consistent with all the other kernel > operations since these are becomming increasingly reliant on host > compilers and flags and target toolc

Re: [OE-core] [PATCH] kernel: Always set CC and LD for the kernel build

2022-09-02 Thread Bruce Ashfield
On Fri, Sep 2, 2022 at 1:10 PM Richard Purdie wrote: > > It as been bothering me a bit that we don't set CC and LD consistently > for the kernel make calls and this can lead to interesting bugs as the > kernel increases in complexity. Add them to EXTRA_OEMAKE so they're > always passed in. This ma

Re: [OE-core] [PATCH 1/1] ltp: Update list of tests not buildable on musl

2022-09-02 Thread Khem Raj
On Fri, Sep 2, 2022 at 3:31 PM Petr Vorel wrote: > > From: Petr Vorel > > These tests are working on musl, thus not deleted: > > * getcontext01.c > fixed for musl during conversion to the new API in 20220527 > (commit 0f519d0da) > > * ebizzy-0.3 > fixed in 20200930 (commit 967612c45) > lgtm >