Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe

2023-05-02 Thread Tim Orling
On Tue, May 2, 2023 at 3:01 PM Khem Raj  wrote:

> nm cleaned tmpdir it builds and runs ok
>
> On Tue, May 2, 2023 at 2:57 PM Khem Raj  wrote:
> >
> > ah nm, I needed your patches for oe-core as well which upgrades
> > hatchling to 1.14.x but it still fails to build let me see what could
> > be going on.
> >
> > On Tue, May 2, 2023 at 2:46 PM Khem Raj  wrote:
> > >
> > > I think it needs python3-hatchling or native variant of this. It fails
> to build
> > >
> > > | ERROR Missing dependencies:
> > > |   hatchling>=1.14
> > >
> > > On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin 
> wrote:
> > > >
> > > > Signed-off-by: Trevor Gamblin 
> > > > ---
> > > >  .../python/python3-platformdirs/run-ptest |  3 ++
> > > >  .../python/python3-platformdirs_3.5.0.bb  | 35
> +++
> > > >  2 files changed, 38 insertions(+)
> > > >  create mode 100644
> meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > >  create mode 100644 meta-python/recipes-devtools/python/
> python3-platformdirs_3.5.0.bb
> > > >
> > > > diff --git
> a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > > new file mode 100644
> > > > index 0..b63c4de0d
> > > > --- /dev/null
> > > > +++
> b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > > @@ -0,0 +1,3 @@
> > > > +#!/bin/sh
> > > > +
> > > > +pytest -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}}'
> > > > diff --git a/meta-python/recipes-devtools/python/
> python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/
> python3-platformdirs_3.5.0.bb
> > > > new file mode 100644
> > > > index 0..b5ff369d0
> > > > --- /dev/null
> > > > +++ b/meta-python/recipes-devtools/python/
> python3-platformdirs_3.5.0.bb
> > > > @@ -0,0 +1,35 @@
> > > > +SUMMARY = "A small Python module for determining appropriate
> platform-specific dirs"
> > > > +HOMEPAGE = "https://github.com/platformdirs/platformdirs;
> > > > +LICENSE = "BSD-3-Clause"
> > > > +LIC_FILES_CHKSUM =
> "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
> > > > +
> > > > +SRC_URI = " \
> > > > +git://
> github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
> > > > +file://run-ptest \
> > > > +"
> > > > +
> > > > +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
> > > > +SRC_URI[sha256sum] =
> "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
> > > > +
> > > > +inherit python_setuptools_build_meta ptest


https://github.com/platformdirs/platformdirs/blob/a57f88b67210f26587d06ee77cbd0aea89e45cf9/pyproject.toml#L2

Seems like this should “inherit python_hatchling” instead of
python_setuptools_build_meta
https://git.yoctoproject.org/poky/tree/meta/classes-recipe/python_hatchling.bbclass


> > > > +
> > > > +DEPENDS += " \
> > > > +python3-hatch-vcs-native \
> > > > +python3-setuptools-scm-native \
> > > > +python3-toml-native \
> > > > +"
> > > > +
> > > > +S = "${WORKDIR}/git"
> > > > +
> > > > +RDEPENDS:${PN}-ptest += " \
> > > > +${PYTHON_PN}-appdirs \
> > > > +${PYTHON_PN}-pytest \
> > > > +${PYTHON_PN}-pytest-mock \
> > > > +"
> > > > +
> > > > +do_install_ptest() {
> > > > +install -d ${D}${PTEST_PATH}/Tests
> > > > +cp -rf ${S}/tests ${D}${PTEST_PATH}/
> > > > +}
> > > > +
> > > > +BBCLASSEXTEND = "native"
> > > > --
> > > > 2.40.0
> > > >
> > > >
> > > >
> > > >
>
> 
>
>

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



Re: [oe] [meta-oe][kirkstone][PATCH 1/1] python3-werkzeug: fix for CVE-2023-25577

2023-05-02 Thread Randy MacLeod via lists.openembedded.org

Added Armin.

On 2023-05-02 09:33, Narpat Mali via lists.openembedded.org wrote:

From: Narpat Mali

Werkzeug is a comprehensive WSGI web application library. Prior to
version 2.2.3, Werkzeug's multipart form data parser will parse an
unlimited number of parts, including file parts. Parts can be a
small amount of bytes, but each requires CPU time to parse and may
use more memory as Python data. If a request can be made to an
endpoint that accesses `request.data`, `request.form`, `request.files`,
or `request.get_data(parse_form_data=False)`, it can cause unexpectedly
high resource usage. This allows an attacker to cause a denial of
service by sending crafted multipart data to an endpoint that will
parse it. The amount of CPU time required can block worker processes
from handling legitimate requests. The amount of RAM required can
trigger an out of memory kill of the process. Unlimited file parts
can use up memory and file handles. If many concurrent requests are
sent continuously, this can exhaust or kill all available workers.
Version 2.2.3 contains a patch for this issue.

Signed-off-by: Narpat Mali
---
  .../python3-werkzeug/CVE-2023-25577.patch | 232 ++
  .../python/python3-werkzeug_2.1.1.bb  |   2 +
  2 files changed, 234 insertions(+)
  create mode 100644 
meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-25577.patch

diff --git 
a/meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-25577.patch 
b/meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-25577.patch
new file mode 100644
index 00..02109c2050
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-25577.patch
@@ -0,0 +1,232 @@
+From 5a56cdcbaec2153cd67596c6c2c8056e1ea5ed56 Mon Sep 17 00:00:00 2001
+From: David Lord
+Date: Tue, 2 May 2023 11:31:10 +
+Subject: [PATCH] Merge pull request from GHSA-xg9f-g7g7-2323
+
+limit the maximum number of multipart form parts
+
+CVE: CVE-2023-25577
+
+Upstream-Status: Backport 
[https://github.com/pallets/werkzeug/commit/517cac5a804e8c4dc4ed038bb20dacd038e7a9f1]



That's the merge commit:

❯ git show 517cac5a804e8c4dc4ed038bb20dacd038e7a9f1
commit 517cac5a804e8c4dc4ed038bb20dacd038e7a9f1
Merge: cf275f42 babc8d9e
Author: David Lord 
Date:   Tue Feb 14 12:08:57 2023

    Merge pull request from GHSA-xg9f-g7g7-2323

    limit the maximum number of multipart form parts

I think you want to reference:

https://github.com/pallets/werkzeug/commit/fe899d0cdf767a7289a8bf746b7f72c2907a1b4b




+Signed-off-by: Narpat Mali
+---
+ CHANGES.rst  |  5 +
+ docs/request_data.rst| 37 +---
+ src/werkzeug/formparser.py   | 12 ++-
+ src/werkzeug/sansio/multipart.py |  8 +++
+ src/werkzeug/wrappers/request.py |  8 +++
+ tests/test_formparser.py |  9 
+ 6 files changed, 61 insertions(+), 18 deletions(-)



❯ git show fe899d0cdf767a7289a8bf746b7f72c2907a1b4b | diffstat
 CHANGES.rst  |    4 
 src/werkzeug/formparser.py   |   13 -
 src/werkzeug/sansio/multipart.py |    7 +++
 src/werkzeug/wrappers/request.py |   11 +++
 tests/test_formparser.py |    9 +
 5 files changed, 43 insertions(+), 1 deletion(-)

I'm out of time for today so can you look at the diff between the 
patches and

explain that and/or submit a v2 ?


Some whitespace errors if you're into fixing them:

meta-oe.git on kirkstone
❯ git am /tmp/narpat-w.eml
Applying: python3-werkzeug: fix for CVE-2023-25577
.git/rebase-apply/patch:40: trailing whitespace.

.git/rebase-apply/patch:48: trailing whitespace.

.git/rebase-apply/patch:56: trailing whitespace.

.git/rebase-apply/patch:94: trailing whitespace.

.git/rebase-apply/patch:95: trailing whitespace.

warning: squelched 14 whitespace errors
warning: 19 lines add whitespace errors.

I think you said that for the commit you sent to oe-core,
the whitespace noise was coming from the devtool workflow.
If so we should at least open a bugzilla defect or if it's
simple to fix, just send a patch. Please comment so we know
what to expect.

../Randy



+
+diff --git a/CHANGES.rst b/CHANGES.rst
+index a351d7c..6e809ba 100644
+--- a/CHANGES.rst
 b/CHANGES.rst
+@@ -1,5 +1,10 @@
+ .. currentmodule:: werkzeug
+
++-   Specify a maximum number of multipart parts, default 1000, after which a
++``RequestEntityTooLarge`` exception is raised on parsing. This mitigates 
a DoS
++attack where a larger number of form/file parts would result in 
disproportionate
++resource use.
++
+ Version 2.1.1
+ -
+
+diff --git a/docs/request_data.rst b/docs/request_data.rst
+index 83c6278..e55841e 100644
+--- a/docs/request_data.rst
 b/docs/request_data.rst
+@@ -73,23 +73,26 @@ read the stream *or* call :meth:`~Request.get_data`.
+ Limiting Request Data
+ -
+
+-To avoid being the victim of a DDOS attack you can set the maximum
+-accepted content 

Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe

2023-05-02 Thread Khem Raj
nm cleaned tmpdir it builds and runs ok

On Tue, May 2, 2023 at 2:57 PM Khem Raj  wrote:
>
> ah nm, I needed your patches for oe-core as well which upgrades
> hatchling to 1.14.x but it still fails to build let me see what could
> be going on.
>
> On Tue, May 2, 2023 at 2:46 PM Khem Raj  wrote:
> >
> > I think it needs python3-hatchling or native variant of this. It fails to 
> > build
> >
> > | ERROR Missing dependencies:
> > |   hatchling>=1.14
> >
> > On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin  wrote:
> > >
> > > Signed-off-by: Trevor Gamblin 
> > > ---
> > >  .../python/python3-platformdirs/run-ptest |  3 ++
> > >  .../python/python3-platformdirs_3.5.0.bb  | 35 +++
> > >  2 files changed, 38 insertions(+)
> > >  create mode 100644 
> > > meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > >  create mode 100644 
> > > meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > >
> > > diff --git 
> > > a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest 
> > > b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > new file mode 100644
> > > index 0..b63c4de0d
> > > --- /dev/null
> > > +++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > @@ -0,0 +1,3 @@
> > > +#!/bin/sh
> > > +
> > > +pytest -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}}'
> > > diff --git 
> > > a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb 
> > > b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > > new file mode 100644
> > > index 0..b5ff369d0
> > > --- /dev/null
> > > +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > > @@ -0,0 +1,35 @@
> > > +SUMMARY = "A small Python module for determining appropriate 
> > > platform-specific dirs"
> > > +HOMEPAGE = "https://github.com/platformdirs/platformdirs;
> > > +LICENSE = "BSD-3-Clause"
> > > +LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
> > > +
> > > +SRC_URI = " \
> > > +
> > > git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https 
> > > \
> > > +file://run-ptest \
> > > +"
> > > +
> > > +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
> > > +SRC_URI[sha256sum] = 
> > > "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
> > > +
> > > +inherit python_setuptools_build_meta ptest
> > > +
> > > +DEPENDS += " \
> > > +python3-hatch-vcs-native \
> > > +python3-setuptools-scm-native \
> > > +python3-toml-native \
> > > +"
> > > +
> > > +S = "${WORKDIR}/git"
> > > +
> > > +RDEPENDS:${PN}-ptest += " \
> > > +${PYTHON_PN}-appdirs \
> > > +${PYTHON_PN}-pytest \
> > > +${PYTHON_PN}-pytest-mock \
> > > +"
> > > +
> > > +do_install_ptest() {
> > > +install -d ${D}${PTEST_PATH}/Tests
> > > +cp -rf ${S}/tests ${D}${PTEST_PATH}/
> > > +}
> > > +
> > > +BBCLASSEXTEND = "native"
> > > --
> > > 2.40.0
> > >
> > >
> > > 
> > >

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



Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe

2023-05-02 Thread Khem Raj
ah nm, I needed your patches for oe-core as well which upgrades
hatchling to 1.14.x but it still fails to build let me see what could
be going on.

