Re: [OE-core] [PATCH 28/42] python3-hypothesis: upgrade 6.54.1 -> 6.54.3

2022-08-19 Thread Chen Qi
Hi Alex, I sent a patch to revert this recipe's version to 6.46, because it was broken since it was upgraded to 6.48. In short, it's trying to use some python3.11 feature and falls back to a module which itself is a backport from python3.11. More details are in the commit message:

[OE-core][PATCH] python3-hypothesis: revert back to 6.46.11

2022-08-17 Thread Chen Qi
be better to revert to a working version and wait for python 3.11 to release. Signed-off-by: Chen Qi --- ...thon3-hypothesis_6.54.1.bb => python3-hypothesis_6.46.11.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-devtools/python/{python3-hypothesis_6.54.1.bb => py

[OE-core][PATCH] image_types_wic.bbclass: fix cross binutils dependency

2022-08-03 Thread Chen Qi
Enable multilib and wic at the same time and we'll meet the following error. ERROR: Nothing PROVIDES 'virtual/i686-wrsmllib32-linux-binutils' Adjust the dependency to take multilib into consideration. Signed-off-by: Chen Qi --- meta/classes/image_types_wic.bbclass | 2 +- 1 file changed, 1

Re: [OE-core][PATCH] glibc: make glibc-dev depend on kernel headers

2022-07-20 Thread Chen Qi
To: Chen, Qi Cc: openembedded-core@lists.openembedded.org Subject: Re: [OE-core][PATCH] glibc: make glibc-dev depend on kernel headers On Wed, Jul 20, 2022 at 10:52 PM Chen Qi mailto:qi.c...@windriver.com>> wrote: The linux kernel headers are necessary for glibc-dev, so we need to use RD

[OE-core][PATCH] glibc: make glibc-dev depend on kernel headers

2022-07-20 Thread Chen Qi
. fatal error: linux/errno.h: No such file or directory The problem could be reproduced by setting NO_RECOMMENDATIONS to "1" and then running: bitbake core-image-minimal -c populate_sdk bitbake core-image-minimal -c testsdk Signed-off-by: Chen Qi --- meta/recipes-core/glibc/g

Re: [OE-core] Question about nativesdk-qemuwrapper-cross

2022-07-06 Thread Chen Qi
As far as I know, qemuwrapper-cross should work in such case. You need to use qemuwrapper-cross instead of nativesdk-qemuwrapper-cross. Regards, Qi -Original Message- From: openembedded-core@lists.openembedded.org On Behalf Of leimaohui Sent: Thursday, July 7, 2022 9:04 AM To: Richard

[OE-core][PATCH] libsdl2: add back xvm and xinerama options

2022-05-24 Thread Chen Qi
-by: Chen Qi --- meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb index b112d63784..8519e7f732 100644 --- a/meta/recipes-graphics/libsdl2

Re: [OE-core] About the sstate cache directory hierarchy

2022-05-15 Thread Chen Qi
Hi Jacob, No. I haven't done anything since then, because I've been involved in something else. Regards, Qi -Original Message- From: Jacob Kroon Sent: Monday, May 16, 2022 1:30 PM To: Chen, Qi ; openembedded-core@lists.openembedded.org; Richard Purdie Subject: Re: [OE-core] About

[OE-core] Regression about go 1.18 + OE specific local patch

2022-05-10 Thread Chen Qi
Hi All, I met a regression after go was upgraded to 1.18+. The problem can be reproduced by running `bitbake nativesdk-skopeo', with meta-virtualization added in bblayers.conf. The error message is as below. """ | HASH[build golang.org/x/text/unicode/norm]: "import

[OE-core] GIT_CONFIG_PARAMETERS does not work

2022-05-05 Thread Chen Qi
Hi Ross & Richard, I'm building hardknott on host with git 2.36.0. And gnulib do_install fails with git unsafe repo error. The same error could be reproduced by reverting Khem's fix for gnulib do_install and building gnulib against master. | fatal: unsafe repository

[OE-core][PATCH] go-helloworld: remove unused GO_WORKDIR

2022-04-28 Thread Chen Qi
to support offline build. As a result, this recipe was changed back to only inherit go.bbclass. But the GO_WORKDIR setting was not cleaned up. Signed-off-by: Chen Qi --- meta/recipes-extended/go-examples/go-helloworld_0.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OE-core][master][kirkstone][PATCH 1/2] cases/buildepoxy.py: fix typo

2022-04-25 Thread Chen Qi
Signed-off-by: Chen Qi --- meta/lib/oeqa/sdk/cases/buildepoxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/sdk/cases/buildepoxy.py b/meta/lib/oeqa/sdk/cases/buildepoxy.py index 385f8ccca8..f69f720cd6 100644 --- a/meta/lib/oeqa/sdk/cases/buildepoxy.py

[OE-core][master][kirkstone][PATCH 2/2] go.bbclass: disable the use of the default configuration file

2022-04-25 Thread Chen Qi
must be an absolute path According to `go help environment', """ Setting GOENV=off in the environment disables the use of the default configuration file. """ We can explicitly disable the configuration file by setting GOENV to off. Signed-off-by: Chen Qi --- meta/cl

[OE-core][PATCH] spirv-tools: fix to use sdk-1.3.204 branch

2022-04-07 Thread Chen Qi
e need to use the 'sdk-1.3.204' branch. Signed-off-by: Chen Qi --- meta/recipes-graphics/spir/spirv-tools_1.3.204.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-graphics/spir/spirv-tools_1.3.204.1.bb b/meta/recipes-graphics/spir/spirv-tools_1.3.204.1.b

Re: [OE-core] [PATCH] Added quotes around variables to prevent word splitting in the oe-init-build-env/oe-setup-builddir shell scripts.

2022-04-05 Thread Chen Qi
Whitespace is not a valid char in builddir. There's sanity check for this in sanity.bbclass: if val.find(' ') != -1:     status.addresult("Error, you have a space in your %s directory path. Please move the installation to a directory which doesn't include a space since autotools

[OE-core][PATCH] gobject-introspection: fix default search path for girdir

2022-03-29 Thread Chen Qi
girdir correctly. It's using the prefix instead of the actual girdir. Note that we don't get such error at do_rootfs time because the extra directories are speicified. But we will get such error at runtime when multilib is enabled. Signed-off-by: Chen Qi --- ...-ir-tool-template.in-fix-girdir

Re: [OE-core][PATCH] multilib_global.bbclass: fix setting preferred version for canadian recipes

2022-03-01 Thread Chen Qi
On 3/2/22 08:20, Richard Purdie wrote: On Tue, 2022-03-01 at 16:12 +0800, Chen Qi wrote: Currently the TRANSLATED_TARGET_ARCH is not changed when trying to set preferred version for canadian recipes. e.g. ``` bitbake core-image-minimal -c populate_sdk -e > env grep ^PREFERRED_VERSION_gcc-cr

[OE-core][PATCH] multilib_global.bbclass: fix setting preferred version for canadian recipes

2022-03-01 Thread Chen Qi
_VERSION_gcc-cross-canadian env ``` The result is: """ PREFERRED_VERSION_gcc-cross-canadian-i686="11.%" PREFERRED_VERSION_gcc-cross-canadian-x86-64="11.%" """ Signed-off-by: Chen Qi --- meta/classes/multilib_global.bbclass | 3 +++ 1

[OE-core][PATCH V3] mdadm: install mdcheck

2022-02-07 Thread Chen Qi
This script is used in mdcheck_xxx.service files. So we need to install it. Also, as it requires bash, we add bash to RDEPENDS. Signed-off-by: Chen Qi --- .../files/0001-Makefile-install-mdcheck.patch | 30 +++ meta/recipes-extended/mdadm/mdadm_4.2.bb | 2 ++ 2 files

Re: [OE-core][PATCH V2] mdadm: install mdcheck

2022-02-06 Thread Chen Qi
Just noticed this patch does not apply any more. I will send out V3 which applies to latest master. On 2/7/22 9:55 AM, Chen Qi wrote: ping On 1/26/22 2:54 PM, Chen Qi wrote: This script is used in mdcheck_xxx.service files. So we need to install it. Also, as it requires bash, we add bash

Re: [OE-core] About the sstate cache directory hierarchy

2022-02-06 Thread Chen Qi
[:2] *under* the pn/task/, to avoid too many files piling up in a single directory. Can you send this as an RFC patch? Alex Yes. I will ensure that all oe selftests pass before sending out patch. Regards, Qi On Fri, 28 Jan 2022 at 08:06, Chen Qi <mailto:qi.c...@windriver.com>&

Re: [OE-core][PATCH V2] mdadm: install mdcheck

2022-02-06 Thread Chen Qi
ping On 1/26/22 2:54 PM, Chen Qi wrote: This script is used in mdcheck_xxx.service files. So we need to install it. Also, as it requires bash, we add bash to RDEPENDS. Signed-off-by: Chen Qi --- .../files/0001-Makefile-install-mdcheck.patch | 30 +++ meta/recipes-extended

Re: [OE-core] About the sstate cache directory hierarchy

2022-01-27 Thread Chen Qi
On 1/28/22 3:06 PM, Chen Qi wrote: Hi All, I'm sending out this email because I'm wondering if we can change the sstate cache directory to use ${PN} and taskname as subditories. Hope to hear your opinions. Below is the long story. Recently I noticed that running `bitbake xxx -c cleansstate

[OE-core] About the sstate cache directory hierarchy

2022-01-27 Thread Chen Qi
tate: Took 0.00080108642578125 seconds It's much faster. In addition, the sub dirs now give more info, which should potentially make sstate cache easier to manage. Attached is the patch to quickly try things out. Hope to hear your opinions. Best Regards, Chen Qi >From 6f148d399c2ac575a9079eae682a56802df

[OE-core][PATCH V2] mdadm: install mdcheck

2022-01-25 Thread Chen Qi
This script is used in mdcheck_xxx.service files. So we need to install it. Also, as it requires bash, we add bash to RDEPENDS. Signed-off-by: Chen Qi --- .../files/0001-Makefile-install-mdcheck.patch | 30 +++ meta/recipes-extended/mdadm/mdadm_4.2.bb | 2 ++ 2 files

[OE-core][PATCH] mdadm: install mdcheck

2022-01-25 Thread Chen Qi
This script is used in mdcheck_xxx.service files. So we need to install it. Also, as it requires bash, we add bash to RDEPENDS. Signed-off-by: Chen Qi --- .../files/0001-Makefile-install-mdcheck.patch | 30 +++ meta/recipes-extended/mdadm/mdadm_4.2.bb | 2 ++ 2 files

Re: [OE-core][PATCH] mdadm: install mdcheck

2022-01-25 Thread Chen Qi
Please ignore this patch, it will cause qa error for mdadm-ptest. I'll send out V2. On 1/25/22 4:42 PM, Chen Qi wrote: This script is used in mdcheck_xxx.service files. So we need to install it. Also, as it requires bash, we add bash to RDEPENDS. Signed-off-by: Chen Qi --- .../files/0001

[OE-core][PATCH] mdadm: install mdcheck

2022-01-25 Thread Chen Qi
This script is used in mdcheck_xxx.service files. So we need to install it. Also, as it requires bash, we add bash to RDEPENDS. Signed-off-by: Chen Qi --- .../files/0001-Makefile-install-mdcheck.patch | 30 +++ meta/recipes-extended/mdadm/mdadm_4.2.bb | 4 ++- 2 files

[OE-core][hardknott][PATCH] populate_sdk_base: remove unneeded dirs such as /dev

2022-01-09 Thread Chen Qi
, SDK_PRUNE_SYSROOT_DIRS, to hold useless dir entries so that it could be extended. For example, '/usr/bin' could be added if wanted. (From OE-Core rev: 9154f71c7267e9731156c1dfd57397103e9e6a2b) Signed-off-by: Chen Qi Signed-off-by: Richard Purdie --- meta/classes/populate_sdk_base.bbclass | 11

[OE-core][PATCH V2] populate_sdk_base: remove unneeded dirs such as /dev

2022-01-06 Thread Chen Qi
, SDK_PRUNE_SYSROOT_DIRS, to hold useless dir entries so that it could be extended. For example, '/usr/bin' could be added if wanted. Signed-off-by: Chen Qi --- meta/classes/populate_sdk_base.bbclass | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/meta/classes

Re: [OE-core][PATCH] core-image-tiny-initramfs: delete populate_sdk task

2022-01-04 Thread Chen Qi
On 12/29/21 5:36 AM, Ross Burton wrote: On Thu, 16 Dec 2021 at 05:09, Chen Qi wrote: Currently, if we do `bitbake core-image-tiny-initramfs' and then install the generated SDK, the following error appears. tar: ./sysroots/core2-64-poky-linux/dev/console: Cannot mknod: Operation

[OE-core][PATCH] populate_sdk_base: remove useless dirs such as /dev

2022-01-04 Thread Chen Qi
, SDK_USELESS_DIRS, to hold useless dir entries so that it could be extended. For example, '/usr/bin' could be added if wanted. Signed-off-by: Chen Qi --- meta/classes/populate_sdk_base.bbclass | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/meta/classes

[OE-core][hardknott][PATCH V4] busybox: backport patches to fix CVEs

2022-01-04 Thread Chen Qi
Backport patches to fix the following CVEs: CVE-2021-42373 CVE-2021-42378 CVE-2021-42379 CVE-2021-42380 CVE-2021-42381 CVE-2021-42382 CVE-2021-42383 CVE-2021-42384 CVE-2021-42385 CVE-2021-42386 Signed-off-by: Chen Qi --- .../busybox/busybox/0001-awk-fix-CVEs.patch | 3266

[OE-core][hardknott][PATCH V3] busybox: backport patches to fix CVEs

2021-12-28 Thread Chen Qi
Backport patches to fix the following CVEs: CVE-2021-42373 CVE-2021-42378 CVE-2021-42379 CVE-2021-42380 CVE-2021-42381 CVE-2021-42382 CVE-2021-42383 CVE-2021-42384 CVE-2021-42385 CVE-2021-42386 Signed-off-by: Chen Qi --- .../busybox/busybox/0001-awk-fix-CVEs.patch | 3142

Re: [OE-core][hardknott][PATCH] core-image-tiny-initramfs: delete populate_sdk task

2021-12-27 Thread Chen Qi
Hi Anuj, It's for both master and hardknott. I sent out two patches, one for master and one for hardknott. Regards, Qi -Original Message- From: Mittal, Anuj Sent: Tuesday, December 28, 2021 12:20 PM To: Chen, Qi ; openembedded-core@lists.openembedded.org Subject: Re: [OE-core

Re: [OE-core][hardknott][PATCH 1/3] busybox: Fix for CVE-2021-42374

2021-12-21 Thread Chen Qi
-core-contrib/log/?h=stable/hardknott-next Can you please rebase on top of that? Thanks, Anuj On Tue, 2021-12-21 at 18:11 -0800, Chen Qi wrote: From: Pavel Zhukov An out-of-bounds heap read in unlzma leads to information leak and denial of service when crafted LZMA-compressed input

[OE-core][hardknott][PATCH V2] busybox: backport patches to fix CVEs

2021-12-21 Thread Chen Qi
Backport patches to fix the following CVEs: CVE-2021-42373 CVE-2021-42378 CVE-2021-42379 CVE-2021-42380 CVE-2021-42381 CVE-2021-42382 CVE-2021-42383 CVE-2021-42384 CVE-2021-42385 CVE-2021-42386 Signed-off-by: Chen Qi --- .../busybox/busybox/0001-awk-fix-CVEs.patch | 3113

[OE-core][hardknott][PATCH 3/3] busybox: backport patches to fix CVEs

2021-12-21 Thread Chen Qi
Backport patches to fix the following CVEs: CVE-2021-42373 CVE-2021-42375 CVE-2021-42377 CVE-2021-42378 CVE-2021-42379 CVE-2021-42380 CVE-2021-42381 CVE-2021-42382 CVE-2021-42383 CVE-2021-42384 CVE-2021-42385 CVE-2021-42386 Signed-off-by: Chen Qi --- .../busybox/busybox/0001-awk-fix-CVEs.patch

[OE-core][hardknott][PATCH 1/3] busybox: Fix for CVE-2021-42374

2021-12-21 Thread Chen Qi
?vulnId=CVE-2021-42374 (From OE-Core rev: 297719989ebe8ce7d50e3991cba3e268938690ce) Signed-off-by: Pavel Zhukov Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie Signed-off-by: Chen Qi --- .../busybox/busybox/CVE-2021-42374.patch | 53 +++ meta/recipes-core

[OE-core][hardknott][PATCH 2/3] busybox: Fix for CVE-2021-42376

2021-12-21 Thread Chen Qi
://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-42376 (From OE-Core rev: 58e49c94d5305875188110aecdefe77c0afdfcb7) Signed-off-by: Pavel Zhukov Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie Signed-off-by: Chen Qi --- .../busybox/busybox/CVE-2021-42376.patch | 138

[OE-core][hardknott][PATCH] core-image-tiny-initramfs: delete populate_sdk task

2021-12-15 Thread Chen Qi
the fact the its SDK cannot be installed, we'd better just delete the task. Signed-off-by: Chen Qi --- meta/recipes-core/images/core-image-tiny-initramfs.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image

[OE-core][PATCH] core-image-tiny-initramfs: delete populate_sdk task

2021-12-15 Thread Chen Qi
the fact the its SDK cannot be installed, we'd better just delete the task. Signed-off-by: Chen Qi --- meta/recipes-core/images/core-image-tiny-initramfs.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image

[OE-core][hardknott][PATCH] patchelf: fix PT_PHDR program header corruption

2021-12-08 Thread Chen Qi
Backport patch and tweak it to fix PT_PHDR program header corruption. Signed-off-by: Chen Qi --- .../patchelf/0001-merge-from-PR243.patch | 47 +++ .../patchelf/patchelf_0.12.bb | 1 + 2 files changed, 48 insertions(+) create mode 100644 meta/recipes

Re: [OE-core] [PATCH 0/8] systemd: allow building for nativesdk

2021-11-21 Thread Chen Qi
On 11/19/21 7:26 PM, Luca Boccassi wrote: On Fri, 2021-11-19 at 09:43 +0800, ChenQi wrote: Hi Luca, If the real useful part is only about systemd-analyze in case of nativesdk/native, I'd suggest adding systemd-analyze-native or nativesdk-systemd-analyze instead of extending the current systemd

Re: [OE-core] [PATCH 0/8] systemd: allow building for nativesdk

2021-11-18 Thread Chen Qi
Hi Luca, If the real useful part is only about systemd-analyze in case of nativesdk/native, I'd suggest adding systemd-analyze-native or nativesdk-systemd-analyze instead of extending the current systemd recipe. This is because systemd has a whole bunch of dependencies which basically make no

[OE-core][PATCH] waffle: add cmake-native to DEPENDS

2021-11-15 Thread Chen Qi
src/waffle/meson.build:233:8: ERROR: Unable to find cmake So explictly add 'cmake-native' to DEPENDS to solve this problem. Signed-off-by: Chen Qi --- meta/recipes-graphics/waffle/waffle_1.7.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-graphics/waf

[OE-core][PATCH] avahi: update CVE id fixed by local-ping.patch

2021-11-08 Thread Chen Qi
CVE-2021-36217 is treated as a duplicate of CVE-2021-3502. Update the local-ping.patch to mark it resolve both. Signed-off-by: Chen Qi --- meta/recipes-connectivity/avahi/files/local-ping.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/avahi/files/local

Re: [OE-core] [PATCH RFC 2/2] conf/recipes: Replace VIRTUAL-RUNTIME with PACKAGE_GLOBAL_RENAMES

2021-11-07 Thread Chen Qi
TRO_FEATURES", "systemd", "systemd", "", d)}" != "systemd" ]; then install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}/${sysconfdir}/init.d/weston f

