[OE-core] [PATCH] qemu: fix CVE-2020-11102

2020-04-06 Thread Lee Chee Yang
From: Lee Chee Yang Signed-off-by: Lee Chee Yang --- meta/recipes-devtools/qemu/qemu.inc| 1 + .../qemu/qemu/CVE-2020-11102.patch | 148 + 2 files changed, 149 insertions(+) create mode 100644 meta/recipes-devtools/qemu/qemu/CVE-2020-11102.

Re: [OE-core] [PATCH 1/2 v5] coreutils: add ptest

2020-04-06 Thread Randy MacLeod
On 2020-04-06 12:47 p.m., Richard Purdie wrote: On Mon, 2020-04-06 at 07:32 -0700, Khem Raj wrote: On Mon, Apr 6, 2020 at 4:58 AM Richard Purdie wrote: On Sun, 2020-04-05 at 17:26 -0700, Khem Raj wrote: On Wed, Mar 11, 2020 at 4:33 AM Trevor Gamblin wrote: +inherit ptest + +RDEPENDS_${PN}-

Re: [OE-core][PATCH] curl: allow configuration of default CA bundle location

2020-04-06 Thread Richard Purdie
On Mon, 2020-04-06 at 22:58 +0200, Yann Dirson wrote: > The problem motivating this patch may be the same that motivated a > hack of mine which I never > cleaned up for submit: at least in some early warrior versions curl > was attempting to use cacerts > from the host. > > This is a hand-edited c

Re: [OE-core][PATCH] curl: allow configuration of default CA bundle location

2020-04-06 Thread Yann Dirson
The problem motivating this patch may be the same that motivated a hack of mine which I never cleaned up for submit: at least in some early warrior versions curl was attempting to use cacerts from the host. This is a hand-edited copypaste and may not apply cleanly, but you should get the idea: mak

Re: [OE-core][PATCH] curl: allow configuration of default CA bundle location

2020-04-06 Thread Jim Broadus
On 4/6/20 5:00 AM, Richard Purdie wrote: On Sun, 2020-04-05 at 23:00 -0700, Jim Broadus wrote: Add a CA_BUNDLE variable to set the built-in CA bundle location. By default, don't set anything for curl-native since that target's sysconfdir is a location in the recipe's native sysroot directory. S

[OE-core] [PATCH] u-boot: support merging .cfg files for UBOOT_CONFIG

2020-04-06 Thread Ming Liu
From: Ming Liu U-boot recipe supports .cfg files in SRC_URI, but they would be merged to .config during do_configure only when UBOOT_MACHINE is set, we should also support merging .cfg files for UBOOT_CONFIG. Signed-off-by: Ming Liu --- meta/recipes-bsp/u-boot/u-boot.inc | 17 +++--

Re: [OE-core] [PATCH] cmake: fix Python executable with cmake

2020-04-06 Thread Martin Kelly
On 4/5/20 8:55 AM, Khem Raj wrote: On Fri, Apr 3, 2020 at 5:54 PM Khem Raj wrote: Hi Martin I am seeing upm package failures, which I think are related to this change https://errors.yoctoproject.org/Errors/Details/400570/ https://errors.yoctoproject.org/Errors/Details/400566/ https://errors.

Re: [OE-core] couple questions on PACKAGECONFIG (for improving docs)

2020-04-06 Thread Denys Dmytriyenko
On Mon, Apr 06, 2020 at 02:01:45PM -0400, rpj...@crashcourse.ca wrote: > On Mon, 6 Apr 2020, Richard Purdie wrote: > > > On Mon, 2020-04-06 at 13:58 -0400, rpj...@crashcourse.ca wrote: > > > On Mon, 6 Apr 2020, Quentin Schulz wrote: > > > > > > > On Mon, Apr 06, 2020 at 12:05:15PM -0400, rpj...@cr

[OE-core] Yocto Project Newcomer & Unassigned Bugs - Help Needed

2020-04-06 Thread Stephen Jolley
All, The triage team is starting to try and collect up and classify bugs which a newcomer to the project would be able to work on in a way which means people can find them. They're being listed on the triage page under the appropriate heading: https://wiki.yoctoproject.org/wiki/Bug_Triage#N

Re: [OE-core] couple questions on PACKAGECONFIG (for improving docs)