On Tue, May 2, 2023 at 2:46 PM Khem Raj  wrote:
>
> I think it needs python3-hatchling or native variant of this. It fails to 
> build
>
> | ERROR Missing dependencies:
> |   hatchling>=1.14
>
> On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin  wrote:
> >
> > Signed-off-by: Trevor Gamblin 
> > ---
> >  .../python/python3-platformdirs/run-ptest |  3 ++
> >  .../python/python3-platformdirs_3.5.0.bb  | 35 +++
> >  2 files changed, 38 insertions(+)
> >  create mode 100644 
> > meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> >  create mode 100644 
> > meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> >
> > diff --git 
> > a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest 
> > b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > new file mode 100644
> > index 0..b63c4de0d
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > @@ -0,0 +1,3 @@
> > +#!/bin/sh
> > +
> > +pytest -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}}'
> > diff --git 
> > a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb 
> > b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > new file mode 100644
> > index 0..b5ff369d0
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > @@ -0,0 +1,35 @@
> > +SUMMARY = "A small Python module for determining appropriate 
> > platform-specific dirs"
> > +HOMEPAGE = "https://github.com/platformdirs/platformdirs;
> > +LICENSE = "BSD-3-Clause"
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
> > +
> > +SRC_URI = " \
> > +
> > git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
> > +file://run-ptest \
> > +"
> > +
> > +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
> > +SRC_URI[sha256sum] = 
> > "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
> > +
> > +inherit python_setuptools_build_meta ptest
> > +
> > +DEPENDS += " \
> > +python3-hatch-vcs-native \
> > +python3-setuptools-scm-native \
> > +python3-toml-native \
> > +"
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +RDEPENDS:${PN}-ptest += " \
> > +${PYTHON_PN}-appdirs \
> > +${PYTHON_PN}-pytest \
> > +${PYTHON_PN}-pytest-mock \
> > +"
> > +
> > +do_install_ptest() {
> > +install -d ${D}${PTEST_PATH}/Tests
> > +cp -rf ${S}/tests ${D}${PTEST_PATH}/
> > +}
> > +
> > +BBCLASSEXTEND = "native"
> > --
> > 2.40.0
> >
> >
> > 
> >

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



Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe

2023-05-02 Thread Khem Raj
I think it needs python3-hatchling or native variant of this. It fails to build

| ERROR Missing dependencies:
|   hatchling>=1.14

On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin  wrote:
>
> Signed-off-by: Trevor Gamblin 
> ---
>  .../python/python3-platformdirs/run-ptest |  3 ++
>  .../python/python3-platformdirs_3.5.0.bb  | 35 +++
>  2 files changed, 38 insertions(+)
>  create mode 100644 
> meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
>  create mode 100644 
> meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
>
> diff --git 
> a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest 
> b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> new file mode 100644
> index 0..b63c4de0d
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +pytest -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}}'
> diff --git 
> a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb 
> b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> new file mode 100644
> index 0..b5ff369d0
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> @@ -0,0 +1,35 @@
> +SUMMARY = "A small Python module for determining appropriate 
> platform-specific dirs"
> +HOMEPAGE = "https://github.com/platformdirs/platformdirs;
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
> +
> +SRC_URI = " \
> +
> git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
> +file://run-ptest \
> +"
> +
> +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
> +SRC_URI[sha256sum] = 
> "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
> +
> +inherit python_setuptools_build_meta ptest
> +
> +DEPENDS += " \
> +python3-hatch-vcs-native \
> +python3-setuptools-scm-native \
> +python3-toml-native \
> +"
> +
> +S = "${WORKDIR}/git"
> +
> +RDEPENDS:${PN}-ptest += " \
> +${PYTHON_PN}-appdirs \
> +${PYTHON_PN}-pytest \
> +${PYTHON_PN}-pytest-mock \
> +"
> +
> +do_install_ptest() {
> +install -d ${D}${PTEST_PATH}/Tests
> +cp -rf ${S}/tests ${D}${PTEST_PATH}/
> +}
> +
> +BBCLASSEXTEND = "native"
> --
> 2.40.0
>
>
> 
>

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



Re: [oe] [meta-oe][PATCH] xl4-gptp: add new recipe for version 1.2.3

2023-05-02 Thread Khem Raj
fails on musl

https://errors.yoctoproject.org/Errors/Details/702712/

On Tue, May 2, 2023 at 3:57 AM Johannes Zink  wrote:
>
> The xl4-gptp stack is a 802.1AS (including 802.1AS-REV) gPTP Stack for
> bridge and endpoint mode, supporting single and multiple domains.
>
> Also add the recipes for the required dependencies xl4-combase and
> xl4-unibase.
>
> Signed-off-by: Johannes Zink 
> ---
>  ...ls-avoid-errors-due-to-missing-files.patch | 32 +++
>  .../xl4-gptp/xl4-combase_1.1.3.bb | 23 +
>  .../xl4-gptp/xl4-gptp_1.2.3.bb| 17 ++
>  ...ls-avoid-errors-due-to-missing-files.patch | 32 +++
>  .../xl4-gptp/xl4-unibase_1.4.4.bb | 23 +
>  5 files changed, 127 insertions(+)
>  create mode 100644 
> meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
>  create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
>  create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
>  create mode 100644 
> meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
>  create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb
>
> diff --git 
> a/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
>  
> b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
> new file mode 100644
> index ..8dffec233c79
> --- /dev/null
> +++ 
> b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
> @@ -0,0 +1,32 @@
> +From c4ccf4a32166a96d0f78dc74dac5b9abf40431c1 Mon Sep 17 00:00:00 2001
> +From: Johannes Zink 
> +Date: Tue, 25 Apr 2023 10:53:55 +0200
> +Subject: [PATCH] autotools: avoid errors due to missing files
> +
> +without setting foreign in AM_INIT_AUTOMAKE autotools will complain
> +if no AUTHORS, Changelog and NEWS file exist. Instead of generating them
> +with a custom tool, just use the non-gnu foreign setting.
> +
> +This facilitates build system integration
> +
> +Upstream-Status: Submitted
> +[https://github.com/xl4-shiro/xl4combase/pull/1]
> +
> +Signed-off-by: Johannes Zink 
> +---
> + configure.ac | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 9622a26226fa..fde567a3d21e 100644
> +--- a/configure.ac
>  b/configure.ac
> +@@ -5,7 +5,7 @@ AC_PREREQ([2.65])
> + AC_INIT([xl4combase], [1.1.3], [sh...@excelfore.com])
> + AC_SUBST(PACKAGE_DESC,"Excelfore communication base library")
> +
> +-AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
> ++AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects foreign])
> + AM_PROG_AR
> + LT_PREREQ([2.2])
> + LT_INIT([static])
> diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb 
> b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
> new file mode 100644
> index ..57fd76392142
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
> @@ -0,0 +1,23 @@
> +DESCRIPTION="Communication Base Library for the Excelfore gPTP Stack"
> +HOMEPAGE="https://github.com/xl4-shiro/xl4combase;
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +SRC_URI = "\
> +   
> git://g...@github.com/xl4-shiro/xl4combase.git;protocol=ssh;branch=master \
> +file://0001-autotools-avoid-errors-due-to-missing-files.patch \
> +"
> +
> +SRCREV = "08b38bc8fd074d261a604d5e08d5ee91c8edde28"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit autotools pkgconfig
> +
> +EXTRA_OECONF = "--disable-unittest"
> +
> +DEPENDS += "xl4-unibase"
> +
> +do_install:append() {
> +   rm -rf ${D}/${libdir}/python3
> +}
> diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb 
> b/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
> new file mode 100644
> index ..0c4edb546095
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
> @@ -0,0 +1,17 @@
> +DESCRIPTION = "Excelfore gPTP (IEEE802.1as) Stack"
> +HOMEPAGE = "https://github.com/xl4-shiro/excelfore-gptp;
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +SRC_URI = 
> "git://github.com/xl4-shiro/excelfore-gptp.git;protocol=https;branch=master"
> +SRC_URI[sha256sum] = 
> "9c50427a16785f1998186b1d4882e7de5bdf6c3884775d7ff4291efdbbdfbc38"
> +SRCREV = "ab6bafe44f367a92fb44c6bce84746d96ddfaa9e"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit autotools pkgconfig
> +
> +EXTRA_OECONF = "--disable-unittest --disable-understpl"
> +EXTRA_OEMAKE = "STAGING_DIR_HOST=${STAGING_DIR_HOST}"
> +
> +DEPENDS += "xl4-unibase xl4-combase"
> diff --git 
> a/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
>  
> 

[oe] [meta-oe][PATCH 2/2] pointercal: Add native & nativestdk package support

2023-05-02 Thread Bhargav Das
From: Bhargav Das 

Add support for building native and nativesdk variants.

Signed-off-by: Bhargav Das 
---
 meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb 
b/meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb
index d3e797332..9b72ffefe 100644
--- a/meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb
+++ b/meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb
@@ -20,3 +20,5 @@ do_install() {
 ALLOW_EMPTY:${PN} = "1"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 INHIBIT_DEFAULT_DEPS = "1"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1


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



[oe] [meta-oe][PATCH 1/2] tslib: Add native & nativestdk package support

2023-05-02 Thread Bhargav Das
From: Bhargav Das 

Add support for building native and nativesdk variants.

Signed-off-by: Bhargav Das 
---
 meta-oe/recipes-graphics/tslib/tslib_1.22.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-graphics/tslib/tslib_1.22.bb 
b/meta-oe/recipes-graphics/tslib/tslib_1.22.bb
index c2000b264..cb2563225 100644
--- a/meta-oe/recipes-graphics/tslib/tslib_1.22.bb
+++ b/meta-oe/recipes-graphics/tslib/tslib_1.22.bb
@@ -81,3 +81,5 @@ FILES:tslib-uinput += "${bindir}/ts_uinput"
 
 FILES:tslib-tests = "${bindir}/ts_harvest ${bindir}/ts_print 
${bindir}/ts_print_raw ${bindir}/ts_print_mt \
  ${bindir}/ts_test ${bindir}/ts_test_mt 
${bindir}/ts_verify ${bindir}/ts_finddev ${bindir}/ts_conf"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1


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



[oe] [meta-oe][kirkstone][PATCH 2/2] pointercal: Add native & nativestdk package support

2023-05-02 Thread Bhargav Das
From: Bhargav Das 

Add support for building native and nativesdk variants.

Signed-off-by: Bhargav Das 
---
 meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb 
b/meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb
index d3e797332..9b72ffefe 100644
--- a/meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb
+++ b/meta-oe/recipes-bsp/pointercal/pointercal_0.0.bb
@@ -20,3 +20,5 @@ do_install() {
 ALLOW_EMPTY:${PN} = "1"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 INHIBIT_DEFAULT_DEPS = "1"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1


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



[oe] [meta-oe][kirkstone][PATCH 1/2] tslib: Add native & nativestdk package support

2023-05-02 Thread Bhargav Das
From: Bhargav Das 

Add support for building native and nativesdk variants.

Signed-off-by: Bhargav Das 
---
 meta-oe/recipes-graphics/tslib/tslib_1.22.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-graphics/tslib/tslib_1.22.bb 
b/meta-oe/recipes-graphics/tslib/tslib_1.22.bb
index c2000b264..cb2563225 100644
--- a/meta-oe/recipes-graphics/tslib/tslib_1.22.bb
+++ b/meta-oe/recipes-graphics/tslib/tslib_1.22.bb
@@ -81,3 +81,5 @@ FILES:tslib-uinput += "${bindir}/ts_uinput"
 
 FILES:tslib-tests = "${bindir}/ts_harvest ${bindir}/ts_print 
${bindir}/ts_print_raw ${bindir}/ts_print_mt \
  ${bindir}/ts_test ${bindir}/ts_test_mt 
${bindir}/ts_verify ${bindir}/ts_finddev ${bindir}/ts_conf"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.25.1


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



Re: [oe] [meta-oe][kirkstone][PATCHv2] glfw: add packageconfig and wayland dependencies

2023-05-02 Thread Martin Jansa
On Tue, May 2, 2023 at 6:06 PM Randolph Sapp  wrote:

> On 5/2/23 10:56, Martin Jansa wrote:
> > The version which was merged with:
> >
> > PACKAGECONFIG ??= "x11"
> >
> > Should still respect x11 in DISTRO_FEATURES, now this causes:
> >
> > ERROR: Nothing PROVIDES 'libxi' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on
> or
> > otherwise requires it)
> > libxi was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> > ERROR: Nothing PROVIDES 'libxinerama' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on
> or
> > otherwise requires it)
> > libxinerama was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> > ERROR: Nothing PROVIDES 'libxrandr' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on
> or
> > otherwise requires it)
> > libxrandr was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> > ERROR: Nothing PROVIDES 'libglu' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on
> or
> > otherwise requires it)
> > libglu was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> > ERROR: Nothing PROVIDES 'libxcursor' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on
> or
> > otherwise requires it)
> > libxcursor was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> >
> > when wayland and opengl are in DISTRO_FEATURES, but x11 isn't.
> >
>
> Yeah, that's expected behavior at this point. You need to manually
> override the PACKAGECONFIG for wayland in this patch. Just slightly
> better than no wayland at all.
>

