[OE-core] [PATCH] libpam: use /run instead of /var/run in systemd tmpfiles

2022-03-16 Thread Ricardo Salveti
/var/run in deprecated by systemd, use /run instead, as suggested by systemd.

Signed-off-by: Ricardo Salveti 
---
 meta/recipes-extended/pam/libpam/pam-volatiles.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/pam/libpam/pam-volatiles.conf 
b/meta/recipes-extended/pam/libpam/pam-volatiles.conf
index d8b8259a93..1263feb03d 100644
--- a/meta/recipes-extended/pam/libpam/pam-volatiles.conf
+++ b/meta/recipes-extended/pam/libpam/pam-volatiles.conf
@@ -1 +1 @@
-d /var/run/sepermit 0755 root root - -
+d /run/sepermit 0755 root root - -
-- 
2.35.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163371): 
https://lists.openembedded.org/g/openembedded-core/message/163371
Mute This Topic: https://lists.openembedded.org/mt/89838112/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] python3-snowballstemmer: upgrade to 2.2.0

2022-03-16 Thread Tim Orling
License is BSD-1-Clause, update LIC_FILES_CHKSUM

Signed-off-by: Tim Orling 
---
 ...allstemmer_2.0.0.bb => python3-snowballstemmer_2.2.0.bb} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta/recipes-devtools/python/{python3-snowballstemmer_2.0.0.bb => 
python3-snowballstemmer_2.2.0.bb} (51%)

diff --git a/meta/recipes-devtools/python/python3-snowballstemmer_2.0.0.bb 
b/meta/recipes-devtools/python/python3-snowballstemmer_2.2.0.bb
similarity index 51%
rename from meta/recipes-devtools/python/python3-snowballstemmer_2.0.0.bb
rename to meta/recipes-devtools/python/python3-snowballstemmer_2.2.0.bb
index 7db58928619..bbf844868fc 100644
--- a/meta/recipes-devtools/python/python3-snowballstemmer_2.0.0.bb
+++ b/meta/recipes-devtools/python/python3-snowballstemmer_2.2.0.bb
@@ -1,10 +1,10 @@
 SUMMARY = "Snowball compiler and stemming algorithms"
 HOMEPAGE = "https://github.com/snowballstem/snowball;
 
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://../git/COPYING;md5=2750797da77c1d784e7626b3f7d7ff3e"
+LICENSE = "BSD-1-Clause"
+LIC_FILES_CHKSUM = "file://COPYING;md5=19139aaf3c8c8fa1ca6edd59c072fb9f"
 
-SRC_URI[sha256sum] = 
"df3bac3df4c2c01363f3dd2cfa78cce2840a79b9f1c2d2de9ce8d31683992f52"
+SRC_URI[sha256sum] = 
"09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1"
 
 PYPI_PACKAGE = "snowballstemmer"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163370): 
https://lists.openembedded.org/g/openembedded-core/message/163370
Mute This Topic: https://lists.openembedded.org/mt/89837354/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] python3-cryptography: Fix ptest result handling

2022-03-16 Thread Tim Orling
On Wed, Mar 16, 2022 at 5:34 PM Richard Purdie <
richard.pur...@linuxfoundation.org> wrote:

> We run the tests correctly, we just don't get individual test result
> reporting. Borrow the code from python3-bcrypt to handle this correctly
> and ensure the test pass/fail scores and individual test results are
> reported in a format we can read.


One day we will have a nice pytest bbclass that makes this easy.

>
>
> Signed-off-by: Richard Purdie 
> ---
>  meta/recipes-devtools/python/python3-cryptography/run-ptest | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/python/python3-cryptography/run-ptest
> b/meta/recipes-devtools/python/python3-cryptography/run-ptest
> index 1e97dda63e7..3089df87819 100644
> --- a/meta/recipes-devtools/python/python3-cryptography/run-ptest
> +++ b/meta/recipes-devtools/python/python3-cryptography/run-ptest
> @@ -1,4 +1,4 @@
>  #!/bin/sh
>  if ./check-memfree.py; then
> -pytest - tests/
> +pytest - tests/ -o log_cli=true -o log_cli_level=INFO | sed -e
> 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e
> 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" ||
> $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk
> '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" ||
> $NF=="XPASS") {$NF="";print $0}else{print}}'
>  fi
> --
> 2.32.0
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163369): 
https://lists.openembedded.org/g/openembedded-core/message/163369
Mute This Topic: https://lists.openembedded.org/mt/89835935/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] python3-sphinxcontrib-devhelp: LIC_FILES_CHKSUM

2022-03-16 Thread Tim Orling
Fix LIC_FILES_CHKSUM

Signed-off-by: Tim Orling 
---
 .../python/python3-sphinxcontrib-devhelp_1.0.2.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/meta/recipes-devtools/python/python3-sphinxcontrib-devhelp_1.0.2.bb 
b/meta/recipes-devtools/python/python3-sphinxcontrib-devhelp_1.0.2.bb
index 92ebdcacb73..0909566e9ae 100644
--- a/meta/recipes-devtools/python/python3-sphinxcontrib-devhelp_1.0.2.bb
+++ b/meta/recipes-devtools/python/python3-sphinxcontrib-devhelp_1.0.2.bb
@@ -1,7 +1,7 @@
 DESCRIPTION = "sphinxcontrib-devhelp is a sphinx extension which outputs 
Devhelp document."
 HOMEPAGE = "https://www.sphinx-doc.org;
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=942469df9305abb1c59e95f778310384"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=fd30d9972a142c857a80c9f312e92b93"
 
 SRC_URI[sha256sum] = 
"ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163368): 
https://lists.openembedded.org/g/openembedded-core/message/163368
Mute This Topic: https://lists.openembedded.org/mt/89836712/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] python3-sphinxcontrib-jsmath: LIC_FILES_CHKSUM

2022-03-16 Thread Tim Orling
Fix the LIC_FILES_CHKSUM

Signed-off-by: Tim Orling 
---
 .../python/python3-sphinxcontrib-jsmath_1.0.1.bb| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-sphinxcontrib-jsmath_1.0.1.bb 
b/meta/recipes-devtools/python/python3-sphinxcontrib-jsmath_1.0.1.bb
index f1653399a4a..0dbe5a9db9d 100644
--- a/meta/recipes-devtools/python/python3-sphinxcontrib-jsmath_1.0.1.bb
+++ b/meta/recipes-devtools/python/python3-sphinxcontrib-jsmath_1.0.1.bb
@@ -1,7 +1,7 @@
 DESCRIPTION = "A sphinx extension which renders display math in HTML via 
JavaScript"
 HOMEPAGE = "https://www.sphinx-doc.org;
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=942469df9305abb1c59e95f778310384"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f0064c10bd544bcffccbc67a41c108d3"
 
 SRC_URI[sha256sum] = 
"a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163367): 
https://lists.openembedded.org/g/openembedded-core/message/163367
Mute This Topic: https://lists.openembedded.org/mt/89836274/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] mesa: Allow building Mesa's OpenCL through PACKAGECONFIG

2022-03-16 Thread Otavio Salvador
Awesome!

Acked-by: Otavio Salvador 

Em qua., 16 de mar. de 2022 às 10:47, Zoltan Boszormenyi via
lists.openembedded.org  escreveu:

> From: Zoltán Böszörményi 
>
> Signed-off-by: Zoltán Böszörményi 
> ---
>  meta/recipes-graphics/mesa/mesa.inc | 11 +--
>  1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-graphics/mesa/mesa.inc
> b/meta/recipes-graphics/mesa/mesa.inc
> index 2a89b8e8f0..4ce69a78f8 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -74,7 +74,6 @@ MESON_BUILDTYPE = "${@check_buildtype(d)}"
>
>  EXTRA_OEMESON = " \
>  -Dshared-glapi=enabled \
> --Dgallium-opencl=disabled \
>  -Dglx-read-only-text=true \
>  -Dplatforms='${@",".join("${PLATFORMS}".split())}' \
>  "
> @@ -122,6 +121,9 @@ PACKAGECONFIG[gles] = "-Dgles1=enabled
> -Dgles2=enabled, -Dgles1=disabled -Dgles2
>  # "egl" requires "opengl"
>  PACKAGECONFIG[egl] = "-Degl=enabled, -Degl=disabled"
>
> +# "opencl" requires libclc from meta-clang and spirv-tools from OE-Core
> +PACKAGECONFIG[opencl] = "-Dgallium-opencl=icd
> -Dopencl-spirv=true,-Dgallium-opencl=disabled -Dopencl-spirv=false,libclc
> spirv-tools"
> +
>  PACKAGECONFIG[broadcom] = ""
>  PACKAGECONFIG[etnaviv] = ""
>  PACKAGECONFIG[freedreno] = ""
> @@ -190,6 +192,8 @@ RDEPENDS:${PN}-dev = ""
>  # development package of libgles3.
>  RDEPENDS:libgles3-mesa-dev += "libgles2-mesa-dev"
>
> +RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG',
> 'opencl', 'libclc spirv-tools', '', d)}"
> +
>  PACKAGES =+ "libegl-mesa libegl-mesa-dev \
>   libosmesa libosmesa-dev \
>   libgl-mesa libgl-mesa-dev \
> @@ -198,6 +202,7 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \
>   libgles1-mesa libgles1-mesa-dev \
>   libgles2-mesa libgles2-mesa-dev \
>   libgles3-mesa libgles3-mesa-dev \
> + libopencl-mesa libopencl-mesa-dev \
>   libxatracker libxatracker-dev \
>   mesa-megadriver mesa-vulkan-drivers \
>   mesa-vdpau-drivers \
> @@ -230,7 +235,8 @@ python __anonymous() {
>("opengl", "libgl", "libgl1"),
>("gles", "libgles1", "libglesv1-cm1"),
>("gles", "libgles2", "libglesv2-2"),
> -  ("gles", "libgles3",)):
> +  ("gles", "libgles3",),
> +  ("opencl", "libopencl",)):
>  if not p[0] in pkgconfig:
>  continue
>  mlprefix = d.getVar("MLPREFIX")
> @@ -290,6 +296,7 @@ FILES:libgbm = "${libdir}/libgbm.so.*"
>  FILES:libgles1-mesa = "${libdir}/libGLESv1*.so.*"
>  FILES:libgles2-mesa = "${libdir}/libGLESv2.so.*"
>  FILES:libgl-mesa = "${libdir}/libGL.so.*"
> +FILES:libopencl-mesa = "${libdir}/libMesaOpenCL.so.*
> ${sysconfdir}/OpenCL/vendors/mesa.icd"
>  FILES:libglapi = "${libdir}/libglapi.so.*"
>  FILES:libosmesa = "${libdir}/libOSMesa.so.*"
>  FILES:libxatracker = "${libdir}/libxatracker.so.*"
> --
> 2.35.1
>
>
> 
>
>

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163366): 
https://lists.openembedded.org/g/openembedded-core/message/163366
Mute This Topic: https://lists.openembedded.org/mt/89821896/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] python3-cryptography: Fix ptest result handling

2022-03-16 Thread Richard Purdie
We run the tests correctly, we just don't get individual test result
reporting. Borrow the code from python3-bcrypt to handle this correctly
and ensure the test pass/fail scores and individual test results are
reported in a format we can read.

Signed-off-by: Richard Purdie 
---
 meta/recipes-devtools/python/python3-cryptography/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-cryptography/run-ptest 
b/meta/recipes-devtools/python/python3-cryptography/run-ptest
index 1e97dda63e7..3089df87819 100644
--- a/meta/recipes-devtools/python/python3-cryptography/run-ptest
+++ b/meta/recipes-devtools/python/python3-cryptography/run-ptest
@@ -1,4 +1,4 @@
 #!/bin/sh
 if ./check-memfree.py; then
-pytest - tests/
+pytest - tests/ -o log_cli=true -o log_cli_level=INFO | sed -e 
's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 
's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || 
$NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk 
'{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || 
$NF=="XPASS") {$NF="";print $0}else{print}}'
 fi
-- 
2.32.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163365): 
https://lists.openembedded.org/g/openembedded-core/message/163365
Mute This Topic: https://lists.openembedded.org/mt/89835935/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] python3-sphinxcontrib-applehelp: LIC_FILES_CHKSUM

2022-03-16 Thread Tim Orling
Fix the LIC_FILES_CHKSUM

Signed-off-by: Tim Orling 
---
 .../python/python3-sphinxcontrib-applehelp_1.0.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/meta/recipes-devtools/python/python3-sphinxcontrib-applehelp_1.0.2.bb 
b/meta/recipes-devtools/python/python3-sphinxcontrib-applehelp_1.0.2.bb
index c63d093a9f5..04b2ca97e5c 100644
--- a/meta/recipes-devtools/python/python3-sphinxcontrib-applehelp_1.0.2.bb
+++ b/meta/recipes-devtools/python/python3-sphinxcontrib-applehelp_1.0.2.bb
@@ -1,7 +1,7 @@
 DESCRIPTION = "sphinxcontrib-applehelp is a sphinx extension which outputs 
Apple help books"
 HOMEPAGE = "https://www.sphinx-doc.org;
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=942469df9305abb1c59e95f778310384"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c7715857042d4c8c0105999ca0c072c5"
 
 SRC_URI[sha256sum] = 
"a072735ec80e7675e3f432fcae8610ecf509c5f1869d17e2eecff44389cdbc58"
 
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163364): 
https://lists.openembedded.org/g/openembedded-core/message/163364
Mute This Topic: https://lists.openembedded.org/mt/89835809/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] scripts/patchreview: handle Inactive-Upstream status

2022-03-16 Thread Alexandre Belloni via lists.openembedded.org
Signed-off-by: Alexandre Belloni 
---
 scripts/contrib/patchreview.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/contrib/patchreview.py b/scripts/contrib/patchreview.py
index 62c509f51c89..dc417b4c55b4 100755
--- a/scripts/contrib/patchreview.py
+++ b/scripts/contrib/patchreview.py
@@ -8,7 +8,7 @@
 # - test suite
 # - validate signed-off-by
 
-status_values = ("accepted", "pending", "inappropriate", "backport", 
"submitted", "denied")
+status_values = ("accepted", "pending", "inappropriate", "backport", 
"submitted", "denied", "inactive-upstream")
 
 class Result:
 # Whether the patch has an Upstream-Status or not
@@ -46,7 +46,7 @@ def patchreview(path, patches):
 # hyphen or spaces, maybe a colon, some whitespace, then the value, all 
case
 # insensitive.
 sob_re = re.compile(r"^[\t ]*(Signed[-_ ]off[-_ ]by:?)[\t ]*(.+)", 
re.IGNORECASE | re.MULTILINE)
-status_re = re.compile(r"^[\t ]*(Upstream[-_ ]Status:?)[\t ]*(\w*)", 
re.IGNORECASE | re.MULTILINE)
+status_re = re.compile(r"^[\t ]*(Upstream[-_ ]Status:?)[\t ]*([\w-]*)", 
re.IGNORECASE | re.MULTILINE)
 cve_tag_re = re.compile(r"^[\t ]*(CVE:)[\t ]*(.*)", re.IGNORECASE | 
re.MULTILINE)
 cve_re = re.compile(r"cve-[0-9]{4}-[0-9]{4,6}", re.IGNORECASE)
 
-- 
2.35.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163363): 
https://lists.openembedded.org/g/openembedded-core/message/163363
Mute This Topic: https://lists.openembedded.org/mt/89833961/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] python3-cryptography: Upgrade to 36.0.2

2022-03-16 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 ...-cryptography_36.0.1.bb => python3-cryptography_36.0.2.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-cryptography_36.0.1.bb => 
python3-cryptography_36.0.2.bb} (96%)