2020-04-06 Thread rpj...@crashcourse.ca
On Mon, 6 Apr 2020, Richard Purdie wrote: > On Mon, 2020-04-06 at 13:58 -0400, rpj...@crashcourse.ca wrote: > > On Mon, 6 Apr 2020, Quentin Schulz wrote: > > > > > On Mon, Apr 06, 2020 at 12:05:15PM -0400, rpj...@crashcourse.ca > > > wrote: > > > > wanted to tweak the ref manual entry for PACKAG

Re: [OE-core] couple questions on PACKAGECONFIG (for improving docs)

2020-04-06 Thread Richard Purdie
On Mon, 2020-04-06 at 13:58 -0400, rpj...@crashcourse.ca wrote: > On Mon, 6 Apr 2020, Quentin Schulz wrote: > > > On Mon, Apr 06, 2020 at 12:05:15PM -0400, rpj...@crashcourse.ca > > wrote: > > > wanted to tweak the ref manual entry for PACKAGECONFIG, so a > > > couple > > > issues. first, the re

Re: [OE-core] couple questions on PACKAGECONFIG (for improving docs)

2020-04-06 Thread rpj...@crashcourse.ca
On Mon, 6 Apr 2020, Quentin Schulz wrote: > On Mon, Apr 06, 2020 at 12:05:15PM -0400, rpj...@crashcourse.ca wrote: > > > > wanted to tweak the ref manual entry for PACKAGECONFIG, so a couple > > issues. first, the ref manual entry: > > > > https://www.yoctoproject.org/docs/current/ref-manual/ref

[OE-core] Reminder: Yocto Project Technical Team Meeting @ Monthly from 8am on the first Tuesday (PDT)

2020-04-06 Thread Stephen Jolley
All, Just a reminder we will hold the monthly Yocto Project Technical Meeting at 8am PST tomorrow. (4/7) We will be discussing plans for YP 3.2 - See: https://docs.google.com/document/d/100bTV-etO0joh6rAkcr7smlZ9iuENG_8BtaXs_vb 54c/edit?usp=sharing Yocto Project Technical Team Meeting

[OE-core][PATCH v2 0/2] introduce multi-state image deployment

2020-04-06 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Hi Richard et al, This is another shot at multi-stage image deployment. This time around I managed to fix the problem with changing task hashes and anonymous python functions ordering by simply moving the code assigning pre- and postfuncs for sstate into an even handler

[OE-core][PATCH v2 2/2] image.bbclass: deploy image artifacts in stages

2020-04-06 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Make each IMAGE_CMD task an sstate task with its own IMGDEPLOYDIR override. This way each generated set of artifacts is deployed as soon as it's ready instead of the do_image_complete task handling the entire deployement. This allows us to better fine-tune dependencies e

[OE-core][PATCH v2 1/2] qemuboot.bbclass: don't redefine IMGDEPLOYDIR

2020-04-06 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This variable is already defined in image.bbclass and there's not need to redefine it here. Signed-off-by: Bartosz Golaszewski --- meta/classes/qemuboot.bbclass | 1 - 1 file changed, 1 deletion(-) diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bb

Re: [OE-core] [PATCH 1/2 v5] coreutils: add ptest

2020-04-06 Thread Richard Purdie
On Mon, 2020-04-06 at 07:32 -0700, Khem Raj wrote: > On Mon, Apr 6, 2020 at 4:58 AM Richard Purdie > wrote: > > On Sun, 2020-04-05 at 17:26 -0700, Khem Raj wrote: > > > On Wed, Mar 11, 2020 at 4:33 AM Trevor Gamblin > > > wrote: > > > > +inherit ptest > > > > + > > > > +RDEPENDS_${PN}-ptest += "

Re: [OE-core] couple questions on PACKAGECONFIG (for improving docs)

2020-04-06 Thread Quentin Schulz
Hi, Mostly bringing nothing more than my "+1" because I've seen a few of your mails never answered so just wanted to cheer you a little bit :) On Mon, Apr 06, 2020 at 12:05:15PM -0400, rpj...@crashcourse.ca wrote: > > wanted to tweak the ref manual entry for PACKAGECONFIG, so a couple > issues

[OE-core] [PATCH] u-boot: cmd/gpt.c: fix memory leak