And slightly worse than before, because before it was automatically skipped
thanks to  REQUIRED_DISTRO_FEATURES and now it's pulled into world builds
even when it doesn't build at all.

The only way we can get around it is if this layer or one of it's
> dependencies decides to adopt extra-cmake-modules. They the
> packageconfig can automatically configure itself. Discussion on who's
> job it is to carry this package has yet to conclude.
>

There is also libglu in regular DEPENDS which has x11 in
REQUIRED_DISTRO_FEATURES.

After moving libglu to x11 PACKAGECONFIG and enabling x11 only when it's in
DISTRO_FEATURES as in:
https://git.openembedded.org/meta-openembedded-contrib/commit/?h=jansa/master=721240c27e7a8ebe83f2730cf94e12a57932db82

it still fails with:
glfw/3.3+gitAUTOINC+781fbbadb0-r0/recipe-sysroot-native/usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
|   Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)

Maybe return x11 to REQUIRED_DISTRO_FEATURES until the wayland discussion
is resolved somehow?

Regards,

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



Re: [oe] [meta-oe][kirkstone][PATCHv2] glfw: add packageconfig and wayland dependencies

2023-05-02 Thread Khem Raj
On Tue, May 2, 2023 at 10:00 AM Denys Dmytriyenko  wrote:
>
> On Tue, May 02, 2023 at 09:08:07AM -0700, Khem Raj wrote:
> > On Tue, May 2, 2023 at 9:06 AM Randolph Sapp  wrote:
> > >
> > > On 5/2/23 10:56, Martin Jansa wrote:
> > > > The version which was merged with:
> > > >
> > > > PACKAGECONFIG ??= "x11"
> > > >
> > > > Should still respect x11 in DISTRO_FEATURES, now this causes:
> > > >
> > > > ERROR: Nothing PROVIDES 'libxi' (but
> > > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > > otherwise requires it)
> > > > libxi was skipped: missing required distro feature 'x11' (not in
> > > > DISTRO_FEATURES)
> > > > ERROR: Nothing PROVIDES 'libxinerama' (but
> > > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > > otherwise requires it)
> > > > libxinerama was skipped: missing required distro feature 'x11' (not in
> > > > DISTRO_FEATURES)
> > > > ERROR: Nothing PROVIDES 'libxrandr' (but
> > > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > > otherwise requires it)
> > > > libxrandr was skipped: missing required distro feature 'x11' (not in
> > > > DISTRO_FEATURES)
> > > > ERROR: Nothing PROVIDES 'libglu' (but
> > > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > > otherwise requires it)
> > > > libglu was skipped: missing required distro feature 'x11' (not in
> > > > DISTRO_FEATURES)
> > > > ERROR: Nothing PROVIDES 'libxcursor' (but
> > > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > > otherwise requires it)
> > > > libxcursor was skipped: missing required distro feature 'x11' (not in
> > > > DISTRO_FEATURES)
> > > >
> > > > when wayland and opengl are in DISTRO_FEATURES, but x11 isn't.
> > > >
> > >
> > > Yeah, that's expected behavior at this point. You need to manually
> > > override the PACKAGECONFIG for wayland in this patch. Just slightly
> > > better than no wayland at all.
> > >
> > > The only way we can get around it is if this layer or one of it's
> > > dependencies decides to adopt extra-cmake-modules. They the
> > > packageconfig can automatically configure itself. Discussion on who's
> > > job it is to carry this package has yet to conclude.
> > >
> >
> > May be bring it to meta-oe at this point.
>
> I wonder if it would be better/cleaner to extract a single CMake module this
> glfw package needs to configure wayland support and carry it locally, instead
> of bringing in the entire KDE-specific set of such CMake modules and be on the
> hook for updating it forever?
> https://api.kde.org/frameworks/extra-cmake-modules/html/index.html
> https://invent.kde.org/frameworks/extra-cmake-modules
>

if it does not get updated often then it should be fine too. Its
maintenance either way

>
> > > > REQUIRED_DISTRO_FEATURES is satisfied by "opengl" and
> > > > ANY_OF_DISTRO_FEATURES by "wayland", but the default PACKAGECONFIG
> > > > doesn't match with that.
> > > >
> > > > On Fri, Apr 28, 2023 at 6:32 PM Randolph Sapp via lists.openembedded.org
> > > >   > > > > wrote:
> > > >
> > > > On 4/28/23 06:16, akuster808 wrote:
> > > >  > Doesn't this need to land it Master first? Kirkstone is in the
> > > > subject
> > > >  >
> > > >  > - armin
> > > >  >
> > > >
> > > > Perhaps, but I've only had a chance to test it against kirkstone so 
> > > > I
> > > > flagged it as such. At this point I'm still vetting solutions to 
> > > > this
> > > > dependency chain though. Looking for something this layer would
> > > > actually
> > > > like to carry.
> > > >
> > > >  > On 4/27/23 12:47 PM, r...@ti.com  wrote:
> > > >  >> From: Randolph Sapp mailto:r...@ti.com>>
> > > >  >>
> > > >  >> GLFW has the ability to use a wayland backend. This patch adds a
> > > > config
> > > >  >> for it, but does not enable it by default because it has a
> > > > dependency on
> > > >  >> extra-cmake-modules which is provided (most commonly) by
> > > > meta-qt5-extra.
> > > >  >>
> > > >  >> Signed-off-by: Randolph Sapp mailto:r...@ti.com>>
> > > >  >> ---
> > > >  >>   meta-oe/recipes-core/glfw/glfw_3.3.bb  |
> > > > 14 --
> > > >  >>   1 file changed, 12 insertions(+), 2 deletions(-)
> > > >  >>
> > > >  >> diff --git a/meta-oe/recipes-core/glfw/glfw_3.3.bb
> > > > 
> > > >  >> b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
> > > >  >> index b31bba6b6b..5b0d61241e 100644
> > > >  >> --- a/meta-oe/recipes-core/glfw/glfw_3.3.bb 
> > > >  >> +++ b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
> > > >  >> @@ -20,7 +20,17 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON
> > > >  >> -DGLFW_BUILD_DOCS=OFF"
> > > >  >>   CFLAGS += "-fPIC"
> > > >  >> 

Re: [oe] [meta-oe][kirkstone][PATCHv2] glfw: add packageconfig and wayland dependencies

2023-05-02 Thread Denys Dmytriyenko
On Tue, May 02, 2023 at 09:08:07AM -0700, Khem Raj wrote:
> On Tue, May 2, 2023 at 9:06 AM Randolph Sapp  wrote:
> >
> > On 5/2/23 10:56, Martin Jansa wrote:
> > > The version which was merged with:
> > >
> > > PACKAGECONFIG ??= "x11"
> > >
> > > Should still respect x11 in DISTRO_FEATURES, now this causes:
> > >
> > > ERROR: Nothing PROVIDES 'libxi' (but
> > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > otherwise requires it)
> > > libxi was skipped: missing required distro feature 'x11' (not in
> > > DISTRO_FEATURES)
> > > ERROR: Nothing PROVIDES 'libxinerama' (but
> > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > otherwise requires it)
> > > libxinerama was skipped: missing required distro feature 'x11' (not in
> > > DISTRO_FEATURES)
> > > ERROR: Nothing PROVIDES 'libxrandr' (but
> > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > otherwise requires it)
> > > libxrandr was skipped: missing required distro feature 'x11' (not in
> > > DISTRO_FEATURES)
> > > ERROR: Nothing PROVIDES 'libglu' (but
> > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > otherwise requires it)
> > > libglu was skipped: missing required distro feature 'x11' (not in
> > > DISTRO_FEATURES)
> > > ERROR: Nothing PROVIDES 'libxcursor' (but
> > > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > > otherwise requires it)
> > > libxcursor was skipped: missing required distro feature 'x11' (not in
> > > DISTRO_FEATURES)
> > >
> > > when wayland and opengl are in DISTRO_FEATURES, but x11 isn't.
> > >
> >
> > Yeah, that's expected behavior at this point. You need to manually
> > override the PACKAGECONFIG for wayland in this patch. Just slightly
> > better than no wayland at all.
> >
> > The only way we can get around it is if this layer or one of it's
> > dependencies decides to adopt extra-cmake-modules. They the
> > packageconfig can automatically configure itself. Discussion on who's
> > job it is to carry this package has yet to conclude.
> >
> 
> May be bring it to meta-oe at this point.

I wonder if it would be better/cleaner to extract a single CMake module this 
glfw package needs to configure wayland support and carry it locally, instead 
of bringing in the entire KDE-specific set of such CMake modules and be on the 
hook for updating it forever?
https://api.kde.org/frameworks/extra-cmake-modules/html/index.html
https://invent.kde.org/frameworks/extra-cmake-modules


> > > REQUIRED_DISTRO_FEATURES is satisfied by "opengl" and
> > > ANY_OF_DISTRO_FEATURES by "wayland", but the default PACKAGECONFIG
> > > doesn't match with that.
> > >
> > > On Fri, Apr 28, 2023 at 6:32 PM Randolph Sapp via lists.openembedded.org
> > >   > > > wrote:
> > >
> > > On 4/28/23 06:16, akuster808 wrote:
> > >  > Doesn't this need to land it Master first? Kirkstone is in the
> > > subject
> > >  >
> > >  > - armin
> > >  >
> > >
> > > Perhaps, but I've only had a chance to test it against kirkstone so I
> > > flagged it as such. At this point I'm still vetting solutions to this
> > > dependency chain though. Looking for something this layer would
> > > actually
> > > like to carry.
> > >
> > >  > On 4/27/23 12:47 PM, r...@ti.com  wrote:
> > >  >> From: Randolph Sapp mailto:r...@ti.com>>
> > >  >>
> > >  >> GLFW has the ability to use a wayland backend. This patch adds a
> > > config
> > >  >> for it, but does not enable it by default because it has a
> > > dependency on
> > >  >> extra-cmake-modules which is provided (most commonly) by
> > > meta-qt5-extra.
> > >  >>
> > >  >> Signed-off-by: Randolph Sapp mailto:r...@ti.com>>
> > >  >> ---
> > >  >>   meta-oe/recipes-core/glfw/glfw_3.3.bb  |
> > > 14 --
> > >  >>   1 file changed, 12 insertions(+), 2 deletions(-)
> > >  >>
> > >  >> diff --git a/meta-oe/recipes-core/glfw/glfw_3.3.bb
> > > 
> > >  >> b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
> > >  >> index b31bba6b6b..5b0d61241e 100644
> > >  >> --- a/meta-oe/recipes-core/glfw/glfw_3.3.bb 
> > >  >> +++ b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
> > >  >> @@ -20,7 +20,17 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON
> > >  >> -DGLFW_BUILD_DOCS=OFF"
> > >  >>   CFLAGS += "-fPIC"
> > >  >> -DEPENDS = "libpng libglu zlib libxrandr libxinerama libxi
> > > libxcursor"
> > >  >> -REQUIRED_DISTRO_FEATURES = "x11 opengl"
> > >  >> +DEPENDS = "libpng libglu zlib"
> > >  >> +REQUIRED_DISTRO_FEATURES = "opengl"
> > >  >> +ANY_OF_DISTRO_FEATURES = "wayland x11"
> > >  >> +
> > >  >> +# upstream considers x11 and wayland backends mutually
> > >  

