[OE-core] [PATCH] Add ptest to curl

2022-06-19 Thread Yogesh Tyagi
- curl-ptest is taking around 270 seconds to execute so added curl-ptest to PTESTS_SLOW - This patch is rework on an existing patch provided by Maxin B. John (maxin.j...@intel.com) https://www.openembedded.org/pipermail/openembedded-core/2017-July/139176.html - Below is the run log of curl-pt

[OE-core] [dunfell][PATCH] openldap: CVE-2022-29155 OpenLDAP SQL injection

2022-06-19 Thread Hitendra Prajapati
Source: https://git.openldap.org/openldap/openldap MR: 117821 Type: Security Fix Disposition: Backport from https://git.openldap.org/openldap/openldap/-/commit/87df6c19915042430540931d199a39105544a134 ChangeID: d534808c796600ca5994bcda28938d45405bc7b4 Description: CVE-2022-29155 openldap:

[OE-core] [dunfell][PATCH] golang: CVE-2021-44717 syscall: don't close fd 0 on ForkExec error

2022-06-19 Thread Hitendra Prajapati
Source: https://github.com/golang/go MR: 114884 Type: Security Fix Disposition: Backport from https://github.com/golang/go/commit/44a3fb49 ChangeID: 7b28553d4e23828b20c3357b1cca79ee3ca18058 Description: CVE-2021-44717 golang: syscall: don't close fd 0 on ForkExec error. Signed-off-by: Hiten

[OE-core] [dunfell][PATCH] python-pip: CVE-2021-3572 Incorrect handling of unicode separators in git references

2022-06-19 Thread Hitendra Prajapati
Source: https://github.com/pypa/pip MR: 113864 Type: Security Fix Disposition: Backport from https://github.com/pypa/pip/commit/e46bdda9711392fec0c45c1175bae6db847cb30b ChangeID: 717948e217d6219d1f03afb4d984342d7dea4636 Description: CVE-2021-3572 python-pip: Incorrect handling of unicode se

[OE-core] [dunfell][PATCH] cyrus-sasl: CVE-2022-24407 failure to properly escape SQL input allows an attacker to execute arbitrary SQL commands

2022-06-19 Thread Hitendra Prajapati
Source: https://github.com/cyrusimap/cyrus-sasl MR: 118501 Type: Security Fix Disposition: Backport from https://github.com/cyrusimap/cyrus-sasl/commit/9eff746c9daecbcc0041b09a5a51ba30738cdcbc ChangeID: 5e0fc4c28d97b498128e4aa5d3e7c012e914ef51 Description: CVE-2022-24407 cyrus-sasl: failure

Re: [OE-core] [kirkstone 00/26] Patch review

2022-06-19 Thread Sundeep KOKKONDA
Hello Randy, On 16-06-2022 19:49, Randy MacLeod wrote: On 2022-06-15 22:19, Sundeep KOKKONDA wrote: Hello, GCC regression test performed on /Kirkstone/ with gcc-11.3 & gcc-11.2. The results are *NOT* identical. Below is test summary. *gcc-11.3:* /                === gcc Summary ===/ /# of e

Re: [OE-core] [AUH] python3-jsonschema: upgrading to 4.6.0 FAILED

2022-06-19 Thread Tim Orling
On Sun, Jun 19, 2022 at 2:29 PM Ross Burton wrote: > Patches on the list. > > I’m now debating as to whether the class should be called hatch or > hatchling… > or face hugger > > Ross > > > On 18 Jun 2022, at 21:54, Alexander Kanavin > wrote: > > > > python3-jsonschema has replaced setuptools

[OE-core] [PATCH 3/3] python3-jsonschema: upgrade 4.5.1 -> 4.6.0