diff --git a/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb 
b/meta/recipes-devtools/python/python3-cryptography_36.0.2.bb
similarity index 96%
rename from meta/recipes-devtools/python/python3-cryptography_36.0.1.bb
rename to meta/recipes-devtools/python/python3-cryptography_36.0.2.bb
index e33eaa50834..940df60d441 100644
--- a/meta/recipes-devtools/python/python3-cryptography_36.0.1.bb
+++ b/meta/recipes-devtools/python/python3-cryptography_36.0.2.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=bf405a8056a6647e7d077b0e7bc36aba \
"
 LDSHARED += "-pthread"
 
-SRC_URI[sha256sum] = 
"53e5c1dc3d7a953de055d77bef2ff607ceef7a2aac0353b5d630ab67f7423638"
+SRC_URI[sha256sum] = 
"70f8f4f7bb2ac9f340655cbac89d68c527af5bb4387522a8413e841e3e6628c9"
 
 SRC_URI += " \
 file://run-ptest \
@@ -42,7 +42,7 @@ SRC_URI += " \
 crate://crates.io/indoc/0.3.6 \
 crate://crates.io/instant/0.1.12 \
 crate://crates.io/lazy_static/1.4.0 \
-crate://crates.io/libc/0.2.112 \
+crate://crates.io/libc/0.2.120 \
 crate://crates.io/lock_api/0.4.5 \
 crate://crates.io/num-integer/0.1.44 \
 crate://crates.io/num-traits/0.2.14 \
-- 
2.35.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163362): 
https://lists.openembedded.org/g/openembedded-core/message/163362
Mute This Topic: https://lists.openembedded.org/mt/89833574/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [dunfell][PATCH] openssl: update from 1.1.1l to 1.1.1n

2022-03-16 Thread Steve Sakoman
On Wed, Mar 16, 2022 at 12:10 PM Randy MacLeod
 wrote:
>
> On 2022-03-16 17:50, Steve Sakoman wrote:
> > Sigh, now I remember why we did the CVE only patch - this version
> > update introduces a ptest regression. It's sad I can't remember things
> > from just a month ago!
> >
> > See discussion here:
> >
> > https://lists.openembedded.org/g/openembedded-core/topic/89179173#162027
> >
> > If you can find a way to deal with the regression I'd be happy to take
> > the upgrade!
>
> Steve mentioned this GH issue on IRC:
>https://github.com/openssl/openssl/issues/17537
> it's a long thread and I honestly haven't confirmed that it's the same
> problem as our regression tests but it likely is.

This thread mentions versions prior to 3.0.1 aren't impacted, but
perhaps the 1.1.1n update backported the issue.  Suspicious that the
same test is failing in any event.

Steve

>
> Yi Zhao was looking at this update for hardknott but it's likely
> also relevant for dunfell so I'm CCing him here.
>
> Yi,
>
> Do you have more to add to the discussion?
> Where are you with debugging the ptest regressions?
>
> Ralph,
> Yi is in Beijing so maybe the two of you can do an email/poky-contrib
> ping pong
> on the problem and get to a solution sooner.
>
> ../Randy
>
> >
> > On Wed, Mar 16, 2022 at 6:15 AM Ralph Siemsen  
> > wrote:
> >>
> >> This includes a fix for CVE-2022-0778. There are quite a lot of changes
> >> but they seem to mostly be fixes or cves, see the CHANGES file[1].
> >>
> >> Drop previous fix for CVE-2021-4160 since it is now upstream [2]
> >> and include since release 1.1.1m.
> >>
> >> [1] 
> >> https://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=CHANGES;hb=refs/heads/OpenSSL_1_1_1-stable
> >> [2] 
> >> https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb
> >>
> >> Signed-off-by: Ralph Siemsen 
> >> ---
> >>   .../openssl/openssl/CVE-2021-4160.patch   | 145 --
> >>   .../{openssl_1.1.1l.bb => openssl_1.1.1n.bb}  |   3 +-
> >>   2 files changed, 1 insertion(+), 147 deletions(-)
> >>   delete mode 100644 
> >> meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
> >>   rename meta/recipes-connectivity/openssl/{openssl_1.1.1l.bb => 
> >> openssl_1.1.1n.bb} (98%)
> >>
> >> diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch 
> >> b/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
> >> deleted file mode 100644
> >> index ff1e807157..00
> >> --- a/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
> >> +++ /dev/null
> >> @@ -1,145 +0,0 @@
> >> -From e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb Mon Sep 17 00:00:00 2001
> >> -From: Bernd Edlinger 
> >> -Date: Sat, 11 Dec 2021 20:28:11 +0100
> >> -Subject: [PATCH] Fix a carry overflow bug in bn_sqr_comba4/8 for mips 
> >> 32-bit
> >> - targets
> >> -
> >> -bn_sqr_comba8 does for instance compute a wrong result for the value:
> >> -a=0x4aaac919 62056c84 fba7334e 1a6be678 022181ba fd3aa878 899b2346 
> >> ee210f45
> >> -
> >> -The correct result is:
> >> -r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 
> >> 4724a82f
> >> -912c5e61 6a187efe 8f7c47fc f6945fe5 75be8e3d 97ed17d4 7950b465 
> >> 3cb32899
> >> -
> >> -but the actual result was:
> >> -r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 
> >> 4724a82f
> >> -912c5e61 6a187efe 8f7c47fc f6945fe5 75be8e3c 97ed17d4 7950b465 
> >> 3cb32899
> >> -
> >> -so the forth word of the result was 0x75be8e3c but should have been
> >> -0x75be8e3d instead.
> >> -
> >> -Likewise bn_sqr_comba4 has an identical bug for the same value as well:
> >> -a=0x022181ba fd3aa878 899b2346 ee210f45
> >> -
> >> -correct result:
> >> -r=0x00048a69 9fe82f8b 62bd2ed1 88781335 75be8e3d 97ed17d4 7950b465 
> >> 3cb32899
> >> -
> >> -wrong result:
> >> -r=0x00048a69 9fe82f8b 62bd2ed1 88781335 75be8e3c 97ed17d4 7950b465 
> >> 3cb32899
> >> -
> >> -Fortunately the bn_mul_comba4/8 code paths are not affected.
> >> -
> >> -Also the mips64 target does in fact not handle the carry propagation
> >> -correctly.
> >> -
> >> -Example:
> >> -a=0x4aaac919 62056c84 fba7334e 1a6be678
> >> -022181ba fd3aa878 899b234635dad283 ee210f450001
> >> -
> >> -correct result:
> >> -r=0x15c72e32272c4471 392debf018c679c8 b85496496bf8254c d0204f36611e2be1
> >> -0cdb3db8f3c081d8 c94ba0e1bacc5061 191b83d47ff929f6 5be0aebfc13ae68d
> >> -3eea7a7fdf2f5758 42f7ec656cab3cb5 6a28095be34756f2 64f24687bf37de06
> >> -2822309cd1d292f9 6fa698c972372f09 771e97d3a868cda0 dc421e8a0001
> >> -
> >> -wrong result:
> >> -r=0x15c72e32272c4471 392debf018c679c8 b85496496bf8254c d0204f36611e2be1
> >> -0cdb3db8f3c081d8 c94ba0e1bacc5061 191b83d47ff929f6 5be0aebfc13ae68d
> >> -3eea7a7fdf2f5758 42f7ec656cab3cb5 6a28095be34756f2 64f24687bf37de06
> >> -2822309cd1d292f8 6fa698c972372f09 771e97d3a868cda0 dc421e8a0001
> >> -
> >> -Reviewed-by: Paul Dale 
> 

Re: [OE-core] [dunfell][PATCH] openssl: update from 1.1.1l to 1.1.1n

2022-03-16 Thread Randy MacLeod

On 2022-03-16 17:50, Steve Sakoman wrote:

Sigh, now I remember why we did the CVE only patch - this version
update introduces a ptest regression. It's sad I can't remember things
from just a month ago!

See discussion here:

https://lists.openembedded.org/g/openembedded-core/topic/89179173#162027

If you can find a way to deal with the regression I'd be happy to take
the upgrade!


Steve mentioned this GH issue on IRC:
  https://github.com/openssl/openssl/issues/17537
it's a long thread and I honestly haven't confirmed that it's the same
problem as our regression tests but it likely is.

Yi Zhao was looking at this update for hardknott but it's likely
also relevant for dunfell so I'm CCing him here.

Yi,

Do you have more to add to the discussion?
Where are you with debugging the ptest regressions?

Ralph,
Yi is in Beijing so maybe the two of you can do an email/poky-contrib 
ping pong

on the problem and get to a solution sooner.

../Randy



On Wed, Mar 16, 2022 at 6:15 AM Ralph Siemsen  wrote:


This includes a fix for CVE-2022-0778. There are quite a lot of changes
but they seem to mostly be fixes or cves, see the CHANGES file[1].

Drop previous fix for CVE-2021-4160 since it is now upstream [2]
and include since release 1.1.1m.

[1] 
https://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=CHANGES;hb=refs/heads/OpenSSL_1_1_1-stable
[2] 
https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb

Signed-off-by: Ralph Siemsen 
---
  .../openssl/openssl/CVE-2021-4160.patch   | 145 --
  .../{openssl_1.1.1l.bb => openssl_1.1.1n.bb}  |   3 +-
  2 files changed, 1 insertion(+), 147 deletions(-)
  delete mode 100644 
meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
  rename meta/recipes-connectivity/openssl/{openssl_1.1.1l.bb => 
openssl_1.1.1n.bb} (98%)

diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch 
b/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
deleted file mode 100644
index ff1e807157..00
--- a/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
+++ /dev/null
@@ -1,145 +0,0 @@
-From e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb Mon Sep 17 00:00:00 2001
-From: Bernd Edlinger 
-Date: Sat, 11 Dec 2021 20:28:11 +0100
-Subject: [PATCH] Fix a carry overflow bug in bn_sqr_comba4/8 for mips 32-bit
- targets
-
-bn_sqr_comba8 does for instance compute a wrong result for the value:
-a=0x4aaac919 62056c84 fba7334e 1a6be678 022181ba fd3aa878 899b2346 ee210f45
-
-The correct result is:
-r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 4724a82f
-912c5e61 6a187efe 8f7c47fc f6945fe5 75be8e3d 97ed17d4 7950b465 3cb32899
-
-but the actual result was:
-r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 4724a82f
-912c5e61 6a187efe 8f7c47fc f6945fe5 75be8e3c 97ed17d4 7950b465 3cb32899
-
-so the forth word of the result was 0x75be8e3c but should have been
-0x75be8e3d instead.
-
-Likewise bn_sqr_comba4 has an identical bug for the same value as well:
-a=0x022181ba fd3aa878 899b2346 ee210f45
-
-correct result:
-r=0x00048a69 9fe82f8b 62bd2ed1 88781335 75be8e3d 97ed17d4 7950b465 3cb32899
-
-wrong result:
-r=0x00048a69 9fe82f8b 62bd2ed1 88781335 75be8e3c 97ed17d4 7950b465 3cb32899
-
-Fortunately the bn_mul_comba4/8 code paths are not affected.
-
-Also the mips64 target does in fact not handle the carry propagation
-correctly.
-
-Example:
-a=0x4aaac919 62056c84 fba7334e 1a6be678
-022181ba fd3aa878 899b234635dad283 ee210f450001
-
-correct result:
-r=0x15c72e32272c4471 392debf018c679c8 b85496496bf8254c d0204f36611e2be1
-0cdb3db8f3c081d8 c94ba0e1bacc5061 191b83d47ff929f6 5be0aebfc13ae68d
-3eea7a7fdf2f5758 42f7ec656cab3cb5 6a28095be34756f2 64f24687bf37de06
-2822309cd1d292f9 6fa698c972372f09 771e97d3a868cda0 dc421e8a0001
-
-wrong result:
-r=0x15c72e32272c4471 392debf018c679c8 b85496496bf8254c d0204f36611e2be1
-0cdb3db8f3c081d8 c94ba0e1bacc5061 191b83d47ff929f6 5be0aebfc13ae68d
-3eea7a7fdf2f5758 42f7ec656cab3cb5 6a28095be34756f2 64f24687bf37de06
-2822309cd1d292f8 6fa698c972372f09 771e97d3a868cda0 dc421e8a0001
-
-Reviewed-by: Paul Dale 
-(Merged from https://github.com/openssl/openssl/pull/17258)
-
-(cherry picked from commit 336923c0c8d705cb8af5216b29a205662db0d590)
-
-Upstream-Status: Backport 
[https://git.openssl.org/gitweb/?p=openssl.git;a=patch;h=e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb]
-CVE: CVE-2021-4160
-Signed-off-by: Ranjitsinh Rathod 
-

- crypto/bn/asm/mips.pl |  4 
- test/bntest.c | 45 +++
- 2 files changed, 49 insertions(+)
-
-diff --git a/crypto/bn/asm/mips.pl b/crypto/bn/asm/mips.pl
-index 8ad715bda4..74101030f2 100644
 a/crypto/bn/asm/mips.pl
-+++ b/crypto/bn/asm/mips.pl
-@@ -1984,6 +1984,8 @@ $code.=<<___;
-   sltu$at,$c_2,$t_1
-   $ADDU   $c_3,$t_2,$at
-   $ST $c_2,$BNSZ($a0)
-+  

Re: [OE-core] [dunfell][PATCH] openssl: update from 1.1.1l to 1.1.1n

2022-03-16 Thread Steve Sakoman
Sigh, now I remember why we did the CVE only patch - this version
update introduces a ptest regression. It's sad I can't remember things
from just a month ago!

See discussion here:

https://lists.openembedded.org/g/openembedded-core/topic/89179173#162027

If you can find a way to deal with the regression I'd be happy to take
the upgrade!

On Wed, Mar 16, 2022 at 6:15 AM Ralph Siemsen  wrote:
>
> This includes a fix for CVE-2022-0778. There are quite a lot of changes
> but they seem to mostly be fixes or cves, see the CHANGES file[1].
>
> Drop previous fix for CVE-2021-4160 since it is now upstream [2]
> and include since release 1.1.1m.
>
> [1] 
> https://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=CHANGES;hb=refs/heads/OpenSSL_1_1_1-stable
> [2] 
> https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb
>
> Signed-off-by: Ralph Siemsen 
> ---
>  .../openssl/openssl/CVE-2021-4160.patch   | 145 --
>  .../{openssl_1.1.1l.bb => openssl_1.1.1n.bb}  |   3 +-
>  2 files changed, 1 insertion(+), 147 deletions(-)
>  delete mode 100644 
> meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
>  rename meta/recipes-connectivity/openssl/{openssl_1.1.1l.bb => 
> openssl_1.1.1n.bb} (98%)
>
> diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch 
> b/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
> deleted file mode 100644
> index ff1e807157..00
> --- a/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
> +++ /dev/null
> @@ -1,145 +0,0 @@
> -From e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb Mon Sep 17 00:00:00 2001
> -From: Bernd Edlinger 
> -Date: Sat, 11 Dec 2021 20:28:11 +0100
> -Subject: [PATCH] Fix a carry overflow bug in bn_sqr_comba4/8 for mips 32-bit
> - targets
> -
> -bn_sqr_comba8 does for instance compute a wrong result for the value:
> -a=0x4aaac919 62056c84 fba7334e 1a6be678 022181ba fd3aa878 899b2346 ee210f45
> -
> -The correct result is:
> -r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 4724a82f
> -912c5e61 6a187efe 8f7c47fc f6945fe5 75be8e3d 97ed17d4 7950b465 3cb32899
> -
> -but the actual result was:
> -r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 4724a82f
> -912c5e61 6a187efe 8f7c47fc f6945fe5 75be8e3c 97ed17d4 7950b465 3cb32899
> -
> -so the forth word of the result was 0x75be8e3c but should have been
> -0x75be8e3d instead.
> -
> -Likewise bn_sqr_comba4 has an identical bug for the same value as well:
> -a=0x022181ba fd3aa878 899b2346 ee210f45
> -
> -correct result:
> -r=0x00048a69 9fe82f8b 62bd2ed1 88781335 75be8e3d 97ed17d4 7950b465 3cb32899
> -
> -wrong result:
> -r=0x00048a69 9fe82f8b 62bd2ed1 88781335 75be8e3c 97ed17d4 7950b465 3cb32899
> -
> -Fortunately the bn_mul_comba4/8 code paths are not affected.
> -
> -Also the mips64 target does in fact not handle the carry propagation
> -correctly.
> -
> -Example:
> -a=0x4aaac919 62056c84 fba7334e 1a6be678
> -022181ba fd3aa878 899b234635dad283 ee210f450001
> -
> -correct result:
> -r=0x15c72e32272c4471 392debf018c679c8 b85496496bf8254c d0204f36611e2be1
> -0cdb3db8f3c081d8 c94ba0e1bacc5061 191b83d47ff929f6 5be0aebfc13ae68d
> -3eea7a7fdf2f5758 42f7ec656cab3cb5 6a28095be34756f2 64f24687bf37de06
> -2822309cd1d292f9 6fa698c972372f09 771e97d3a868cda0 dc421e8a0001
> -
> -wrong result:
> -r=0x15c72e32272c4471 392debf018c679c8 b85496496bf8254c d0204f36611e2be1
> -0cdb3db8f3c081d8 c94ba0e1bacc5061 191b83d47ff929f6 5be0aebfc13ae68d
> -3eea7a7fdf2f5758 42f7ec656cab3cb5 6a28095be34756f2 64f24687bf37de06
> -2822309cd1d292f8 6fa698c972372f09 771e97d3a868cda0 dc421e8a0001
> -
> -Reviewed-by: Paul Dale 
> -(Merged from https://github.com/openssl/openssl/pull/17258)
> -
> -(cherry picked from commit 336923c0c8d705cb8af5216b29a205662db0d590)
> -
> -Upstream-Status: Backport 
> [https://git.openssl.org/gitweb/?p=openssl.git;a=patch;h=e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb]
> -CVE: CVE-2021-4160
> -Signed-off-by: Ranjitsinh Rathod 
> -
> 
> - crypto/bn/asm/mips.pl |  4 
> - test/bntest.c | 45 +++
> - 2 files changed, 49 insertions(+)
> -
> -diff --git a/crypto/bn/asm/mips.pl b/crypto/bn/asm/mips.pl
> -index 8ad715bda4..74101030f2 100644
>  a/crypto/bn/asm/mips.pl
> -+++ b/crypto/bn/asm/mips.pl
> -@@ -1984,6 +1984,8 @@ $code.=<<___;
> -   sltu$at,$c_2,$t_1
> -   $ADDU   $c_3,$t_2,$at
> -   $ST $c_2,$BNSZ($a0)
> -+  sltu$at,$c_3,$t_2
> -+  $ADDU   $c_1,$at
> -   mflo($t_1,$a_2,$a_0)
> -   mfhi($t_2,$a_2,$a_0)
> - ___
> -@@ -2194,6 +2196,8 @@ $code.=<<___;
> -   sltu$at,$c_2,$t_1
> -   $ADDU   $c_3,$t_2,$at
> -   $ST $c_2,$BNSZ($a0)
> -+  sltu$at,$c_3,$t_2
> -+  $ADDU   $c_1,$at
> -   mflo($t_1,$a_2,$a_0)
> -   mfhi($t_2,$a_2,$a_0)
> - ___
> -diff --git 

[OE-core] [PATCH 1/3] libstd-rs: Extend to nativesdk

2022-03-16 Thread Richard Purdie
This is needed to add the rust standard library to SDKs for use
by SDK tools.

Signed-off-by: Richard Purdie 
---
 meta/recipes-devtools/rust/libstd-rs_1.59.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/rust/libstd-rs_1.59.0.bb 
b/meta/recipes-devtools/rust/libstd-rs_1.59.0.bb
index 7c453a593a5..0ff1fbd6783 100644
--- a/meta/recipes-devtools/rust/libstd-rs_1.59.0.bb
+++ b/meta/recipes-devtools/rust/libstd-rs_1.59.0.bb
@@ -8,3 +8,5 @@ SRC_URI += " \
 "
 # libstd moved from src/libstd to library/std in 1.47+
 S = "${RUSTSRC}/library/std"
+
+BBCLASSEXTEND = "nativesdk"
\ No newline at end of file
-- 
2.32.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163356): 
https://lists.openembedded.org/g/openembedded-core/message/163356
Mute This Topic: https://lists.openembedded.org/mt/89831456/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/3] rust-cross: Add rust-crosssdk variant for nativesdk use

2022-03-16 Thread Richard Purdie
Allow nativesdk recipes to find a correct version of the rust cross
compiler.

Signed-off-by: Richard Purdie 
---
 meta/recipes-devtools/rust/rust-cross.inc  | 7 ---
 meta/recipes-devtools/rust/rust-cross_1.59.0.bb| 6 ++
 meta/recipes-devtools/rust/rust-crosssdk_1.59.0.bb | 8 
 3 files changed, 14 insertions(+), 7 deletions(-)
 create mode 100644 meta/recipes-devtools/rust/rust-crosssdk_1.59.0.bb

diff --git a/meta/recipes-devtools/rust/rust-cross.inc 
b/meta/recipes-devtools/rust/rust-cross.inc
index a77f7d51223..f6babfeedaa 100644
--- a/meta/recipes-devtools/rust/rust-cross.inc
+++ b/meta/recipes-devtools/rust/rust-cross.inc
@@ -1,6 +1,3 @@
-require rust.inc
-inherit cross
-
 python do_rust_gen_targets () {
 wd = d.getVar('WORKDIR') + '/targets/'
 # It is important 'TARGET' is last here so that it overrides our less
@@ -30,12 +27,8 @@ INHIBIT_DEFAULT_RUST_DEPS = "1"
 # so it might make sense to take it's mapping. For now, though, we just mention
 # the bits we need explicitly.
 DEPENDS += "rust-llvm-native"
-DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs 
virtual/libc"
 DEPENDS += "rust-native"
 
-PROVIDES = "virtual/${TARGET_PREFIX}rust"
-PN = "rust-cross-${TUNE_PKGARCH}-${TCLIBC}"
-
 # In the cross compilation case, rustc doesn't seem to get the rpath quite
 # right. It manages to include '../../lib/${TARGET_PREFIX}', but doesn't
 # include the '../../lib' (ie: relative path from cross_bindir to normal
diff --git a/meta/recipes-devtools/rust/rust-cross_1.59.0.bb 
b/meta/recipes-devtools/rust/rust-cross_1.59.0.bb
index 3179d395d25..5358d98da85 100644
--- a/meta/recipes-devtools/rust/rust-cross_1.59.0.bb
+++ b/meta/recipes-devtools/rust/rust-cross_1.59.0.bb
@@ -1,2 +1,8 @@
+require rust.inc
+inherit cross
 require rust-cross.inc
 require rust-source.inc
+
+DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs 
virtual/libc"
+PROVIDES = "virtual/${TARGET_PREFIX}rust"
+PN = "rust-cross-${TUNE_PKGARCH}-${TCLIBC}"
diff --git a/meta/recipes-devtools/rust/rust-crosssdk_1.59.0.bb 
b/meta/recipes-devtools/rust/rust-crosssdk_1.59.0.bb
new file mode 100644
index 000..5929978591f
--- /dev/null
+++ b/meta/recipes-devtools/rust/rust-crosssdk_1.59.0.bb
@@ -0,0 +1,8 @@
+require rust.inc
+inherit crosssdk
+require rust-cross.inc
+require rust-source.inc
+
+DEPENDS += "virtual/${TARGET_PREFIX}gcc-crosssdk 
virtual/nativesdk-${TARGET_PREFIX}compilerlibs virtual/nativesdk-libc"
+PROVIDES = "virtual/nativesdk-${TARGET_PREFIX}rust"
+PN = "rust-crosssdk-${TUNE_PKGARCH}-${TCLIBC}"
-- 
2.32.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163357): 
https://lists.openembedded.org/g/openembedded-core/message/163357
Mute This Topic: https://lists.openembedded.org/mt/89831458/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 3/3] cargo: Add missing nativesdk support

2022-03-16 Thread Richard Purdie
Copy the target definition for nativesdk to allow nativesdk builds
to work.

Signed-off-by: Richard Purdie 
---
 meta/classes/cargo.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/cargo.bbclass b/meta/classes/cargo.bbclass
index 0ca38143c0b..4a780a501ff 100644
--- a/meta/classes/cargo.bbclass
+++ b/meta/classes/cargo.bbclass
@@ -13,6 +13,7 @@ BASEDEPENDS:append = " cargo-native"
 
 # Ensure we get the right rust variant
 DEPENDS:append:class-target = " virtual/${TARGET_PREFIX}rust ${RUSTLIB_DEP}"
+DEPENDS:append:class-nativesdk = " virtual/${TARGET_PREFIX}rust ${RUSTLIB_DEP}"
 DEPENDS:append:class-native = " rust-native"
 
 # Enable build separation
-- 
2.32.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163358): 
https://lists.openembedded.org/g/openembedded-core/message/163358
Mute This Topic: https://lists.openembedded.org/mt/89831459/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] Patches sent to mailing lists: "From" attribute modified

2022-03-16 Thread Michael Opdenacker via lists.openembedded.org
Greetings,

My patches sent to the mailing lists are causing trouble for Richard.

The reason is the "From" field is modified by the mailing list server. It's
From: "Michael Opdenacker via lists.yoctoproject.org"

instead of
>From : Michael Opdenacker https://git.yoctoproject.org/poky/log/?qt=author=via

If I understood correctly, the problem happens because we had to enable
DMARC on our domain (bootlin.com), because of a storm of spam messages
claiming to come from our domain. Otherwise our legitimate e-mails were
getting blocked by Google Mail.

Richard recalls that someone once found a workaround for this issue. Did
any of you ever face this?

Thanks in advance
Michael.



-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163355): 
https://lists.openembedded.org/g/openembedded-core/message/163355
Mute This Topic: https://lists.openembedded.org/mt/89831232/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 8/8] classes/python_pep517: consolidate stub do_configure

2022-03-16 Thread Ross Burton
As PEP517 doesn't have an explicit configure step, we can stub out the
do_configure task once instead of the calling classes doing it.

Signed-off-by: Ross Burton 
---
 meta/classes/python_flit_core.bbclass  | 6 --
 meta/classes/python_pep517.bbclass | 8 +++-
 meta/classes/python_poetry_core.bbclass| 6 --
 meta/classes/setuptools_build_meta.bbclass | 6 --
 4 files changed, 7 insertions(+), 19 deletions(-)

diff --git a/meta/classes/python_flit_core.bbclass 
b/meta/classes/python_flit_core.bbclass
index eef361bb1b..96652aa204 100644
--- a/meta/classes/python_flit_core.bbclass
+++ b/meta/classes/python_flit_core.bbclass
@@ -3,9 +3,3 @@ inherit python_pep517 python3native python3-dir setuptools3-base
 DEPENDS += "python3 python3-flit-core-native"
 
 PEP517_BUILD_API = "flit_core.buildapi"
-
-python_flit_core_do_configure () {
-:
-}
-
-EXPORT_FUNCTIONS do_configure
diff --git a/meta/classes/python_pep517.bbclass 
b/meta/classes/python_pep517.bbclass
index 73bcf9ba07..34ffdc9c0d 100644
--- a/meta/classes/python_pep517.bbclass
+++ b/meta/classes/python_pep517.bbclass
@@ -22,6 +22,12 @@ PEP517_INSTALL_PYTHON:class-native = "nativepython3"
 # pypa/installer option to control the bytecode compilation
 INSTALL_WHEEL_COMPILE_BYTECODE ?= "--compile-bytecode=0"
 
+# PEP517 doesn't have a specific configure step, so set an empty do_configure 
to avoid
+# running base_do_configure.
+python_pep517_do_configure () {
+:
+}
+
 # When we have Python 3.11 we can parse pyproject.toml to determine the build
 # API entry point directly
 python_pep517_do_compile () {
@@ -47,4 +53,4 @@ python_pep517_do_bootstrap_install () {
 unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PEP517_WHEEL_PATH}/*.whl
 }
 
-EXPORT_FUNCTIONS do_compile do_install
+EXPORT_FUNCTIONS do_configure do_compile do_install
diff --git a/meta/classes/python_poetry_core.bbclass 
b/meta/classes/python_poetry_core.bbclass
index 3fecb6c6bb..577663b8f1 100644
--- a/meta/classes/python_poetry_core.bbclass
+++ b/meta/classes/python_poetry_core.bbclass
@@ -3,9 +3,3 @@ inherit python_pep517 python3native setuptools3-base
 DEPENDS += "python3-poetry-core-native"
 
 PEP517_BUILD_API = "poetry.core.masonry.api"
-
-python_poetry_core_do_configure () {
-:
-}
-
-EXPORT_FUNCTIONS do_configure
diff --git a/meta/classes/setuptools_build_meta.bbclass 
b/meta/classes/setuptools_build_meta.bbclass
index 62b037363d..b2bba35a0b 100644
--- a/meta/classes/setuptools_build_meta.bbclass
+++ b/meta/classes/setuptools_build_meta.bbclass
@@ -3,9 +3,3 @@ inherit setuptools3-base python_pep517
 DEPENDS += "python3-setuptools-native python3-wheel-native"
 
 PEP517_BUILD_API = "setuptools.build_meta"
-
-setuptools_build_meta_do_configure () {
-:
-}
-
-EXPORT_FUNCTIONS do_configure
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163354): 
https://lists.openembedded.org/g/openembedded-core/message/163354
Mute This Topic: https://lists.openembedded.org/mt/89828835/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 7/8] classes/flit_core: rename to python_flit_core

2022-03-16 Thread Ross Burton
To be more uniform with the other new Python classes, rename this to
python_flit_core and update the recipes that use it.

Signed-off-by: Ross Burton 
---
 meta/classes/{flit_core.bbclass => python_flit_core.bbclass} | 2 +-
 meta/recipes-devtools/python/python3-flit-core_3.7.1.bb  | 2 +-
 meta/recipes-devtools/python/python3-installer_0.5.1.bb  | 2 +-
 meta/recipes-devtools/python/python3-tomli_2.0.1.bb  | 2 +-
 meta/recipes-devtools/python/python3-wheel_0.37.1.bb | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
 rename meta/classes/{flit_core.bbclass => python_flit_core.bbclass} (84%)

diff --git a/meta/classes/flit_core.bbclass 
b/meta/classes/python_flit_core.bbclass
similarity index 84%
rename from meta/classes/flit_core.bbclass
rename to meta/classes/python_flit_core.bbclass
index 81fdf93e47..eef361bb1b 100644
--- a/meta/classes/flit_core.bbclass
+++ b/meta/classes/python_flit_core.bbclass
@@ -4,7 +4,7 @@ DEPENDS += "python3 python3-flit-core-native"
 
 PEP517_BUILD_API = "flit_core.buildapi"
 
-flit_core_do_configure () {
+python_flit_core_do_configure () {
 :
 }
 
diff --git a/meta/recipes-devtools/python/python3-flit-core_3.7.1.bb 
b/meta/recipes-devtools/python/python3-flit-core_3.7.1.bb
index dc815acf08..8d107384a6 100644
--- a/meta/recipes-devtools/python/python3-flit-core_3.7.1.bb
+++ b/meta/recipes-devtools/python/python3-flit-core_3.7.1.bb
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=41eb78fa8a872983a882c694a8305f08"
 
 SRC_URI[sha256sum] = 
"3c9bd9c140515bfe62dd938c6610d10d6efb9e35cc647fc614fe5fb3a5036682"
 
-inherit pypi flit_core
+inherit pypi python_flit_core
 
 # Need to install by hand as there's a dependency loop
 DEPENDS:remove:class-native = " python3-installer-native"
diff --git a/meta/recipes-devtools/python/python3-installer_0.5.1.bb 
b/meta/recipes-devtools/python/python3-installer_0.5.1.bb
index 12d9fce249..f4f9e1bde6 100644
--- a/meta/recipes-devtools/python/python3-installer_0.5.1.bb
+++ b/meta/recipes-devtools/python/python3-installer_0.5.1.bb
@@ -10,7 +10,7 @@ SRC_URI += "file://interpreter.patch"
 
 SRC_URI[sha256sum] = 
"f970995ec2bb815e2fdaf7977b26b2091e1e386f0f42eafd5ac811953dc5d445"
 
-inherit pypi flit_core
+inherit pypi python_flit_core
 
 DEPENDS:remove:class-native = "python3-installer-native"
 DEPENDS:append:class-native = " unzip-native"
diff --git a/meta/recipes-devtools/python/python3-tomli_2.0.1.bb 
b/meta/recipes-devtools/python/python3-tomli_2.0.1.bb
index f8b423bbef..6118a6a9c3 100644
--- a/meta/recipes-devtools/python/python3-tomli_2.0.1.bb
+++ b/meta/recipes-devtools/python/python3-tomli_2.0.1.bb
@@ -6,7 +6,7 @@ BUGTRACKER = "https://github.com/hukkin/tomli/issues;
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f0879d17df0110d1aa8c8c9f46f5"
 
-inherit pypi flit_core
+inherit pypi python_flit_core
 
 SRC_URI[sha256sum] = 
"de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"
 
diff --git a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb 
b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb
index efd6c2f968..2f7dd122ba 100644
--- a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb
+++ b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = 
"file://PKG-INFO;beginline=10;endline=10;md5=8227180126797a01
 
 SRC_URI[sha256sum] = 
"e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4"
 
-inherit flit_core pypi
+inherit python_flit_core pypi
 
 SRC_URI += " 
file://0001-Backport-pyproject.toml-from-flit-backend-branch.patch"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163353): 
https://lists.openembedded.org/g/openembedded-core/message/163353
Mute This Topic: https://lists.openembedded.org/mt/89828832/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 6/8] classes/python_pep517: add more comments

2022-03-16 Thread Ross Burton
Remove mention of prebuilt wheels, this is for the full PEP517 build
process and recipes that want to install prebuilt wheels can use
pypa/installer directly.

Signed-off-by: Ross Burton 
---
 meta/classes/python_pep517.bbclass | 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta/classes/python_pep517.bbclass 
b/meta/classes/python_pep517.bbclass
index 83c6dcb5c7..73bcf9ba07 100644
--- a/meta/classes/python_pep517.bbclass
+++ b/meta/classes/python_pep517.bbclass
@@ -1,5 +1,8 @@
 # Common infrastructure for Python packages that use PEP-517 compliant 
packaging.
 # https://www.python.org/dev/peps/pep-0517/
+#
+# This class will build a wheel in do_compile, and use pypa/installer to 
install
+# it in do_install.
 
 DEPENDS:append = " python3-installer-native"
 
@@ -9,14 +12,14 @@ PEP517_SOURCE_PATH ?= "${S}"
 # The PEP517 build API entry point
 PEP517_BUILD_API ?= "unset"
 
-# The directory where wheels should be written too. Build classes
-# will ideally [cleandirs] this but we don't do that here in case
-# a recipe wants to install prebuilt wheels.
+# The directory where wheels will be written
 PEP517_WHEEL_PATH ?= "${WORKDIR}/dist"
 
+# The interpreter to use for installed scripts
 PEP517_INSTALL_PYTHON = "python3"
 PEP517_INSTALL_PYTHON:class-native = "nativepython3"
 
+# pypa/installer option to control the bytecode compilation
 INSTALL_WHEEL_COMPILE_BYTECODE ?= "--compile-bytecode=0"
 
 # When we have Python 3.11 we can parse pyproject.toml to determine the build
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163352): 
https://lists.openembedded.org/g/openembedded-core/message/163352
Mute This Topic: https://lists.openembedded.org/mt/89828831/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/8] python3-packaging: remove duplicate python3-setuptools-native DEPENDS

2022-03-16 Thread Ross Burton
setuptools_build_meta.bbclass already sets this dependency.

Signed-off-by: Ross Burton 
---
 meta/recipes-devtools/python/python3-packaging_21.3.bb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-packaging_21.3.bb 
b/meta/recipes-devtools/python/python3-packaging_21.3.bb
index c7d0cb7ef7..a81fd94d37 100644
--- a/meta/recipes-devtools/python/python3-packaging_21.3.bb
+++ b/meta/recipes-devtools/python/python3-packaging_21.3.bb
@@ -9,5 +9,4 @@ inherit pypi setuptools_build_meta
 
 BBCLASSEXTEND = "native nativesdk"
 
-DEPENDS += "${PYTHON_PN}-setuptools-native"
 RDEPENDS:${PN} += "${PYTHON_PN}-pyparsing"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163347): 
https://lists.openembedded.org/g/openembedded-core/message/163347
Mute This Topic: https://lists.openembedded.org/mt/89828825/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/8] classes/python_pep517: implement a standard do_compile

2022-03-16 Thread Ross Burton
As all PEP517-compliant build systems have a universal API, we can ask
that users of this class set PEP517_BUILD_API to the class that implements
this API and call it ourselves, instead of users needing to implement
near-identical do_compile tasks themselves.

Signed-off-by: Ross Burton 
---
 meta/classes/python_pep517.bbclass | 13 -
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/meta/classes/python_pep517.bbclass 
b/meta/classes/python_pep517.bbclass
index ac7c1e44c6..83c6dcb5c7 100644
--- a/meta/classes/python_pep517.bbclass
+++ b/meta/classes/python_pep517.bbclass
@@ -6,6 +6,9 @@ DEPENDS:append = " python3-installer-native"
 # Where to execute the build process from
 PEP517_SOURCE_PATH ?= "${S}"
 
+# The PEP517 build API entry point
+PEP517_BUILD_API ?= "unset"
+
 # The directory where wheels should be written too. Build classes
 # will ideally [cleandirs] this but we don't do that here in case
 # a recipe wants to install prebuilt wheels.
@@ -16,6 +19,14 @@ PEP517_INSTALL_PYTHON:class-native = "nativepython3"
 
 INSTALL_WHEEL_COMPILE_BYTECODE ?= "--compile-bytecode=0"
 
+# When we have Python 3.11 we can parse pyproject.toml to determine the build
+# API entry point directly
+python_pep517_do_compile () {
+cd ${PEP517_SOURCE_PATH}
+nativepython3 -c "import ${PEP517_BUILD_API} as api; 
api.build_wheel('${PEP517_WHEEL_PATH}')"
+}
+do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
+
 python_pep517_do_install () {
 COUNT=$(find ${PEP517_WHEEL_PATH} -name '*.whl' | wc -l)
 if test $COUNT -eq 0; then
@@ -33,4 +44,4 @@ python_pep517_do_bootstrap_install () {
 unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PEP517_WHEEL_PATH}/*.whl
 }
 
-EXPORT_FUNCTIONS do_install
+EXPORT_FUNCTIONS do_compile do_install
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163348): 
https://lists.openembedded.org/g/openembedded-core/message/163348
Mute This Topic: https://lists.openembedded.org/mt/89828826/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 3/8] classes/flit_core: use python_pep517_do_compile

2022-03-16 Thread Ross Burton
Instead of implementing our own do_compile, set PEP517_BUILD_API and
use the generic do_compile.

Signed-off-by: Ross Burton 
---
 meta/classes/flit_core.bbclass | 11 +++
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass
index 5a602f54ab..81fdf93e47 100644
--- a/meta/classes/flit_core.bbclass
+++ b/meta/classes/flit_core.bbclass
@@ -2,15 +2,10 @@ inherit python_pep517 python3native python3-dir 
setuptools3-base
 
 DEPENDS += "python3 python3-flit-core-native"
 
+PEP517_BUILD_API = "flit_core.buildapi"
+
 flit_core_do_configure () {
 :
 }
 
-# TODO: ideally this uses pypa/build
-flit_core_do_compile () {
-cd ${PEP517_SOURCE_PATH}
-nativepython3 -mflit_core.wheel --outdir ${PEP517_WHEEL_PATH}
-}
-do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
-
-EXPORT_FUNCTIONS do_configure do_compile
+EXPORT_FUNCTIONS do_configure
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163349): 
https://lists.openembedded.org/g/openembedded-core/message/163349
Mute This Topic: https://lists.openembedded.org/mt/89828827/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 5/8] classes/setuptools_build_meta: use python_pep517_do_compile

2022-03-16 Thread Ross Burton
Instead of implementing our own do_compile, set PEP517_BUILD_API and
use the generic do_compile.

Signed-off-by: Ross Burton 
---
 meta/classes/setuptools_build_meta.bbclass | 11 +++
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/meta/classes/setuptools_build_meta.bbclass 
b/meta/classes/setuptools_build_meta.bbclass
index 8791a2965f..62b037363d 100644
--- a/meta/classes/setuptools_build_meta.bbclass
+++ b/meta/classes/setuptools_build_meta.bbclass
@@ -2,15 +2,10 @@ inherit setuptools3-base python_pep517
 
 DEPENDS += "python3-setuptools-native python3-wheel-native"
 
+PEP517_BUILD_API = "setuptools.build_meta"
+
 setuptools_build_meta_do_configure () {
 :
 }
 
-# TODO: ideally this uses pypa/build
-setuptools_build_meta_do_compile () {
-cd ${PEP517_SOURCE_PATH}
-nativepython3 -c "from setuptools import build_meta; 
build_meta.build_wheel('${PEP517_WHEEL_PATH}')"
-}
-do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
-
-EXPORT_FUNCTIONS do_configure do_compile
+EXPORT_FUNCTIONS do_configure
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163351): 
https://lists.openembedded.org/g/openembedded-core/message/163351
Mute This Topic: https://lists.openembedded.org/mt/89828830/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 4/8] classes/python_poetry_core: use python_pep517_do_compile

2022-03-16 Thread Ross Burton
Instead of implementing our own do_compile, set PEP517_BUILD_API and
use the generic do_compile.

Signed-off-by: Ross Burton 
---
 meta/classes/python_poetry_core.bbclass | 10 +++---
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/meta/classes/python_poetry_core.bbclass 
b/meta/classes/python_poetry_core.bbclass
index 47b2fe46d5..3fecb6c6bb 100644
--- a/meta/classes/python_poetry_core.bbclass
+++ b/meta/classes/python_poetry_core.bbclass
@@ -2,14 +2,10 @@ inherit python_pep517 python3native setuptools3-base
 
 DEPENDS += "python3-poetry-core-native"
 
+PEP517_BUILD_API = "poetry.core.masonry.api"
+
 python_poetry_core_do_configure () {
 :
 }
 
-# TODO: ideally this uses pypa/build
-python_poetry_core_do_compile () {
-nativepython3 -c "from poetry.core.masonry import api; 
api.build_wheel('${PEP517_WHEEL_PATH}')"
-}
-do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
-
-EXPORT_FUNCTIONS do_configure do_compile
+EXPORT_FUNCTIONS do_configure
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163350): 
https://lists.openembedded.org/g/openembedded-core/message/163350
Mute This Topic: https://lists.openembedded.org/mt/89828828/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] libucontext: Upgrade to 1.2 release

2022-03-16 Thread Khem Raj
License-Update: Copyright years changed [1]

aarch64 implements simd register save/restore

loongarch64 supported added

[1] 
https://github.com/kaniini/libucontext/commit/9943d4f5fc31a23a591e74caf24ce4effd887501
Signed-off-by: Khem Raj 
---
 .../0001-meson-Add-option-to-pass-cpu.patch   | 49 ---
 ...{libucontext_git.bb => libucontext_1.2.bb} |  6 +--
 2 files changed, 2 insertions(+), 53 deletions(-)
 delete mode 100644 
meta/recipes-core/musl/libucontext/0001-meson-Add-option-to-pass-cpu.patch
 rename meta/recipes-core/musl/{libucontext_git.bb => libucontext_1.2.bb} (89%)

diff --git 
a/meta/recipes-core/musl/libucontext/0001-meson-Add-option-to-pass-cpu.patch 
b/meta/recipes-core/musl/libucontext/0001-meson-Add-option-to-pass-cpu.patch
deleted file mode 100644
index 1fdc9f739d9..000
--- a/meta/recipes-core/musl/libucontext/0001-meson-Add-option-to-pass-cpu.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From a530eed9e7e6872e10fe92efaf1e9739471c30ca Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Sun, 30 May 2021 08:30:28 -0700
-Subject: [PATCH] meson: Add option to pass cpu
-
-This helps with cross compile setups, where host_cpu != target_cpu
-therefore detecting it on the fly will end up with wrong cpu to build
-for
-
-Upstream-Status: Submitted [https://github.com/kaniini/libucontext/pull/28]
-Signed-off-by: Khem Raj 

- meson.build   | 6 +-
- meson_options.txt | 4 +++-
- 2 files changed, 8 insertions(+), 2 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index e863780..2b4bdbd 100644
 a/meson.build
-+++ b/meson.build
-@@ -6,7 +6,11 @@ project(
-   version : run_command('head', files('VERSION')).stdout()
- )
- 
--cpu = host_machine.cpu_family()
-+cpu = get_option('cpu')
-+if cpu == ''
-+  cpu = host_machine.cpu_family()
-+endif
-+
- if cpu == 'sh4'
-   cpu = 'sh'
- endif
-diff --git a/meson_options.txt b/meson_options.txt
-index d4201d1..864d83c 100644
 a/meson_options.txt
-+++ b/meson_options.txt
-@@ -1,4 +1,6 @@
- option('freestanding', type : 'boolean', value : false,
-description: 'Do not use system headers')
- option('export_unprefixed', type : 'boolean', value : true,
--   description: 'Export POSIX 2004 ucontext names as alises')
-\ No newline at end of file
-+   description: 'Export POSIX 2004 ucontext names as alises')
-+option('cpu', type : 'string', value : '',
-+   description: 'Target CPU architecture for cross compile')
--- 
-2.31.1
-
diff --git a/meta/recipes-core/musl/libucontext_git.bb 
b/meta/recipes-core/musl/libucontext_1.2.bb
similarity index 89%
rename from meta/recipes-core/musl/libucontext_git.bb
rename to meta/recipes-core/musl/libucontext_1.2.bb
index 9061cf0b1b5..4e34df14392 100644
--- a/meta/recipes-core/musl/libucontext_git.bb
+++ b/meta/recipes-core/musl/libucontext_1.2.bb
@@ -4,14 +4,12 @@
 SUMMARY = "ucontext implementation featuring glibc-compatible ABI"
 HOMEPAGE = "https://github.com/kaniini/libucontext;
 LICENSE = "ISC"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=6eed01fa0e673c76f5a5715438f65b1d"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ebea527af0602d509b7f4c49533fb1bd"
 SECTION = "libs"
 DEPENDS = ""
 
-PV = "1.1+${SRCPV}"
-SRCREV = "335ee864ef6f4a5d4b525453fd9dbfb3507cfecc"
+SRCREV = "4dde3417b4bb4b1b1545bd913be337680b5e28c3"
 SRC_URI = "git://github.com/kaniini/libucontext;branch=master;protocol=https \
-   file://0001-meson-Add-option-to-pass-cpu.patch \
"
 
 S = "${WORKDIR}/git"
-- 
2.35.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163346): 
https://lists.openembedded.org/g/openembedded-core/message/163346
Mute This Topic: https://lists.openembedded.org/mt/89827535/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [meta-oe][PATCH 4/4] wayland: provide wayland-client-native and wayland-protocols-native

2022-03-16 Thread Markus Volk
Signed-off-by: Markus Volk 
---
 meta/recipes-graphics/wayland/wayland-protocols_1.25.bb | 3 +++
 meta/recipes-graphics/wayland/wayland_1.20.0.bb | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/wayland/wayland-protocols_1.25.bb 
b/meta/recipes-graphics/wayland/wayland-protocols_1.25.bb
index 074801b22d..92ba296165 100644
--- a/meta/recipes-graphics/wayland/wayland-protocols_1.25.bb
+++ b/meta/recipes-graphics/wayland/wayland-protocols_1.25.bb
@@ -21,3 +21,6 @@ EXTRA_OEMESON += "-Dtests=false"
 
 PACKAGES = "${PN}"
 FILES:${PN} += "${datadir}/pkgconfig/wayland-protocols.pc"
+
+BBCLASSEXTEND = "native nativesdk"
+
diff --git a/meta/recipes-graphics/wayland/wayland_1.20.0.bb 
b/meta/recipes-graphics/wayland/wayland_1.20.0.bb
index e8636eb11b..bd437767b2 100644
--- a/meta/recipes-graphics/wayland/wayland_1.20.0.bb
+++ b/meta/recipes-graphics/wayland/wayland_1.20.0.bb
@@ -27,7 +27,7 @@ PACKAGECONFIG ??= "dtd-validation"
 PACKAGECONFIG[dtd-validation] = 
"-Ddtd_validation=true,-Ddtd_validation=false,libxml2,,"
 
 EXTRA_OEMESON = "-Ddocumentation=false"
-EXTRA_OEMESON:class-native = "-Ddocumentation=false -Dlibraries=false"
+EXTRA_OEMESON:class-native = "-Ddocumentation=false"
 
 # Wayland installs a M4 macro for other projects to use, which uses the target
 # pkg-config to find files.  Replace pkg-config with pkg-config-native.
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163345): 
https://lists.openembedded.org/g/openembedded-core/message/163345
Mute This Topic: https://lists.openembedded.org/mt/89826810/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [meta-oe][PATCH 3/4] libva: make buildable for native and nativesdk

2022-03-16 Thread Markus Volk
This prevents an error if trying to add "va" to mesa PACKAGECONFIG

Signed-off-by: Markus Volk 
---
 meta/recipes-graphics/libva/libva.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/libva/libva.inc 
b/meta/recipes-graphics/libva/libva.inc
index 8ebec8159a..148bb03b5f 100644
--- a/meta/recipes-graphics/libva/libva.inc
+++ b/meta/recipes-graphics/libva/libva.inc
@@ -33,3 +33,5 @@ PACKAGECONFIG[glx] = 
"-Dwith_glx=yes,-Dwith_glx=no,virtual/mesa"
 
 PACKAGECONFIG[wayland] = "-Dwith_wayland=yes,-Dwith_wayland=no,wayland-native 
wayland"
 
+BBCLASSEXTEND = "native nativesdk"
+
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163344): 
https://lists.openembedded.org/g/openembedded-core/message/163344
Mute This Topic: https://lists.openembedded.org/mt/89826808/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [meta-oe][PATCH 2/4] mesa: align target- and native build

2022-03-16 Thread Markus Volk
---
 meta/recipes-graphics/mesa/mesa.inc | 18 --
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 2a89b8e8f0..116a9ed861 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -82,16 +82,14 @@ EXTRA_OEMESON = " \
 def strip_comma(s):
 return s.strip(',')
 
-PACKAGECONFIG:class-target ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland 
vulkan', d)} \
-   ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl 
egl gles gbm gallium virgl', '', d)} \
-   ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
-   ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
-   elf-tls \
-  "
-PACKAGECONFIG:class-native ?= "gbm gallium egl opengl elf-tls x11"
-PACKAGECONFIG:class-nativesdk ?= "gbm gallium egl opengl elf-tls x11"
-
-PACKAGECONFIG:remove:libc-musl = "elf-tls"
+PACKAGECONFIG = " \
+   gallium \
+   ${@bb.utils.filter('DISTRO_FEATURES', 'x11 vulkan wayland', d)} \
+   ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm 
virgl', '', d)} \
+   ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \
+   ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \
+   ${@bb.utils.contains('TCLIBC', 'glibc', 'elf-tls', '', d)} \
+"
 
 # "gbm" requires "opengl"
 PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163343): 
https://lists.openembedded.org/g/openembedded-core/message/163343
Mute This Topic: https://lists.openembedded.org/mt/89826807/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [meta-oe][PATCH 1/4] xf86-video-intel: add dependencies; remove dri1

2022-03-16 Thread Markus Volk
Signed-off-by: Markus Volk 
---
 meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb 
b/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb
index 9430c3f4bb..74ec57aa66 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-video-intel_git.bb
@@ -18,19 +18,17 @@ SRC_URI = 
"git://anongit.freedesktop.org/xorg/driver/xf86-video-intel;branch=mas
 
 UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+(\.\d+)+)"
 
-DEPENDS += "virtual/libx11 drm libpciaccess pixman"
+DEPENDS += "virtual/libx11 drm libpciaccess pixman cairo libpng libxcb 
libxcomposite libxdamage libxrender libxrandr libxext libxfixes"
 
-PACKAGECONFIG ??= "sna xvmc uxa udev ${@bb.utils.contains('DISTRO_FEATURES', 
'opengl', 'dri dri2 dri3', '', d)}"
+PACKAGECONFIG ??= "sna xvmc uxa udev ${@bb.utils.contains('DISTRO_FEATURES', 
'opengl', 'dri2 dri3', '', d)}"
 
-PACKAGECONFIG[dri] = "--enable-dri,--disable-dri"
-PACKAGECONFIG[dri1] = "--enable-dri1,--disable-dri1"
 PACKAGECONFIG[dri2] = "--enable-dri2,--disable-dri2"
 PACKAGECONFIG[dri3] = "--enable-dri3,--disable-dri3"
 PACKAGECONFIG[sna] = "--enable-sna,--disable-sna"
 PACKAGECONFIG[uxa] = "--enable-uxa,--disable-uxa"
 PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev"
 PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc xcb-util"
-PACKAGECONFIG[tools] = "--enable-tools,--disable-tools,libxinerama libxrandr 
libxdamage libxfixes libxcursor libxtst libxrender libxscrnsaver libxext libx11 
pixman libxcb libxshmfence"
+PACKAGECONFIG[tools] = "--enable-tools,--disable-tools,libxinerama libxcursor 
libxtst libxscrnsaver libxshmfence"
 
 # --enable-kms-only option is required by ROOTLESS_X
 EXTRA_OECONF += '${@oe.utils.conditional( "ROOTLESS_X", "1", " 
--enable-kms-only", "", d )}'
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163342): 
https://lists.openembedded.org/g/openembedded-core/message/163342
Mute This Topic: https://lists.openembedded.org/mt/89826806/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0

2022-03-16 Thread Markus Volk

Thanks for testing

Markus

Am 16.03.22 um 17:19 schrieb Matthias Klein:


Hello Markus,

both variants work. I then used the latter one:

PACKAGECONFIG:append:class-native = " dri3"

PACKAGECONFIG:append:class-nativesdk = " dri3"

I have successfully built small QML (Qt 6.2.4) test programs with the 
SDK, which also run nicely on the hardware (i.MX6 DualLite with kernel 
5.10 / etnaviv).


Many greetings,

Matthias

*Von:* openembedded-core@lists.openembedded.org 
 *Im Auftrag von *Matthias 
Klein via lists.openembedded.org

*Gesendet:* Mittwoch, 16. März 2022 09:56
*An:* f_...@t-online.de; openembedded-core@lists.openembedded.org
*Betreff:* Re: [OE-core] nativesdk-mesa fails to build since upgrade 
to version 22.0.0


Hello Markus,

Thanks for the quick help!

The variant " to remove x11 " seems to build (incrementally). However, 
the SDK is still building.


After that I will test the variant regarding dri3. After that I will 
also do a full/clean build.


Afterwards I will report. But it will take a few hours ...

Many greetings,

Matthias

*Von:* openembedded-core@lists.openembedded.org 
 *Im Auftrag von *Markus 
Volk via lists.openembedded.org

*Gesendet:* Mittwoch, 16. März 2022 09:35
*An:* openembedded-core@lists.openembedded.org
*Betreff:* Re: [OE-core] nativesdk-mesa fails to build since upgrade 
to version 22.0.0


What does happen, if adding dri3 like this?

PACKAGECONFIG:append:class-native = " dri3"
PACKAGECONFIG:append:class-nativesdk = "dri3"

Am 16.03.22 um 09:17 schrieb Markus Volk:

Hi Matthias,

since you have disabled x11 for target ... does it help to also
remove it from native and nativesdk ?

PACKAGECONFIG:remove:class-native = " x11"

PACKAGECONFIG:remove:class-nativesdk = " x11"

Regards,

Markus

Am 16.03.22 um 08:40 schrieb Matthias Klein:

Hello,

I am using mesa in conjunction with meta-qt6 without
X11/wayland on an iMX6 with etnaviv.

So in a bbappend I have: PACKAGECONFIG:append = " etnaviv".

I use poky with the following DISTRO_FEATURES:
DISTRO_FEATURES:remove = "x11 wayland vulkan 3g nfc nfs zeroconf"
DISTRO_FEATURES:append = " directfb opengl"

Unfortunately, nativesdk-mesa now no longer builds on build
via "-c populate_sdk". However, the package for the target
still builds.

| ../mesa-22.0.0/meson.build:520: WARNING: cannot auto-detect
-mtls-dialect when cross-compiling, using compiler default
|
| ../mesa-22.0.0/meson.build:614:2: ERROR: Problem
encountered: kmsro requires dri3 for X11 support

I compared the meson calls on the target and SDK builds:
NOTE: Executing meson -Dshared-glapi=enabled
-Dgallium-opencl=disabled -Dglx-read-only-text=true
-Dplatforms= -Ddri3=disabled -Degl=enabled -Delf-tls=true
-Dgallium-drivers=swrast,etnaviv, virgl -Dllvm=disabled
-Dgbm=enabled -Dgles1=enabled -Dgles2=enabled
-Dlmsensors=disabled -Dopengl=true -
Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dglx=disabled
-Dgallium-xa=disabled -Dgallium-xvmc=disabled. ..

NOTE: Executing meson -Dshared-glapi=enabled
-Dgallium-opencl=disabled -Dglx-read-only-text=true
-Dplatforms=x11 -Ddri3=disabled -Degl=enabled -Delf-tls=true
-Dgallium-drivers=swrast, etnaviv -Dllvm=disabled
-Dgbm=enabled -Dgles1=disabled -Dgles2=disabled
-Dlmsensors=disabled -Dopengl=true -Dosmesa=false
-Dlibunwind=disabled -Dgallium-va=disabled
-Dgallium-vdpau=disabled -Dvulkan-drivers=
-Dgallium-xa=disabled -Dgallium-xvmc=disabled. ..

Does anyone have any idea what I could do to get the SDK built?

Many greetings,
Matthias





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163341): 
https://lists.openembedded.org/g/openembedded-core/message/163341
Mute This Topic: https://lists.openembedded.org/mt/89817006/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0

2022-03-16 Thread Markus Volk

Hi Matthias,

I created a patchset to align mesa PACKAGECONFIG for native and target 
builds.
I tried compiling my own images and core-image-sato with this patchset 
and had no problems.

Hopefully this will fix your problem as well.

This change seems much cleaner to me, but maybe I'm missing some 
context. I will send the patches to the mailing list and wait for comments.


Markus

Am 16.03.22 um 17:19 schrieb Matthias Klein:


Hello Markus,

both variants work. I then used the latter one:

PACKAGECONFIG:append:class-native = " dri3"

PACKAGECONFIG:append:class-nativesdk = " dri3"

I have successfully built small QML (Qt 6.2.4) test programs with the 
SDK, which also run nicely on the hardware (i.MX6 DualLite with kernel 
5.10 / etnaviv).


Many greetings,

Matthias

*Von:* openembedded-core@lists.openembedded.org 
 *Im Auftrag von *Matthias 
Klein via lists.openembedded.org

*Gesendet:* Mittwoch, 16. März 2022 09:56
*An:* f_...@t-online.de; openembedded-core@lists.openembedded.org
*Betreff:* Re: [OE-core] nativesdk-mesa fails to build since upgrade 
to version 22.0.0


Hello Markus,

Thanks for the quick help!

The variant " to remove x11 " seems to build (incrementally). However, 
the SDK is still building.


After that I will test the variant regarding dri3. After that I will 
also do a full/clean build.


Afterwards I will report. But it will take a few hours ...

Many greetings,

Matthias

*Von:* openembedded-core@lists.openembedded.org 
 *Im Auftrag von *Markus 
Volk via lists.openembedded.org

*Gesendet:* Mittwoch, 16. März 2022 09:35
*An:* openembedded-core@lists.openembedded.org
*Betreff:* Re: [OE-core] nativesdk-mesa fails to build since upgrade 
to version 22.0.0


What does happen, if adding dri3 like this?

PACKAGECONFIG:append:class-native = " dri3"
PACKAGECONFIG:append:class-nativesdk = "dri3"

Am 16.03.22 um 09:17 schrieb Markus Volk:

Hi Matthias,

since you have disabled x11 for target ... does it help to also
remove it from native and nativesdk ?

PACKAGECONFIG:remove:class-native = " x11"

PACKAGECONFIG:remove:class-nativesdk = " x11"

Regards,

Markus

Am 16.03.22 um 08:40 schrieb Matthias Klein:

Hello,

I am using mesa in conjunction with meta-qt6 without
X11/wayland on an iMX6 with etnaviv.

So in a bbappend I have: PACKAGECONFIG:append = " etnaviv".

I use poky with the following DISTRO_FEATURES:
DISTRO_FEATURES:remove = "x11 wayland vulkan 3g nfc nfs zeroconf"
DISTRO_FEATURES:append = " directfb opengl"

Unfortunately, nativesdk-mesa now no longer builds on build
via "-c populate_sdk". However, the package for the target
still builds.

| ../mesa-22.0.0/meson.build:520: WARNING: cannot auto-detect
-mtls-dialect when cross-compiling, using compiler default
|
| ../mesa-22.0.0/meson.build:614:2: ERROR: Problem
encountered: kmsro requires dri3 for X11 support

I compared the meson calls on the target and SDK builds:
NOTE: Executing meson -Dshared-glapi=enabled
-Dgallium-opencl=disabled -Dglx-read-only-text=true
-Dplatforms= -Ddri3=disabled -Degl=enabled -Delf-tls=true
-Dgallium-drivers=swrast,etnaviv, virgl -Dllvm=disabled
-Dgbm=enabled -Dgles1=enabled -Dgles2=enabled
-Dlmsensors=disabled -Dopengl=true -
Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dglx=disabled
-Dgallium-xa=disabled -Dgallium-xvmc=disabled. ..

NOTE: Executing meson -Dshared-glapi=enabled
-Dgallium-opencl=disabled -Dglx-read-only-text=true
-Dplatforms=x11 -Ddri3=disabled -Degl=enabled -Delf-tls=true
-Dgallium-drivers=swrast, etnaviv -Dllvm=disabled
-Dgbm=enabled -Dgles1=disabled -Dgles2=disabled
-Dlmsensors=disabled -Dopengl=true -Dosmesa=false
-Dlibunwind=disabled -Dgallium-va=disabled
-Dgallium-vdpau=disabled -Dvulkan-drivers=
-Dgallium-xa=disabled -Dgallium-xvmc=disabled. ..

Does anyone have any idea what I could do to get the SDK built?

Many greetings,
Matthias





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163340): 
https://lists.openembedded.org/g/openembedded-core/message/163340
Mute This Topic: https://lists.openembedded.org/mt/89817006/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0

2022-03-16 Thread Matthias Klein
Hello Markus,

both variants work. I then used the latter one:
PACKAGECONFIG:append:class-native = " dri3"
PACKAGECONFIG:append:class-nativesdk = " dri3"

I have successfully built small QML (Qt 6.2.4) test programs with the SDK, 
which also run nicely on the hardware (i.MX6 DualLite with kernel 5.10 / 
etnaviv).

Many greetings,
Matthias

Von: openembedded-core@lists.openembedded.org 
 Im Auftrag von Matthias Klein via 
lists.openembedded.org
Gesendet: Mittwoch, 16. März 2022 09:56
An: f_...@t-online.de; openembedded-core@lists.openembedded.org
Betreff: Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 
22.0.0

Hello Markus,

Thanks for the quick help!

The variant " to remove x11 " seems to build (incrementally). However, the SDK 
is still building.
After that I will test the variant regarding dri3. After that I will also do a 
full/clean build.

Afterwards I will report. But it will take a few hours ...

Many greetings,
Matthias

Von: 
openembedded-core@lists.openembedded.org
 
mailto:openembedded-core@lists.openembedded.org>>
 Im Auftrag von Markus Volk via lists.openembedded.org
Gesendet: Mittwoch, 16. März 2022 09:35
An: 
openembedded-core@lists.openembedded.org
Betreff: Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 
22.0.0


What does happen, if adding dri3 like this?

PACKAGECONFIG:append:class-native = " dri3"

PACKAGECONFIG:append:class-nativesdk = "dri3"




Am 16.03.22 um 09:17 schrieb Markus Volk:
Hi Matthias,

since you have disabled x11 for target ... does it help to also remove it from 
native and nativesdk ?

PACKAGECONFIG:remove:class-native = " x11"

PACKAGECONFIG:remove:class-nativesdk = " x11"

Regards,

Markus

Am 16.03.22 um 08:40 schrieb Matthias Klein:
Hello,

I am using mesa in conjunction with meta-qt6 without X11/wayland on an iMX6 
with etnaviv.

So in a bbappend I have: PACKAGECONFIG:append = " etnaviv".

I use poky with the following DISTRO_FEATURES:
DISTRO_FEATURES:remove = "x11 wayland vulkan 3g nfc nfs zeroconf"
DISTRO_FEATURES:append = " directfb opengl"

Unfortunately, nativesdk-mesa now no longer builds on build via "-c 
populate_sdk". However, the package for the target still builds.

| ../mesa-22.0.0/meson.build:520: WARNING: cannot auto-detect -mtls-dialect 
when cross-compiling, using compiler default
|
| ../mesa-22.0.0/meson.build:614:2: ERROR: Problem encountered: kmsro requires 
dri3 for X11 support

I compared the meson calls on the target and SDK builds:
NOTE: Executing meson -Dshared-glapi=enabled -Dgallium-opencl=disabled 
-Dglx-read-only-text=true -Dplatforms= -Ddri3=disabled -Degl=enabled 
-Delf-tls=true -Dgallium-drivers=swrast,etnaviv, virgl -Dllvm=disabled 
-Dgbm=enabled -Dgles1=enabled -Dgles2=enabled -Dlmsensors=disabled 
-Dopengl=true -
Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dglx=disabled -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled. ..

NOTE: Executing meson -Dshared-glapi=enabled -Dgallium-opencl=disabled 
-Dglx-read-only-text=true -Dplatforms=x11 -Ddri3=disabled -Degl=enabled 
-Delf-tls=true -Dgallium-drivers=swrast, etnaviv -Dllvm=disabled -Dgbm=enabled 
-Dgles1=disabled -Dgles2=disabled -Dlmsensors=disabled -Dopengl=true 
-Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled. ..

Does anyone have any idea what I could do to get the SDK built?

Many greetings,
Matthias








-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163339): 
https://lists.openembedded.org/g/openembedded-core/message/163339
Mute This Topic: https://lists.openembedded.org/mt/89817006/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [dunfell][PATCH] openssl: update from 1.1.1l to 1.1.1n

2022-03-16 Thread Ralph Siemsen
This includes a fix for CVE-2022-0778. There are quite a lot of changes
but they seem to mostly be fixes or cves, see the CHANGES file[1].

Drop previous fix for CVE-2021-4160 since it is now upstream [2]
and include since release 1.1.1m.

[1] 
https://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=CHANGES;hb=refs/heads/OpenSSL_1_1_1-stable
[2] 
https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb

Signed-off-by: Ralph Siemsen 
---
 .../openssl/openssl/CVE-2021-4160.patch   | 145 --
 .../{openssl_1.1.1l.bb => openssl_1.1.1n.bb}  |   3 +-
 2 files changed, 1 insertion(+), 147 deletions(-)
 delete mode 100644 
meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
 rename meta/recipes-connectivity/openssl/{openssl_1.1.1l.bb => 
openssl_1.1.1n.bb} (98%)

diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch 
b/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
deleted file mode 100644
index ff1e807157..00
--- a/meta/recipes-connectivity/openssl/openssl/CVE-2021-4160.patch
+++ /dev/null
@@ -1,145 +0,0 @@
-From e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb Mon Sep 17 00:00:00 2001
-From: Bernd Edlinger 
-Date: Sat, 11 Dec 2021 20:28:11 +0100
-Subject: [PATCH] Fix a carry overflow bug in bn_sqr_comba4/8 for mips 32-bit
- targets
-
-bn_sqr_comba8 does for instance compute a wrong result for the value:
-a=0x4aaac919 62056c84 fba7334e 1a6be678 022181ba fd3aa878 899b2346 ee210f45
-
-The correct result is:
-r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 4724a82f
-912c5e61 6a187efe 8f7c47fc f6945fe5 75be8e3d 97ed17d4 7950b465 3cb32899
-
-but the actual result was:
-r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 4724a82f
-912c5e61 6a187efe 8f7c47fc f6945fe5 75be8e3c 97ed17d4 7950b465 3cb32899
-
-so the forth word of the result was 0x75be8e3c but should have been
-0x75be8e3d instead.
-
-Likewise bn_sqr_comba4 has an identical bug for the same value as well:
-a=0x022181ba fd3aa878 899b2346 ee210f45
-
-correct result:
-r=0x00048a69 9fe82f8b 62bd2ed1 88781335 75be8e3d 97ed17d4 7950b465 3cb32899
-
-wrong result:
-r=0x00048a69 9fe82f8b 62bd2ed1 88781335 75be8e3c 97ed17d4 7950b465 3cb32899
-
-Fortunately the bn_mul_comba4/8 code paths are not affected.
-
-Also the mips64 target does in fact not handle the carry propagation
-correctly.
-
-Example:
-a=0x4aaac919 62056c84 fba7334e 1a6be678
-022181ba fd3aa878 899b234635dad283 ee210f450001
-
-correct result:
-r=0x15c72e32272c4471 392debf018c679c8 b85496496bf8254c d0204f36611e2be1
-0cdb3db8f3c081d8 c94ba0e1bacc5061 191b83d47ff929f6 5be0aebfc13ae68d
-3eea7a7fdf2f5758 42f7ec656cab3cb5 6a28095be34756f2 64f24687bf37de06
-2822309cd1d292f9 6fa698c972372f09 771e97d3a868cda0 dc421e8a0001
-
-wrong result:
-r=0x15c72e32272c4471 392debf018c679c8 b85496496bf8254c d0204f36611e2be1
-0cdb3db8f3c081d8 c94ba0e1bacc5061 191b83d47ff929f6 5be0aebfc13ae68d
-3eea7a7fdf2f5758 42f7ec656cab3cb5 6a28095be34756f2 64f24687bf37de06
-2822309cd1d292f8 6fa698c972372f09 771e97d3a868cda0 dc421e8a0001
-
-Reviewed-by: Paul Dale 
-(Merged from https://github.com/openssl/openssl/pull/17258)
-
-(cherry picked from commit 336923c0c8d705cb8af5216b29a205662db0d590)
-
-Upstream-Status: Backport 
[https://git.openssl.org/gitweb/?p=openssl.git;a=patch;h=e9e726506cd2a3fd9c0f12daf8cc1fe934c7dddb]
-CVE: CVE-2021-4160
-Signed-off-by: Ranjitsinh Rathod 
-

- crypto/bn/asm/mips.pl |  4 
- test/bntest.c | 45 +++
- 2 files changed, 49 insertions(+)
-
-diff --git a/crypto/bn/asm/mips.pl b/crypto/bn/asm/mips.pl
-index 8ad715bda4..74101030f2 100644
 a/crypto/bn/asm/mips.pl
-+++ b/crypto/bn/asm/mips.pl
-@@ -1984,6 +1984,8 @@ $code.=<<___;
-   sltu$at,$c_2,$t_1
-   $ADDU   $c_3,$t_2,$at
-   $ST $c_2,$BNSZ($a0)
-+  sltu$at,$c_3,$t_2
-+  $ADDU   $c_1,$at
-   mflo($t_1,$a_2,$a_0)
-   mfhi($t_2,$a_2,$a_0)
- ___
-@@ -2194,6 +2196,8 @@ $code.=<<___;
-   sltu$at,$c_2,$t_1
-   $ADDU   $c_3,$t_2,$at
-   $ST $c_2,$BNSZ($a0)
-+  sltu$at,$c_3,$t_2
-+  $ADDU   $c_1,$at
-   mflo($t_1,$a_2,$a_0)
-   mfhi($t_2,$a_2,$a_0)
- ___
-diff --git a/test/bntest.c b/test/bntest.c
-index b58028a301..bab34ba54b 100644
 a/test/bntest.c
-+++ b/test/bntest.c
-@@ -627,6 +627,51 @@ static int test_modexp_mont5(void)
- if (!TEST_BN_eq(c, d))
- goto err;
- 
-+/*
-+ * Regression test for overflow bug in bn_sqr_comba4/8 for
-+ * mips-linux-gnu and mipsel-linux-gnu 32bit targets.
-+ */
-+{
-+static const char *ehex[] = {
-+
"95564994a96c45954227b845a1e99cb939d5a1da99ee91acc962396ae999a9ee",
-+
"38603790448f2f7694c242a875f0cad0aae658eba085f312d2febbbd128dd2b5",
-+

Re: [OE-core] [PATCH 2/3] lttng-modules: remove redundant devupstream assignments

2022-03-16 Thread Richard Purdie
On Wed, 2022-03-16 at 14:35 +, Ross Burton wrote:
> On Wed, 16 Mar 2022 at 10:30, Richard Purdie
>  wrote:
> > >  SRCREV:class-devupstream = "7584cfc04914cb0842a986e9808686858b9c8630"
> > > -PV:class-devupstream = "2.13.1+git${SRCPV}"
> > > -S:class-devupstream = "${WORKDIR}/git"
> > >  SRCREV_FORMAT ?= "lttng_git"
> > 
> > I think you need to leave PV?
> 
> devupstream should be setting PV automatically:
> 
> if proto_marker not in pv and not d.getVar("PV:class-devupstream"):
>   d.setVar("PV", pv + proto_marker + "${SRCPV}")
> 
> I can double check shortly.

Sorry, you're right. I swear I looked at the class and didn't see that!

I think I was looking for "git" instead of url.scheme.

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163337): 
https://lists.openembedded.org/g/openembedded-core/message/163337
Mute This Topic: https://lists.openembedded.org/mt/89801716/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 2/3] lttng-modules: remove redundant devupstream assignments

2022-03-16 Thread Ross Burton
On Wed, 16 Mar 2022 at 10:30, Richard Purdie
 wrote:
> >  SRCREV:class-devupstream = "7584cfc04914cb0842a986e9808686858b9c8630"
> > -PV:class-devupstream = "2.13.1+git${SRCPV}"
> > -S:class-devupstream = "${WORKDIR}/git"
> >  SRCREV_FORMAT ?= "lttng_git"
>
> I think you need to leave PV?

devupstream should be setting PV automatically:

if proto_marker not in pv and not d.getVar("PV:class-devupstream"):
  d.setVar("PV", pv + proto_marker + "${SRCPV}")

I can double check shortly.

Ross

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163336): 
https://lists.openembedded.org/g/openembedded-core/message/163336
Mute This Topic: https://lists.openembedded.org/mt/89801716/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] convert-variable-renames.py: add more problematic words

2022-03-16 Thread Michael Opdenacker via lists.openembedded.org

On 3/16/22 15:02, Richard Purdie wrote:
> On Wed, 2022-03-16 at 15:00 +0100, Michael Opdenacker via 
> lists.openembedded.org
> wrote:
>> Listed on https://inclusivenaming.org/
>>
>> Signed-off-by: Michael Opdenacker 
>> ---
>>  scripts/contrib/convert-variable-renames.py | 7 ++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
> Not sure we want to add a whole load more work at this point in the release
> cycle? This wasn't what we agreed as the first set of priorities :/.

The word checks are just warnings by the way, but no problem at all for me.
I figured I'd send a patch rather than a question ;-)

Thanks
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163335): 
https://lists.openembedded.org/g/openembedded-core/message/163335
Mute This Topic: https://lists.openembedded.org/mt/89822170/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] convert-variable-renames.py: add more problematic words

2022-03-16 Thread Michael Opdenacker via lists.openembedded.org

On 3/16/22 15:00, Michael Opdenacker wrote:
> Listed on https://inclusivenaming.org/
>
> Signed-off-by: Michael Opdenacker 
> ---
>  scripts/contrib/convert-variable-renames.py | 7 ++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/contrib/convert-variable-renames.py 
> b/scripts/contrib/convert-variable-renames.py
> index 856c001e11..304f5484ed 100755
> --- a/scripts/contrib/convert-variable-renames.py
> +++ b/scripts/contrib/convert-variable-renames.py
> @@ -53,9 +53,14 @@ removed_list = [
>  ]
>  
>  context_check_list = [
> +"abort",
>  "blacklist",
> +"slave",
> +"sanity check",
> +"sanity test",
> +"segregate",
> +"segregation",
>  "whitelist",
> -"abort",


Oops, I meant to send this as an RFC, but forgot when I tweaked the
description line.
Cheers
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163334): 
https://lists.openembedded.org/g/openembedded-core/message/163334
Mute This Topic: https://lists.openembedded.org/mt/89822170/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] convert-variable-renames.py: add more problematic words

2022-03-16 Thread Richard Purdie
On Wed, 2022-03-16 at 15:00 +0100, Michael Opdenacker via lists.openembedded.org
wrote:
> Listed on https://inclusivenaming.org/
> 
> Signed-off-by: Michael Opdenacker 
> ---
>  scripts/contrib/convert-variable-renames.py | 7 ++-
>  1 file changed, 6 insertions(+), 1 deletion(-)

Not sure we want to add a whole load more work at this point in the release
cycle? This wasn't what we agreed as the first set of priorities :/.

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16): 
https://lists.openembedded.org/g/openembedded-core/message/16
Mute This Topic: https://lists.openembedded.org/mt/89822170/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] convert-variable-renames.py: add more problematic words