[oe] [meta-python][PATCH 5/6] python3-pylint: add ptest

2023-05-02 Thread Trevor Gamblin
Signed-off-by: Trevor Gamblin 
---
 toml-Remove-hard-coded-dependencies.patch | 10 ++-
 .../python/python3-pylint/run-ptest   |  3 ++
 .../python/python3-pylint_2.17.3.bb   | 30 +--
 3 files changed, 32 insertions(+), 11 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-pylint/run-ptest

diff --git 
a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
 
b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
index 55d42b101..267e4c30d 100644
--- 
a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
+++ 
b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
@@ -1,21 +1,15 @@
-From 843d050f1bf889b81fa8fc3e7a1350385c8348ec Mon Sep 17 00:00:00 2001
+From c5c415a240189ac6730ba95de0bb5883dfb53609 Mon Sep 17 00:00:00 2001
 From: Trevor Gamblin 
 Date: Mon, 1 May 2023 11:32:24 -0400
 Subject: [PATCH] pyproject.toml: Remove hard-coded dependencies
 
-The upstream pyproject.toml has hard-coded dependencies on specific
-versions of wheel and setuptools. This breaks builds of pylint 
-2.17.3, so patch it to remove the pinned versions.
-
-Upstream-Status: Pending
-
 Signed-off-by: Trevor Gamblin 
 ---
  pyproject.toml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/pyproject.toml b/pyproject.toml
-index e4b63c660..0ee21e0eb 100644
+index bd542646b..2c0ed9485 100644
 --- a/pyproject.toml
 +++ b/pyproject.toml
 @@ -1,5 +1,5 @@
diff --git a/meta-python/recipes-devtools/python/python3-pylint/run-ptest 
b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
new file mode 100644
index 0..b63c4de0d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -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}}'
diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb 
b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
index b85f77503..58f0616fc 100644
--- a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
@@ -3,10 +3,14 @@ HOMEPAGE= "http://www.pylint.org/;
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
 
-SRC_URI += "file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch"
-SRC_URI[sha256sum] = 
"761907349e699f8afdcd56c4fe02f3021ab5b3a0fc26d19a9bfdc66c7d0d5cd5"
+SRC_URI += " \
+git://github.com/pylint-dev/pylint;branch=main;protocol=https \
+file://run-ptest \
+file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \
+"
+SRCREV ?= "389e14c36819cb87190fd412d3f366a3283f0078"
 
-inherit pypi python_setuptools_build_meta
+inherit python_setuptools_build_meta ptest
 
 RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
${PYTHON_PN}-isort \
@@ -17,3 +21,23 @@ RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
${PYTHON_PN}-difflib \
${PYTHON_PN}-netserver \
   "
+
+RDEPENDS:${PN}-ptest += " \
+${PYTHON_PN}-core \
+${PYTHON_PN}-dill \
+${PYTHON_PN}-git \
+${PYTHON_PN}-platformdirs \
+${PYTHON_PN}-pytest \
+${PYTHON_PN}-pytest-benchmark \
+${PYTHON_PN}-statistics \
+${PYTHON_PN}-tomlkit \
+${PYTHON_PN}-tomllib \
+"
+
+S = "${WORKDIR}/git"
+
+do_install_ptest() {
+install -d ${D}${PTEST_PATH}/tests
+cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+sed -i 's#/usr/bin/python$#/usr/bin/python3#g' 
${D}${PTEST_PATH}/tests/data/ascript
+}
-- 
2.40.0


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



[oe] [meta-python][PATCH 6/6] ptest-packagelists-meta-python: Add new tests

2023-05-02 Thread Trevor Gamblin
Add ptests for python3-pylint, python3-platformdirs,
python3-pytest-mock, python3-tomlkit.

Signed-off-by: Trevor Gamblin 
---
 meta-python/conf/include/ptest-packagelists-meta-python.inc | 4 
 1 file changed, 4 insertions(+)

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc 
b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index ef5d20bcd..f5935e4a9 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -23,13 +23,16 @@ PTESTS_FAST_META_PYTHON = "\
 python3-ipy \
 python3-iso3166 \
 python3-parse-type \
+python3-platformdirs \
 python3-polyline \
 python3-precise-runner \
 python3-prettytable \
 python3-ptyprocess \
 python3-pyasn1-modules \
+python3-pylint \
 python3-pyroute2 \
 python3-pyserial \
+python3-pytest-mock \
 python3-pytoml \
 python3-requests-file \
 python3-requests-toolbelt \
@@ -39,6 +42,7 @@ PTESTS_FAST_META_PYTHON = "\
 python3-smpplib \
 python3-soupsieve \
 python3-sqlparse \
+python3-tomlkit \
 python3-u-msgpack-python \
 python3-unidiff \
 python3-uritemplate \
-- 
2.40.0


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



[oe] [meta-python][PATCH 4/6] python3-pylint: upgrade 2.14.5 -> 2.17.3

2023-05-02 Thread Trevor Gamblin
Change pylint to inherit python_setuptools_build_meta instead of
setuptools3. Also add a patch to remove hard-coded version depdendencies
for wheel and setuptools from the pyproject.toml, otherwise the
following error occurs during do_compile:

| ERROR Missing dependencies:
|   wheel~=0.37.1
|   setuptools~=62.6

Release note links:
2.17.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.17/index.html
2.16.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.16/index.html
2.15.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.15/index.html
2.14.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/index.html

Signed-off-by: Trevor Gamblin 
---
 toml-Remove-hard-coded-dependencies.patch | 30 +++
 ...int_2.14.5.bb => python3-pylint_2.17.3.bb} |  5 ++--
 2 files changed, 33 insertions(+), 2 deletions(-)
 create mode 100644 
meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
 rename meta-python/recipes-devtools/python/{python3-pylint_2.14.5.bb => 
python3-pylint_2.17.3.bb} (72%)

diff --git 
a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
 
b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
new file mode 100644
index 0..55d42b101
--- /dev/null
+++ 
b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
@@ -0,0 +1,30 @@
+From 843d050f1bf889b81fa8fc3e7a1350385c8348ec Mon Sep 17 00:00:00 2001
+From: Trevor Gamblin 
+Date: Mon, 1 May 2023 11:32:24 -0400
+Subject: [PATCH] pyproject.toml: Remove hard-coded dependencies
+
+The upstream pyproject.toml has hard-coded dependencies on specific
+versions of wheel and setuptools. This breaks builds of pylint 
+2.17.3, so patch it to remove the pinned versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Trevor Gamblin 
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index e4b63c660..0ee21e0eb 100644
+--- a/pyproject.toml
 b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools~=62.6", "wheel~=0.37.1"]
++requires = ["setuptools", "wheel"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]
+-- 
+2.40.0
+
diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb 
b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
similarity index 72%
rename from meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb
rename to meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
index 738b9250c..b85f77503 100644
--- a/meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb
+++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
@@ -3,9 +3,10 @@ HOMEPAGE= "http://www.pylint.org/;
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
 
-SRC_URI[sha256sum] = 
"487ce2192eee48211269a0e976421f334cf94de1806ca9d0a99449adcdf0285e"
+SRC_URI += "file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch"
+SRC_URI[sha256sum] = 
"761907349e699f8afdcd56c4fe02f3021ab5b3a0fc26d19a9bfdc66c7d0d5cd5"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
${PYTHON_PN}-isort \
-- 
2.40.0


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



[oe] [meta-python][PATCH 3/6] python3-tomlkit: Add recipe

2023-05-02 Thread Trevor Gamblin
Signed-off-by: Trevor Gamblin 
---
 .../python/python3-tomlkit/run-ptest  |  3 +++
 .../python/python3-tomlkit_0.11.8.bb  | 23 +++
 2 files changed, 26 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-tomlkit/run-ptest
 create mode 100644 
meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb

diff --git a/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest 
b/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest
new file mode 100644
index 0..b63c4de0d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -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}}'
diff --git a/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb 
b/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb
new file mode 100644
index 0..71a43c455
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb
@@ -0,0 +1,23 @@
+SUMMARY = "Style preserving TOML library"
+HOMEPAGE = "https://pypi.org/project/tomlkit/;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=31aac0dbc1babd278d5386dadb7f8e82"
+
+SRC_URI[sha256sum] = 
"9330fc7faa1db67b541b28e62018c17d20be733177d290a13b24c62d1614e0c3"
+
+inherit pypi python_poetry_core ptest
+
+SRC_URI += " \
+file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+${PYTHON_PN}-poetry-core \
+${PYTHON_PN}-pytest \
+${PYTHON_PN}-pyyaml \
+"
+
+do_install_ptest() {
+install -d ${D}${PTEST_PATH}/tests
+cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
-- 
2.40.0


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



[oe] [meta-python][PATCH 2/6] python3-pytest-mock: Add recipe

2023-05-02 Thread Trevor Gamblin
Signed-off-by: Trevor Gamblin 
---
 .../python/python3-pytest-mock/run-ptest  |  3 +++
 .../python/python3-pytest-mock_3.10.0.bb  | 26 +++
 2 files changed, 29 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest
 create mode 100644 
meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb

diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest 
b/meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest
new file mode 100644
index 0..b63c4de0d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -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}}'
diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb 
b/meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb
new file mode 100644
index 0..c4e672f33
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb
@@ -0,0 +1,26 @@
+SUMMARY = "Thin-wrapper around the mock package for easier use with pytest"
+HOMEPAGE = "https://github.com/pytest-dev/pytest-mock/;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = " \
+file://LICENSE;md5=b2ddb1e69238461b7e4ef2a84d874109 \
+"
+
+SRC_URI = " \
+git://github.com/pytest-dev/pytest-mock;branch=main;protocol=https \
+file://run-ptest \
+"
+
+SRCREV ?= "6c03dfd4240de4a178bab67c0a32fba28d8bcf91"
+
+SRC_URI[sha256sum] = 
"fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f"
+
+inherit setuptools3 ptest
+
+DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
+
+S = "${WORKDIR}/git"
+
+do_install_ptest() {
+install -d ${D}${PTEST_PATH}/tests
+cp -rf ${S}/tests ${D}${PTEST_PATH}/
+}
-- 
2.40.0


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



[oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe

2023-05-02 Thread Trevor Gamblin
Signed-off-by: Trevor Gamblin 
---
 .../python/python3-platformdirs/run-ptest |  3 ++
 .../python/python3-platformdirs_3.5.0.bb  | 35 +++
 2 files changed, 38 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
 create mode 100644 
meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb

diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest 
b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
new file mode 100644
index 0..b63c4de0d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -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}}'
diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb 
b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
new file mode 100644
index 0..b5ff369d0
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
@@ -0,0 +1,35 @@
+SUMMARY = "A small Python module for determining appropriate platform-specific 
dirs"
+HOMEPAGE = "https://github.com/platformdirs/platformdirs;
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
+
+SRC_URI = " \
+git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
+file://run-ptest \
+"
+
+SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
+SRC_URI[sha256sum] = 
"7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
+
+inherit python_setuptools_build_meta ptest
+
+DEPENDS += " \
+python3-hatch-vcs-native \
+python3-setuptools-scm-native \
+python3-toml-native \
+"
+
+S = "${WORKDIR}/git"
+
+RDEPENDS:${PN}-ptest += " \
+${PYTHON_PN}-appdirs \
+${PYTHON_PN}-pytest \
+${PYTHON_PN}-pytest-mock \
+"
+
+do_install_ptest() {
+install -d ${D}${PTEST_PATH}/Tests
+cp -rf ${S}/tests ${D}${PTEST_PATH}/
+}
+
+BBCLASSEXTEND = "native"
-- 
2.40.0


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



[oe] [meta-python][PATCH 0/6] Support updated python3-pylint

2023-05-02 Thread Trevor Gamblin
Patchtest relies on python3-pylint, but it's a very old version in that
repo. Before proceeding with updating, it seemed important to uprev the
recipe in meta-python and add a ptest at the same time. This required
significant changes and the addition of a few new recipes, some of which
also existed in other layers but in older forms: python3-platformdirs,
python3-pytest-mock, python3-tomlkit. I've added ptests for each of
these, as well.