2022-06-19 Thread Ross Burton
Switch the build system from setuptools to hatch. Signed-off-by: Ross Burton --- ...hon3-jsonschema_4.5.1.bb => python3-jsonschema_4.6.0.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta/recipes-devtools/python/{python3-jsonschema_4.5.1.bb => python3-jsonschema_4.6.0.

[OE-core] [PATCH 1/3] Add python3-hatchling (from meta-oe)

2022-06-19 Thread Ross Burton
Recipes in core are now needing to use the Hatch build system, so move the hatchling recipe and class from meta-oe to oe-core. Signed-off-by: Ross Burton --- meta/classes/python_hatchling.bbclass | 5 + meta/conf/distro/include/maintainers.inc | 1 + .../python/python3-hatchli

[OE-core] [PATCH 2/3] python3-hatch-vcs: add new recipe

2022-06-19 Thread Ross Burton
This recipe (a VCS plugin for Hatch) is needed by the new python3-jsonschema to build. Signed-off-by: Ross Burton --- meta/conf/distro/include/maintainers.inc | 1 + .../python/python3-hatch-vcs_0.2.0.bb| 12 2 files changed, 13 insertions(+) create mod

[OE-core][dunfell 12/12] archiver: don't use machine variables in shared recipes

2022-06-19 Thread Steve Sakoman
From: Jose Quaresma When using multiconfig with the same TMP folder we can have races because the shared recipes like gcc-source run twice. ARCHIVER_OUTDIR = ${ARCHIVER_TOPDIR}/${TARGET_SYS}/${PF}/ which includes TARGET_SYS and between the two different MACHINE values, this changes from 'arm-po

[OE-core][dunfell 10/12] e2fsprogs: add alternatives handling of lsattr as well

2022-06-19 Thread Steve Sakoman
From: Rasmus Villemoes Building busybox with CONFIG_LSATTR=y and installing that in the same filesystem as e2fsprogs breaks: ERROR: ... do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot, then please place them into pkg_postinst_ont

[OE-core][dunfell 11/12] gcc-source: Fix incorrect task dependencies from ${B}

2022-06-19 Thread Steve Sakoman
From: Richard Purdie Some tasks may reference ${B} for gcc-source which in general would not exist. It has dependencies on HOST_SYS and TARGET_SYS which are not appropriate for a shared recipe like gcc-source. This causes problems for the archiver and multiconfigs in particlar. Set B to somethin

[OE-core][dunfell 09/12] oescripts: change compare logic in OEListPackageconfigTests

2022-06-19 Thread Steve Sakoman
From: Mingli Yu When multilib enabled and add layers/meta-openembedded/meta-oe in conf/bblayers.conf, it reports below error when run oe-selftest. $ oe-selftest -r oescripts [snip] [20:36:33-0700] 2022-05-16 03:36:33,494 - oe-selftest - INFO - RESULTS - oescripts.OEListPackageconfigTests.tes

[OE-core][dunfell 08/12] archiver: use bb.note instead of echo

2022-06-19 Thread Steve Sakoman
From: Jose Quaresma Signed-off-by: Jose Quaresma Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie (cherry picked from commit 6420c8a6a8143f53ccad7ab2d56b2ba06db83099) Signed-off-by: Steve Sakoman --- meta/classes/archiver.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[OE-core][dunfell 07/12] rootfs.py: close kernel_abi_ver_file

2022-06-19 Thread Steve Sakoman
From: Martin Jansa * fixes: oe-core/meta/lib/oe/rootfs.py:331: ResourceWarning: unclosed file <_io.TextIOWrapper name='pkgdata/mach/kernel-depmod/kernel-abiversion' mode='r' encoding='UTF-8'> kernel_ver = open(kernel_abi_ver_file).read().strip(' \n') Signed-off-by: Martin Jansa Signed-off

[OE-core][dunfell 06/12] license.bbclass: Bound beginline and endline in copy_license_files()

2022-06-19 Thread Steve Sakoman
From: Peter Kjellerstedt Ensure that begin_idx (i.e., beginline - 1) and end_idx (i.e., endline) are positive numbers in copy_license_files(). This makes sure the same lines are copied as populate_lic_qa_checksum() uses when it calculates the checksum. Before, beginline=0 would typically lead to

[OE-core][dunfell 05/12] alsa-plugins: fix libavtp vs. avtp packageconfig

2022-06-19 Thread Steve Sakoman
From: Marcel Ziswiler Fix PACKAGECONFIG to refer to libavtp instead of avtp as this is what the project and everything is really called everywhere. Signed-off-by: Marcel Ziswiler Signed-off-by: Richard Purdie (cherry picked from commit 8824d91fe2063195014c38c134b97946d3b429c2) Signed-off-by: S

[OE-core][dunfell 04/12] kernel-yocto.bbclass: Reset to exiting on non-zero return code at end of task

2022-06-19 Thread Steve Sakoman
From: Stefan Wiehler Several tasks deactivate exiting on non-zero return codes via set +e because they run subcommands that have legitimate non-zero return codes. However when appending to those tasks, this behavior is not expected and can lead to builds silently proceeding in case of an error. T

[OE-core][dunfell 03/12] vim: Upgrade 8.2.5034 -> 8.2.5083

2022-06-19 Thread Steve Sakoman
From: Richard Purdie Includes fixes for CVE-2022-1927, CVE-2022-1942. Signed-off-by: Richard Purdie Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 1e740b5c2227c0040621ae63436d06db4873670f) Signed-off-by: Steve Sakoman --- meta/recipes-support/vim/v