2020-04-06 Thread Sakib Sajal
Fixes CVE-2020-8432, a double free introduced by commit 18030d04d25d7c08d3deff85881772a520d84d49 CVE: CVE-2020-8432 Signed-off-by: Sakib Sajal --- meta/recipes-bsp/u-boot/u-boot-common.inc | 1 + ...error-cases-during-gpt-rename-more-c.patch | 116 ++ 2 files changed, 117 i

[OE-core] couple questions on PACKAGECONFIG (for improving docs)

2020-04-06 Thread rpj...@crashcourse.ca
wanted to tweak the ref manual entry for PACKAGECONFIG, so a couple issues. first, the ref manual entry: https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-PACKAGECONFIG says nothing about the possible *sixth* entry, described in base.bbclass as "foo_conflict_packageconfi

[OE-core] [zeus][PATCH 00/13] zeus -next review

2020-04-06 Thread Anuj Mittal
Next set of changes for zeus. Please review. Thanks, Anuj The following changes since commit 0743dcd0cd70dee87a49d3bcd017168352e60982: wic/direct: reserve 2 sector for extended partition (2020-03-26 07:33:07 +0800) are available in the Git repository at: git://push.openembedded.org/opene

[OE-core] [zeus][PATCH 06/13] lib/oe/package_manager: make sure to not remove packages in apt install

2020-04-06 Thread Anuj Mittal
From: Jan Luebbe apt install can decide to remove already installed packages if there are conflicts. Avoid this by explicitly specifying --no-remove. This will then cause a "E: Packages need to be removed but remove is disabled." message. Signed-off-by: Jan Luebbe Signed-off-by: Richard Purdie

[OE-core] [zeus][PATCH 05/13] busybox: on upgrade save busybox if it is the last shell

2020-04-06 Thread Anuj Mittal
From: Jeremy Puhlman During a busybox upgrade on a ipk based system, it is possible that busybox is the only shell in the system. During the uninstall the alternative for /bin/sh is removed and everything after that goes down hill. * Add a check to verify if busybox is the shell, and save it to

[OE-core] [zeus][PATCH 04/13] glib-2.0: fix CVE-2020-6750

2020-04-06 Thread Anuj Mittal
From: haiqing GSocketClient in GNOME GLib through 2.62.4 may occasionally connect directly to a target address instead of connecting via a proxy server when configured to do so, because the proxy_addr field is mishandled. This bug is timing-dependent and may occur only sporadically depending on

[OE-core] [zeus][PATCH 02/13] waffle: no need to depend on target python3

2020-04-06 Thread Anuj Mittal
From: Marek Vasut Signed-off-by: Marek Vasut Cc: Richard Purdie Cc: Ross Burton Signed-off-by: Anuj Mittal --- meta/recipes-graphics/waffle/waffle_1.6.0.bb | 5 + 1 file changed, 5 insertions(+) diff --git a/meta/recipes-graphics/waffle/waffle_1.6.0.bb b/meta/recipes-graphics/waffle/wa

[OE-core] [zeus][PATCH 08/13] lib/oe/package_manager: collect provided package names when using debs

2020-04-06 Thread Anuj Mittal
From: Jan Luebbe This is needed for a later change to avoid installing packages which are already provided by an installed package. Signed-off-by: Jan Luebbe Signed-off-by: Richard Purdie (cherry picked from commit ad72dfaaa2caf2c39d033dc1682f0e45dbbd) Signed-off-by: Anuj Mittal --- meta

[OE-core] [zeus][PATCH 03/13] lttng-modules: update to 2.10.14

2020-04-06 Thread Anuj Mittal
From: Marek Vasut Upgrade to version 2.10.14 in order to fix some build errors with latest 5.4 kernel. - conflicting types for 'trace_rcu_dyntick' Reproductible on kernel greater than v5.4.22, starting with commit 6cf539a87a ("rcu: Fix data-race due to atomic_t copy-by-value") Also drop pat

[OE-core] [zeus][PATCH 10/13] lib/oe/package_manager: don't try to rm /var/lib/opkg