2022-03-16 Thread Michael Opdenacker via lists.openembedded.org
Listed on https://inclusivenaming.org/

Signed-off-by: Michael Opdenacker 
---
 scripts/contrib/convert-variable-renames.py | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/scripts/contrib/convert-variable-renames.py 
b/scripts/contrib/convert-variable-renames.py
index 856c001e11..304f5484ed 100755
--- a/scripts/contrib/convert-variable-renames.py
+++ b/scripts/contrib/convert-variable-renames.py
@@ -53,9 +53,14 @@ removed_list = [
 ]
 
 context_check_list = [
+"abort",
 "blacklist",
+"slave",
+"sanity check",
+"sanity test",
+"segregate",
+"segregation",
 "whitelist",
-"abort",
 ]
 
 def processfile(fn):
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163332): 
https://lists.openembedded.org/g/openembedded-core/message/163332
Mute This Topic: https://lists.openembedded.org/mt/89822170/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] mesa: Allow building Mesa's OpenCL through PACKAGECONFIG

2022-03-16 Thread Zoltan Boszormenyi via lists.openembedded.org
From: Zoltán Böszörményi 

Signed-off-by: Zoltán Böszörményi 
---
 meta/recipes-graphics/mesa/mesa.inc | 11 +--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 2a89b8e8f0..4ce69a78f8 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -74,7 +74,6 @@ MESON_BUILDTYPE = "${@check_buildtype(d)}"
 
 EXTRA_OEMESON = " \
 -Dshared-glapi=enabled \
--Dgallium-opencl=disabled \
 -Dglx-read-only-text=true \
 -Dplatforms='${@",".join("${PLATFORMS}".split())}' \
 "