[OE-core][dunfell 02/12] openssh: Whitelist CVE-2021-36368

2022-06-19 Thread Steve Sakoman
From: Pawan Badganchi As per debian, the issue is fixed by a feature called "agent restriction" in openssh 8.9. Urgency is unimportant as per debian, Hence this CVE is whitelisting. Link: https://security-tracker.debian.org/tracker/CVE-2021-36368 https://bugzilla.mindrot.org/show_bug.cgi?id=3316#

[OE-core][dunfell 01/12] cups: fix CVE-2022-26691

2022-06-19 Thread Steve Sakoman
In scheduler/cert.c the previous algorithm didn't expect the strings can have a different length, so one string can be a substring of the other and such substring was reported as equal to the longer string. Backport patch from upstream to fix: https://github.com/OpenPrinting/cups/commit/de4f8c1961

[OE-core][dunfell 00/12] Patch review

2022-06-19 Thread Steve Sakoman
Please review this set of patches for dunfell and have comments back by end of day Tuesday. Passed a-full on autobuilder: https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3790 The following changes since commit 7e056e79a5acce8261cb5124c172cc40ad608b82: linux-yocto/5.4: update

[OE-core][kirkstone 15/15] liberror-perl: Update sstate/equiv versions to clean cache

2022-06-19 Thread Steve Sakoman
From: Richard Purdie There are cached reproducibility issues on the autobuilder due to the PRServ sstate checksum issues, flush the bad data out the system by bumping the versions. Signed-off-by: Richard Purdie (cherry picked from commit b12e6cfe3bb34e426c8bb74183d041948cb2ed89) Signed-off-by:

[OE-core][kirkstone 14/15] systemd: update 0008-add-missing-FTW_-macros-for-musl.patch

2022-06-19 Thread Steve Sakoman
From: Pavel Zhukov Fixes fuzz warning with insane class ihnerited introduced in 4c3f51142b Kirkstone specific, master has been updated to 251.2 and FTBFS with musl [Yocto 14838] Signed-off-by: Pavel Zhukov Signed-off-by: Steve Sakoman --- .../systemd/0008-add-missing-FTW_-macros-for-musl.pat

[OE-core][kirkstone 13/15] archiver: don't use machine variables in shared recipes

2022-06-19 Thread Steve Sakoman
From: Jose Quaresma When using multiconfig with the same TMP folder we can have races because the shared recipes like gcc-source run twice. ARCHIVER_OUTDIR = ${ARCHIVER_TOPDIR}/${TARGET_SYS}/${PF}/ which includes TARGET_SYS and between the two different MACHINE values, this changes from 'arm-po

[OE-core][kirkstone 11/15] git: fix override syntax in RDEPENDS

2022-06-19 Thread Steve Sakoman
From: Yi Zhao RDEPENDS_${PN}-tk -> RDEPENDS:${PN}-tk Signed-off-by: Yi Zhao Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 1ed9267a318d53a302991a8ec7259d3bb809eaaa) Signed-off-by: Steve Sakoman --- meta/recipes-devtools/git/git_2.35.3.bb | 2 +- 1

[OE-core][kirkstone 12/15] gcc-source: Fix incorrect task dependencies from ${B}

2022-06-19 Thread Steve Sakoman
From: Richard Purdie Some tasks may reference ${B} for gcc-source which in general would not exist. It has dependencies on HOST_SYS and TARGET_SYS which are not appropriate for a shared recipe like gcc-source. This causes problems for the archiver and multiconfigs in particlar. Set B to somethin

[OE-core][kirkstone 10/15] popt: fix override syntax in RDEPENDS

2022-06-19 Thread Steve Sakoman
From: Yi Zhao RDEPENDS_${PN}-ptest -> RDEPENDS:${PN}-ptest Signed-off-by: Yi Zhao Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 37a47bfced900c2f1e239b216d8614eb290f2f0c) Signed-off-by: Steve Sakoman --- meta/recipes-support/popt/popt_1.18.bb | 2 +

[OE-core][kirkstone 09/15] e2fsprogs: add alternatives handling of lsattr as well

2022-06-19 Thread Steve Sakoman
From: Rasmus Villemoes Building busybox with CONFIG_LSATTR=y and installing that in the same filesystem as e2fsprogs breaks: ERROR: ... do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot, then please place them into pkg_postinst_ont

[OE-core][kirkstone 08/15] oescripts: change compare logic in OEListPackageconfigTests

