Re: [OE-core] [RFC PATCH 02/26] setuptools: refactor for no distutils bbclasses

2021-11-25 Thread Konrad Weihmann
On 26.11.21 05:35, Tim Orling wrote: Signed-off-by: Tim Orling --- meta/classes/setuptools3-base.bbclass | 31 + meta/classes/setuptools3.bbclass | 67 ++- 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100644

[OE-core] How to create connman_1.40.bbappend to enable and to build connman with iwd?

2021-11-25 Thread JH
Hi, Given the high profile of iwd and advocating connman with iwd, I believe someone have already built Yocto connman and iwd, surprisingly, I could not even find an iwd recipe in https://github.com/openembedded/openembedded/tree/master/recipes, nor can I find connman document and instructions to

[OE-core] [poky][dunfell][PATCH] systemd: add packageconfig for wheel-group

2021-11-25 Thread sana kazi
From: Peter Bergin If the distro does not include the group 'wheel' systemd will complain when trying to parse ACL rules for tmpfiles.d. systemd-tmpfiles[273]: Failed to parse ACL "d:group:adm:r-x,d:group:wheel:r-x": Invalid argument. Ignoring Systemd has a configuration parameter to avoid

[OE-core] [RFC PATCH 25/26] python3native.bbclass: distutils -> sysconfig