Note that this patch set relies (indirectly) on some changes sent to 
oe-core to update python3-hatchling and add two new recipes that it 
in turn relies on (python3-trove-classifiers and python3-calver), so
the recipes and ptests won't be fully functional until those are merged.

Trevor Gamblin (6):
  python3-platformdirs: Add recipe
  python3-pytest-mock: Add recipe
  python3-tomlkit: Add recipe
  python3-pylint: upgrade 2.14.5 -> 2.17.3
  python3-pylint: add ptest
  ptest-packagelists-meta-python: Add new tests

 .../ptest-packagelists-meta-python.inc|  4 ++
 .../python/python3-platformdirs/run-ptest |  3 ++
 .../python/python3-platformdirs_3.5.0.bb  | 35 +++
 toml-Remove-hard-coded-dependencies.patch | 24 +++
 .../python/python3-pylint/run-ptest   |  3 ++
 .../python/python3-pylint_2.14.5.bb   | 18 
 .../python/python3-pylint_2.17.3.bb   | 43 +++
 .../python/python3-pytest-mock/run-ptest  |  3 ++
 .../python/python3-pytest-mock_3.10.0.bb  | 26 +++
 .../python/python3-tomlkit/run-ptest  |  3 ++
 .../python/python3-tomlkit_0.11.8.bb  | 23 ++
 11 files changed, 167 insertions(+), 18 deletions(-)
 create mode 100644 
meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
 create mode 100644 
meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-pylint/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest
 create mode 100644 
meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb
 create mode 100644 
meta-python/recipes-devtools/python/python3-tomlkit/run-ptest
 create mode 100644 
meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb

-- 
2.40.0


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



Re: [oe] [meta-oe][kirkstone][PATCHv2] glfw: add packageconfig and wayland dependencies

2023-05-02 Thread Randolph Sapp via lists.openembedded.org

On 5/2/23 11:08, Khem Raj wrote:

On Tue, May 2, 2023 at 9:06 AM Randolph Sapp  wrote:


On 5/2/23 10:56, Martin Jansa wrote:

The version which was merged with:

PACKAGECONFIG ??= "x11"

Should still respect x11 in DISTRO_FEATURES, now this causes:

ERROR: Nothing PROVIDES 'libxi' (but
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
otherwise requires it)
libxi was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libxinerama' (but
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
otherwise requires it)
libxinerama was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libxrandr' (but
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
otherwise requires it)
libxrandr was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libglu' (but
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
otherwise requires it)
libglu was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libxcursor' (but
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
otherwise requires it)
libxcursor was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)

when wayland and opengl are in DISTRO_FEATURES, but x11 isn't.



Yeah, that's expected behavior at this point. You need to manually
override the PACKAGECONFIG for wayland in this patch. Just slightly
better than no wayland at all.

The only way we can get around it is if this layer or one of it's
dependencies decides to adopt extra-cmake-modules. They the
packageconfig can automatically configure itself. Discussion on who's
job it is to carry this package has yet to conclude.



May be bring it to meta-oe at this point.


Roger. Patches Soon™




REQUIRED_DISTRO_FEATURES is satisfied by "opengl" and
ANY_OF_DISTRO_FEATURES by "wayland", but the default PACKAGECONFIG
doesn't match with that.

On Fri, Apr 28, 2023 at 6:32 PM Randolph Sapp via lists.openembedded.org
 mailto:ti@lists.openembedded.org>> wrote:

 On 4/28/23 06:16, akuster808 wrote:
  > Doesn't this need to land it Master first? Kirkstone is in the
 subject
  >
  > - armin
  >

 Perhaps, but I've only had a chance to test it against kirkstone so I
 flagged it as such. At this point I'm still vetting solutions to this
 dependency chain though. Looking for something this layer would
 actually
 like to carry.

  > On 4/27/23 12:47 PM, r...@ti.com  wrote:
  >> From: Randolph Sapp mailto:r...@ti.com>>
  >>
  >> GLFW has the ability to use a wayland backend. This patch adds a
 config
  >> for it, but does not enable it by default because it has a
 dependency on
  >> extra-cmake-modules which is provided (most commonly) by
 meta-qt5-extra.
  >>
  >> Signed-off-by: Randolph Sapp mailto:r...@ti.com>>
  >> ---
  >>   meta-oe/recipes-core/glfw/glfw_3.3.bb  |
 14 --
  >>   1 file changed, 12 insertions(+), 2 deletions(-)
  >>
  >> diff --git a/meta-oe/recipes-core/glfw/glfw_3.3.bb
 
  >> b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
  >> index b31bba6b6b..5b0d61241e 100644
  >> --- a/meta-oe/recipes-core/glfw/glfw_3.3.bb 
  >> +++ b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
  >> @@ -20,7 +20,17 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON
  >> -DGLFW_BUILD_DOCS=OFF"
  >>   CFLAGS += "-fPIC"
  >> -DEPENDS = "libpng libglu zlib libxrandr libxinerama libxi
 libxcursor"
  >> -REQUIRED_DISTRO_FEATURES = "x11 opengl"
  >> +DEPENDS = "libpng libglu zlib"
  >> +REQUIRED_DISTRO_FEATURES = "opengl"
  >> +ANY_OF_DISTRO_FEATURES = "wayland x11"
  >> +
  >> +# upstream considers x11 and wayland backends mutually
 exclusive and
  >> will
  >> +# prioritize wayland if it is enabled, but wayland has
 dependencies
  >> that cannot
  >> +# be satisfied by this layer so it is disabled by default
  >> +
  >> +PACKAGECONFIG ??= "x11"
  >> +
  >> +PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland
  >> wayland-native wayland-protocols extra-cmake-modules libxkbcommon"
  >> +PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor"
  >>   COMPATIBLE_HOST:libc-musl = "null"
  >


 






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#102264): 
https://lists.openembedded.org/g/openembedded-devel/message/102264
Mute This Topic: https://lists.openembedded.org/mt/98540896/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: 

Re: [oe] [meta-oe][kirkstone][PATCHv2] glfw: add packageconfig and wayland dependencies

2023-05-02 Thread Khem Raj
On Tue, May 2, 2023 at 9:06 AM Randolph Sapp  wrote:
>
> On 5/2/23 10:56, Martin Jansa wrote:
> > The version which was merged with:
> >
> > PACKAGECONFIG ??= "x11"
> >
> > Should still respect x11 in DISTRO_FEATURES, now this causes:
> >
> > ERROR: Nothing PROVIDES 'libxi' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > otherwise requires it)
> > libxi was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> > ERROR: Nothing PROVIDES 'libxinerama' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > otherwise requires it)
> > libxinerama was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> > ERROR: Nothing PROVIDES 'libxrandr' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > otherwise requires it)
> > libxrandr was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> > ERROR: Nothing PROVIDES 'libglu' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > otherwise requires it)
> > libglu was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> > ERROR: Nothing PROVIDES 'libxcursor' (but
> > meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or
> > otherwise requires it)
> > libxcursor was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> >
> > when wayland and opengl are in DISTRO_FEATURES, but x11 isn't.
> >
>
> Yeah, that's expected behavior at this point. You need to manually
> override the PACKAGECONFIG for wayland in this patch. Just slightly
> better than no wayland at all.
>
> The only way we can get around it is if this layer or one of it's
> dependencies decides to adopt extra-cmake-modules. They the
> packageconfig can automatically configure itself. Discussion on who's
> job it is to carry this package has yet to conclude.
>

May be bring it to meta-oe at this point.

> > REQUIRED_DISTRO_FEATURES is satisfied by "opengl" and
> > ANY_OF_DISTRO_FEATURES by "wayland", but the default PACKAGECONFIG
> > doesn't match with that.
> >
> > On Fri, Apr 28, 2023 at 6:32 PM Randolph Sapp via lists.openembedded.org
> >   > > wrote:
> >
> > On 4/28/23 06:16, akuster808 wrote:
> >  > Doesn't this need to land it Master first? Kirkstone is in the
> > subject
> >  >
> >  > - armin
> >  >
> >
> > Perhaps, but I've only had a chance to test it against kirkstone so I
> > flagged it as such. At this point I'm still vetting solutions to this
> > dependency chain though. Looking for something this layer would
> > actually
> > like to carry.
> >
> >  > On 4/27/23 12:47 PM, r...@ti.com  wrote:
> >  >> From: Randolph Sapp mailto:r...@ti.com>>
> >  >>
> >  >> GLFW has the ability to use a wayland backend. This patch adds a
> > config
> >  >> for it, but does not enable it by default because it has a
> > dependency on
> >  >> extra-cmake-modules which is provided (most commonly) by
> > meta-qt5-extra.
> >  >>
> >  >> Signed-off-by: Randolph Sapp mailto:r...@ti.com>>
> >  >> ---
> >  >>   meta-oe/recipes-core/glfw/glfw_3.3.bb  |
> > 14 --
> >  >>   1 file changed, 12 insertions(+), 2 deletions(-)
> >  >>
> >  >> diff --git a/meta-oe/recipes-core/glfw/glfw_3.3.bb
> > 
> >  >> b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
> >  >> index b31bba6b6b..5b0d61241e 100644
> >  >> --- a/meta-oe/recipes-core/glfw/glfw_3.3.bb 
> >  >> +++ b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
> >  >> @@ -20,7 +20,17 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON
> >  >> -DGLFW_BUILD_DOCS=OFF"
> >  >>   CFLAGS += "-fPIC"
> >  >> -DEPENDS = "libpng libglu zlib libxrandr libxinerama libxi
> > libxcursor"
> >  >> -REQUIRED_DISTRO_FEATURES = "x11 opengl"
> >  >> +DEPENDS = "libpng libglu zlib"
> >  >> +REQUIRED_DISTRO_FEATURES = "opengl"
> >  >> +ANY_OF_DISTRO_FEATURES = "wayland x11"
> >  >> +
> >  >> +# upstream considers x11 and wayland backends mutually
> > exclusive and
> >  >> will
> >  >> +# prioritize wayland if it is enabled, but wayland has
> > dependencies
> >  >> that cannot
> >  >> +# be satisfied by this layer so it is disabled by default
> >  >> +
> >  >> +PACKAGECONFIG ??= "x11"
> >  >> +
> >  >> +PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland
> >  >> wayland-native wayland-protocols extra-cmake-modules libxkbcommon"
> >  >> +PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor"
> >  >>   COMPATIBLE_HOST:libc-musl = "null"
> >  >
> >
> >
> > 
> >
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent 

Re: [oe] [meta-oe][kirkstone][PATCHv2] glfw: add packageconfig and wayland dependencies

2023-05-02 Thread Randolph Sapp via lists.openembedded.org

On 5/2/23 10:56, Martin Jansa wrote:

The version which was merged with:

PACKAGECONFIG ??= "x11"

Should still respect x11 in DISTRO_FEATURES, now this causes:

ERROR: Nothing PROVIDES 'libxi' (but 
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or 
otherwise requires it)
libxi was skipped: missing required distro feature 'x11' (not in 
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libxinerama' (but 
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or 
otherwise requires it)
libxinerama was skipped: missing required distro feature 'x11' (not in 
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libxrandr' (but 
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or 
otherwise requires it)
libxrandr was skipped: missing required distro feature 'x11' (not in 
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libglu' (but 
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or 
otherwise requires it)
libglu was skipped: missing required distro feature 'x11' (not in 
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libxcursor' (but 
meta-oe/recipes-core/glfw/glfw_3.3.bb  DEPENDS on or 
otherwise requires it)
libxcursor was skipped: missing required distro feature 'x11' (not in 
DISTRO_FEATURES)


when wayland and opengl are in DISTRO_FEATURES, but x11 isn't.



Yeah, that's expected behavior at this point. You need to manually 
override the PACKAGECONFIG for wayland in this patch. Just slightly 
better than no wayland at all.


The only way we can get around it is if this layer or one of it's 
dependencies decides to adopt extra-cmake-modules. They the 
packageconfig can automatically configure itself. Discussion on who's 
job it is to carry this package has yet to conclude.