[OE-core][PATCH] opkg: use oe.qa.add_message istead of package_qa_add_message

2021-11-01 Thread Chen Qi
ions to library Extract package_qa_write_error, package_qa_handle_error and package_qa_add_message functions from insane.bbclass to lib/oe/qa.py and drop the package_qa_ prefixes. ... """ Signed-off-by: Chen Qi --- meta/recipes-devtools/opkg/opkg_0.4.5.bb | 2 +- 1 file chang

Re: [OE-core] [RFC PATCH 11/14] populate_sdk_base/images: Drop use of 'meta' class and hence do_build dependencies

2021-10-26 Thread Chen Qi
Hi Richard, I like this change. However, it causes problem of 'rm_work'. Now some native recipes don't get cleaned up with 'rm_work' enabled. e.g. INHERIT += "rm_work" bitbake core-image-minimal A few native recipes don't get clean up such as alsa-lib-native, createrepo-c-native, dnf-native,

Re: [OE-core][PATCH] systemd: fix CVE-2021-33910

2021-09-28 Thread Chen Qi
Please ignore this one, this patch is for hardknott. On 09/29/2021 11:29 AM, Chen Qi wrote: Backport patch to fix CVE-2021-33910. Signed-off-by: Chen Qi --- ...it-name-do-not-use-strdupa-on-a-path.patch | 72 +++ meta/recipes-core/systemd/systemd_247.6.bb| 1 + 2

[OE-core][hardknott][PATCH] systemd: fix CVE-2021-33910

2021-09-28 Thread Chen Qi
Backport patch to fix CVE-2021-33910. Signed-off-by: Chen Qi --- ...it-name-do-not-use-strdupa-on-a-path.patch | 72 +++ meta/recipes-core/systemd/systemd_247.6.bb| 1 + 2 files changed, 73 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd/0001-basic-unit

[OE-core][PATCH] systemd: fix CVE-2021-33910

2021-09-28 Thread Chen Qi
Backport patch to fix CVE-2021-33910. Signed-off-by: Chen Qi --- ...it-name-do-not-use-strdupa-on-a-path.patch | 72 +++ meta/recipes-core/systemd/systemd_247.6.bb| 1 + 2 files changed, 73 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd/0001-basic-unit

Re: [OE-core] OE systemd RemainAfterExit does not work

2021-09-15 Thread Chen Qi
On 09/15/2021 04:32 PM, Jupiter wrote: How about adding 'ExecStart=/bin/true' here? It was my first try, but it did not work so I removed it. Thank you Qi. Kind regards, - jupiter Adding 'Conflicts=shutdown.target' seems to work. I just did a quick test. Regards, Qi

Re: [OE-core] OE systemd RemainAfterExit does not work

2021-09-15 Thread Chen Qi
On 09/15/2021 04:16 PM, JH wrote: Hi, I am running a logout systemd service to clean up in shutdown, the service was called in boot but was not called in the shutdown process, I double checked the mlogout.sh script which was not executed. I tried RemainAfterExit=yes, it did not work either,

Re: [OE-core][hardknott][PATCH] cpio: fix CVE-2021-38185

2021-09-13 Thread Chen Qi
Just found that Ross has sent out a patch for CVE-2021-38185 and it has been merged in hardknott. So please ignore this patch. I'm also curious about how you spot such issue. By double checking the commit logs in cpio repo? Best Regards, Chen Qi On 09/13/2021 03:11 PM, Mittal, Anuj wrote

[OE-core][hardknott][PATCH] cpio: fix CVE-2021-38185

2021-09-12 Thread Chen Qi
Signed-off-by: Chen Qi --- .../0001-Rewrite-dynamic-string-support.patch | 458 ++ meta/recipes-extended/cpio/cpio_2.13.bb | 1 + 2 files changed, 459 insertions(+) create mode 100644 meta/recipes-extended/cpio/cpio-2.13/0001-Rewrite-dynamic-string-support.patch diff

Re: [OE-core] [master][honister][hardknott][dunfell][PATCH] tar: ignore node-tar CVEs

2021-09-12 Thread Chen Qi
I'm wondering if we could restrict CVE_PRODUCT to 'gnu:tar' as an alternative solution. Regards, Qi On 09/13/2021 12:27 AM, Armin Kuster wrote: These three CVEs are specific to the Node package node-tar. exclude: CVE-2021-37701 CVE-2021-37712 CVE-2021-37713 Signed-off-by: Armin Kuster ---

[OE-core][PATCH] package_rpm/update-alternatives: fix package's provides

2021-08-20 Thread Chen Qi
. With this patch, we have: $ rpm -qp --provides tmp/deploy/rpm/core2_64/bash-5.1.8-r0.core2_64.rpm /bin/bash /bin/sh bash = 5.1.8-r0 Signed-off-by: Chen Qi --- meta/classes/package_rpm.bbclass | 8 meta/classes/update-alternatives.bbclass | 6 +++--- 2 files changed, 7 insertions(+), 7

[OE-core][PATCH] util-linux: add back manpages related settings

2021-08-11 Thread Chen Qi
/core-image-minimal/1.0-r0/rootfs/usr/share/man/man1/kill.1 exists and is not a link Signed-off-by: Chen Qi --- .../util-linux/util-linux_2.37.1.bb | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/util-linux/util-linux_2.37.1.bb b

[OE-core][PATCH] multilib.bbclass: fix new override syntax for virtclass-multilib

2021-08-08 Thread Chen Qi
the 'virtclass-multilib-xxx' is an override, so use ':' instead of '_' for TARGET_VENDOR and DEFAULTTUNE. Signed-off-by: Chen Qi --- meta/classes/multilib.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/multilib.bbclass b/meta/classes

Re: [OE-core][PATCH 2/2] convert-overrides.py: skip patches

2021-08-08 Thread Chen Qi
On 08/06/2021 06:58 PM, Richard Purdie wrote: On Fri, 2021-08-06 at 02:03 -0700, Chen Qi wrote: If a line specifies a patch, skip it. Signed-off-by: Chen Qi --- scripts/contrib/convert-overrides.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/contrib/convert-overrides.py b

Re: [OE-core][PATCH 1/2] convert-overrides.py: also convert comments without a leading whitespace

2021-08-06 Thread Chen Qi
Got it. I've sent out V2. Regards, Qi On 08/06/2021 05:25 PM, Martin Jansa wrote: Can you please bump the script version as well? On Fri, Aug 6, 2021 at 11:03 AM Chen Qi <mailto:qi.c...@windriver.com>> wrote: Currently lines like below are converted.

[OE-core][PATCH V2] convert-overrides.py: also convert comments without a leading whitespace

2021-08-06 Thread Chen Qi
Currently lines like below are converted. e.g. # IMAGE_INSTALL_append = " A" But lines without a leading whitespace are not converted. e.g. #IMAGE_INSTALL_append = " A" We should be converting both. Also bump the script's version. Signed-off-by: Chen Qi --- scr

[OE-core][PATCH] meta: use new override syntax in comments

2021-08-06 Thread Chen Qi
Signed-off-by: Chen Qi --- meta/conf/bitbake.conf | 4 ++-- meta/conf/machine/qemuppc64.conf | 4 ++-- meta/recipes-core/dbus/dbus-glib_0.112.bb| 2 +- meta/recipes-devtools/elfutils/elfutils_0.185.bb | 2 +- meta/recipes-devtools/qemu/qemu.inc

[OE-core][PATCH 1/2] convert-overrides.py: also convert comments without a leading whitespace

2021-08-06 Thread Chen Qi
Currently lines like below are converted. e.g. # IMAGE_INSTALL_append = " A" But lines without a leading whitespace are not converted. e.g. #IMAGE_INSTALL_append = " A" We should be converting both. Signed-off-by: Chen Qi --- scripts/contrib/convert-overrides.p

[OE-core][PATCH 2/2] convert-overrides.py: skip patches

2021-08-06 Thread Chen Qi
If a line specifies a patch, skip it. Signed-off-by: Chen Qi --- scripts/contrib/convert-overrides.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/contrib/convert-overrides.py b/scripts/contrib/convert-overrides.py index 4d41a4c475..387e29d66d 100755 --- a/scripts/contrib

Re: [OE-core] [PATCH] iputils: backport a fix for building on hosts without ip installed

2021-08-04 Thread Chen Qi
image testsdk', True, False, d) or any(x in (d.getVar("BBINCLUDED") or "") for x in ["testimage.bbclass", "testsdk.bbclass"])) else ''}" Best Regards, Chen Qi On 08/04/2021 04:06 PM, Martin Jansa wrote: * otherwise fails with: ../git/ping/meson.bu

[OE-core][PATCH] insane.bbclass: fix the file-rdeps QA message for the new override syntax

2021-08-04 Thread Chen Qi
. Signed-off-by: Chen Qi --- meta/classes/insane.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index ee858f84b7..be5ec60146 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -822,7

[OE-core][PATCH] iputils: fix do_configure failure of missing ip command

2021-08-03 Thread Chen Qi
If 'testimage' and 'testsdk' are not inherited, the 'ip' comamnd will not be in HOSTTOOLS. This results in do_configure failure of iputils. Backport a patch and skipping building tests to fix the problem. Signed-off-by: Chen Qi --- .../0001-meson-Make-tests-optional.patch | 220

Re: [OE-core][PATCH] gobject-introspection: fix default search path for girdir

2021-08-02 Thread Chen Qi
From: Alexander Kanavin Sent: Monday, August 2, 2021 20:57 To: Chen, Qi Cc: OE-core Subject: Re: [OE-core][PATCH] gobject-introspection: fix default search path for girdir The concerns are the same as the previous time this patch was submitted: This is not seen in the autobuilder, how can

[OE-core][PATCH] gobject-introspection: fix default search path for girdir

2021-08-02 Thread Chen Qi
girdir correctly. It's using the prefix instead of the actual girdir. Signed-off-by: Chen Qi --- ...-ir-tool-template.in-fix-girdir-path.patch | 33 +++ .../gobject-introspection_1.68.0.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-gnome

[OE-core][PATCH] zstd: fix CVE_PRODUCT

2021-07-29 Thread Chen Qi
zstd uses 'zstandard' in NVD database. e.g. CVE-2021-24031 Signed-off-by: Chen Qi --- meta/recipes-extended/zstd/zstd_1.5.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-extended/zstd/zstd_1.5.0.bb b/meta/recipes-extended/zstd/zstd_1.5.0.bb index 3786058731..978812fddb

[OE-core][hardknott][PATCH] systemd: fix CVE-2020-13529

2021-07-29 Thread Chen Qi
Backport patches to fix CVE-2020-13529. Signed-off-by: Chen Qi --- ...heck-error-earlier-and-reduce-indent.patch | 172 ++ ...02-sd-dhcp-client-shorten-code-a-bit.patch | 66 +++ ...ogs-when-dhcp-client-unexpectedly-ga.patch | 69 +++ ...entatively-ignore-FORCERENEW

[OE-core][hardknott][PATCH] gobject-introspection: fix default search path for girdir

2021-07-13 Thread Chen Qi
girdir correctly. It's using the prefix instead of the actual girdir. Signed-off-by: Chen Qi --- ...-ir-tool-template.in-fix-girdir-path.patch | 33 +++ .../gobject-introspection_1.66.1.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-gnome

[OE-core][PATCH] libxml2: update CVE_PRODUCT

2021-06-30 Thread Chen Qi
xmllint is also a valid CVE_PRODUCT for libxml2, e.g. CVE-2021-3516. Signed-off-by: Chen Qi --- meta/recipes-core/libxml/libxml2_2.9.12.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/libxml/libxml2_2.9.12.bb b/meta/recipes-core/libxml/libxml2_2.9.12.bb index

Re: [OE-core] [PATCH 1/8] PEP8 double aggressive E401

2021-06-28 Thread Chen Qi
? Best Regards, Chen Qi Alex On Mon, 28 Jun 2021 at 21:41, Khem Raj <mailto:raj.k...@gmail.com>> wrote: On Mon, Jun 28, 2021 at 12:25 PM Persian Prince mailto:persianp...@yahoo.com>> wrote: > > When we can follow PEP8 we should as it's how developers coul

Re: [OE-core] [PATCH] util-linux: backport a patch to address mkswap hangs

2021-06-17 Thread Chen Qi
The patch name seems a little weird? The commit id is better to be put in 'Upstream-Status: Backport []'. Regards, Chen Qi On 06/17/2021 04:49 PM, Alexander Kanavin wrote: Signed-off-by: Alexander Kanavin --- meta/recipes-core/util-linux/util-linux.inc | 1

Re: [OE-core] [PATCH 18/21] libdnf: update 0.62.0 -> 0.63.0

2021-05-27 Thread Chen Qi
Hi Alexander, This upgrade introduces a regression of building nativesdk-libdnf. `bitbake nativesdk-libdnf' and we can see do_package failure. Regards, Chen Qi On 05/24/2021 05:13 PM, Alexander Kanavin wrote: Signed-off-by: Alexander Kanavin --- .../libdnf/{libdnf_0.62.0.bb

Re: [OE-core][PATCH] expat: set CVE_PRODUCT

2021-05-26 Thread Chen Qi
Both 'libexpat' and 'expat' are used, from a fast grep in the json files. Maybe we should use CVE_PRODUCT = "expat libexpat"? Regards, Chen Qi On 05/26/2021 11:22 PM, Steve Sakoman wrote: Upstream database uses "libexpat" to report CVEs Signed-off-by: Steve Sakoman ---

[OE-core][PATCH V2] rt-tests: update SRCREV

2021-05-24 Thread Chen Qi
the obsolete comment. Signed-off-by: Chen Qi --- meta/recipes-rt/rt-tests/rt-tests.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-rt/rt-tests/rt-tests.inc b/meta/recipes-rt/rt-tests/rt-tests.inc index 0c89bad91f..e97140add7 100644 --- a/meta/recipes-rt/rt-tests

[OE-core][PATCH] xxhash: backport patch to fix special char problem

2021-05-23 Thread Chen Qi
. This is because we have '+' in the path. Backport a patch to fix this problem. Signed-off-by: Chen Qi --- ...pe-special-regex-characters-in-paths.patch | 55 +++ meta/recipes-support/xxhash/xxhash_0.8.0.bb | 4 +- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644

Re: [OE-core] [PATCH] rt-tests: Update rt-tests

2021-05-23 Thread Chen Qi
I talked with Qiang and sent out a patch to solve this problem last week. The title is "[OE-core][PATCH] rt-tests: update SRCREV". Best Regards, Chen Qi On 05/23/2021 02:39 PM, Martin Jansa wrote: Hi, this SRCREV no longer exists in rt-tests repo: rt-tests-1_1.10-r0 do_fetch: Fetch

Re: [OE-core][PATCH] rt-tests: update SRCREV

2021-05-23 Thread Chen Qi
ping On 05/17/2021 05:03 PM, Chen Qi wrote: The commit '6af88067da16c6e69243b376c3b6454ec694460b' is not available in the repo any more. I think it's due to some mis-operation of the upstream repo in the past few hours. Update the SRCREV to use the latest commit on unstable/devel/latest branch

Re: [OE-core][PATCH] sanity.bbclass: also check invalid char for SDKPATH

2021-05-18 Thread Chen Qi
On 05/18/2021 04:53 PM, Richard Purdie wrote: On Tue, 2021-05-18 at 00:06 -0700, Chen Qi wrote: The invalid char check are now only for COREBASE and TMPDIR, however, the SDKPATH with special char could also cause problem. e.g. bitbake nativesdk-xxhash And we get the following error message

[OE-core] [poky][meta-poky][PATCH] poky.conf: do not use '+' in DISTRO_VERSION

2021-05-18 Thread Chen Qi
+snapshot/sysroots/x86_6\ 4-pokysdk-linux/usr), can't generate pkg-config file. Stop. Signed-off-by: Chen Qi --- meta-poky/conf/distro/poky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-poky/conf/distro/poky.conf b/meta-poky/conf/distro/poky.conf index 522cc92f74

[OE-core][PATCH] sanity.bbclass: also check invalid char for SDKPATH

2021-05-18 Thread Chen Qi
) is outside of exec_prefix (/opt/poky/3.3+snapshot/sysroots/x86_6\ 4-pokysdk-linux/usr), can't generate pkg-config file. Stop. This is because we have '+' in SDKPATH. FOR SDKPATH, the valid char requirement should be the same with TMPDIR. Signed-off-by: Chen Qi --- meta/classes/sanity.bbclass

[OE-core][PATCH] rt-tests: update SRCREV

2021-05-17 Thread Chen Qi
The commit '6af88067da16c6e69243b376c3b6454ec694460b' is not available in the repo any more. I think it's due to some mis-operation of the upstream repo in the past few hours. Update the SRCREV to use the latest commit on unstable/devel/latest branch. Signed-off-by: Chen Qi --- meta/recipes-rt

Re: [OE-core][PATCH] oe-pkgdata-util: ignore SIGPIPE

2021-05-05 Thread Chen Qi
On 04/30/2021 09:34 PM, Richard Purdie wrote: On Tue, 2021-04-20 at 16:37 +0800, Chen Qi wrote: oe-pkgdata-util sometimes outputs a large amount of data. When used with pipe, it's likely to get the following error. BrokenPipeError: [Errno 32] Broken pipe The problem could be reproduced

Re: [OE-core][PATCH] oe-pkgdata-util: ignore SIGPIPE

2021-05-05 Thread Chen Qi
On 04/30/2021 09:34 PM, Richard Purdie wrote: On Tue, 2021-04-20 at 16:37 +0800, Chen Qi wrote: oe-pkgdata-util sometimes outputs a large amount of data. When used with pipe, it's likely to get the following error. BrokenPipeError: [Errno 32] Broken pipe The problem could be reproduced

Re: [OE-core][PATCH] oe-pkgdata-util: ignore SIGPIPE

2021-04-26 Thread Chen Qi
ping On 04/20/2021 04:37 PM, Chen Qi wrote: oe-pkgdata-util sometimes outputs a large amount of data. When used with pipe, it's likely to get the following error. BrokenPipeError: [Errno 32] Broken pipe The problem could be reproduced by running `oe-pkgdata-util list-pkg | less'. Type 'q

[OE-core][hardknott][PATCH] glib-2.0: fix CVE-2021-28153

2021-04-25 Thread Chen Qi
Backport patches to fix CVE-2021-28153. Signed-off-by: Chen Qi --- ...outputstream-Fix-a-typo-in-a-comment.patch | 32 ++ ...-using-g_test_bug_base-in-file-tests.patch | 47 +++ ...outputstream-Factor-out-a-flag-check.patch | 60 ...stream-Fix-CREATE_REPLACE_DESTINATIO.patch | 294

[OE-core][master][hardknott][PATCH] rsync: fix CVE-2020-14387

2021-04-24 Thread Chen Qi
Backport patch to fix CVE-2020-14387. Signed-off-by: Chen Qi --- ...-the-hostname-in-the-certificate-whe.patch | 31 +++ meta/recipes-devtools/rsync/rsync_3.2.3.bb| 1 + 2 files changed, 32 insertions(+) create mode 100644 meta/recipes-devtools/rsync/files/0001-rsync-ssl

[OE-core][PATCH] weston: fix build failure due to race condition

2021-04-20 Thread Chen Qi
The wayland.c actually include 'xdg-shell-client-protocol.h' instead of the server one, so fix it. Otherwise, it's possible to get build failure due to race condition. Signed-off-by: Chen Qi --- ...001-meson.build-fix-incorrect-header.patch | 32 +++ meta/recipes-graphics

[OE-core][PATCH] oe-pkgdata-util: ignore SIGPIPE

2021-04-20 Thread Chen Qi
the error. Signed-off-by: Chen Qi --- scripts/oe-pkgdata-util | 5 + 1 file changed, 5 insertions(+) diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index 75dd23efa3..4aeb28879d 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util @@ -17,6 +17,7 @@ import re import

[OE-core][PATCH] db: update CVE_PRODUCT

2021-04-19 Thread Chen Qi
Update CVE_PRODUCT to also include 'berkeley_db'. For example, CVE-2020-2981 uses 'berkeley_db'. Signed-off-by: Chen Qi --- meta/recipes-support/db/db_5.3.28.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-support/db/db_5.3.28.bb b/meta/recipes-support/db

Re: [OE-core] [PATCH] db: correct CVE_PRODUCT

2021-04-19 Thread Chen Qi
Hi Zheng, Looking at it further. I have to say that your observation is correct. The CVE_PRODUCT for 'db' recipe is not complete. Both 'oracle_berkeley_db' and 'berkeley_db' are used. I've sent out a patch to fix it. Best Regards, Chen Qi On 04/20/2021 10:27 AM, Chen Qi wrote: I think

Re: [OE-core] [PATCH] db: correct CVE_PRODUCT

2021-04-19 Thread Chen Qi
-1.1-Modified.json Best Regards, Chen Qi On 04/20/2021 09:55 AM, zhengrq.f...@fujitsu.com wrote: Hi, Mikko, Chen Now, cve_check can't checkout any cve issues of db. I read new nvdcve_1.1.db and guess the name of CVE_ PRODUCT should be corrected. ps: I don't have the old nvdcve_1.1.db, so, I

Re: [OE-core] [PATCH] db: correct CVE_PRODUCT

2021-04-18 Thread Chen Qi
Which ones? Regards, Chen Qi On 04/19/2021 09:45 PM, zhengruoqin wrote: In the CVE database, now it use db2 instead of oracle_berkeley_db. So, in order to be handled correctly by CVE check, modify CVE_ PRODUCT. Signed-off-by: Zheng Ruoqin --- meta/recipes-support/db/db_5.3.28.bb | 2 +- 1

Re: [OE-core][PATCH] base.bbclass: remove obsolete hosttools

2021-04-15 Thread Chen Qi
On 04/15/2021 10:18 PM, Richard Purdie wrote: On Thu, 2021-04-15 at 01:01 -0700, Chen Qi wrote: If some tool is removed from HOSTTOOLS or HOSTTOOLS_NONFATAL, it will not be removed from TMPDIR/hosttools in an existing build directory. This is unexpected. Any tool that is not specified

<    1   2   3   4   5   6   7   8   9   10   >