2020-04-06 Thread Anuj Mittal
From: Jan Luebbe As opkglibdir starts with a /, os.path.join will ignore self.target_rootfs, leading to an attempt to remove /var/lib/opkg. This only fails if it exists on the host, explaining why this remained undiscovered for long. Signed-off-by: Jan Luebbe Signed-off-by: Richard Purdie (ch

[OE-core] [zeus][PATCH 13/13] kernelsrc.bbclass: Fix externalsrc support

2020-04-06 Thread Anuj Mittal
From: Paul Barker When the externalsrc class is used the tasks listed in SRCTREECOVEREDTASKS are deleted to prevent them being executed. If externalsrc is used for the kernel then this will include virtual/kernel:do_patch. We can depend on do_shared_workdir instead as this will survive when exte

[OE-core] [zeus][PATCH 07/13] lib/oe/package_manager: fix handling of last package

2020-04-06 Thread Anuj Mittal
From: Jan Luebbe In commit 7d214b34e11dc57316ed5c1c7747c4601286f6d2, only the code in the for loop was modified to store the pkgarch value. The code used if there was no empty line at the end was not modified. Instead of fixing the duplicated code, remove it and just make sure that a final empty

[OE-core] [zeus][PATCH 12/13] perf: Fix externalsrc support

2020-04-06 Thread Anuj Mittal
From: Paul Barker When the externalsrc class is used the tasks listed in SRCTREECOVEREDTASKS are deleted to prevent them being executed. If externalsrc is used for the kernel then this will include virtual/kernel:do_patch. We can depend on do_shared_workdir instead as this will survive when exte

[OE-core] [zeus][PATCH 09/13] lib/oe/package_manager: avoid installing provided packages via apt

2020-04-06 Thread Anuj Mittal
From: Jan Luebbe If there already is a package providing (and conflicting against) packages what should be installed, apt will try remove the conflicting package (target-sdk-provides-dummy) and any that depend on it (like apt and dpkg). This usually fails because of the protection of essential pa

[OE-core] [zeus][PATCH 01/13] u-boot-tools: Split out inc file

2020-04-06 Thread Anuj Mittal
From: Joshua Watt Spilts out the inc file for u-boot-tools so that BSPs can include it for their forked version of the tools, just like u-boot.inc. As an example, this recipe [1] builds mkimage u-boot as part of the u-boot recipe itself. This is incorrect because u-boot is a target recipe, which

[OE-core] [zeus][PATCH 11/13] kernel-yocto.bbclass: Support config fragments with externalsrc

2020-04-06 Thread Anuj Mittal
From: Paul Barker The merging of config fragments is performend in the do_kernel_configme task and so config fragments will not be supported when this task is removed from the dependency tree. kernel-yocto adds additional tasks which may modify the source directory to SRCTREECOVEREDTASKS so that

[OE-core] [PATCH] runqemu-extract-sdk: fix install debugfs on rootfs

2020-04-06 Thread Adrian Freihofer
At least with my current setup and acc. the manual, the images are named like image-dbg.rootfs.tar.bz2. The filter has two bugs: - expects something like -dbg.tar - tar without compression suffix is not allowed Signed-off-by: Adrian Freihofer --- scripts/runqemu-extract-sdk | 2 +- 1 file chang

Re: [OE-core] [PATCH 1/2 v5] coreutils: add ptest

2020-04-06 Thread Khem Raj
On Mon, Apr 6, 2020 at 4:58 AM Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > On Sun, 2020-04-05 at 17:26 -0700, Khem Raj wrote: > > On Wed, Mar 11, 2020 at 4:33 AM Trevor Gamblin > > wrote: > > > +inherit ptest > > > + > > > +RDEPENDS_${PN}-ptest += "bash findutils gawk liberror-p

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-06 Thread Richard Purdie
On Mon, 2020-04-06 at 11:21 +0200, Ricardo Ribalda Delgado wrote: > Hi > > On Mon, Apr 6, 2020 at 11:04 AM Ricardo Ribalda via > lists.openembedded.org > wrote: > > Hi > > > > On Mon, Apr 6, 2020 at 11:00 AM Richard Purdie > > wrote: > > > On Sun, 2020-04-05 at 17:44 +0200, Ricardo Ribalda Delg

[OE-core][PATCH] apt-native: don't let dpkg overwrite files by default

2020-04-06 Thread Jan Luebbe
With --force-overwrite (implied by --force-all), dpkg will not abort when a package overwrites files from different packages. As this can also lead to "The following package disappeared from your system as all files have been overwritten by other packages: " and subsequently broken dependencies, th

Re: [OE-core] librsvg-2.46.4 recipe build failure.

2020-04-06 Thread Vinay Kumar
I confirmed by below steps, If we consider only "inherit cargo gettext" in librsvg-2.46.4.bb run.do_compile contain "cargo_do_compile". When we use gnomebase as "inherit cargo gettext gnomebase" librsvg run.do_compile generated with "autotools_do_compile" in it and it comes through autotools.b

Re: [OE-core][PATCH] curl: allow configuration of default CA bundle location

2020-04-06 Thread Richard Purdie
On Sun, 2020-04-05 at 23:00 -0700, Jim Broadus wrote: > Add a CA_BUNDLE variable to set the built-in CA bundle location. By default, > don't set anything for curl-native since that target's sysconfdir is a > location in the recipe's native sysroot directory. > > Signed-off-by: Jim Broadus That i

Re: [OE-core] [PATCH 1/2 v5] coreutils: add ptest

2020-04-06 Thread Richard Purdie
On Sun, 2020-04-05 at 17:26 -0700, Khem Raj wrote: > On Wed, Mar 11, 2020 at 4:33 AM Trevor Gamblin > wrote: > > +inherit ptest > > + > > +RDEPENDS_${PN}-ptest += "bash findutils gawk liberror-perl > > libmodule-build-perl make perl perl-module-file-stat python3-core sed > > shadow" > > + > > A

Re: [OE-core] [PATCH] systemd: Package systemd-hwdb-update.service into udev

2020-04-06 Thread Alex Kiernan
On Mon, Apr 6, 2020 at 7:53 AM Khem Raj wrote: > > Currently, this unit is packaged into udev-hwdb which then adds it as rdep > instead of rrecommends to systemd itself, this meant that even if we > added udev-hwdb to BAD_RECOMMENDATIONS, it would not be respected since > its a rdep, therefore mov

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-06 Thread Ricardo Ribalda
Hi On Mon, Apr 6, 2020 at 11:04 AM Ricardo Ribalda via lists.openembedded.org wrote: > > Hi > > On Mon, Apr 6, 2020 at 11:00 AM Richard Purdie > wrote: > > > > On Sun, 2020-04-05 at 17:44 +0200, Ricardo Ribalda Delgado wrote: > > > Hi Richard > > > > > > Thanks for testing it out. Seems that I a

[OE-core] [PATCH] pseudo: On a DB fixup remove files that do not exist anymore

2020-04-06 Thread Ricardo Ribalda
From: Ricardo Ribalda If the user decides to fix a database, remove the files that do not exist anymore. If only DB test is selected do not change the behaviour (return error). Signed-off-by: Ricardo Ribalda --- pseudo.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) dif

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-06 Thread Ricardo Ribalda
Hi On Mon, Apr 6, 2020 at 11:00 AM Richard Purdie wrote: > > On Sun, 2020-04-05 at 17:44 +0200, Ricardo Ribalda Delgado wrote: > > Hi Richard > > > > Thanks for testing it out. Seems that I am either not very clever or > > I > > should not work on Sundays (or both), v1, and v2 where exactly the >