REQUIRED_DISTRO_FEATURES is satisfied by "opengl" and 
ANY_OF_DISTRO_FEATURES by "wayland", but the default PACKAGECONFIG 
doesn't match with that.


On Fri, Apr 28, 2023 at 6:32 PM Randolph Sapp via lists.openembedded.org 
 > wrote:


On 4/28/23 06:16, akuster808 wrote:
 > Doesn't this need to land it Master first? Kirkstone is in the
subject
 >
 > - armin
 >

Perhaps, but I've only had a chance to test it against kirkstone so I
flagged it as such. At this point I'm still vetting solutions to this
dependency chain though. Looking for something this layer would
actually
like to carry.

 > On 4/27/23 12:47 PM, r...@ti.com  wrote:
 >> From: Randolph Sapp mailto:r...@ti.com>>
 >>
 >> GLFW has the ability to use a wayland backend. This patch adds a
config
 >> for it, but does not enable it by default because it has a
dependency on
 >> extra-cmake-modules which is provided (most commonly) by
meta-qt5-extra.
 >>
 >> Signed-off-by: Randolph Sapp mailto:r...@ti.com>>
 >> ---
 >>   meta-oe/recipes-core/glfw/glfw_3.3.bb  |
14 --
 >>   1 file changed, 12 insertions(+), 2 deletions(-)
 >>
 >> diff --git a/meta-oe/recipes-core/glfw/glfw_3.3.bb

 >> b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
 >> index b31bba6b6b..5b0d61241e 100644
 >> --- a/meta-oe/recipes-core/glfw/glfw_3.3.bb 
 >> +++ b/meta-oe/recipes-core/glfw/glfw_3.3.bb 
 >> @@ -20,7 +20,17 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON
 >> -DGLFW_BUILD_DOCS=OFF"
 >>   CFLAGS += "-fPIC"
 >> -DEPENDS = "libpng libglu zlib libxrandr libxinerama libxi
libxcursor"
 >> -REQUIRED_DISTRO_FEATURES = "x11 opengl"
 >> +DEPENDS = "libpng libglu zlib"
 >> +REQUIRED_DISTRO_FEATURES = "opengl"
 >> +ANY_OF_DISTRO_FEATURES = "wayland x11"
 >> +
 >> +# upstream considers x11 and wayland backends mutually
exclusive and
 >> will
 >> +# prioritize wayland if it is enabled, but wayland has
dependencies
 >> that cannot
 >> +# be satisfied by this layer so it is disabled by default
 >> +
 >> +PACKAGECONFIG ??= "x11"
 >> +
 >> +PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland
 >> wayland-native wayland-protocols extra-cmake-modules libxkbcommon"
 >> +PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor"
 >>   COMPATIBLE_HOST:libc-musl = "null"
 >







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



Re: [oe] [meta-oe][kirkstone][PATCHv2] glfw: add packageconfig and wayland dependencies

2023-05-02 Thread Martin Jansa
The version which was merged with:

PACKAGECONFIG ??= "x11"

Should still respect x11 in DISTRO_FEATURES, now this causes:

ERROR: Nothing PROVIDES 'libxi' (but meta-oe/recipes-core/glfw/glfw_3.3.bb
DEPENDS on or otherwise requires it)
libxi was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libxinerama' (but meta-oe/recipes-core/glfw/
glfw_3.3.bb DEPENDS on or otherwise requires it)
libxinerama was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libxrandr' (but meta-oe/recipes-core/glfw/
glfw_3.3.bb DEPENDS on or otherwise requires it)
libxrandr was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libglu' (but meta-oe/recipes-core/glfw/glfw_3.3.bb
DEPENDS on or otherwise requires it)
libglu was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)
ERROR: Nothing PROVIDES 'libxcursor' (but meta-oe/recipes-core/glfw/
glfw_3.3.bb DEPENDS on or otherwise requires it)
libxcursor was skipped: missing required distro feature 'x11' (not in
DISTRO_FEATURES)

when wayland and opengl are in DISTRO_FEATURES, but x11 isn't.

REQUIRED_DISTRO_FEATURES is satisfied by "opengl" and
ANY_OF_DISTRO_FEATURES by "wayland", but the default PACKAGECONFIG doesn't
match with that.

On Fri, Apr 28, 2023 at 6:32 PM Randolph Sapp via lists.openembedded.org
 wrote:

> On 4/28/23 06:16, akuster808 wrote:
> > Doesn't this need to land it Master first? Kirkstone is in the subject
> >
> > - armin
> >
>
> Perhaps, but I've only had a chance to test it against kirkstone so I
> flagged it as such. At this point I'm still vetting solutions to this
> dependency chain though. Looking for something this layer would actually
> like to carry.
>
> > On 4/27/23 12:47 PM, r...@ti.com wrote:
> >> From: Randolph Sapp 
> >>
> >> GLFW has the ability to use a wayland backend. This patch adds a config
> >> for it, but does not enable it by default because it has a dependency on
> >> extra-cmake-modules which is provided (most commonly) by meta-qt5-extra.
> >>
> >> Signed-off-by: Randolph Sapp 
> >> ---
> >>   meta-oe/recipes-core/glfw/glfw_3.3.bb | 14 --
> >>   1 file changed, 12 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/meta-oe/recipes-core/glfw/glfw_3.3.bb
> >> b/meta-oe/recipes-core/glfw/glfw_3.3.bb
> >> index b31bba6b6b..5b0d61241e 100644
> >> --- a/meta-oe/recipes-core/glfw/glfw_3.3.bb
> >> +++ b/meta-oe/recipes-core/glfw/glfw_3.3.bb
> >> @@ -20,7 +20,17 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON
> >> -DGLFW_BUILD_DOCS=OFF"
> >>   CFLAGS += "-fPIC"
> >> -DEPENDS = "libpng libglu zlib libxrandr libxinerama libxi libxcursor"
> >> -REQUIRED_DISTRO_FEATURES = "x11 opengl"
> >> +DEPENDS = "libpng libglu zlib"
> >> +REQUIRED_DISTRO_FEATURES = "opengl"
> >> +ANY_OF_DISTRO_FEATURES = "wayland x11"
> >> +
> >> +# upstream considers x11 and wayland backends mutually exclusive and
> >> will
> >> +# prioritize wayland if it is enabled, but wayland has dependencies
> >> that cannot
> >> +# be satisfied by this layer so it is disabled by default
> >> +
> >> +PACKAGECONFIG ??= "x11"
> >> +
> >> +PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland
> >> wayland-native wayland-protocols extra-cmake-modules libxkbcommon"
> >> +PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor"
> >>   COMPATIBLE_HOST:libc-musl = "null"
> >
>
>
> 
>
>

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



[oe] [meta-oe][kirkstone][PATCH 1/1] python3-werkzeug: fix for CVE-2023-25577

2023-05-02 Thread Narpat Mali via lists.openembedded.org
From: Narpat Mali 

Werkzeug is a comprehensive WSGI web application library. Prior to
version 2.2.3, Werkzeug's multipart form data parser will parse an
unlimited number of parts, including file parts. Parts can be a
small amount of bytes, but each requires CPU time to parse and may
use more memory as Python data. If a request can be made to an
endpoint that accesses `request.data`, `request.form`, `request.files`,
or `request.get_data(parse_form_data=False)`, it can cause unexpectedly
high resource usage. This allows an attacker to cause a denial of
service by sending crafted multipart data to an endpoint that will
parse it. The amount of CPU time required can block worker processes
from handling legitimate requests. The amount of RAM required can
trigger an out of memory kill of the process. Unlimited file parts
can use up memory and file handles. If many concurrent requests are
sent continuously, this can exhaust or kill all available workers.
Version 2.2.3 contains a patch for this issue.

Signed-off-by: Narpat Mali 
---
 .../python3-werkzeug/CVE-2023-25577.patch | 232 ++
 .../python/python3-werkzeug_2.1.1.bb  |   2 +
 2 files changed, 234 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-25577.patch

diff --git 
a/meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-25577.patch 
b/meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-25577.patch
new file mode 100644
index 00..02109c2050
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-25577.patch
@@ -0,0 +1,232 @@
+From 5a56cdcbaec2153cd67596c6c2c8056e1ea5ed56 Mon Sep 17 00:00:00 2001
+From: David Lord 
+Date: Tue, 2 May 2023 11:31:10 +
+Subject: [PATCH] Merge pull request from GHSA-xg9f-g7g7-2323
+
+limit the maximum number of multipart form parts
+
+CVE: CVE-2023-25577
+
+Upstream-Status: Backport 
[https://github.com/pallets/werkzeug/commit/517cac5a804e8c4dc4ed038bb20dacd038e7a9f1]
+
+Signed-off-by: Narpat Mali 
+---
+ CHANGES.rst  |  5 +
+ docs/request_data.rst| 37 +---
+ src/werkzeug/formparser.py   | 12 ++-
+ src/werkzeug/sansio/multipart.py |  8 +++
+ src/werkzeug/wrappers/request.py |  8 +++
+ tests/test_formparser.py |  9 
+ 6 files changed, 61 insertions(+), 18 deletions(-)
+
+diff --git a/CHANGES.rst b/CHANGES.rst
+index a351d7c..6e809ba 100644
+--- a/CHANGES.rst
 b/CHANGES.rst
+@@ -1,5 +1,10 @@
+ .. currentmodule:: werkzeug
+ 
++-   Specify a maximum number of multipart parts, default 1000, after which a
++``RequestEntityTooLarge`` exception is raised on parsing. This mitigates 
a DoS
++attack where a larger number of form/file parts would result in 
disproportionate
++resource use.
++
+ Version 2.1.1
+ -
+ 
+diff --git a/docs/request_data.rst b/docs/request_data.rst
+index 83c6278..e55841e 100644
+--- a/docs/request_data.rst
 b/docs/request_data.rst
+@@ -73,23 +73,26 @@ read the stream *or* call :meth:`~Request.get_data`.
+ Limiting Request Data
+ -
+ 
+-To avoid being the victim of a DDOS attack you can set the maximum
+-accepted content length and request field sizes.  The :class:`Request`
+-class has two attributes for that: :attr:`~Request.max_content_length`
+-and :attr:`~Request.max_form_memory_size`.
+-
+-The first one can be used to limit the total content length.  For example
+-by setting it to ``1024 * 1024 * 16`` the request won't accept more than
+-16MB of transmitted data.
+-
+-Because certain data can't be moved to the hard disk (regular post data)
+-whereas temporary files can, there is a second limit you can set.  The
+-:attr:`~Request.max_form_memory_size` limits the size of `POST`
+-transmitted form data.  By setting it to ``1024 * 1024 * 2`` you can make
+-sure that all in memory-stored fields are not more than 2MB in size.
+-
+-This however does *not* affect in-memory stored files if the
+-`stream_factory` used returns a in-memory file.
++The :class:`Request` class provides a few attributes to control how much data 
is
++processed from the request body. This can help mitigate DoS attacks that 
craft the
++request in such a way that the server uses too many resources to handle it. 
Each of
++these limits will raise a :exc:`~werkzeug.exceptions.RequestEntityTooLarge` 
if they are
++exceeded.
++
++-   :attr:`~Request.max_content_length` Stop reading request data after this 
number
++of bytes. It's better to configure this in the WSGI server or HTTP 
server, rather
++than the WSGI application.
++-   :attr:`~Request.max_form_memory_size` Stop reading request data if any 
form part is
++larger than this number of bytes. While file parts can be moved to disk, 
regular
++form field data is stored in memory only.
++-   :attr:`~Request.max_form_parts` Stop reading request data if more than 
this number
++of parts are sent 

[oe] [meta-oe][PATCH] xl4-gptp: add new recipe for version 1.2.3

2023-05-02 Thread Johannes Zink
The xl4-gptp stack is a 802.1AS (including 802.1AS-REV) gPTP Stack for
bridge and endpoint mode, supporting single and multiple domains.

Also add the recipes for the required dependencies xl4-combase and
xl4-unibase.

Signed-off-by: Johannes Zink 
---
 ...ls-avoid-errors-due-to-missing-files.patch | 32 +++
 .../xl4-gptp/xl4-combase_1.1.3.bb | 23 +
 .../xl4-gptp/xl4-gptp_1.2.3.bb| 17 ++
 ...ls-avoid-errors-due-to-missing-files.patch | 32 +++
 .../xl4-gptp/xl4-unibase_1.4.4.bb | 23 +
 5 files changed, 127 insertions(+)
 create mode 100644 
meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
 create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
 create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
 create mode 100644 
meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
 create mode 100644 meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase_1.4.4.bb

diff --git 
a/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
 
b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
new file mode 100644
index ..8dffec233c79
--- /dev/null
+++ 
b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase/0001-autotools-avoid-errors-due-to-missing-files.patch
@@ -0,0 +1,32 @@
+From c4ccf4a32166a96d0f78dc74dac5b9abf40431c1 Mon Sep 17 00:00:00 2001
+From: Johannes Zink 
+Date: Tue, 25 Apr 2023 10:53:55 +0200
+Subject: [PATCH] autotools: avoid errors due to missing files
+
+without setting foreign in AM_INIT_AUTOMAKE autotools will complain
+if no AUTHORS, Changelog and NEWS file exist. Instead of generating them
+with a custom tool, just use the non-gnu foreign setting.
+
+This facilitates build system integration
+
+Upstream-Status: Submitted
+[https://github.com/xl4-shiro/xl4combase/pull/1]
+
+Signed-off-by: Johannes Zink 
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 9622a26226fa..fde567a3d21e 100644
+--- a/configure.ac
 b/configure.ac
+@@ -5,7 +5,7 @@ AC_PREREQ([2.65])
+ AC_INIT([xl4combase], [1.1.3], [sh...@excelfore.com])
+ AC_SUBST(PACKAGE_DESC,"Excelfore communication base library")
+ 
+-AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
++AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects foreign])
+ AM_PROG_AR
+ LT_PREREQ([2.2])
+ LT_INIT([static])
diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb 
b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
new file mode 100644
index ..57fd76392142
--- /dev/null
+++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-combase_1.1.3.bb
@@ -0,0 +1,23 @@
+DESCRIPTION="Communication Base Library for the Excelfore gPTP Stack"
+HOMEPAGE="https://github.com/xl4-shiro/xl4combase;
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "\
+   
git://g...@github.com/xl4-shiro/xl4combase.git;protocol=ssh;branch=master \
+file://0001-autotools-avoid-errors-due-to-missing-files.patch \
+"
+
+SRCREV = "08b38bc8fd074d261a604d5e08d5ee91c8edde28"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--disable-unittest"
+
+DEPENDS += "xl4-unibase"
+
+do_install:append() {
+   rm -rf ${D}/${libdir}/python3
+}
diff --git a/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb 
b/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
new file mode 100644
index ..0c4edb546095
--- /dev/null
+++ b/meta-oe/recipes-connectivity/xl4-gptp/xl4-gptp_1.2.3.bb
@@ -0,0 +1,17 @@
+DESCRIPTION = "Excelfore gPTP (IEEE802.1as) Stack"
+HOMEPAGE = "https://github.com/xl4-shiro/excelfore-gptp;
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = 
"git://github.com/xl4-shiro/excelfore-gptp.git;protocol=https;branch=master"
+SRC_URI[sha256sum] = 
"9c50427a16785f1998186b1d4882e7de5bdf6c3884775d7ff4291efdbbdfbc38"
+SRCREV = "ab6bafe44f367a92fb44c6bce84746d96ddfaa9e"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--disable-unittest --disable-understpl"
+EXTRA_OEMAKE = "STAGING_DIR_HOST=${STAGING_DIR_HOST}"
+
+DEPENDS += "xl4-unibase xl4-combase"
diff --git 
a/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
 