@@ -122,6 +121,9 @@ PACKAGECONFIG[gles] = "-Dgles1=enabled -Dgles2=enabled, 
-Dgles1=disabled -Dgles2
 # "egl" requires "opengl"
 PACKAGECONFIG[egl] = "-Degl=enabled, -Degl=disabled"
 
+# "opencl" requires libclc from meta-clang and spirv-tools from OE-Core
+PACKAGECONFIG[opencl] = "-Dgallium-opencl=icd 
-Dopencl-spirv=true,-Dgallium-opencl=disabled -Dopencl-spirv=false,libclc 
spirv-tools"
+
 PACKAGECONFIG[broadcom] = ""
 PACKAGECONFIG[etnaviv] = ""
 PACKAGECONFIG[freedreno] = ""
@@ -190,6 +192,8 @@ RDEPENDS:${PN}-dev = ""
 # development package of libgles3.
 RDEPENDS:libgles3-mesa-dev += "libgles2-mesa-dev"
 
+RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 
'libclc spirv-tools', '', d)}"
+
 PACKAGES =+ "libegl-mesa libegl-mesa-dev \
  libosmesa libosmesa-dev \
  libgl-mesa libgl-mesa-dev \
@@ -198,6 +202,7 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \
  libgles1-mesa libgles1-mesa-dev \
  libgles2-mesa libgles2-mesa-dev \
  libgles3-mesa libgles3-mesa-dev \
+ libopencl-mesa libopencl-mesa-dev \
  libxatracker libxatracker-dev \
  mesa-megadriver mesa-vulkan-drivers \
  mesa-vdpau-drivers \
@@ -230,7 +235,8 @@ python __anonymous() {
   ("opengl", "libgl", "libgl1"),
   ("gles", "libgles1", "libglesv1-cm1"),
   ("gles", "libgles2", "libglesv2-2"),