Re: [OE-core] [PATCH v2 1/2] wic: Fix permissions when using exclude or include path

2020-04-06 Thread Richard Purdie
On Sun, 2020-04-05 at 17:44 +0200, Ricardo Ribalda Delgado wrote: > Hi Richard > > Thanks for testing it out. Seems that I am either not very clever or > I > should not work on Sundays (or both), v1, and v2 where exactly the > same. I am terribly sorry to spam you. > > I know it is abusing your p

Re: [OE-core] librsvg-2.46.4 recipe build failure.

2020-04-06 Thread Alexander Kanavin
The upstream tree still uses auto tools for the build, so the issue you are seeing is probably caused by something else? Ale On Mon 6. Apr 2020 at 9.00, Vinay Kumar wrote: > Hi, > > Regarding, https://github.com/meta-rust/meta-rust/issues/264 > > As per my analysis the > "openembedded-core/meta

[OE-core] librsvg-2.46.4 recipe build failure.

2020-04-06 Thread Vinay Kumar
Hi, Regarding, https://github.com/meta-rust/meta-rust/issues/264 As per my analysis the "openembedded-core/meta/classes/autotools.bbclass" inherited through "openembedded-core/meta/classes/gnomebase.bbclass" from seems to be overriding the "meta-rust/classes/cargo.bbclass" from meta-rust. $cat