2022-06-19 Thread Steve Sakoman
From: Mingli Yu When multilib enabled and add layers/meta-openembedded/meta-oe in conf/bblayers.conf, it reports below error when run oe-selftest. $ oe-selftest -r oescripts [snip] [20:36:33-0700] 2022-05-16 03:36:33,494 - oe-selftest - INFO - RESULTS - oescripts.OEListPackageconfigTests.tes

[OE-core][kirkstone 07/15] xxhash: fix build with gcc 12

2022-06-19 Thread Steve Sakoman
From: Kai Kang It fails to compile xxhash when '-Og' is set in CFLAGS via such as set DEBUG_BUILD = '1' in local.conf. Check and disable inline when '-Og' exists. Signed-off-by: Kai Kang Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie (cherry picked from commit 3464c67cd34acbb1a670

[OE-core][kirkstone 06/15] archiver: use bb.note instead of echo

2022-06-19 Thread Steve Sakoman
From: Jose Quaresma Signed-off-by: Jose Quaresma Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie (cherry picked from commit 6420c8a6a8143f53ccad7ab2d56b2ba06db83099) Signed-off-by: Steve Sakoman --- meta/classes/archiver.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[OE-core][kirkstone 05/15] meson.bbclass: add cython binary to cross/native toolchain config

2022-06-19 Thread Steve Sakoman
From: Jack Mitchell This allows building Cython based Python modules with the native meson support which has been present since meson version 0.59. https://mesonbuild.com/Cython.html Signed-off-by: Jack Mitchell Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie (cherry picked from c

[OE-core][kirkstone 04/15] devtool: Fix _copy_file() TypeError

2022-06-19 Thread Steve Sakoman
From: Xiaobing Luo when devtool finish, the _copy_file() failed. TypeError: _copy_file() got an unexpected keyword argument 'base_outdir' Fixes: 05f2d5d2ce00 ("devtool: finish: add dry-run option") Signed-

[OE-core][kirkstone 03/15] selftest/multiconfig: Test that multiconfigs in separate layers works

2022-06-19 Thread Steve Sakoman
From: Richard Purdie We should test that mutliconfigs from a layer work, not just build/conf. This adds such a test. [YOCTO #13566] Signed-off-by: Richard Purdie Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie (cherry picked from commit 2306261fb85d5d03145989c3af9c6897111644ae) Si

[OE-core][kirkstone 02/15] uboot-sign: Fix potential index error issues

2022-06-19 Thread Steve Sakoman
From: Richard Purdie Someone reported that if some other shell function has left i or j set, the concat_dtb_helper function could fail. Add a small tweak to avoid this. [YOCTO #14815] Signed-off-by: Richard Purdie Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie (cherry picked from

[OE-core][kirkstone 01/15] vim: Upgrade 8.2.5034 -> 8.2.5083

2022-06-19 Thread Steve Sakoman
From: Richard Purdie Includes fixes for CVE-2022-1927, CVE-2022-1942. Signed-off-by: Richard Purdie Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 1e740b5c2227c0040621ae63436d06db4873670f) Signed-off-by: Steve Sakoman --- meta/recipes-support/vim/v

[OE-core][kirkstone 00/15] Patch review

2022-06-19 Thread Steve Sakoman
Please review this set of patches for kirkstone and have comments back by end of day Tuesday. Passed a-full on autobuilder: https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3799 The following changes since commit 0f7a8359ba370c7f5d5153453ed699e9566f5b1d: rootfs.py: close kern

[OE-core] [PATCH v6 7/7] libcheck: Fix too long shebang for native case.

2022-06-19 Thread Paulo Neves
It requires a shebang wrapper due to the fact that awk interpreter has an argument. --- meta/recipes-support/libcheck/libcheck_0.15.2.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-support/libcheck/libcheck_0.15.2.bb b/meta/recipes-support/libcheck/libcheck_0.15.2.bb index

[OE-core] [PATCH v6 4/7] oeqa/selftest: Add test for shebang overflow

2022-06-19 Thread Paulo Neves
Make sure we do not stage any executable with a bigger shebang than 128. Fixes [1] [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=11053 Signed-off-by: Paulo Neves --- .../sysroot-test/sysroot-shebang-test_1.0.bb | 12 meta/lib/oeqa/selftest/cases/sysroot.py

[OE-core] [PATCH v6 6/7] utils: Add cmdline_shebang_wrapper util.

2022-06-19 Thread Paulo Neves
Useful to work around shebang relocation issues, where shebangs are too long or have arguments in them, thus preventing them from using the /usr/bin/env shebang. --- .../wrapper/cmdline-shebang-wrapper-test.bb | 21 .../recipes-test/wrapper/files/test.awk | 2 ++ meta/classes

[OE-core] [PATCH v6 5/7] oeqa/selftest: Test staged .la and .pc files

2022-06-19 Thread Paulo Neves
These files are checked by qa_check_staged but there was no test cases for whether the tests actually worked. Now there are. Signed-off-by: Paulo Neves --- .../sysroot-test/sysroot-la-test_1.0.bb | 16 + .../sysroot-test/sysroot-pc-test_1.0.bb | 12 +++ meta/lib/oeqa/self

[OE-core] [PATCH v6 3/7] insane.bbclass: Make do_qa_staging check shebangs

2022-06-19 Thread Paulo Neves
As reported in the bug report [1], there was no check for shebang sizes on native scripts and now this is fixed. The path scope of the qa_staging was increased from just checking libdir to all the relevant SYSROOT_DIRS. It is possible to skip this check through INSANE_SKIP. [1] https://bugzilla.

[OE-core] [PATCH v6 1/7] python: Avoid shebang overflow on python-config.py

2022-06-19 Thread Paulo Neves
The native path may be too big, leading to shebang overflow. Just use the #!/usr/bin/env python3. Signed-off-by: Paulo Neves --- ...shebang-overflow-on-python-config.py.patch | 33 +++ .../recipes-devtools/python/python3_3.10.4.bb | 1 + 2 files changed, 34 insertions(+) create

[OE-core] [PATCH v6 2/7] gtk-doc: Fix potential shebang overflow on gtkdoc-mkhtml2

2022-06-19 Thread Paulo Neves
A native path can cause a shebang overflow on gtkdoc-mkhtml. Replace it with /usr/bin/env. Signed-off-by: Paulo Neves --- meta/recipes-gnome/gtk-doc/gtk-doc_1.33.2.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-gnome/gtk-doc/gtk-doc_1.33.2.bb b/meta/recipes-gnome/gtk-doc/gt

Re: [OE-core] [PATCH v5 6/7] utils: Add cmdline_shebang_wrapper util.

2022-06-19 Thread Paulo Neves
You are right never mind. Paulo Neves On 6/16/22 00:16, Peter Kjellerstedt wrote: -Original Message- From: Paulo Neves Sent: den 15 juni 2022 15:51 To: Peter Kjellerstedt ; Ross Burton Cc: openembedded-core@lists.openembedded.org Subject: Re: [OE-core] [PATCH v5 6/7] utils: Add cmdlin

[OE-core] [poky][meta][PATCHv2] signing-keys: fix RDEPENDS to signing-keys-dev

2022-06-19 Thread Federico Pellegrin
Specific provider (ie. RPM or IPK) does "provide" just itself as a package to the system. This will cause the "-dev" package, which refers to the generic signing-keys and not the provider specific, to miss the dependency. Error case (RPM) when populating sdk: Error: Problem: conflicting requests

[OE-core] OE-core CVE metrics for kirkstone on Sun 19 Jun 2022 03:00:01 AM HST

2022-06-19 Thread Steve Sakoman
Branch: kirkstone New this week: 0 CVEs Removed this week: 1 CVEs CVE-2022-27778 (CVSS3: 8.1 HIGH): curl:curl-native https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-27778 * Full list: Found 13 unpatched CVEs CVE-2019-12067 (CVSS3: 6.5 MEDIUM): qemu:qemu-native:qemu-system-native htt

[OE-core] OE-core CVE metrics for dunfell on Sun 19 Jun 2022 02:30:01 AM HST

2022-06-19 Thread Steve Sakoman
Branch: dunfell New this week: 3 CVEs CVE-2022-27779 (CVSS3: 5.3 MEDIUM): curl:curl-native https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-27779 * CVE-2022-27780 (CVSS3: 7.5 HIGH): curl:curl-native https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-27780 * CVE-2022-30115 (CVSS3:

[OE-core] OE-core CVE metrics for master on Sun 19 Jun 2022 02:00:01 AM HST

2022-06-19 Thread Steve Sakoman
Branch: master New this week: 0 CVEs Removed this week: 2 CVEs CVE-2022-1927 (CVSS3: 9.8 CRITICAL): vim https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-1927 * CVE-2022-1942 (CVSS3: 7.8 HIGH): vim https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-1942 * Full list: Found 8 unp

Re: [OE-core] [PATCH v5 3/7] insane.bbclass: Make do_qa_staging check shebangs

2022-06-19 Thread Paulo Neves
Yes, when I was making the change I also realized the scope of the check was quite bigger than before. I am going to deliver the final changes requested and leave it up to you to decide on the merge. Let me know your decision so I can close the bug as well. Paulo Neves On Fri, Jun 17, 2022, 18:50