-  ("gles", "libgles3",)):
+  ("gles", "libgles3",),
+  ("opencl", "libopencl",)):
 if not p[0] in pkgconfig:
 continue
 mlprefix = d.getVar("MLPREFIX")
@@ -290,6 +296,7 @@ FILES:libgbm = "${libdir}/libgbm.so.*"
 FILES:libgles1-mesa = "${libdir}/libGLESv1*.so.*"
 FILES:libgles2-mesa = "${libdir}/libGLESv2.so.*"
 FILES:libgl-mesa = "${libdir}/libGL.so.*"
+FILES:libopencl-mesa = "${libdir}/libMesaOpenCL.so.* 
${sysconfdir}/OpenCL/vendors/mesa.icd"
 FILES:libglapi = "${libdir}/libglapi.so.*"
 FILES:libosmesa = "${libdir}/libOSMesa.so.*"
 FILES:libxatracker = "${libdir}/libxatracker.so.*"
-- 
2.35.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163331): 
https://lists.openembedded.org/g/openembedded-core/message/163331
Mute This Topic: https://lists.openembedded.org/mt/89821896/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe-core][PATCH 1/1] expect: modify fixline1 script

2022-03-16 Thread Richard Purdie
On Wed, 2022-03-16 at 08:40 +, Richard Purdie via lists.openembedded.org
wrote:
> On Tue, 2022-03-15 at 15:45 -0700, Joe Slater wrote:
> > fixline1 needs to be processed by fixline1, but we
> > short-circuit that.  Enter the multi-line shebang which
> > I am a bit queasy about, but expect loves it.
> > 
> > Signed-off-by: Joe Slater 
> > ---
> >  .../expect/0001-fixline1-fix-line-1.patch | 31 +++
> >  meta/recipes-devtools/expect/expect_5.45.4.bb |  1 +
> >  2 files changed, 32 insertions(+)
> >  create mode 100644 
> > meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch
> > 
> > diff --git 
> > a/meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch 
> > b/meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch
> > new file mode 100644
> > index 00..d6f5d7ff0e
> > --- /dev/null
> > +++ b/meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch
> > @@ -0,0 +1,31 @@
> > +From eef7c44c10de32ba399ab162cb5799fafdce3fa5 Mon Sep 17 00:00:00 2001
> > +From: Joe Slater 
> > +Date: Tue, 15 Mar 2022 22:00:04 +
> > +Subject: [PATCH] fixline1: fix line 1
> > +
> > +Ironically, fixline1 needs its first line modified by
> > +fixline1.  We do that, manually.
> > +
> > +Upstream-Status: Pending
> > +
> 
> This probably doesn't stand much chance of making it upstream so Pending 
> should
> probably be "Inappropriate [OE specific cross build setup]"?