b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
new file mode 100644
index ..b67142414021
--- /dev/null
+++ 
b/meta-oe/recipes-connectivity/xl4-gptp/xl4-unibase/0001-autotools-avoid-errors-due-to-missing-files.patch
@@ -0,0 +1,32 @@
+From 5b48693dec6fe688aabdef539e2849458d51a8de Mon Sep 17 00:00:00 2001
+From: Johannes Zink 
+Date: 

[oe] [meta-networking][PATCH] freediameter: fix typo and old overide syntax

2023-05-02 Thread Peter Bergin
From: "Bergin, Peter" 

A typo that probably caused a left over from override syntax conversion.

INITSCRIPT_PARAMS$_${PN} --> INITSCRIPT_PARAMS:${PN}

Signed-off-by: Peter Bergin 
Signed-off-by: Peter Bergin 
---
 .../recipes-protocols/freediameter/freediameter_1.4.0.bb| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/meta-networking/recipes-protocols/freediameter/freediameter_1.4.0.bb 
b/meta-networking/recipes-protocols/freediameter/freediameter_1.4.0.bb
index 93a607d3ce..44fc46e3a8 100644
--- a/meta-networking/recipes-protocols/freediameter/freediameter_1.4.0.bb
+++ b/meta-networking/recipes-protocols/freediameter/freediameter_1.4.0.bb
@@ -132,7 +132,7 @@ RDEPENDS:${PN}-ptest = "cmake"
 
 INITSCRIPT_PACKAGES = "${PN}"
 INITSCRIPT_NAME:${PN} = "${BPN}"
-INITSCRIPT_PARAMS$_${PN} = "start 30 . stop 70 0 1 2 3 4 5 6 ."
+INITSCRIPT_PARAMS:${PN} = "start 30 . stop 70 0 1 2 3 4 5 6 ."
 
 SYSTEMD_SERVICE:${PN} = "freediameter.service"
 SYSTEMD_AUTO_ENABLE = "disable"
-- 
2.34.1


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



[oe] [meta-oe][PATCH 09/11] debootstrap: Use DEBIAN_MIRROR for SRC_URI

2023-05-02 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.128.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.128.bb 
b/meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.128.bb
index 4d13aa66c8..592d997aad 100644
--- a/meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.128.bb
+++ b/meta-oe/recipes-devtools/debootstrap/debootstrap_1.0.128.bb
@@ -5,7 +5,7 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = 
"file://debian/copyright;md5=1e68ced6e1689d4cd9dac75ff5225608"
 
 SRC_URI  = "\
-
http://http.debian.net/debian/pool/main/d/debootstrap/debootstrap_${PV}.tar.gz \
+${DEBIAN_MIRROR}/main/d/debootstrap/debootstrap_${PV}.tar.gz \
 file://0001-support-to-override-usr-sbin-and-usr-share.patch \
 file://0002-support-to-override-usr-bin-arch-test.patch \
 file://0001-do-not-hardcode-the-full-path-of-dpkg.patch \
-- 
2.40.1


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



[oe] [meta-networking][PATCH 11/11] nfacct: Update SRC_URI to point to valid URL

2023-05-02 Thread Khem Raj
Update UPSTREAM_CHECK_URI accordingly

Signed-off-by: Khem Raj 
---
 meta-networking/recipes-filter/nfacct/nfacct_1.0.2.bb | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/meta-networking/recipes-filter/nfacct/nfacct_1.0.2.bb 
b/meta-networking/recipes-filter/nfacct/nfacct_1.0.2.bb
index 20a84121ee..9b938beae3 100644
--- a/meta-networking/recipes-filter/nfacct/nfacct_1.0.2.bb
+++ b/meta-networking/recipes-filter/nfacct/nfacct_1.0.2.bb
@@ -3,12 +3,10 @@ HOMEPAGE = "http://netfilter.org/projects/nfacct/;
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
 
-UPSTREAM_CHECK_URI = "ftp://ftp.netfilter.org/pub/nfacct/;
-
-SRC_URI = "ftp://ftp.netfilter.org/pub/${BPN}/${BP}.tar.bz2;
-
-SRC_URI[md5sum] = "94faafdaaed85ca9220c5692be8a408e"
+UPSTREAM_CHECK_URI = "https://www.netfilter.org/pub/nfacct;
+SRC_URI = "https://www.netfilter.org/pub/${BPN}/${BP}.tar.bz2;
 SRC_URI[sha256sum] = 
"ecff2218754be318bce3c3a5d1775bab93bf4168b2c4aac465785de5655fbd69"
+
 DEPENDS = "libnfnetlink libmnl libnetfilter-acct"
 
 EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
-- 
2.40.1


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



[oe] [meta-oe][PATCH 10/11] ttf-gentium: Switch to debian archive mirror for SRC_URI

2023-05-02 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta-oe/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb 
b/meta-oe/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb
index 5e355eefa7..eb13b47b56 100644
--- a/meta-oe/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb
+++ b/meta-oe/recipes-graphics/ttf-fonts/ttf-gentium_1.02.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = 
"file://OFL;md5=33a5bf7b98a9c0ae87430760ba762295 \
 "
 PR = "r8"
 
-SRC_URI = "${DEBIAN_MIRROR}/main/t/ttf-gentium/ttf-gentium_${PV}.orig.tar.gz "
+SRC_URI = 
"https://archive.debian.org/debian/pool/main/t/ttf-gentium/ttf-gentium_${PV}.orig.tar.gz
 "
 
 S = "${WORKDIR}/ttf-sil-gentium-${PV}"
 
-- 
2.40.1


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



[oe] [meta-oe][PATCH 06/11] xdotool: Upgrade to 3.20211022.1 release

2023-05-02 Thread Khem Raj
Switch to github releases
Add missing dep on libxinerama and libxkbcommon

Signed-off-by: Khem Raj 
---
 ..._1.20100416.2809.bb => xdotool_3.20211022.1.bb} | 14 +-
 1 file changed, 5 insertions(+), 9 deletions(-)
 rename meta-oe/recipes-graphics/xdotool/{xdotool_1.20100416.2809.bb => 
xdotool_3.20211022.1.bb} (51%)

diff --git a/meta-oe/recipes-graphics/xdotool/xdotool_1.20100416.2809.bb 
b/meta-oe/recipes-graphics/xdotool/xdotool_3.20211022.1.bb
similarity index 51%
rename from meta-oe/recipes-graphics/xdotool/xdotool_1.20100416.2809.bb
rename to meta-oe/recipes-graphics/xdotool/xdotool_3.20211022.1.bb
index 259c640523..cef82bd348 100644
--- a/meta-oe/recipes-graphics/xdotool/xdotool_1.20100416.2809.bb
+++ b/meta-oe/recipes-graphics/xdotool/xdotool_3.20211022.1.bb
@@ -1,23 +1,19 @@
 SUMMARY = "xdotool - command-line X11 automation tool - utilising X11 XTEST 
interface"
-HOMEPAGE = "http://www.semicomplete.com/projects/xdotool;
+HOMEPAGE = "https://github.com/jordansissel/xdotool;
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=2f9cbf7e9401cec8a38666a08851ce6b"
 SECTION = "x11"
-DEPENDS = "virtual/libx11 libxtst"
-
-PR = "r1"
+DEPENDS = "virtual/libx11 libxtst libxinerama libxkbcommon"
 
 inherit features_check pkgconfig perlnative
 # depends on virtual/libx11
 REQUIRED_DISTRO_FEATURES = "x11"
 
-SRC_URI = "http://semicomplete.googlecode.com/files/xdotool-${PV}.tar.gz;
-SRC_URI[md5sum] = "1d5be641e512c343abfe5f78b39e6f19"
-SRC_URI[sha256sum] = 
"42d7271fbc796e53db71bb221f311b9ff3c51d90a71c9487a9bd3101ca39894f"
+SRC_URI = 
"https://github.com/jordansissel/${BPN}/releases/download/v${PV}/${BP}.tar.gz;
+SRC_URI[sha256sum] = 
"96f0facfde6d78eacad35b91b0f46fecd0b35e474c03e00e30da3fdd345f9ada"
 
 EXTRA_OEMAKE = "PREFIX=${prefix} INSTALLLIB=${libdir} INSTALLMAN=${mandir}"
 
 do_install() {
-oe_runmake -e install DESTDIR=${D} PREFIX=${prefix}
+oe_runmake install DESTDIR=${D} PREFIX=${prefix}
 }