2021-11-25 Thread Tim Orling
In the comment it says we patch distutils modules, but we now are patching sysconfig and not using disutils. [YOCTO #14610] Signed-off-by: Tim Orling --- meta/classes/python3native.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/python3native.bbclass

[OE-core] [RFC PATCH 26/26] rootfs_rpm.bbclass: distutils -> sysconfig module

2021-11-25 Thread Tim Orling
Change a comment to reference our custom changes to the sysconfig module, as dnf no longer uses distutils. [YOCTO #14610] Signed-off-by: Tim Orling --- meta/classes/rootfs_rpm.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/rootfs_rpm.bbclass

[OE-core] [RFC PATCH 23/26] python3: refactor python-config patch

2021-11-25 Thread Tim Orling
Drop legacy python-config.patch distutils is deprecated in Python 3.10 and will be removed in Python 3.12 (~October 2023). Rather than wholesale import the distutils.sysconfig module, refactor to replicate legacy distutils usage that we need. This merges changes to get_python_inc from

[OE-core] [RFC PATCH 21/26] waf.bbclass: drop usage of distutils

2021-11-25 Thread Tim Orling
Refactor to use newly imported bb.version.LooseVersion [YOCTO #14610] Signed-off-by: Tim Orling --- meta/classes/waf.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass index df0ab8d73ff..f9e240c272a 100644 ---

[OE-core] [RFC PATCH 22/26] dnf: drop python3-disutils dependency

2021-11-25 Thread Tim Orling
Upstream dropped the now deprecated distutils: 18995d65 Remove distutils which are deprecated in python3.10 (RhBug:1950229) Usage was replaced with sysconfig, which is in pyton3-core [YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/dnf/dnf_4.10.0.bb | 1 - 1 file changed, 1

[OE-core] [RFC PATCH 24/26] lib/oe/terminal.py: use bb.version.LooseVersion

2021-11-25 Thread Tim Orling
distutils has been deprecated in Python 3.10 and is slated for removal in Python 3.12 (~October 2023). Refactor to use the newly imported bb.version.LooseVersion instead of distutils.version.LooseVersion. [YOCTO #14610] Signed-off-by: Tim Orling --- meta/lib/oe/terminal.py | 2 +- 1 file

[OE-core] [RFC PATCH 19/26] gstreamer1.0-python: inherit setuptools3-base

2021-11-25 Thread Tim Orling
Drop distutils3-base usage as it is now deprecated. [YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.18.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.18.5.bb

[OE-core] [RFC PATCH 20/26] recipetool/create_buildsys_python.py: less distutils

2021-11-25 Thread Tim Orling
distutils is deprecated in Python 3.10 with removal in Python 3.12 (~October 2023). Replace distutils.command.build_py with setuptools.command.build_py. There is still a check which decides to inherit setuptools3 vs distutils3 that will need to be refactored when we add pyproject.toml and

[OE-core] [RFC PATCH 18/26] sanity.bbclass: drop usage of distutils

2021-11-25 Thread Tim Orling
Refactor to use newly imported bb.version.LooseVersion and replace `import distutils.sysconfig` with 'import sysconfig`. https://www.python.org/dev/peps/pep-0632/#id23 [YOCTO #14610] Signed-off-by: Tim Orling --- meta/classes/sanity.bbclass | 16 1 file changed, 8

[OE-core] [RFC PATCH 17/26] python3-setuptools: do not depend on distutils

2021-11-25 Thread Tim Orling
No longer depend on python3-distutils, current versions of setuptools vendor as _distutils. [YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-setuptools_59.2.0.bb | 1 - 1 file changed, 1 deletion(-) diff --git

[OE-core] [RFC PATCH 15/26] python3-pygobject: setuptools instead of distutils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-pygobject_3.42.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-pygobject_3.42.0.bb b/meta/recipes-devtools/python/python3-pygobject_3.42.0.bb index

[OE-core] [RFC PATCH 16/26] bind: inherit setuptools3-base instead of distutils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-connectivity/bind/bind_9.16.23.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/bind/bind_9.16.23.bb b/meta/recipes-connectivity/bind/bind_9.16.23.bb index c1bf250c26e..f4db113c7e1 100644

[OE-core] [RFC PATCH 14/26] scripts/buildhistory-diff: drop use of distutils

2021-11-25 Thread Tim Orling
The use of distutils.version.LooseVersion to check for GitPython > 0.3.1 is not really needed anymore since any supported distribution has at least 1.0.0 (centos-7 via epel7, debian-9, ubuntu-16.04) If we want to reinstate this check, alternatives would be to require python3-packaging on all

[OE-core] [RFC PATCH 13/26] btrfs-tools: use setuptools3-base not distutils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/btrfs-tools/btrfs-tools_5.15.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.15.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_5.15.bb index

[OE-core] [RFC PATCH 12/26] librepo: inherit setuptools3-base not distutils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/librepo/librepo_1.14.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/librepo/librepo_1.14.2.bb b/meta/recipes-devtools/librepo/librepo_1.14.2.bb index 61a485cfe89..6cd8090b556

[OE-core] [RFC PATCH 10/26] libcomps: inherit setuptools3-base not distutils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/libcomps/libcomps_0.1.18.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/libcomps/libcomps_0.1.18.bb b/meta/recipes-devtools/libcomps/libcomps_0.1.18.bb index

[OE-core] [RFC PATCH 08/26] python3-pip: inherit setuptools3 not distutils3

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-pip_21.3.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-pip_21.3.1.bb b/meta/recipes-devtools/python/python3-pip_21.3.1.bb index

[OE-core] [RFC PATCH 11/26] createrepo-c: inherit setuptools3-base not distutils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/createrepo-c/createrepo-c_0.17.7.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/createrepo-c/createrepo-c_0.17.7.bb b/meta/recipes-devtools/createrepo-c/createrepo-c_0.17.7.bb index

[OE-core] [RFC PATCH 09/26] systemtap: use setuptools-base not distutils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-kernel/systemtap/systemtap_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb index d11d9b93a2d..04f7e03ab50 100644

[OE-core] [RFC PATCH 06/26] python3-dbus: inherit setuptools3-base not distuils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-dbus_1.2.18.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-dbus_1.2.18.bb b/meta/recipes-devtools/python/python3-dbus_1.2.18.bb index

[OE-core] [RFC PATCH 07/26] gpgme: inherit setuptools-base not distutils

2021-11-25 Thread Tim Orling
What was distutils-common-base has been merged into setuptools3-base, since we no longer need to support python2 and python3. [YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-support/gpgme/gpgme_1.16.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OE-core] [RFC PATCH 05/26] libdnf: inherit setuptoools3-base not distutils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/libdnf/libdnf_0.65.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/libdnf/libdnf_0.65.0.bb b/meta/recipes-devtools/libdnf/libdnf_0.65.0.bb index fbda7769c07..81da04c9ca1 100644 ---

[OE-core] [RFC PATCH 04/26] dnf: inherit setuptools3-base instead of distutils

2021-11-25 Thread Tim Orling
[YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/dnf/dnf_4.10.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/dnf/dnf_4.10.0.bb b/meta/recipes-devtools/dnf/dnf_4.10.0.bb index cef2c03e4e2..6ff2a6b1e6f 100644 ---

[OE-core] [RFC PATCH 03/26] python3-cython: DISTUTILS_* -> SETUPTOOLS_*

2021-11-25 Thread Tim Orling
Refactor to new SETUPTOOLS_* variables [YOCTO #14610] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-cython_0.29.24.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-cython_0.29.24.bb

[OE-core] [RFC PATCH 00/26] deprecation of distutils

2021-11-25 Thread Tim Orling
distutils is deprecated in Python 3.10 and will be removed in Python 3.12 (~October 2023). This series inserts a deprecation warning into the distutils*.bbclasses and drops or replaces distutils usage wherever possible. Instead of distutils3-base, we introduce setuptools3-base, which also

[OE-core] [RFC PATCH 01/26] classes/distutils-*: add warning of deprecation

2021-11-25 Thread Tim Orling
distutils has been deprecated in Python 3.10 and will be removed in Python 3.12 (predicted release date October 2023). Add a warning now that recommends using the roughly equivalent setuptools-* classes. [YOCTO #14610] Signed-off-by: Tim Orling --- meta/classes/distutils-common-base.bbclass |

[OE-core] [RFC PATCH 02/26] setuptools: refactor for no distutils bbclasses

2021-11-25 Thread Tim Orling
Signed-off-by: Tim Orling --- meta/classes/setuptools3-base.bbclass | 31 + meta/classes/setuptools3.bbclass | 67 ++- 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 meta/classes/setuptools3-base.bbclass diff --git

[OE-core] [PATCH] gcc: Drop further unneeded precompiled header patch

2021-11-25 Thread Richard Purdie
According to comments on the bug report from gcc developers, we no longer need to do this post gcc 10. Lets therefore drop the patch. Signed-off-by: Richard Purdie --- meta/recipes-devtools/gcc/gcc-11.2.inc| 1 - ...-fault-in-precompiled-header-generat.patch | 57 --- 2

Re: [OE-core] [PATCH 03/20] python: introduce python3-dtschema

2021-11-25 Thread Bruce Ashfield
On Thu, Nov 25, 2021 at 12:53 PM Khem Raj wrote: > > > > On 11/25/21 9:51 AM, Bruce Ashfield wrote: > > On Thu, Nov 25, 2021 at 12:36 PM Khem Raj wrote: > >> > >> fails to build for me > >> > >> https://errors.yoctoproject.org/Errors/Details/618010/ > > > > It was updated in-branch with fixups.

Re: [OE-core] [PATCH 03/20] python: introduce python3-dtschema

2021-11-25 Thread Khem Raj
On 11/25/21 9:51 AM, Bruce Ashfield wrote: On Thu, Nov 25, 2021 at 12:36 PM Khem Raj wrote: fails to build for me https://errors.yoctoproject.org/Errors/Details/618010/ It was updated in-branch with fixups. The version in this patch is known to break on a target build. thanks, my

Re: [OE-core] [PATCH 03/20] python: introduce python3-dtschema

2021-11-25 Thread Bruce Ashfield
On Thu, Nov 25, 2021 at 12:36 PM Khem Raj wrote: > > fails to build for me > > https://errors.yoctoproject.org/Errors/Details/618010/ It was updated in-branch with fixups. The version in this patch is known to break on a target build. Bruce > > On Wed, Nov 24, 2021 at 1:14 PM Bruce Ashfield

Re: [OE-core] [PATCH 3/3] gcc: Drop mips default ABI patch

2021-11-25 Thread Khem Raj
On 11/25/21 7:22 AM, Richard Purdie wrote: gcc-configure-common.inc already sets --with-abi=64 for our mips64 targets so this patch is no longer needed. sounds good. Long time ago, IIRC it did not work for compiling the target gcc so it has to be enforced but I agree one less patch is

Re: [OE-core] [PATCH 2/3] gcc: Drop no longer needed patch

2021-11-25 Thread Khem Raj
On 11/25/21 7:22 AM, Richard Purdie wrote: This patch was mentioned upstream a long time ago: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47256 Changes from gcc 10 onward mean it is no longer needed as mentioned in the above bug report. Drop the patch. this looks ok. Signed-off-by:

Re: [OE-core] [PATCH 03/20] python: introduce python3-dtschema

2021-11-25 Thread Khem Raj
fails to build for me https://errors.yoctoproject.org/Errors/Details/618010/ On Wed, Nov 24, 2021 at 1:14 PM Bruce Ashfield wrote: > > From: Bruce Ashfield > > kernel commit 53182e81f47d [kbuild: Enable DT schema checks for %.dtb > targets], which is part of v5.16+, makes the checking of dtb

Re: [OE-core] [PATCH 16/21] cmake: update 3.21.4 -> 3.22.0

2021-11-25 Thread Khem Raj
On Wed, Nov 24, 2021 at 12:30 PM Khem Raj wrote: > > This is breaking llvm/libcxx > > https://errors.yoctoproject.org/Errors/Details/617887/ > I have made a workaround for meta-clang here [1] which gets me through but it's perhaps worth noting for rootcausing with upstream cmake. [1]

[OE-core] [PATCH] python: update jsonpointer to 2.2

2021-11-25 Thread Bruce Ashfield
From: Bruce Ashfield The import from meta-python was slightly out of date, and the 2.1 version was grabbed. We bump the oe-core version to 2.2 to match the latest meta-oe version. Signed-off-by: Bruce Ashfield --- Richard, This goes onto the queue I sent for dt-validation. While I was

Re: [OE-core] [PATCH] make-mod-scripts: pass CROSS_COMPILE to configure and build

2021-11-25 Thread Steve Sakoman
On Thu, Nov 25, 2021 at 5:42 AM Bruce Ashfield wrote: > > On Thu, Nov 25, 2021 at 10:22 AM Nicolas Dechesne > wrote: > > > > Bruce, Steve, > > > > The backport is also fine with me! OK, will do! Steve > > Bruce > > > > > On Thu, Apr 1, 2021 at 2:00 AM Denys Dmytriyenko wrote: > >> > >>

Re: [OE-core] [PATCH] make-mod-scripts: pass CROSS_COMPILE to configure and build

2021-11-25 Thread Bruce Ashfield
On Thu, Nov 25, 2021 at 10:22 AM Nicolas Dechesne wrote: > > Bruce, Steve, > The backport is also fine with me! Bruce > > On Thu, Apr 1, 2021 at 2:00 AM Denys Dmytriyenko wrote: >> >> Fixes: >> | CALL >>

[OE-core] [PATCH] python3: Add missing HOMEPAGE entries

2021-11-25 Thread Richard Purdie
Add missing HOMEPAGE entries to new python recipes from meta-python. Signed-off-by: Richard Purdie --- meta/recipes-devtools/python/python3-rfc3987_1.3.8.bb | 1 + meta/recipes-devtools/python/python3-ruamel-yaml_0.17.16.bb | 1 + meta/recipes-devtools/python/python3-strict-rfc3339_0.7.bb

[OE-core] [PATCH 3/3] gcc: Drop mips default ABI patch

2021-11-25 Thread Richard Purdie
gcc-configure-common.inc already sets --with-abi=64 for our mips64 targets so this patch is no longer needed. [YOCTO #14639] Signed-off-by: Richard Purdie --- meta/recipes-devtools/gcc/gcc-11.2.inc| 1 - .../gcc/0010-MIPS64-Default-to-N64-ABI.patch | 54 --- 2 files

[OE-core] [PATCH 1/3] nativesdk: Handle chown/chgrp calls in nativesdk do_install tasks

2021-11-25 Thread Richard Purdie
We disable the useradd code for nativesdk targets since we don't support postinstalls or multiple users in those cases. This means any usage of chown/chgrp inside do_install tasks won't work and would have to be conditional. Rather than require all recipes to do that, add intercepts of the calls

[OE-core] [PATCH 2/3] gcc: Drop no longer needed patch

2021-11-25 Thread Richard Purdie
This patch was mentioned upstream a long time ago: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47256 Changes from gcc 10 onward mean it is no longer needed as mentioned in the above bug report. Drop the patch. Signed-off-by: Richard Purdie --- meta/recipes-devtools/gcc/gcc-11.2.inc|

Re: [OE-core] [PATCH] make-mod-scripts: pass CROSS_COMPILE to configure and build

2021-11-25 Thread Nicolas Dechesne
Bruce, Steve, On Thu, Apr 1, 2021 at 2:00 AM Denys Dmytriyenko wrote: > Fixes: > | CALL > /OE/poky-master/build/tmp/work-shared/qemuarm64/kernel-source/scripts/checksyscalls.sh > | CALL > /OE/poky-master/build/tmp/work-shared/qemuarm64/kernel-source/scripts/atomic/check-atomics.sh > |

Re: [OE-core] [PATCHv3] waffle: add explicit dependency to cmake-native

2021-11-25 Thread Anibal Limon
On Tue, 23 Nov 2021 at 16:40, Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > On Tue, 2021-11-23 at 12:00 -0600, Anibal Limon wrote: > > Hi, > > > > Is this patch good enough? or need another change. > > There was feedback about the commit message needing work. Someone else > also

[OE-core] [PATCH] openssl: fix EVP_PKEY_CTX_get_rsa_pss_saltlen() not returning a value

2021-11-25 Thread Ross Burton
Backport a patch submitted upstream. Specifically, this fixes signature validation in trusted-firmware-a with OpenSSL 3. Signed-off-by: Ross Burton --- ...-EVP_PKEY_CTX_get_rsa_pss_saltlen-no.patch | 89 +++ .../openssl/openssl_3.0.0.bb | 1 + 2 files changed,

[OE-core] [dunfell][PATCH v2] git: fix CVE-2021-40330

2021-11-25 Thread Minjae Kim
git_connect_git in connect.c in Git before 2.30.1 allows a repository path to contain a newline character, which may result in unexpected cross-protocol requests, as demonstrated by the git://localhost:1234/%0d%0a%0d%0aGET%20/%20HTTP/1.1 substring. Upstream-Status: Backport

[OE-core] [dunfell][PATCH] git: fix CVE-2021-40330

2021-11-25 Thread Minjae Kim
git_connect_git in connect.c in Git before 2.30.1 allows a repository path to contain a newline character, which may result in unexpected cross-protocol requests, as demonstrated by the git://localhost:1234/%0d%0a%0d%0aGET%20/%20HTTP/1.1 substring. Upstream-Status: Backporting

Re: [OE-core] [RFC PATCH 05/15] bitbake: fetch2: Support archives with missing search directory mode

2021-11-25 Thread Stefan Herbrechtsmeier
Am 24.11.2021 um 18:54 schrieb Richard Purdie: On Wed, 2021-11-24 at 18:11 +0100, Stefan Herbrechtsmeier wrote: Am 24.11.2021 um 16:17 schrieb Alexander Kanavin: [snip] Is such an influencing change acceptable or should I move the change to the npm class? We don't want to support that in

Re: [OE-core] [RFC][PATCH 1/2] distutils3-legacy: fallback for missing setup.py

2021-11-25 Thread Konrad Weihmann
On 24.11.21 22:02, Tim Orling wrote: On Wed, Nov 24, 2021 at 12:15 PM Konrad Weihmann > wrote: add a bbclass to disutils3 that generates a fallback setup.py in case there is no setup.py available in the source dir, but a setup.cfg. I’ll check this