I changed this as it is easier than de-queuing and retesting!

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163330): 
https://lists.openembedded.org/g/openembedded-core/message/163330
Mute This Topic: https://lists.openembedded.org/mt/89810365/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [OC-core] [PATCH] systemd: Update 250.3 -> 250.4

2022-03-16 Thread Richard Neill
The following security and bug-fix patches are included as part of the 250.4
update:

c6603da3ad boot: Properly check status code of console_key_read
2198c08d07 core: really skip automatic restart when a JOB_STOP job is pending
367041af81 pid1: set SYSTEMD_NSS_DYNAMIC_BYPASS=1 env var for dbus-daemon
160eeab224 virt: Fix Xen Dom0 detection logic to no longer report as VM
514a4c051c network: bridge: fix endian of vlan protocol
4dbc210124 resolve: fix possible memleak
d82bd80cf4 resolve: fix potential memleak and use-after-free
dcba78244e util: another set of CVE-2021-4034 assert()s
74dfb51f70 sd-dhcp6-client: fix sending prefix delegation request during rebind
df59c65a23 mkdir: allow to create directory whose path contains symlink
ae95ca27be sd-dhcp-lease: fix memleak
2b04d3b3fc sd-dhcp-lease: fix reading unaligned memory
1ef56ad928 network: xfrm: refuse zero interface ID
7dc0f80588 sd-dhcp-lease: fix a memory leak in dhcp_lease_parse_search_domains
426807c54b sd-dhcp-lease: fix an infinite loop found by the fuzzer
0456e3 oomd: fix race with path unavailability when killing cgroups

As the following two patches:

0001-mkdir-allow-to-create-directory-whose-path-contains-.patch
0001-src-fundamental-list-fundamental_source_paths-using-.patch

have been merged in 250.4 or replaced, remove them.

Signed-off-by: Richard Neill 
---
 ...md-boot_250.3.bb => systemd-boot_250.4.bb} |   0
 meta/recipes-core/systemd/systemd.inc |   6 +-
 ...reate-directory-whose-path-contains-.patch | 130 --
 ...list-fundamental_source_paths-using-.patch |  28 
 .../{systemd_250.3.bb => systemd_250.4.bb}|   1 -
 5 files changed, 2 insertions(+), 163 deletions(-)
 rename meta/recipes-core/systemd/{systemd-boot_250.3.bb => 
systemd-boot_250.4.bb} (100%)
 delete mode 100644 
meta/recipes-core/systemd/systemd/0001-mkdir-allow-to-create-directory-whose-path-contains-.patch
 delete mode 100644 
meta/recipes-core/systemd/systemd/0001-src-fundamental-list-fundamental_source_paths-using-.patch
 rename meta/recipes-core/systemd/{systemd_250.3.bb => systemd_250.4.bb} (99%)

diff --git a/meta/recipes-core/systemd/systemd-boot_250.3.bb 
b/meta/recipes-core/systemd/systemd-boot_250.4.bb
similarity index 100%
rename from meta/recipes-core/systemd/systemd-boot_250.3.bb
rename to meta/recipes-core/systemd/systemd-boot_250.4.bb
diff --git a/meta/recipes-core/systemd/systemd.inc 
b/meta/recipes-core/systemd/systemd.inc
index e69738add5..ac454b8afd 100644
--- a/meta/recipes-core/systemd/systemd.inc
+++ b/meta/recipes-core/systemd/systemd.inc
@@ -14,10 +14,8 @@ LICENSE = "GPL-2.0-only & LGPL-2.1-only"
 LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
 
file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"

-SRCREV = "1b003bbc806198dbdd57b405d968f30565495e70"
+SRCREV = "c3aead556847dd2694d559620123b65ff16afe8c"
 SRCBRANCH = "v250-stable"
-SRC_URI = 
"git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH} 
\
-   
file://0001-src-fundamental-list-fundamental_source_paths-using-.patch \
-   "
+SRC_URI = 
"git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH}"

 S = "${WORKDIR}/git"
diff --git 
a/meta/recipes-core/systemd/systemd/0001-mkdir-allow-to-create-directory-whose-path-contains-.patch
 
b/meta/recipes-core/systemd/systemd/0001-mkdir-allow-to-create-directory-whose-path-contains-.patch
deleted file mode 100644
index 003db430b7..00
--- 
a/meta/recipes-core/systemd/systemd/0001-mkdir-allow-to-create-directory-whose-path-contains-.patch
+++ /dev/null
@@ -1,130 +0,0 @@
-From b060c53503339c45808efeb4294a03105a2999a5 Mon Sep 17 00:00:00 2001
-From: Yu Watanabe 
-Date: Wed, 2 Feb 2022 14:05:45 +0900
-Subject: [PATCH] mkdir: allow to create directory whose path contains symlink
-Cc: pa...@zhukoff.net
-
-Upstream-Status: Backport
-Upstream-Url: https://github.com/systemd/systemd/pull/22359
-
-Signed-off-by: Pavel Zhukov 
-
-
-core/mount: fail early if directory cannot be created
-
-Prompted by #22334.
-
-mkdir: CHASE_NONEXISTENT cannot used in chase_symlinks_and_stat()
-
-mkdir: allow to create directory whose path contains symlink
-
-Fixes a regression caused by 3008a6f21c1c42efe852d69798a2fdd63fe657ec.
-
-Before the commit, when `mkdir_parents_internal()` is called from `mkdir_p()`,
-it uses `_mkdir()` as `flag` is zero. But after the commit, 
`mkdir_safe_internal()`
-is always used. Hence, if the path contains a symlink, it fails with -ENOTDIR.
-
-To fix the issue, this makes `mkdir_p()` calls `mkdir_parents_internal()` with
-MKDIR_FOLLOW_SYMLINK flag.
-
-Fixes #22334.
-
-test: add a test for mkdir_p()

- src/basic/mkdir.c |  4 ++--
- src/core/mount.c  |  4 +++-
- src/test/meson.build  |  2 ++
- src/test/test-mkdir.c | 30 ++
- 4 files changed, 37 insertions(+), 3 deletions(-)
- create mode 100644 src/test/test-mkdir.c
-
-diff --git a/src/basic/mkdir.c 

Re: [OE-core] [PATCH 2/3] lttng-modules: remove redundant devupstream assignments

2022-03-16 Thread Richard Purdie
On Tue, 2022-03-15 at 16:23 +, Ross Burton wrote:
> These are set by devupstream, so they don't need to be set in the recipe.
> 
> Signed-off-by: Ross Burton 
> ---
>  meta/recipes-kernel/lttng/lttng-modules_2.13.1.bb | 5 -
>  1 file changed, 5 deletions(-)
> 
> diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.13.1.bb 
> b/meta/recipes-kernel/lttng/lttng-modules_2.13.1.bb
> index a8e4cc5afa..80877bcf5e 100644
> --- a/meta/recipes-kernel/lttng/lttng-modules_2.13.1.bb
> +++ b/meta/recipes-kernel/lttng/lttng-modules_2.13.1.bb
> @@ -42,11 +42,6 @@ python do_package:prepend() {
>  }
>  
>  BBCLASSEXTEND = "devupstream:target"
> -LIC_FILES_CHKSUM:class-devupstream = 
> "file://LICENSE;md5=0464cff101a009c403cd2ed65d01d4c4"
> -DEFAULT_PREFERENCE:class-devupstream = "-1"
>  SRC_URI:class-devupstream = 
> "git://git.lttng.org/lttng-modules;branch=stable-2.13"
> -
>  SRCREV:class-devupstream = "7584cfc04914cb0842a986e9808686858b9c8630"
> -PV:class-devupstream = "2.13.1+git${SRCPV}"
> -S:class-devupstream = "${WORKDIR}/git"
>  SRCREV_FORMAT ?= "lttng_git"

I think you need to leave PV?

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163328): 
https://lists.openembedded.org/g/openembedded-core/message/163328
Mute This Topic: https://lists.openembedded.org/mt/89801716/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0

2022-03-16 Thread Matthias Klein
Hello Markus,

Thanks for the quick help!

The variant " to remove x11 " seems to build (incrementally). However, the SDK 
is still building.
After that I will test the variant regarding dri3. After that I will also do a 
full/clean build.

Afterwards I will report. But it will take a few hours ...

Many greetings,
Matthias

Von: openembedded-core@lists.openembedded.org 
 Im Auftrag von Markus Volk via 
lists.openembedded.org
Gesendet: Mittwoch, 16. März 2022 09:35
An: openembedded-core@lists.openembedded.org
Betreff: Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 
22.0.0


What does happen, if adding dri3 like this?

PACKAGECONFIG:append:class-native = " dri3"

PACKAGECONFIG:append:class-nativesdk = "dri3"




Am 16.03.22 um 09:17 schrieb Markus Volk:
Hi Matthias,

since you have disabled x11 for target ... does it help to also remove it from 
native and nativesdk ?

PACKAGECONFIG:remove:class-native = " x11"

PACKAGECONFIG:remove:class-nativesdk = " x11"

Regards,

Markus