-
-- 
2.40.1


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



[oe] [meta-gnome][PATCH 07/11] faenza-icon-theme: Switch to a valid download location for SRC_URI

2023-05-02 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../recipes-gnome/faenza-icon-theme/faenza-icon-theme_1.3.bb   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/meta-gnome/recipes-gnome/faenza-icon-theme/faenza-icon-theme_1.3.bb 
b/meta-gnome/recipes-gnome/faenza-icon-theme/faenza-icon-theme_1.3.bb
index 5ed3375eb0..12d344bff5 100644
--- a/meta-gnome/recipes-gnome/faenza-icon-theme/faenza-icon-theme_1.3.bb
+++ b/meta-gnome/recipes-gnome/faenza-icon-theme/faenza-icon-theme_1.3.bb
@@ -8,8 +8,7 @@ inherit allarch gtk-icon-cache
 
 S = "${WORKDIR}"
 
-SRC_URI = "http://faenza-icon-theme.googlecode.com/files/${BPN}_${PV}.zip;
-SRC_URI[md5sum] = "e9bd6106d13017ce06d24b586259ae9c"
+SRC_URI = 
"https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${BPN}/${BPN}_${PV}.zip;
 SRC_URI[sha256sum] = 
"d4486fda0413f8a81a87e0dd2329f50f2a8a7cb4147b48cf147f0160add8174a"
 
 do_install() {
-- 
2.40.1


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



[oe] [meta-oe][PATCH 08/11] debootstrap: Update SRC_URI to point to valid URL

2023-05-02 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta-oe/recipes-connectivity/obex/obex-data-server_0.4.6.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta-oe/recipes-connectivity/obex/obex-data-server_0.4.6.bb 
b/meta-oe/recipes-connectivity/obex/obex-data-server_0.4.6.bb
index b2a204403e..3e59af8e2e 100644
--- a/meta-oe/recipes-connectivity/obex/obex-data-server_0.4.6.bb
+++ b/meta-oe/recipes-connectivity/obex/obex-data-server_0.4.6.bb
@@ -4,10 +4,9 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
 DEPENDS = "gtk+ dbus-glib dbus-glib-native imagemagick openobex bluez5"
 
-SRC_URI = "http://tadas.dailyda.com/software/obex-data-server-${PV}.tar.gz \
+SRC_URI = 
"https://ftp.osuosl.org/pub/blfs/conglomeration/${BPN}/obex-data-server-${PV}.tar.gz
 \
file://obex-data-server-0.4.6-build-fixes-1.patch \
 "
-SRC_URI[md5sum] = "961ca5db6fe9c97024e133cc6203cc4d"
 SRC_URI[sha256sum] = 
"b399465ddbd6d0217abedd9411d9d74a820effa0a6a142adc448268d3920094f"
 
 inherit features_check autotools-brokensep pkgconfig
-- 
2.40.1


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



[oe] [meta-filesystems][PATCH 03/11] httpfs2: Do not use S during compile/install tasks

2023-05-02 Thread Khem Raj
Point to SOURCEFORGE_MIRROR instead of hardcoding one

Signed-off-by: Khem Raj 
---
 .../recipes-filesystems/httpfs2-fuse/httpfs2_0.1.5.bb| 9 +++--
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/meta-filesystems/recipes-filesystems/httpfs2-fuse/httpfs2_0.1.5.bb 
b/meta-filesystems/recipes-filesystems/httpfs2-fuse/httpfs2_0.1.5.bb
index 0086551f62..5dc3ea6632 100644
--- a/meta-filesystems/recipes-filesystems/httpfs2-fuse/httpfs2_0.1.5.bb
+++ b/meta-filesystems/recipes-filesystems/httpfs2-fuse/httpfs2_0.1.5.bb
@@ -8,18 +8,15 @@ inherit pkgconfig
 DEPENDS += "fuse"
 RDEPENDS:${PN} += "fuse"
 
-SRC_URI += 
"https://astuteinternet.dl.sourceforge.net/project/httpfs/httpfs2/httpfs2-${PV}.tar.gz;
+SRC_URI += "${SOURCEFORGE_MIRROR}/project/httpfs/httpfs2/httpfs2-${PV}.tar.gz"
 SRC_URI[sha256sum] = 
"01cb4bb38deb344f540da6f1464dc7edbdeb51213ad810b8c9c282c1e17e0fc1"
 
 S = "${WORKDIR}/httpfs2-${PV}"
 
 do_compile() {
-cd ${S}
-oe_runmake httpfs2
+oe_runmake -C ${S} httpfs2
 }
 
 do_install() {
-cd ${S}
-install -d ${D}${bindir}
-install -m 0755 httpfs2 ${D}${bindir}
+install -Dm 0755 ${S}/httpfs2 ${D}${bindir}/httpfs2
 }
-- 
2.40.1


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



[oe] [meta-oe][PATCH 05/11] mosh: Point SRC_URI to https://mosh.org/

2023-05-02 Thread Khem Raj
mosh.mit.edu does not have the tarballs anymore

Signed-off-by: Khem Raj 
---
 meta-oe/recipes-connectivity/mosh/mosh_1.4.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-connectivity/mosh/mosh_1.4.0.bb 
b/meta-oe/recipes-connectivity/mosh/mosh_1.4.0.bb
index 4537a09412..2869e06336 100644
--- a/meta-oe/recipes-connectivity/mosh/mosh_1.4.0.bb
+++ b/meta-oe/recipes-connectivity/mosh/mosh_1.4.0.bb
@@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 DEPENDS = "protobuf-native protobuf ncurses zlib libio-pty-perl openssl 
libutempter"
 
-SRC_URI = "http://mosh.mit.edu/mosh-${PV}.tar.gz;
+SRC_URI = "https://mosh.org/${BP}.tar.gz;
 SRC_URI[sha256sum] = 
"872e4b134e5df29c8933dff12350785054d2fd2839b5ae6b5587b14db1465ddd"
 
 inherit autotools pkgconfig
-- 
2.40.1


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



[oe] [meta-oe][PATCH 04/11] p910nd: Switch to using github for SRC_URI

2023-05-02 Thread Khem Raj
This is new location where the project is developed now.
Pass CFLAGS to compiler cmdline
Package init script

Signed-off-by: Khem Raj 
---
 meta-oe/recipes-support/p910nd/p910nd_0.97.bb | 19 +--
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/meta-oe/recipes-support/p910nd/p910nd_0.97.bb 
b/meta-oe/recipes-support/p910nd/p910nd_0.97.bb
index a27edb1410..cd7f79ea60 100644
--- a/meta-oe/recipes-support/p910nd/p910nd_0.97.bb
+++ b/meta-oe/recipes-support/p910nd/p910nd_0.97.bb
@@ -2,21 +2,28 @@ DESCRIPTION = "A small network printer daemon for embedded 
situations that passe
 HOMEPAGE = "http://p910nd.sourceforge.net/;
 SECTION = "console/utils"
 LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=3d82780e8917b360cbee7b9ec3e40734"
 
 PR = "r2"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/p910nd/p910nd-${PV}.tar.bz2 \
+# v0.97
+SRCREV = "57ebc07ad8723ea4106090536c58c7f7160743e2"
+SRC_URI = "git://github.com/kenyapcomau/p910nd;protocol=https;branch=master \
file://fix-var-lock.patch"
 
-SRC_URI[md5sum] = "69461a6c54dca0b13ecad5b83864b43e"
-SRC_URI[sha256sum] = 
"4ac980a3ae24babae6f70f0a692625ece03a4a92c357fbb10d2e368386c3c26f"
+S = "${WORKDIR}/git"
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "p910nd"
+INITSCRIPT_PARAMS = "start 90 2 3 4 5 . stop 60 0 1 6 ."
 
 do_compile () {
-${CC} ${LDFLAGS} -o p910nd p910nd.c
+${CC} ${CFLAGS} ${LDFLAGS} -o p910nd p910nd.c
 }
 
 do_install () {
 install -D -m 0755 ${S}/p910nd ${D}${sbindir}/p910nd
-install -D -m 0644 ${S}/p910nd.conf ${D}${sysconfdir}/p910nd.conf
+install -D -m 0644 ${S}/aux/p910nd.conf 
${D}${sysconfdir}/sysconfig/p910nd.conf
+install -D -m 0644 ${S}/aux/p910nd.init ${D}${sysconfdir}/init.d/p910nd
 }
-- 
2.40.1


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



[oe] [meta-networking][PATCH 02/11] radiusclient-ng: Point SRC_URI to archive.ubuntu.com

2023-05-02 Thread Khem Raj
This tarball is not available on debian ftp archive anymore

Signed-off-by: Khem Raj 
---
 .../recipes-protocols/radiusclient-ng/radiusclient-ng_0.5.6.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/meta-networking/recipes-protocols/radiusclient-ng/radiusclient-ng_0.5.6.bb 
b/meta-networking/recipes-protocols/radiusclient-ng/radiusclient-ng_0.5.6.bb
index 4696c3baeb..6baa83e83e 100644
--- a/meta-networking/recipes-protocols/radiusclient-ng/radiusclient-ng_0.5.6.bb
+++ b/meta-networking/recipes-protocols/radiusclient-ng/radiusclient-ng_0.5.6.bb
@@ -5,11 +5,10 @@ protocol (RFCs 2128 and 2139)."
 HOMEPAGE = "http://sourceforge.net/projects/radiusclient-ng.berlios/;
 SECTION = "net"
 
-SRC_URI = "${DEBIAN_MIRROR}/main/r/${BPN}/${BPN}_${PV}.orig.tar.gz \
+SRC_URI = 
"http://archive.ubuntu.com/ubuntu/pool/universe/r/${BPN}/${BPN}_${PV}.orig.tar.gz
 \
file://Modify-configure.in-and-etc-Makefile.am.patch \
file://config-site.radiusclient-ng-${PV}"
 
-SRC_URI[md5sum] = "6fb7d4d0aefafaee7385831ac46a8e9c"
 SRC_URI[sha256sum] = 
"282a9f1355f190efbb06c0d7c4e062eaa652caf342ed3ad361ac595f72f09f14"
 
 LICENSE = "BSD-3-Clause & BSD-2-Clause & HPND"
-- 
2.40.1


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



[oe] [meta-oe][PATCH 01/11] ttf-lklug: Point SRC_URI to a working location

2023-05-02 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 .../ttf-fonts/ttf-lklug_0.6-14.20090803cvs.fc24.bb   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/meta-oe/recipes-graphics/ttf-fonts/ttf-lklug_0.6-14.20090803cvs.fc24.bb 
b/meta-oe/recipes-graphics/ttf-fonts/ttf-lklug_0.6-14.20090803cvs.fc24.bb
index 8a7c1f333b..3951647337 100644
--- a/meta-oe/recipes-graphics/ttf-fonts/ttf-lklug_0.6-14.20090803cvs.fc24.bb
+++ b/meta-oe/recipes-graphics/ttf-fonts/ttf-lklug_0.6-14.20090803cvs.fc24.bb
@@ -5,9 +5,8 @@ HOMEPAGE = 
"http://rpms.famillecollet.com/rpmphp/zoom.php?rpm=lklug-fonts;
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
-SRC_URI = 
"http://dl.fedoraproject.org/pub/fedora/linux/releases/24/Everything/source/tree/Packages/l/lklug-fonts-0.6-14.20090803cvs.fc24.src.rpm;extract=lklug-20090803.tar.gz;
-SRC_URI[md5sum] = "3341dfb997043d234ab3f6e5a965e759"
-SRC_URI[sha256sum] = 
"f54c1f3b4df08995982657fed290b562556191fee2a0386afd9e8bf228f72b1a"
+SRC_URI = 
"https://src.fedoraproject.org/repo/pkgs/lklug-fonts/lklug-20090803.tar.gz/b6e0daaf8cf41208fd2a7bc04fb23f84/lklug-20090803.tar.gz;
+SRC_URI[sha256sum] = 
"de5750f7048973f851961050f76b8b58e9bda400d5007c3078d9317fbe2ff5fd"
 
 DEPENDS = "fontforge-native"
 
-- 
2.40.1


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