Am 16.03.22 um 08:40 schrieb Matthias Klein:

Hello,

I am using mesa in conjunction with meta-qt6 without X11/wayland on an iMX6 
with etnaviv.

So in a bbappend I have: PACKAGECONFIG:append = " etnaviv".

I use poky with the following DISTRO_FEATURES:
DISTRO_FEATURES:remove = "x11 wayland vulkan 3g nfc nfs zeroconf"
DISTRO_FEATURES:append = " directfb opengl"

Unfortunately, nativesdk-mesa now no longer builds on build via "-c 
populate_sdk". However, the package for the target still builds.

| ../mesa-22.0.0/meson.build:520: WARNING: cannot auto-detect -mtls-dialect 
when cross-compiling, using compiler default
|
| ../mesa-22.0.0/meson.build:614:2: ERROR: Problem encountered: kmsro requires 
dri3 for X11 support

I compared the meson calls on the target and SDK builds:
NOTE: Executing meson -Dshared-glapi=enabled -Dgallium-opencl=disabled 
-Dglx-read-only-text=true -Dplatforms= -Ddri3=disabled -Degl=enabled 
-Delf-tls=true -Dgallium-drivers=swrast,etnaviv, virgl -Dllvm=disabled 
-Dgbm=enabled -Dgles1=enabled -Dgles2=enabled -Dlmsensors=disabled 
-Dopengl=true -
Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dglx=disabled -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled. ..

NOTE: Executing meson -Dshared-glapi=enabled -Dgallium-opencl=disabled 
-Dglx-read-only-text=true -Dplatforms=x11 -Ddri3=disabled -Degl=enabled 
-Delf-tls=true -Dgallium-drivers=swrast, etnaviv -Dllvm=disabled -Dgbm=enabled 
-Dgles1=disabled -Dgles2=disabled -Dlmsensors=disabled -Dopengl=true 
-Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled. ..

Does anyone have any idea what I could do to get the SDK built?

Many greetings,
Matthias









-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163327): 
https://lists.openembedded.org/g/openembedded-core/message/163327
Mute This Topic: https://lists.openembedded.org/mt/89817006/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe-core][PATCH 1/1] expect: modify fixline1 script

2022-03-16 Thread Richard Purdie
On Tue, 2022-03-15 at 15:45 -0700, Joe Slater wrote:
> fixline1 needs to be processed by fixline1, but we
> short-circuit that.  Enter the multi-line shebang which
> I am a bit queasy about, but expect loves it.
> 
> Signed-off-by: Joe Slater 
> ---
>  .../expect/0001-fixline1-fix-line-1.patch | 31 +++
>  meta/recipes-devtools/expect/expect_5.45.4.bb |  1 +
>  2 files changed, 32 insertions(+)
>  create mode 100644 
> meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch
> 
> diff --git 
> a/meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch 
> b/meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch
> new file mode 100644
> index 00..d6f5d7ff0e
> --- /dev/null
> +++ b/meta/recipes-devtools/expect/expect/0001-fixline1-fix-line-1.patch
> @@ -0,0 +1,31 @@
> +From eef7c44c10de32ba399ab162cb5799fafdce3fa5 Mon Sep 17 00:00:00 2001
> +From: Joe Slater 
> +Date: Tue, 15 Mar 2022 22:00:04 +
> +Subject: [PATCH] fixline1: fix line 1
> +
> +Ironically, fixline1 needs its first line modified by
> +fixline1.  We do that, manually.
> +
> +Upstream-Status: Pending
> +

This probably doesn't stand much chance of making it upstream so Pending should
probably be "Inappropriate [OE specific cross build setup]"?

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163326): 
https://lists.openembedded.org/g/openembedded-core/message/163326
Mute This Topic: https://lists.openembedded.org/mt/89810365/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0

2022-03-16 Thread Markus Volk

What does happen, if adding dri3 like this?

|

PACKAGECONFIG:append:class-native = " dri3" |

PACKAGECONFIG:append:class-nativesdk = "dri3"|


|

Am 16.03.22 um 09:17 schrieb Markus Volk:

Hi Matthias,

since you have disabled x11 for target ... does it help to also remove 
it from native and nativesdk ?


PACKAGECONFIG:remove:class-native = " x11"

PACKAGECONFIG:remove:class-nativesdk = " x11"

Regards,

Markus

Am 16.03.22 um 08:40 schrieb Matthias Klein:

Hello,

I am using mesa in conjunction with meta-qt6 without X11/wayland on 
an iMX6 with etnaviv.


So in a bbappend I have: PACKAGECONFIG:append = " etnaviv".

I use poky with the following DISTRO_FEATURES:
DISTRO_FEATURES:remove = "x11 wayland vulkan 3g nfc nfs zeroconf"
DISTRO_FEATURES:append = " directfb opengl"

Unfortunately, nativesdk-mesa now no longer builds on build via "-c 
populate_sdk". However, the package for the target still builds.


| ../mesa-22.0.0/meson.build:520: WARNING: cannot auto-detect 
-mtls-dialect when cross-compiling, using compiler default

|
| ../mesa-22.0.0/meson.build:614:2: ERROR: Problem encountered: kmsro 
requires dri3 for X11 support


I compared the meson calls on the target and SDK builds:
NOTE: Executing meson -Dshared-glapi=enabled 
-Dgallium-opencl=disabled -Dglx-read-only-text=true -Dplatforms= 
-Ddri3=disabled -Degl=enabled -Delf-tls=true 
-Dgallium-drivers=swrast,etnaviv, virgl -Dllvm=disabled -Dgbm=enabled 
-Dgles1=enabled -Dgles2=enabled -Dlmsensors=disabled -Dopengl=true -
Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dglx=disabled 
-Dgallium-xa=disabled -Dgallium-xvmc=disabled. ..


NOTE: Executing meson -Dshared-glapi=enabled 
-Dgallium-opencl=disabled -Dglx-read-only-text=true -Dplatforms=x11 
-Ddri3=disabled -Degl=enabled -Delf-tls=true 
-Dgallium-drivers=swrast, etnaviv -Dllvm=disabled -Dgbm=enabled 
-Dgles1=disabled -Dgles2=disabled -Dlmsensors=disabled -Dopengl=true 
-Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled. ..


Does anyone have any idea what I could do to get the SDK built?

Many greetings,
Matthias






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163325): 
https://lists.openembedded.org/g/openembedded-core/message/163325
Mute This Topic: https://lists.openembedded.org/mt/89817006/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0

2022-03-16 Thread Markus Volk

Hi Matthias,

since you have disabled x11 for target ... does it help to also remove 
it from native and nativesdk ?


PACKAGECONFIG:remove:class-native = " x11"

PACKAGECONFIG:remove:class-nativesdk = " x11"

Regards,

Markus

Am 16.03.22 um 08:40 schrieb Matthias Klein:

Hello,

I am using mesa in conjunction with meta-qt6 without X11/wayland on an iMX6 
with etnaviv.

So in a bbappend I have: PACKAGECONFIG:append = " etnaviv".

I use poky with the following DISTRO_FEATURES:
DISTRO_FEATURES:remove = "x11 wayland vulkan 3g nfc nfs zeroconf"
DISTRO_FEATURES:append = " directfb opengl"

Unfortunately, nativesdk-mesa now no longer builds on build via "-c 
populate_sdk". However, the package for the target still builds.

| ../mesa-22.0.0/meson.build:520: WARNING: cannot auto-detect -mtls-dialect 
when cross-compiling, using compiler default
|
| ../mesa-22.0.0/meson.build:614:2: ERROR: Problem encountered: kmsro requires 
dri3 for X11 support

I compared the meson calls on the target and SDK builds:
NOTE: Executing meson -Dshared-glapi=enabled -Dgallium-opencl=disabled 
-Dglx-read-only-text=true -Dplatforms= -Ddri3=disabled -Degl=enabled 
-Delf-tls=true -Dgallium-drivers=swrast,etnaviv, virgl -Dllvm=disabled 
-Dgbm=enabled -Dgles1=enabled -Dgles2=enabled -Dlmsensors=disabled 
-Dopengl=true -
Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dglx=disabled -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled. ..

NOTE: Executing meson -Dshared-glapi=enabled -Dgallium-opencl=disabled 
-Dglx-read-only-text=true -Dplatforms=x11 -Ddri3=disabled -Degl=enabled 
-Delf-tls=true -Dgallium-drivers=swrast, etnaviv -Dllvm=disabled -Dgbm=enabled 
-Dgles1=disabled -Dgles2=disabled -Dlmsensors=disabled -Dopengl=true 
-Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled. ..

Does anyone have any idea what I could do to get the SDK built?

Many greetings,
Matthias


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163324): 
https://lists.openembedded.org/g/openembedded-core/message/163324
Mute This Topic: https://lists.openembedded.org/mt/89817006/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] nativesdk-mesa fails to build since upgrade to version 22.0.0

2022-03-16 Thread Matthias Klein
Hello,

I am using mesa in conjunction with meta-qt6 without X11/wayland on an iMX6 
with etnaviv.

So in a bbappend I have: PACKAGECONFIG:append = " etnaviv".

I use poky with the following DISTRO_FEATURES:
DISTRO_FEATURES:remove = "x11 wayland vulkan 3g nfc nfs zeroconf"
DISTRO_FEATURES:append = " directfb opengl"

Unfortunately, nativesdk-mesa now no longer builds on build via "-c 
populate_sdk". However, the package for the target still builds.

| ../mesa-22.0.0/meson.build:520: WARNING: cannot auto-detect -mtls-dialect 
when cross-compiling, using compiler default
| 
| ../mesa-22.0.0/meson.build:614:2: ERROR: Problem encountered: kmsro requires 
dri3 for X11 support

I compared the meson calls on the target and SDK builds:
NOTE: Executing meson -Dshared-glapi=enabled -Dgallium-opencl=disabled 
-Dglx-read-only-text=true -Dplatforms= -Ddri3=disabled -Degl=enabled 
-Delf-tls=true -Dgallium-drivers=swrast,etnaviv, virgl -Dllvm=disabled 
-Dgbm=enabled -Dgles1=enabled -Dgles2=enabled -Dlmsensors=disabled 
-Dopengl=true -
Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dglx=disabled -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled. ..

NOTE: Executing meson -Dshared-glapi=enabled -Dgallium-opencl=disabled 
-Dglx-read-only-text=true -Dplatforms=x11 -Ddri3=disabled -Degl=enabled 
-Delf-tls=true -Dgallium-drivers=swrast, etnaviv -Dllvm=disabled -Dgbm=enabled 
-Dgles1=disabled -Dgles2=disabled -Dlmsensors=disabled -Dopengl=true 
-Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled. ..

Does anyone have any idea what I could do to get the SDK built?

Many greetings,
Matthias



log.do_configure.968764
Description: log.do_configure.968764
Build started at 2022-03-15T18:45:07.585380
Main binary: 
/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/recipe-sysroot-native/usr/bin/nativepython3
Build Options: -Dshared-glapi=enabled -Dgallium-opencl=disabled 
-Dglx-read-only-text=true -Dplatforms=x11 -Ddri3=disabled -Degl=enabled 
-Delf-tls=true -Dgallium-drivers=swrast,etnaviv -Dllvm=disabled -Dgbm=enabled 
-Dgles1=disabled -Dgles2=disabled -Dlmsensors=disabled -Dopengl=true 
-Dosmesa=false -Dlibunwind=disabled -Dgallium-va=disabled 
-Dgallium-vdpau=disabled -Dvulkan-drivers= -Dgallium-xa=disabled 
-Dgallium-xvmc=disabled 
-Dprefix=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-sdk-linux/usr 
-Dbindir=bin -Ddatadir=share -Dincludedir=include -Dinfodir=share/info 
-Dlibdir=lib -Dlibexecdir=libexec 
-Dlocalstatedir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-sdk-linux/var
 -Dmandir=share/man -Dsbindir=bin 
-Dsharedstatedir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-sdk-linux/com
 
-Dsysconfdir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-sdk-linux/etc
 -Dbuildtype=plain -Dwrap_mode=nodownload '--cross-file 
/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/meson.cross'
 '--native-file 
/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/meson.native'
Python system: Linux
The Meson build system
Version: 0.61.2
Source dir: 
/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/mesa-22.0.0
Build dir: 
/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/build
Build type: cross build
Program python3 found: YES 
(/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3)
Running command: 
/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3
 bin/meson_get_version.py
--- stdout ---
22.0.0
--- stderr ---


Project name: mesa
Project version: 22.0.0
Sanity testing C compiler: x86_64-sdk-linux-gcc 
--sysroot=/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/recipe-sysroot
Is cross compiler: True.
Sanity check compiler command line: x86_64-sdk-linux-gcc 
--sysroot=/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/recipe-sysroot
 sanitycheckc.c -o sanitycheckc_cross.exe -O2 -pipe 
-fmacro-prefix-map=/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0=/usr/src/debug/nativesdk-mesa/2_22.0.0-r0
 
-fdebug-prefix-map=/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0=/usr/src/debug/nativesdk-mesa/2_22.0.0-r0
 
-fdebug-prefix-map=/home/mak/yocto-bekolog-tx6/build/tmp/work/x86_64-nativesdk-sdk-linux/nativesdk-mesa/2_22.0.0-r0/recipe-sysroot=
 

[OE-core] [PATCH 1/2] qemuppc64.conf: Disable huge vmalloc

2022-03-16 Thread Khem Raj
This feature results in X11 crashes on Qemu since 5.13+ when it was added
disable it therefore for qemuppc64

Signed-off-by: Khem Raj 
---
 meta/conf/machine/qemuppc64.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/machine/qemuppc64.conf b/meta/conf/machine/qemuppc64.conf
index a35c40b5927..5f4f68b9816 100644
--- a/meta/conf/machine/qemuppc64.conf
+++ b/meta/conf/machine/qemuppc64.conf
@@ -13,7 +13,7 @@ SERIAL_CONSOLES ?= "115200;hvc0"
 QB_SYSTEM_NAME = "qemu-system-ppc64"
 QB_MACHINE = "-machine pseries"
 QB_CPU = "-cpu POWER9"
-QB_KERNEL_CMDLINE_APPEND = "console=hvc0"
+QB_KERNEL_CMDLINE_APPEND = "console=hvc0 nohugevmalloc"
 #QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
 QB_OPT_APPEND = "-usb -device usb-tablet"
 
-- 
2.35.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163321): 
https://lists.openembedded.org/g/openembedded-core/message/163321
Mute This Topic: https://lists.openembedded.org/mt/89816859/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/2] qemuppc64: Use smp = 2

2022-03-16 Thread Khem Raj
Speeds up the system a bit

Signed-off-by: Khem Raj 
---
 meta/conf/machine/qemuppc64.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/conf/machine/qemuppc64.conf b/meta/conf/machine/qemuppc64.conf
index 5f4f68b9816..304f06a30d2 100644
--- a/meta/conf/machine/qemuppc64.conf
+++ b/meta/conf/machine/qemuppc64.conf
@@ -13,6 +13,8 @@ SERIAL_CONSOLES ?= "115200;hvc0"
 QB_SYSTEM_NAME = "qemu-system-ppc64"
 QB_MACHINE = "-machine pseries"
 QB_CPU = "-cpu POWER9"
+QB_SMP = "-smp 2"
+
 QB_KERNEL_CMDLINE_APPEND = "console=hvc0 nohugevmalloc"
 #QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
 QB_OPT_APPEND = "-usb -device usb-tablet"
-- 
2.35.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163322): 
https://lists.openembedded.org/g/openembedded-core/message/163322
Mute This Topic: https://lists.openembedded.org/mt/89816860/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-