[OE-core] [PATCH] python3-maturin: upgrade 1.5.1 -> 1.6.0

2024-06-04 Thread Tim Orling
From: Tim Orling 

* Refresh python3-maturin-crates.inc

1.6.0 - 2024-06-04
* Detect compiling from Linux gnu to Linux musl as cross compiling in #2010
* Add musllinux support to generate-ci in #2011
* Add uv support to develop command in #2015
* Add support for AIX target in #2030
* Remove rust-cpython support in #2044
* Add a global -v option in #2080
* Detect target based on interpreter for pep517 build-wheel in #2088
* Use base executable when possible in PEP 517 build in #2094

https://github.com/pyo3/maturin/compare/v1.5.1...v1.6.0

Signed-off-by: Tim Orling 
---
Tested with oe-selftest -r 
recipetool.RecipetoolCreateTests.test_recipetool_create_python3_pep517_maturin

 .../python/python3-maturin-crates.inc | 54 ---
 ...urin_1.5.1.bb => python3-maturin_1.6.0.bb} |  2 +-
 2 files changed, 47 insertions(+), 9 deletions(-)
 rename meta/recipes-devtools/python/{python3-maturin_1.5.1.bb => 
python3-maturin_1.6.0.bb} (92%)

diff --git a/meta/recipes-devtools/python/python3-maturin-crates.inc 
b/meta/recipes-devtools/python/python3-maturin-crates.inc
index ba207458ef9..dff1a166b22 100644
--- a/meta/recipes-devtools/python/python3-maturin-crates.inc
+++ b/meta/recipes-devtools/python/python3-maturin-crates.inc
@@ -26,11 +26,11 @@ SRC_URI += " \
 crate://crates.io/bzip2-sys/0.1.11+1.0.8 \
 crate://crates.io/cab/0.4.1 \
 crate://crates.io/camino/1.1.6 \
-crate://crates.io/cargo-config2/0.1.19 \
-crate://crates.io/cargo-options/0.7.2 \
+crate://crates.io/cargo-config2/0.1.24 \
+crate://crates.io/cargo-options/0.7.4 \
 crate://crates.io/cargo-platform/0.1.6 \
 crate://crates.io/cargo-xwin/0.16.4 \
-crate://crates.io/cargo-zigbuild/0.18.3 \
+crate://crates.io/cargo-zigbuild/0.18.4 \
 crate://crates.io/cargo_metadata/0.18.1 \
 crate://crates.io/cbindgen/0.26.0 \
 crate://crates.io/cc/1.0.88 \
@@ -69,6 +69,7 @@ SRC_URI += " \
 crate://crates.io/dirs-sys/0.4.1 \
 crate://crates.io/dissimilar/1.0.7 \
 crate://crates.io/dunce/1.0.4 \
+crate://crates.io/dyn-clone/1.0.17 \
 crate://crates.io/either/1.9.0 \
 crate://crates.io/encode_unicode/0.3.6 \
 crate://crates.io/encoding_rs/0.8.33 \
@@ -84,6 +85,16 @@ SRC_URI += " \
 crate://crates.io/foreign-types-shared/0.1.1 \
 crate://crates.io/form_urlencoded/1.2.1 \
 crate://crates.io/fs-err/2.11.0 \
+crate://crates.io/futures/0.3.30 \
+crate://crates.io/futures-channel/0.3.30 \
+crate://crates.io/futures-core/0.3.30 \
+crate://crates.io/futures-executor/0.3.30 \
+crate://crates.io/futures-io/0.3.30 \
+crate://crates.io/futures-macro/0.3.30 \
+crate://crates.io/futures-sink/0.3.30 \
+crate://crates.io/futures-task/0.3.30 \
+crate://crates.io/futures-timer/3.0.3 \
+crate://crates.io/futures-util/0.3.30 \
 crate://crates.io/generic-array/0.14.7 \
 crate://crates.io/getrandom/0.2.12 \
 crate://crates.io/glob/0.3.1 \
@@ -148,6 +159,7 @@ SRC_URI += " \
 crate://crates.io/pep508_rs/0.4.2 \
 crate://crates.io/percent-encoding/2.3.1 \
 crate://crates.io/pin-project-lite/0.2.13 \
+crate://crates.io/pin-utils/0.1.0 \
 crate://crates.io/pkg-config/0.3.29 \
 crate://crates.io/plain/0.2.3 \
 crate://crates.io/platform-info/2.0.2 \
@@ -174,11 +186,14 @@ SRC_URI += " \
 crate://crates.io/regex-automata/0.4.5 \
 crate://crates.io/regex-syntax/0.6.29 \
 crate://crates.io/regex-syntax/0.8.2 \
+crate://crates.io/relative-path/1.9.2 \
 crate://crates.io/rfc2047-decoder/0.2.2 \
 crate://crates.io/ring/0.17.7 \
+crate://crates.io/rstest/0.18.2 \
+crate://crates.io/rstest_macros/0.18.2 \
 crate://crates.io/rustc_version/0.4.0 \
 crate://crates.io/rustix/0.38.32 \
-crate://crates.io/rustls/0.22.2 \
+crate://crates.io/rustls/0.22.4 \
 crate://crates.io/rustls-pemfile/2.1.0 \
 crate://crates.io/rustls-pki-types/1.3.1 \
 crate://crates.io/rustls-webpki/0.102.1 \
@@ -186,6 +201,8 @@ SRC_URI += " \
 crate://crates.io/ryu/1.0.16 \
 crate://crates.io/same-file/1.0.6 \
 crate://crates.io/schannel/0.1.23 \
+crate://crates.io/schemars/0.8.16 \
+crate://crates.io/schemars_derive/0.8.16 \
 crate://crates.io/scopeguard/1.2.0 \
 crate://crates.io/scroll/0.12.0 \
 crate://crates.io/scroll_derive/0.12.0 \
@@ -194,6 +211,7 @@ SRC_URI += " \
 crate://crates.io/semver/1.0.22 \
 crate://crates.io/serde/1.0.197 \
 crate://crates.io/serde_derive/1.0.197 \
+crate://crates.io/serde_derive_internals/0.26.0 \
 crate://crates.io/serde_json/1.0.114 \
 crate://crates.io/serde_spanned/0.6.5 \
 crate://crates.io/sha2/0.10.8 \
@@ -201,6 +219,7 @@ SRC_URI += " \
 crate://crates.io/shell-words/1.1.0 \
 crate://crates.io/shlex/1.3.0 \
 crate://crates.io/similar/2.4.0 \
+crate://crates.io/slab/0.4.9 \
 crate://crates.io/smallvec/1.13.1 \
 crate://

Re: [OE-core] [RFC PATCH 0/3] Implement RECIPE_UPDATE_EXTRA_TASKS

2024-06-03 Thread Tim Orling
On Mon, Jun 3, 2024 at 2:09 AM Alexander Kanavin 
wrote:

> Thanks, I like the idea. There are a number of other recipes that for
> various reasons need 'special handling' in version updates that
> devtool doesn't know how to perform, and this could be used to define
> that handling where it belongs, which is in the recipe itself.
>
> E.g. updating cmake could also rename cmake-native_*.bb to match.
>

Good point. I had not considered that. As RP pointed out, python manifest
is another.

I suspect we will find many use cases for this pattern.


>
> Alex
>
> On Sun, 2 Jun 2024 at 23:01, Tim Orling via lists.openembedded.org
>  wrote:
> >
> > From: Tim Orling 
> >
> > Whenever a recipe which inherits cargo-update-recipe-crates is upgraded
> with
> > devtool (such as with the Auto Upgrade Helper) we frequently see
> failures.
> > If the upstream Cargo.toml or Cargo.lock has been changed, the
> corresponding
> > -crates.inc needs to be updated. This is done by running the
> > "bitbake -c update_crates " task, but this has until now
> been
> > a manual operation.
> >
> > Add a new variable RECIPE_UPDATE_EXTRA_TASKS which is a string delimited
> > list of tasks to be run during the upgrade() method of
> > meta/lib/devtool/upgrade.py.
> >
> > To solve the problem described above, the solution is for all recipes
> which
> > inherit cargo-update-recipe-crates to add the "do_update_crates" task to
> > the RECIPE_UPDATE_EXTRA_TASKS variable. Add this to the bbclass.
> >
> > Add test case based on the guessing-game source we currently use for the
> > maturin runtime test cases, based on https://www.maturin.rs/tutorial.
> > This oe-selftest case checks for both the change in the recipe file and
> > the recipe -crates.inc file.
> >
> > This will rely on a new "guessing-game" git repository to be added to
> > git.yoctoproject.org/guessing-game (currently hosted on GitHub for the
> > purposes of this RFC).
> >
> > Currently, update_crates is the only task known to the author to fall
> into
> > this RECIPE_UPDATE_EXTRA_TASKS use case. If anyone can think of other use
> > cases that can also be added (and tested!), please let me know.
> >
> > Two obvious use cases that would be nice to add with changes in oe-core
> are:
> > (1) some kind of "go-mod://" update class to use a similar
> -go-mods.inc
> > (2) some kind of rework of the "npm://" fetcher to use
> -npm-mods.inc
> > But both of those are out of scope for this proposal.
> >
> > The _run_recipe_update_extra_tasks() method added to
> lib/devtool/upgrade.py
> > is functional, but could probably use some more guards and checks. Ideas
> for
> > improvements are welcome, hence the RFC.
> >
> > An attempt at documenting the new variable has been added to ref-manual,
> > but if anyone has some ideas for better clarification, input is welcome.
> >
> > The following changes since commit
> af6d28d2b0abdfcfa70edcc95abd99a3c1a64ac8:
> >
> >   sanity: Check if tar is gnutar (2024-05-31 16:58:36 +0100)
> >
> > are available in the Git repository at:
> >
> >   https://git.yoctoproject.org/poky-contrib
> timo/RECIPE_UPDATE_EXTRA_TASKS
> >
> https://git.yoctoproject.org/poky-contrib/log/?h=timo/RECIPE_UPDATE_EXTRA_TASKS
> >
> > Tim Orling (5):
> >   devtool upgrade: enable RECIPE_UPDATE_EXTRA_TASKS
> >   cargo-update-recipe-crates: add RECIPE_UPDATE_EXTRA_TASKS
> >   ref-manual: add RECIPE_UPDATE_EXTRA_TASKS variable
> >   meta-selftest: add python3-guessing-game
> >   oe-selftest: add RECIPE_UPDATE_EXTRA_TASKS test
> >
> >  documentation/ref-manual/variables.rst|  7 ++
> >  .../python/python3-guessing-game-crates.inc   | 82 +
> >  .../python3-guessing-game-crates.inc.upgraded | 88 +++
> >  .../python/python3-guessing-game_git.bb   | 19 
> >  .../python3-guessing-game_git.bb.upgraded | 19 
> >  .../cargo-update-recipe-crates.bbclass|  2 +
> >  meta/lib/oeqa/selftest/cases/devtool.py   | 46 ++
> >  scripts/lib/devtool/upgrade.py| 12 +++
> >  8 files changed, 275 insertions(+)
> >  create mode 100644
> meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc
> >  create mode 100644
> meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc.upgraded
> >  create mode 100644 meta-selftest/recipes-devtools/python/
> python3-guessing-game_git.bb
> >  create mode 100644
> meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb.upgraded
> >
> > --
> > 2.45.2
> >
> >
> > 
> >
>

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



Re: [OE-core] [RFC PATCH 0/3] Implement RECIPE_UPDATE_EXTRA_TASKS

2024-06-03 Thread Tim Orling
On Mon, Jun 3, 2024 at 7:08 AM Richard Purdie <
richard.pur...@linuxfoundation.org> wrote:

> On Sun, 2024-06-02 at 14:00 -0700, Tim Orling via lists.openembedded.org
> wrote:
> > From: Tim Orling 
> >
> > Whenever a recipe which inherits cargo-update-recipe-crates is upgraded
> with
> > devtool (such as with the Auto Upgrade Helper) we frequently see
> failures.
> > If the upstream Cargo.toml or Cargo.lock has been changed, the
> corresponding
> > -crates.inc needs to be updated. This is done by running the
> > "bitbake -c update_crates " task, but this has until now
> been
> > a manual operation.
> >
> > Add a new variable RECIPE_UPDATE_EXTRA_TASKS which is a string delimited
> > list of tasks to be run during the upgrade() method of
> > meta/lib/devtool/upgrade.py.
> >
> > To solve the problem described above, the solution is for all recipes
> which
> > inherit cargo-update-recipe-crates to add the "do_update_crates" task to
> > the RECIPE_UPDATE_EXTRA_TASKS variable. Add this to the bbclass.
> >
> > Add test case based on the guessing-game source we currently use for the
> > maturin runtime test cases, based on https://www.maturin.rs/tutorial.
> > This oe-selftest case checks for both the change in the recipe file and
> > the recipe -crates.inc file.
> >
> > This will rely on a new "guessing-game" git repository to be added to
> > git.yoctoproject.org/guessing-game (currently hosted on GitHub for the
> > purposes of this RFC).
> >
> > Currently, update_crates is the only task known to the author to fall
> into
> > this RECIPE_UPDATE_EXTRA_TASKS use case. If anyone can think of other use
> > cases that can also be added (and tested!), please let me know.
>
> This looks good to me, thanks.
>
> Would we want to add the task that updates the python recipe's manifest
> to this?
>

Probably yes. Good idea. Which then brings up perl which has a similar
issue with the perl-rdepends.txt.


>
> Cheers,
>
> Richard
>
>
>

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



[OE-core] [PATCH] python3-babel: upgrade 2.14.0 -> 2.15.0

2024-06-02 Thread Tim Orling
From: Tim Orling 

* Override S and PYPI_SRC_URI as upstream tarball is now "babel"
  instead of "Babel", but we still need PYPI_PACKAGE to be "Babel"
  for the upstream version check to work.

What's Changed
* Drop support for Python 3.7 (EOL since June 2023) by @akx in #1048
* Upgrade GitHub Actions by @cclauss in #1054
* Improve .po IO by @akx in #1068
* Use CLDR 44 by @akx in #1071
* Allow alternative space characters as group separator when parsing
  numbers by @ronnix in #1007
* Include Unicode license in locale-data and in documentation by @akx
  in #1074
* Encode support for the "fall back to short format" logic for time
  delta formatting by @akx in #1075
* Prepare for 2.15.0 release by @akx in #1079

https://github.com/python-babel/babel/compare/v2.14.0...v2.15.0

License-Update: copyright years

Signed-off-by: Tim Orling 
---
 .../{python3-babel_2.14.0.bb => python3-babel_2.15.0.bb}  | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-babel_2.14.0.bb => 
python3-babel_2.15.0.bb} (62%)

diff --git a/meta/recipes-devtools/python/python3-babel_2.14.0.bb 
b/meta/recipes-devtools/python/python3-babel_2.15.0.bb
similarity index 62%
rename from meta/recipes-devtools/python/python3-babel_2.14.0.bb
rename to meta/recipes-devtools/python/python3-babel_2.15.0.bb
index cd40d4222bf..03d06c46840 100644
--- a/meta/recipes-devtools/python/python3-babel_2.14.0.bb
+++ b/meta/recipes-devtools/python/python3-babel_2.15.0.bb
@@ -1,14 +1,18 @@
 SUMMARY = "A collection of tools for internationalizing Python applications"
 HOMEPAGE = "http://babel.edgewall.org/;
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=0f97d9a63e91407b4c0d01efde91cfc0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e7ebed8cd9f4ff11f547e3afd024a28c"
 
-SRC_URI[sha256sum] = 
"6919867db036398ba21eb5c7a0f6b28ab8cbc3ae7a73a44ebe34ae74a4e7d363"
+SRC_URI[sha256sum] = 
"8daf0e265d05768bc6c7a314cf1321e9a123afc328cc635c18622a2f30a04413"
 
 PYPI_PACKAGE = "Babel"
 
+PYPI_SRC_URI = 
"https://files.pythonhosted.org/packages/source/b/babel/babel-${PV}.tar.gz;
+
 inherit pypi setuptools3
 
+S = "${WORKDIR}/babel-${PV}"
+
 CLEANBROKEN = "1"
 
 RDEPENDS:${PN} += " \
-- 
2.45.2


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



[OE-core] [PATCH] python3-meson-python: ugprade 0.15.0 -> 0.16.0

2024-06-02 Thread Tim Orling
From: Tim Orling 

https://github.com/mesonbuild/meson-python/compare/0.15.0...0.16.0

Signed-off-by: Tim Orling 
---
Tested by running 'oe-selftest -r 
recipetool.RecipetoolCreateTests.test_recipetool_create_python3_pep517_mesonpy'
Tested by building into core-image-minimal and then "python3; import mesonpy"

The AUH failed to upgrade due to what appears to be an inability to handle 
unicode characters in the file name.
Filed bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15500

 ...n3-meson-python_0.15.0.bb => python3-meson-python_0.16.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-meson-python_0.15.0.bb => 
python3-meson-python_0.16.0.bb} (85%)

diff --git a/meta/recipes-devtools/python/python3-meson-python_0.15.0.bb 
b/meta/recipes-devtools/python/python3-meson-python_0.16.0.bb
similarity index 85%
rename from meta/recipes-devtools/python/python3-meson-python_0.15.0.bb
rename to meta/recipes-devtools/python/python3-meson-python_0.16.0.bb
index ad3cfe17d9e..79a7ff05eff 100644
--- a/meta/recipes-devtools/python/python3-meson-python_0.15.0.bb
+++ b/meta/recipes-devtools/python/python3-meson-python_0.16.0.bb
@@ -13,7 +13,7 @@ DEPENDS = " \
 PYPI_PACKAGE = "meson_python"
 
 inherit pypi python_mesonpy
-SRC_URI[sha256sum] = 
"fddb73eecd49e89c1c41c87937cd89c2d0b65a1c63ba28238681d4bd9484d26f"
+SRC_URI[sha256sum] = 
"9068c17e36c89d6c7ff709fffb2a8a9925e8cd0b02629728e5ceaf2ec505cb5f"
 
 DEPENDS:remove:class-native = "python3-meson-python-native"
 
-- 
2.45.2


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



Re: [OE-core] [AUH] python3-meson-python: upgrading to 0.16.0 FAILED

2024-06-02 Thread Tim Orling
On Sun, Jun 2, 2024 at 3:16 PM Tim Orling  wrote:

>
>
> On Sat, Jun 1, 2024 at 10:33 AM  wrote:
>
>> Hello,
>>
>> this email is a notification from the Auto Upgrade Helper
>> that the automatic attempt to upgrade the recipe *python3-meson-python*
>> to *0.16.0* has Failed (devtool error).
>>
>> Detailed error information:
>>
>> The following devtool command failed:  upgrade python3-meson-python -V
>> 0.16.0
>> NOTE: Reconnecting to bitbake server...
>> Loading cache...done.
>> Loaded 1878 entries from dependency cache.
>> Removing 1 recipes from the x86_64 sysroot...done.
>> NOTE: Resolving any missing task queue dependencies
>>
>> Build Configuration:
>> BB_VERSION   = "2.9.1"
>> BUILD_SYS= "x86_64-linux"
>> NATIVELSBSTRING  = "universal"
>> TARGET_SYS   = "x86_64-poky-linux"
>> MACHINE  = "qemux86-64"
>> DISTRO   = "poky"
>> DISTRO_VERSION   =
>> "5.0+snapshot-f545f76df362714d49c9cdad3a9c02789a25890a"
>> TUNE_FEATURES= "m64 core2"
>> TARGET_FPU   = ""
>> meta
>> meta-poky
>> meta-yocto-bsp
>> workspace=
>> "tmp-auh-upgrades:f545f76df362714d49c9cdad3a9c02789a25890a"
>>
>> Initialising tasks...NOTE: The /proc/pressure files can't be read.
>> Continuing build without monitoring pressure
>> Sstate summary: Wanted 10 Local 10 Mirrors 0 Missed 0 Current 20 (100%
>> match, 100% complete)
>> done.
>> NOTE: Executing Tasks
>> NOTE: Tasks Summary: Attempted 103 tasks of which 100 didn't need to be
>> rerun and all succeeded.
>> NOTE: Writing buildhistory
>> NOTE: Writing buildhistory took: 3 seconds
>> Loading cache...done.
>> Loaded 1878 entries from dependency cache.
>> Parsing recipes...done.
>> Parsing of 919 .bb files complete (917 cached, 2 parsed). 1878 targets,
>> 35 skipped, 0 masked, 0 errors.
>> NOTE: Resolving any missing task queue dependencies
>>
>> Build Configuration:
>> BB_VERSION   = "2.9.1"
>> BUILD_SYS= "x86_64-linux"
>> NATIVELSBSTRING  = "universal"
>> TARGET_SYS   = "x86_64-poky-linux"
>> MACHINE  = "qemux86-64"
>> DISTRO   = "poky"
>> DISTRO_VERSION   =
>> "5.0+snapshot-f545f76df362714d49c9cdad3a9c02789a25890a"
>> TUNE_FEATURES= "m64 core2"
>> TARGET_FPU   = ""
>> meta
>> meta-poky
>> meta-yocto-bsp
>> workspace=
>> "tmp-auh-upgrades:f545f76df362714d49c9cdad3a9c02789a25890a"
>>
>> Initialising tasks...NOTE: The /proc/pressure files can't be read.
>> Continuing build without monitoring pressure
>> Sstate summary: Wanted 1 Local 0 Mirrors 0 Missed 1 Current 0 (0% match,
>> 0% complete)
>> done.
>> NOTE: Executing Tasks
>> WARNING: tmp-recipetool-2s05wgwo: the directory
>> /home/pokybuild/yocto-worker/auh/build/build/tmp/work/recipetool-7a3kjczy/emptysrc
>> (/home/pokybuild/yocto-worker/auh/build/build/tmp/work/recipetool-7a3kjczy/emptysrc)
>> pointed to by the S variable doesn't exist - please set S within the recipe
>> to point to where the source has been unpacked to
>> NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun
>> and all succeeded.
>> NOTE: Writing buildhistory
>> NOTE: Writing buildhistory took: 3 seconds
>> DEBUG 5 [Errno 25] Inappropriate ioctl for device
>> Adding changed files:   0% |   | ETA:
>> --:--:--
>> INFO: Extracting current version source...
>> INFO: Extracting upgraded version source...
>> INFO: Fetching
>> https://files.pythonhosted.org/packages/source/m/meson_python/meson_python-0.16.0.tar.gz;downloadfilename=meson_python-0.16.0.tar.gz.
>> ..
>> ERROR: Execution of 'git add -f -A ".readthedocs.yaml"
>> "tests/packages/complex/complex/more/baz.pyx"
>> "tests/packages/complex/complex/more/meson.build"
>> "tests/packages/complex/foo.py" "tests/packages/complex/move.py"
>> "tests/packages/custom-target-dir/codegen.py"
>> "tests/packages/custom-target-dir/meson.build"
>> "tests/packages/custom-target-dir/pyproject.toml"
>> "tests/packages/encoding/meson.build"
>> "tests/packages/encoding/pyproject.toml"
>> ""tests/packages/enco

Re: [OE-core] [AUH] python3-meson-python: upgrading to 0.16.0 FAILED

2024-06-02 Thread Tim Orling
On Sat, Jun 1, 2024 at 10:33 AM  wrote:

> Hello,
>
> this email is a notification from the Auto Upgrade Helper
> that the automatic attempt to upgrade the recipe *python3-meson-python* to
> *0.16.0* has Failed (devtool error).
>
> Detailed error information:
>
> The following devtool command failed:  upgrade python3-meson-python -V
> 0.16.0
> NOTE: Reconnecting to bitbake server...
> Loading cache...done.
> Loaded 1878 entries from dependency cache.
> Removing 1 recipes from the x86_64 sysroot...done.
> NOTE: Resolving any missing task queue dependencies
>
> Build Configuration:
> BB_VERSION   = "2.9.1"
> BUILD_SYS= "x86_64-linux"
> NATIVELSBSTRING  = "universal"
> TARGET_SYS   = "x86_64-poky-linux"
> MACHINE  = "qemux86-64"
> DISTRO   = "poky"
> DISTRO_VERSION   =
> "5.0+snapshot-f545f76df362714d49c9cdad3a9c02789a25890a"
> TUNE_FEATURES= "m64 core2"
> TARGET_FPU   = ""
> meta
> meta-poky
> meta-yocto-bsp
> workspace=
> "tmp-auh-upgrades:f545f76df362714d49c9cdad3a9c02789a25890a"
>
> Initialising tasks...NOTE: The /proc/pressure files can't be read.
> Continuing build without monitoring pressure
> Sstate summary: Wanted 10 Local 10 Mirrors 0 Missed 0 Current 20 (100%
> match, 100% complete)
> done.
> NOTE: Executing Tasks
> NOTE: Tasks Summary: Attempted 103 tasks of which 100 didn't need to be
> rerun and all succeeded.
> NOTE: Writing buildhistory
> NOTE: Writing buildhistory took: 3 seconds
> Loading cache...done.
> Loaded 1878 entries from dependency cache.
> Parsing recipes...done.
> Parsing of 919 .bb files complete (917 cached, 2 parsed). 1878 targets, 35
> skipped, 0 masked, 0 errors.
> NOTE: Resolving any missing task queue dependencies
>
> Build Configuration:
> BB_VERSION   = "2.9.1"
> BUILD_SYS= "x86_64-linux"
> NATIVELSBSTRING  = "universal"
> TARGET_SYS   = "x86_64-poky-linux"
> MACHINE  = "qemux86-64"
> DISTRO   = "poky"
> DISTRO_VERSION   =
> "5.0+snapshot-f545f76df362714d49c9cdad3a9c02789a25890a"
> TUNE_FEATURES= "m64 core2"
> TARGET_FPU   = ""
> meta
> meta-poky
> meta-yocto-bsp
> workspace=
> "tmp-auh-upgrades:f545f76df362714d49c9cdad3a9c02789a25890a"
>
> Initialising tasks...NOTE: The /proc/pressure files can't be read.
> Continuing build without monitoring pressure
> Sstate summary: Wanted 1 Local 0 Mirrors 0 Missed 1 Current 0 (0% match,
> 0% complete)
> done.
> NOTE: Executing Tasks
> WARNING: tmp-recipetool-2s05wgwo: the directory
> /home/pokybuild/yocto-worker/auh/build/build/tmp/work/recipetool-7a3kjczy/emptysrc
> (/home/pokybuild/yocto-worker/auh/build/build/tmp/work/recipetool-7a3kjczy/emptysrc)
> pointed to by the S variable doesn't exist - please set S within the recipe
> to point to where the source has been unpacked to
> NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun
> and all succeeded.
> NOTE: Writing buildhistory
> NOTE: Writing buildhistory took: 3 seconds
> DEBUG 5 [Errno 25] Inappropriate ioctl for device
> Adding changed files:   0% |   | ETA:
> --:--:--
> INFO: Extracting current version source...
> INFO: Extracting upgraded version source...
> INFO: Fetching
> https://files.pythonhosted.org/packages/source/m/meson_python/meson_python-0.16.0.tar.gz;downloadfilename=meson_python-0.16.0.tar.gz.
> ..
> ERROR: Execution of 'git add -f -A ".readthedocs.yaml"
> "tests/packages/complex/complex/more/baz.pyx"
> "tests/packages/complex/complex/more/meson.build"
> "tests/packages/complex/foo.py" "tests/packages/complex/move.py"
> "tests/packages/custom-target-dir/codegen.py"
> "tests/packages/custom-target-dir/meson.build"
> "tests/packages/custom-target-dir/pyproject.toml"
> "tests/packages/encoding/meson.build"
> "tests/packages/encoding/pyproject.toml"
> ""tests/packages/encoding/\343\203\206\343\202\271\343\203\210.py""
> ".cirrus.yml" ".github/workflows/docs.yml" ".github/workflows/tests.yml"
> ".pre-commit-config.yaml" ".readthedocs.yml" "CHANGELOG.rst" "PKG-INFO"
> "README.rst" "ci/alpine-3.docker" "ci/debian-11.docker"
> "ci/debian-12.docker" "ci/fedora-37.docker" "ci/miniconda.docker"
> "docs/changelog.rst" "docs/conf.py" "docs/contributing/commit-format.rst"
> "docs/contributing/documentation.rst"
> "docs/contributing/getting-started.rst" "docs/contributing/index.rst"
> "docs/contributing/release-process.rst" "do
>  cs/contributing/test-suite.rst" "docs/explanations/design.rst"
> "docs/explanations/editable-installs.rst"
> "docs/explanations/internal-dependencies.rst"
> "docs/how-to-guides/build-directory.rst"
> "docs/how-to-guides/config-settings.rst"
> "docs/how-to-guides/first-project.rst" "docs/index.rst"
> "docs/projects-using-meson-python.rst"
> "docs/reference/environment-variables.rst"
> "docs/reference/meson-compatibility.rst"
> "docs/reference/pyproject-settings.rst" "docs/reference/quirks.rst"
> 

[OE-core] [RFC PATCH 5/5] oe-selftest: add RECIPE_UPDATE_EXTRA_TASKS test

2024-06-02 Thread Tim Orling
From: Tim Orling 

Add test_devtool_upgrade_recipe_update_extra_tasks test case
to test upgrade of python3-guessing-game from v0.1.0 to v0.2.0
which will exercise the update_crates task during the upgrade.

Add python3-guessing-game_git.bb.upgraded and
python3-guessing-game-crates.inc.upgraded  which are the 0.2.0
variants.

Check that the new recipe file has the expected differences.

Check that the new -crates.inc file has the expected differences,
which should be reproducible because of Cargo.lock.

Signed-off-by: Tim Orling 
---
 .../python3-guessing-game-crates.inc.upgraded | 88 +++
 .../python3-guessing-game_git.bb.upgraded | 19 
 meta/lib/oeqa/selftest/cases/devtool.py   | 46 ++
 3 files changed, 153 insertions(+)
 create mode 100644 
meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc.upgraded
 create mode 100644 
meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb.upgraded

diff --git 
a/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc.upgraded
 
b/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc.upgraded
new file mode 100644
index 000..b19b42832d9
--- /dev/null
+++ 
b/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc.upgraded
@@ -0,0 +1,88 @@
+# Autogenerated with 'bitbake -c update_crates python3-guessing-game'
+
+# from Cargo.lock
+SRC_URI += " \
+crate://crates.io/autocfg/1.3.0 \
+crate://crates.io/bitflags/2.5.0 \
+crate://crates.io/cfg-if/1.0.0 \
+crate://crates.io/getrandom/0.2.15 \
+crate://crates.io/heck/0.4.1 \
+crate://crates.io/indoc/2.0.5 \
+crate://crates.io/libc/0.2.155 \
+crate://crates.io/lock_api/0.4.12 \
+crate://crates.io/memoffset/0.9.1 \
+crate://crates.io/once_cell/1.19.0 \
+crate://crates.io/parking_lot/0.12.3 \
+crate://crates.io/parking_lot_core/0.9.10 \
+crate://crates.io/portable-atomic/1.6.0 \
+crate://crates.io/ppv-lite86/0.2.17 \
+crate://crates.io/proc-macro2/1.0.84 \
+crate://crates.io/pyo3/0.21.2 \
+crate://crates.io/pyo3-build-config/0.21.2 \
+crate://crates.io/pyo3-ffi/0.21.2 \
+crate://crates.io/pyo3-macros/0.21.2 \
+crate://crates.io/pyo3-macros-backend/0.21.2 \
+crate://crates.io/quote/1.0.36 \
+crate://crates.io/rand/0.8.5 \
+crate://crates.io/rand_chacha/0.3.1 \
+crate://crates.io/rand_core/0.6.4 \
+crate://crates.io/redox_syscall/0.5.1 \
+crate://crates.io/scopeguard/1.2.0 \
+crate://crates.io/smallvec/1.13.2 \
+crate://crates.io/syn/2.0.66 \
+crate://crates.io/target-lexicon/0.12.14 \
+crate://crates.io/unicode-ident/1.0.12 \
+crate://crates.io/unindent/0.2.3 \
+crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \
+crate://crates.io/windows-targets/0.52.5 \
+crate://crates.io/windows_aarch64_gnullvm/0.52.5 \
+crate://crates.io/windows_aarch64_msvc/0.52.5 \
+crate://crates.io/windows_i686_gnu/0.52.5 \
+crate://crates.io/windows_i686_gnullvm/0.52.5 \
+crate://crates.io/windows_i686_msvc/0.52.5 \
+crate://crates.io/windows_x86_64_gnu/0.52.5 \
+crate://crates.io/windows_x86_64_gnullvm/0.52.5 \
+crate://crates.io/windows_x86_64_msvc/0.52.5 \
+"
+
+SRC_URI[autocfg-1.3.0.sha256sum] = 
"0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
+SRC_URI[bitflags-2.5.0.sha256sum] = 
"cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
+SRC_URI[cfg-if-1.0.0.sha256sum] = 
"baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+SRC_URI[getrandom-0.2.15.sha256sum] = 
"c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
+SRC_URI[heck-0.4.1.sha256sum] = 
"95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
+SRC_URI[indoc-2.0.5.sha256sum] = 
"b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
+SRC_URI[libc-0.2.155.sha256sum] = 
"97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
+SRC_URI[lock_api-0.4.12.sha256sum] = 
"07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"
+SRC_URI[memoffset-0.9.1.sha256sum] = 
"488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
+SRC_URI[once_cell-1.19.0.sha256sum] = 
"3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
+SRC_URI[parking_lot-0.12.3.sha256sum] = 
"f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
+SRC_URI[parking_lot_core-0.9.10.sha256sum] = 
"1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
+SRC_URI[portable-atomic-1.6.0.sha256sum] = 
"7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
+SRC_URI[ppv-lite86-0.2.17.sha256sum] = 
"5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
+SRC_URI[proc-macro2-1.0.84.sha256sum] = 
"ec96c6a92621310b51366f1e28d05ef11489516e93be030060e5fc12

[OE-core] [RFC PATCH 2/5] cargo-update-recipe-crates: add RECIPE_UPDATE_EXTRA_TASKS

2024-06-02 Thread Tim Orling
From: Tim Orling 

When we upgrade a recipe that inherits cargo-update-recipe-crates and
the upstream Cargo.toml/Cargo.lock have been changed, we need to run
the update_crates task or else the devtool upgrade (and therefore
AUH upgrade) will fail.

Add "do_update_crates" task to RECIPE_UPDATE_EXTRA_TASKS for all
recipes that inherit this class.

Signed-off-by: Tim Orling 
---
 meta/classes-recipe/cargo-update-recipe-crates.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes-recipe/cargo-update-recipe-crates.bbclass 
b/meta/classes-recipe/cargo-update-recipe-crates.bbclass
index 8980137d02c..a405951f4b5 100644
--- a/meta/classes-recipe/cargo-update-recipe-crates.bbclass
+++ b/meta/classes-recipe/cargo-update-recipe-crates.bbclass
@@ -18,6 +18,8 @@ do_update_crates[depends] = 
"python3-native:do_populate_sysroot"
 do_update_crates[nostamp] = "1"
 do_update_crates[doc] = "Update the recipe by reading Cargo.lock and write in 
${THISDIR}/${BPN}-crates.inc"
 
+RECIPE_UPDATE_EXTRA_TASKS:${PN} += "do_update_crates"
+
 # The directory where to search for Cargo.lock files
 CARGO_LOCK_SRC_DIR ??= "${S}"
 
-- 
2.45.2


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



[OE-core] [RFC PATCH 3/5] ref-manual: add RECIPE_UPDATE_EXTRA_TASKS variable

2024-06-02 Thread Tim Orling
From: Tim Orling 

Document the new RECIPE_UPDATE_EXTRA_TASKS variable
and give cargo-update-recipe-crates as a concrete
example.

Signed-off-by: Tim Orling 
---
 documentation/ref-manual/variables.rst | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/documentation/ref-manual/variables.rst 
b/documentation/ref-manual/variables.rst
index 07b5b6f95cf..255de3e396a 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7080,6 +7080,13 @@ system and gives an overview of their function and 
contents.
   The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
   Do not modify it.
 
+   :term:`RECIPE_UPDATE_EXTRA_TASKS`
+  For some recipes, after the new source has been unpacked, additional 
tasks
+  may need to be run during an upgrade. A good example of this is recipes
+  which inherit :ref:`ref-classes-cargo-update-recipe-crates`, where the
+  `do_update_crates` task needs to be run whenever Cargo.toml/Cargo.lock 
have
+  changed in the source.
+
:term:`REPODIR`
   See :term:`bitbake:REPODIR` in the BitBake manual.
 
-- 
2.45.2


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



[OE-core] [RFC PATCH 4/5] meta-selftest: add python3-guessing-game

2024-06-02 Thread Tim Orling
From: Tim Orling 

Add v0.1.0 of python3-guessing-game which is used as the baseline
for an upgrade to v0.2.0 in test_devtool_upgrade_recipe_update_extra_tasks
test case.

Signed-off-by: Tim Orling 
---
 .../python/python3-guessing-game-crates.inc   | 82 +++
 .../python/python3-guessing-game_git.bb   | 19 +
 2 files changed, 101 insertions(+)
 create mode 100644 
meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc
 create mode 100644 
meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb

diff --git 
a/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc 
b/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc
new file mode 100644
index 000..7a1bfe101f0
--- /dev/null
+++ b/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc
@@ -0,0 +1,82 @@
+# Autogenerated with 'bitbake -c update_crates python3-guessing-game'
+
+# from Cargo.lock
+SRC_URI += " \
+crate://crates.io/autocfg/1.2.0 \
+crate://crates.io/bitflags/1.3.2 \
+crate://crates.io/cfg-if/1.0.0 \
+crate://crates.io/getrandom/0.2.14 \
+crate://crates.io/indoc/1.0.9 \
+crate://crates.io/libc/0.2.153 \
+crate://crates.io/lock_api/0.4.11 \
+crate://crates.io/memoffset/0.9.0 \
+crate://crates.io/once_cell/1.19.0 \
+crate://crates.io/parking_lot/0.12.1 \
+crate://crates.io/parking_lot_core/0.9.9 \
+crate://crates.io/ppv-lite86/0.2.17 \
+crate://crates.io/proc-macro2/1.0.79 \
+crate://crates.io/pyo3/0.19.2 \
+crate://crates.io/pyo3-build-config/0.19.2 \
+crate://crates.io/pyo3-ffi/0.19.2 \
+crate://crates.io/pyo3-macros/0.19.2 \
+crate://crates.io/pyo3-macros-backend/0.19.2 \
+crate://crates.io/quote/1.0.35 \
+crate://crates.io/rand/0.8.5 \
+crate://crates.io/rand_chacha/0.3.1 \
+crate://crates.io/rand_core/0.6.4 \
+crate://crates.io/redox_syscall/0.4.1 \
+crate://crates.io/scopeguard/1.2.0 \
+crate://crates.io/smallvec/1.13.2 \
+crate://crates.io/syn/1.0.109 \
+crate://crates.io/target-lexicon/0.12.14 \
+crate://crates.io/unicode-ident/1.0.12 \
+crate://crates.io/unindent/0.1.11 \
+crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \
+crate://crates.io/windows-targets/0.48.5 \
+crate://crates.io/windows_aarch64_gnullvm/0.48.5 \
+crate://crates.io/windows_aarch64_msvc/0.48.5 \
+crate://crates.io/windows_i686_gnu/0.48.5 \
+crate://crates.io/windows_i686_msvc/0.48.5 \
+crate://crates.io/windows_x86_64_gnu/0.48.5 \
+crate://crates.io/windows_x86_64_gnullvm/0.48.5 \
+crate://crates.io/windows_x86_64_msvc/0.48.5 \
+"
+
+SRC_URI[autocfg-1.2.0.sha256sum] = 
"f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80"
+SRC_URI[bitflags-1.3.2.sha256sum] = 
"bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+SRC_URI[cfg-if-1.0.0.sha256sum] = 
"baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+SRC_URI[getrandom-0.2.14.sha256sum] = 
"94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c"
+SRC_URI[indoc-1.0.9.sha256sum] = 
"bfa799dd5ed20a7e349f3b4639aa80d74549c81716d9ec4f994c9b5815598306"
+SRC_URI[libc-0.2.153.sha256sum] = 
"9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
+SRC_URI[lock_api-0.4.11.sha256sum] = 
"3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45"
+SRC_URI[memoffset-0.9.0.sha256sum] = 
"5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
+SRC_URI[once_cell-1.19.0.sha256sum] = 
"3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
+SRC_URI[parking_lot-0.12.1.sha256sum] = 
"3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
+SRC_URI[parking_lot_core-0.9.9.sha256sum] = 
"4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
+SRC_URI[ppv-lite86-0.2.17.sha256sum] = 
"5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
+SRC_URI[proc-macro2-1.0.79.sha256sum] = 
"e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e"
+SRC_URI[pyo3-0.19.2.sha256sum] = 
"e681a6cfdc4adcc93b4d3cf993749a4552018ee0a9b65fc0ccfad74352c72a38"
+SRC_URI[pyo3-build-config-0.19.2.sha256sum] = 
"076c73d0bc438f7a4ef6fdd0c3bb4732149136abd952b110ac93e4edb13a6ba5"
+SRC_URI[pyo3-ffi-0.19.2.sha256sum] = 
"e53cee42e77ebe256066ba8aa77eff722b3bb91f3419177cf4cd0f304d3284d9"
+SRC_URI[pyo3-macros-0.19.2.sha256sum] = 
"dfeb4c99597e136528c6dd7d5e3de5434d1ceaf487436a3f03b2d56b6fc9efd1"
+SRC_URI[pyo3-macros-backend-0.19.2.sha256sum] = 
"947dc12175c254889edc0c02e399476c2f652b4b9ebd123aa655c224de259536"
+SRC_URI[quote-1.0.35.sha256sum] = 
"291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
+SRC_URI[rand-0.8.5.sha256sum] = 
"34a

[OE-core] [RFC PATCH 1/5] devtool upgrade: enable RECIPE_UPDATE_EXTRA_TASKS

2024-06-02 Thread Tim Orling
From: Tim Orling 

For some recipes, such as those that inherit cargo-update-recipe-crates,
we need to run additional tasks once the new sources have been unpacked.

Introduce a new variable RECIPE_UPDATE_EXTRA_TASKS which is a space-
delimited list of tasks to run after the new sources have been
unpacked in scripts/lib/devtool/upgrade.py ugrade() method.

Signed-off-by: Tim Orling 
---
 scripts/lib/devtool/upgrade.py | 12 
 1 file changed, 12 insertions(+)

diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index a8130ed23f5..a378f910523 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -534,6 +534,16 @@ def _generate_license_diff(old_licenses, new_licenses):
 diff = diff + line
 return diff
 
+def _run_recipe_update_extra_tasks(pn, rd, tinfoil):
+tasks = []
+for task in rd.getVar('RECIPE_UPDATE_EXTRA_TASKS:%s' % pn).split():
+try:
+logger.info('Running extra recipe update task: %s' % task)
+res = tinfoil.build_targets(pn, task, handle_events=True)
+except (bb.process.ExecutionError, Exception) as e:
+logger.fatal("Failed to run recipe task (%s): %s" % (task, e.msg))
+return res
+
 def upgrade(args, config, basepath, workspace):
 """Entry point for the devtool 'upgrade' subcommand"""
 
@@ -609,6 +619,8 @@ def upgrade(args, config, basepath, workspace):
 copied, config.workspace_path, rd)
 standard._add_md5(config, pn, af)
 
+_run_recipe_update_extra_tasks(pn, rd, tinfoil)
+
 update_unlockedsigs(basepath, workspace, args.fixed_setup, [pn])
 
 logger.info('Upgraded source extracted to %s' % srctree)
-- 
2.45.2


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



[OE-core] [RFC PATCH 0/3] Implement RECIPE_UPDATE_EXTRA_TASKS

2024-06-02 Thread Tim Orling
From: Tim Orling 

Whenever a recipe which inherits cargo-update-recipe-crates is upgraded with
devtool (such as with the Auto Upgrade Helper) we frequently see failures.
If the upstream Cargo.toml or Cargo.lock has been changed, the corresponding
-crates.inc needs to be updated. This is done by running the
"bitbake -c update_crates " task, but this has until now been
a manual operation.

Add a new variable RECIPE_UPDATE_EXTRA_TASKS which is a string delimited
list of tasks to be run during the upgrade() method of
meta/lib/devtool/upgrade.py.

To solve the problem described above, the solution is for all recipes which
inherit cargo-update-recipe-crates to add the "do_update_crates" task to
the RECIPE_UPDATE_EXTRA_TASKS variable. Add this to the bbclass.

Add test case based on the guessing-game source we currently use for the
maturin runtime test cases, based on https://www.maturin.rs/tutorial.
This oe-selftest case checks for both the change in the recipe file and
the recipe -crates.inc file.

This will rely on a new "guessing-game" git repository to be added to
git.yoctoproject.org/guessing-game (currently hosted on GitHub for the
purposes of this RFC).

Currently, update_crates is the only task known to the author to fall into
this RECIPE_UPDATE_EXTRA_TASKS use case. If anyone can think of other use
cases that can also be added (and tested!), please let me know.

Two obvious use cases that would be nice to add with changes in oe-core are:
(1) some kind of "go-mod://" update class to use a similar -go-mods.inc
(2) some kind of rework of the "npm://" fetcher to use -npm-mods.inc
But both of those are out of scope for this proposal.

The _run_recipe_update_extra_tasks() method added to lib/devtool/upgrade.py
is functional, but could probably use some more guards and checks. Ideas for
improvements are welcome, hence the RFC.

An attempt at documenting the new variable has been added to ref-manual,
but if anyone has some ideas for better clarification, input is welcome.

The following changes since commit af6d28d2b0abdfcfa70edcc95abd99a3c1a64ac8:

  sanity: Check if tar is gnutar (2024-05-31 16:58:36 +0100)

are available in the Git repository at:

  https://git.yoctoproject.org/poky-contrib timo/RECIPE_UPDATE_EXTRA_TASKS
  
https://git.yoctoproject.org/poky-contrib/log/?h=timo/RECIPE_UPDATE_EXTRA_TASKS

Tim Orling (5):
  devtool upgrade: enable RECIPE_UPDATE_EXTRA_TASKS
  cargo-update-recipe-crates: add RECIPE_UPDATE_EXTRA_TASKS
  ref-manual: add RECIPE_UPDATE_EXTRA_TASKS variable
  meta-selftest: add python3-guessing-game
  oe-selftest: add RECIPE_UPDATE_EXTRA_TASKS test

 documentation/ref-manual/variables.rst|  7 ++
 .../python/python3-guessing-game-crates.inc   | 82 +
 .../python3-guessing-game-crates.inc.upgraded | 88 +++
 .../python/python3-guessing-game_git.bb   | 19 
 .../python3-guessing-game_git.bb.upgraded | 19 
 .../cargo-update-recipe-crates.bbclass|  2 +
 meta/lib/oeqa/selftest/cases/devtool.py   | 46 ++
 scripts/lib/devtool/upgrade.py| 12 +++
 8 files changed, 275 insertions(+)
 create mode 100644 
meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc
 create mode 100644 
meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc.upgraded
 create mode 100644 
meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb
 create mode 100644 
meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb.upgraded

-- 
2.45.2


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



Re: [OE-core] [PATCH] python3-pygments: added rdepends

2024-06-02 Thread Tim Orling
On Sun, Jun 2, 2024 at 5:31 AM Jan Vermaete via lists.openembedded.org
 wrote:

> python3-compression to have zipfile
> python3-unixadmin to have getpass


Can you please add comments about what this is fixing? Without this change
what was wrong?


>
> Signed-off-by: Jan Vermaete 
> ---
>  meta/recipes-devtools/python/python3-pygments_2.18.0.bb | 5 +
>  1 file changed, 5 insertions(+)
>
> diff --git a/meta/recipes-devtools/python/python3-pygments_2.18.0.bb
> b/meta/recipes-devtools/python/python3-pygments_2.18.0.bb
> index fd37365681..8058372498 100644
> --- a/meta/recipes-devtools/python/python3-pygments_2.18.0.bb
> +++ b/meta/recipes-devtools/python/python3-pygments_2.18.0.bb
> @@ -10,5 +10,10 @@ SRC_URI[sha256sum] =
> "786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c50
>  UPSTREAM_CHECK_PYPI_PACKAGE = "Pygments"
>  inherit pypi
>
> +RDEPENDS:${PN} += "\
> +python3-compression \
> +python3-unixadmin \
> +"
> +
>  BBCLASSEXTEND = "native nativesdk"
>
> --
> 2.39.2
>
>
> 
>
>

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



[OE-core] [PATCH 2/2] pythonn3-rpds-py: enable ptest

2024-05-23 Thread Tim Orling
From: Tim Orling 

* Add RDEPENDS for ptest from tests/requirements.txt
* Tests take ~14 seconds, so add to PTEST_FAST

Signed-off-by: Tim Orling 
---
 meta/conf/distro/include/ptest-packagelists.inc |  1 +
 .../python/python3-rpds-py/run-ptest|  3 +++
 .../python/python3-rpds-py_0.18.1.bb| 17 -
 3 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/python/python3-rpds-py/run-ptest

diff --git a/meta/conf/distro/include/ptest-packagelists.inc 
b/meta/conf/distro/include/ptest-packagelists.inc
index 5975db25ccc..da6fa6ee972 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -69,6 +69,7 @@ PTESTS_FAST = "\
 python3-pyasn1 \
 python3-pytz \
 python3-pyyaml \
+python3-rpds-py \
 python3-trove-classifiers \
 python3-wcwidth \
 python3-webcolors \
diff --git a/meta/recipes-devtools/python/python3-rpds-py/run-ptest 
b/meta/recipes-devtools/python/python3-rpds-py/run-ptest
new file mode 100644
index 000..8d2017d39ce
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-rpds-py/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
diff --git a/meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb 
b/meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb
index c6e88d88d76..f46df1115c8 100644
--- a/meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb
+++ b/meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb
@@ -4,12 +4,27 @@ HOMEPAGE = "https://pypi.org/project/rpds-py/;
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=7767fa537c4596c54141f32882c4a984"
 
+SRC_URI += "file://run-ptest"
+
 SRC_URI[sha256sum] = 
"dc48b479d540770c811fbd1eb9ba2bb66951863e448efec2e2c102625328e92f"
 
 require ${BPN}-crates.inc
 
-inherit pypi cargo-update-recipe-crates python_maturin
+inherit pypi cargo-update-recipe-crates python_maturin ptest
 
 PYPI_PACKAGE = "rpds_py"
 
+RDEPENDS:${PN}-ptest += " \
+python3-iniconfig \
+python3-packaging \
+python3-pluggy \
+python3-pytest \
+python3-unittest-automake-output \
+"
+
+do_install_ptest() {
+install -d ${D}${PTEST_PATH}/tests
+cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
 BBCLASSEXTEND = "native nativesdk"
-- 
2.45.1


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



[OE-core] [PATCH 1/2] python3-rpds-py: upgrade 0.18.0 -> 0.18.1

2024-05-23 Thread Tim Orling
From: Tim Orling 

https://github.com/crate-py/rpds/compare/v0.18.0...v0.18.1

* Refresh -crates.inc

Signed-off-by: Tim Orling 
---
 .../python/python3-rpds-py-crates.inc | 26 ++-
 ...py_0.18.0.bb => python3-rpds-py_0.18.1.bb} |  2 +-
 2 files changed, 15 insertions(+), 13 deletions(-)
 rename meta/recipes-devtools/python/{python3-rpds-py_0.18.0.bb => 
python3-rpds-py_0.18.1.bb} (80%)

diff --git a/meta/recipes-devtools/python/python3-rpds-py-crates.inc 
b/meta/recipes-devtools/python/python3-rpds-py-crates.inc
index b9048bde51a..3551bdb5f7f 100644
--- a/meta/recipes-devtools/python/python3-rpds-py-crates.inc
+++ b/meta/recipes-devtools/python/python3-rpds-py-crates.inc
@@ -2,7 +2,7 @@
 
 # from Cargo.lock
 SRC_URI += " \
-crate://crates.io/archery/1.1.0 \
+crate://crates.io/archery/1.2.0 \
 crate://crates.io/autocfg/1.1.0 \
 crate://crates.io/bitflags/1.3.2 \
 crate://crates.io/cfg-if/1.0.0 \
@@ -14,12 +14,13 @@ SRC_URI += " \
 crate://crates.io/once_cell/1.18.0 \
 crate://crates.io/parking_lot/0.12.1 \
 crate://crates.io/parking_lot_core/0.9.8 \
+crate://crates.io/portable-atomic/1.6.0 \
 crate://crates.io/proc-macro2/1.0.66 \
-crate://crates.io/pyo3/0.20.2 \
-crate://crates.io/pyo3-build-config/0.20.2 \
-crate://crates.io/pyo3-ffi/0.20.2 \
-crate://crates.io/pyo3-macros/0.20.2 \
-crate://crates.io/pyo3-macros-backend/0.20.2 \
+crate://crates.io/pyo3/0.20.3 \
+crate://crates.io/pyo3-build-config/0.20.3 \
+crate://crates.io/pyo3-ffi/0.20.3 \
+crate://crates.io/pyo3-macros/0.20.3 \
+crate://crates.io/pyo3-macros-backend/0.20.3 \
 crate://crates.io/quote/1.0.31 \
 crate://crates.io/redox_syscall/0.3.5 \
 crate://crates.io/rpds/1.1.0 \
@@ -41,7 +42,7 @@ SRC_URI += " \
 crate://crates.io/windows_x86_64_msvc/0.48.0 \
 "
 
-SRC_URI[archery-1.1.0.sha256sum] = 
"487955f60962765486ce15a3492ca45c34a2ebbf12bc0aa2b5110ca6e7d2"
+SRC_URI[archery-1.2.0.sha256sum] = 
"8967cd1cc9e9e1954f644e14fbd6042fe9a37da96c52a67e44a2ac18261f8561"
 SRC_URI[autocfg-1.1.0.sha256sum] = 
"d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
 SRC_URI[bitflags-1.3.2.sha256sum] = 
"bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
 SRC_URI[cfg-if-1.0.0.sha256sum] = 
"baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
@@ -53,12 +54,13 @@ SRC_URI[memoffset-0.9.0.sha256sum] = 
"5a634b1c61a95585bd15607c6ab0c4e5b226e695ff
 SRC_URI[once_cell-1.18.0.sha256sum] = 
"dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
 SRC_URI[parking_lot-0.12.1.sha256sum] = 
"3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
 SRC_URI[parking_lot_core-0.9.8.sha256sum] = 
"93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
+SRC_URI[portable-atomic-1.6.0.sha256sum] = 
"7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
 SRC_URI[proc-macro2-1.0.66.sha256sum] = 
"18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9"
-SRC_URI[pyo3-0.20.2.sha256sum] = 
"9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"
-SRC_URI[pyo3-build-config-0.20.2.sha256sum] = 
"07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"
-SRC_URI[pyo3-ffi-0.20.2.sha256sum] = 
"dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"
-SRC_URI[pyo3-macros-0.20.2.sha256sum] = 
"05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"
-SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] = 
"0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"
+SRC_URI[pyo3-0.20.3.sha256sum] = 
"53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
+SRC_URI[pyo3-build-config-0.20.3.sha256sum] = 
"deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
+SRC_URI[pyo3-ffi-0.20.3.sha256sum] = 
"62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
+SRC_URI[pyo3-macros-0.20.3.sha256sum] = 
"7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
+SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] = 
"7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
 SRC_URI[quote-1.0.31.sha256sum] = 
"5fe8a65d69dd0808184ebb5f836ab526bb259db23c657efa38711b1072ee47f0"
 SRC_URI[redox_syscall-0.3.5.sha256sum] = 
"567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
 SRC_URI[rpds-1.1.0.sha256sum] = 
"a0e15515d3ce3313324d842629ea4905c25a13f81953eadb88f85516f59290a4"
diff --git a/meta/recipes-devtools/python/python3-rpds-py_0.18.0.bb 
b/meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb
similarity index 80%
rename from meta/recipes-devtools/python/python3-rpds-py_0.18.0.bb
rename to meta/recipes-devtools/python/python3-rpds-py_0.18.1.bb
inde

[OE-core] [PATCH] python3-bcrypt: upgrade 4.1.2 -> 4.1.3

2024-05-22 Thread Tim Orling
From: Tim Orling 

https://github.com/pyca/bcrypt/compare/4.1.2...4.1.3

Upstream release notes:
Bump Rust dependency versions

* Drop 0001-Bump-pyo3-from-0.20.0-to-0.20.3-in-src-_bcrypt-746.patch -- merged
* Refresh -crates.inc

Signed-off-by: Tim Orling 
---
Tested with core-image-ptest-python3-bcrypt on qemux86-64

 .../python/python3-bcrypt-crates.inc  | 126 +-
 ...-0.20.0-to-0.20.3-in-src-_bcrypt-746.patch | 111 ---
 ...crypt_4.1.2.bb => python3-bcrypt_4.1.3.bb} |   3 +-
 3 files changed, 65 insertions(+), 175 deletions(-)
 delete mode 100644 
meta/recipes-devtools/python/python3-bcrypt/0001-Bump-pyo3-from-0.20.0-to-0.20.3-in-src-_bcrypt-746.patch
 rename meta/recipes-devtools/python/{python3-bcrypt_4.1.2.bb => 
python3-bcrypt_4.1.3.bb} (83%)

diff --git a/meta/recipes-devtools/python/python3-bcrypt-crates.inc 
b/meta/recipes-devtools/python/python3-bcrypt-crates.inc
index 0e7479f0b57..7d9e1f3b597 100644
--- a/meta/recipes-devtools/python/python3-bcrypt-crates.inc
+++ b/meta/recipes-devtools/python/python3-bcrypt-crates.inc
@@ -2,113 +2,115 @@
 
 # from src/_bcrypt/Cargo.lock
 SRC_URI += " \
-crate://crates.io/autocfg/1.1.0 \
-crate://crates.io/base64/0.21.5 \
-crate://crates.io/bcrypt/0.15.0 \
+crate://crates.io/autocfg/1.3.0 \
+crate://crates.io/base64/0.22.1 \
+crate://crates.io/bcrypt/0.15.1 \
 crate://crates.io/bcrypt-pbkdf/0.10.0 \
-crate://crates.io/bitflags/1.3.2 \
+crate://crates.io/bitflags/2.5.0 \
 crate://crates.io/block-buffer/0.10.4 \
 crate://crates.io/blowfish/0.9.1 \
 crate://crates.io/byteorder/1.5.0 \
 crate://crates.io/cfg-if/1.0.0 \
 crate://crates.io/cipher/0.4.4 \
-crate://crates.io/cpufeatures/0.2.11 \
+crate://crates.io/cpufeatures/0.2.12 \
 crate://crates.io/crypto-common/0.1.6 \
 crate://crates.io/digest/0.10.7 \
 crate://crates.io/generic-array/0.14.7 \
-crate://crates.io/getrandom/0.2.11 \
+crate://crates.io/getrandom/0.2.14 \
 crate://crates.io/heck/0.4.1 \
-crate://crates.io/indoc/2.0.4 \
+crate://crates.io/indoc/2.0.5 \
 crate://crates.io/inout/0.1.3 \
-crate://crates.io/libc/0.2.151 \
-crate://crates.io/lock_api/0.4.11 \
-crate://crates.io/memoffset/0.9.0 \
+crate://crates.io/libc/0.2.154 \
+crate://crates.io/lock_api/0.4.12 \
+crate://crates.io/memoffset/0.9.1 \
 crate://crates.io/once_cell/1.19.0 \
-crate://crates.io/parking_lot/0.12.1 \
-crate://crates.io/parking_lot_core/0.9.9 \
+crate://crates.io/parking_lot/0.12.2 \
+crate://crates.io/parking_lot_core/0.9.10 \
 crate://crates.io/pbkdf2/0.12.2 \
 crate://crates.io/portable-atomic/1.6.0 \
-crate://crates.io/proc-macro2/1.0.70 \
-crate://crates.io/pyo3/0.20.3 \
-crate://crates.io/pyo3-build-config/0.20.3 \
-crate://crates.io/pyo3-ffi/0.20.3 \
-crate://crates.io/pyo3-macros/0.20.3 \
-crate://crates.io/pyo3-macros-backend/0.20.3 \
-crate://crates.io/quote/1.0.33 \
-crate://crates.io/redox_syscall/0.4.1 \
+crate://crates.io/proc-macro2/1.0.81 \
+crate://crates.io/pyo3/0.21.2 \
+crate://crates.io/pyo3-build-config/0.21.2 \
+crate://crates.io/pyo3-ffi/0.21.2 \
+crate://crates.io/pyo3-macros/0.21.2 \
+crate://crates.io/pyo3-macros-backend/0.21.2 \
+crate://crates.io/quote/1.0.36 \
+crate://crates.io/redox_syscall/0.5.1 \
 crate://crates.io/scopeguard/1.2.0 \
 crate://crates.io/sha2/0.10.8 \
-crate://crates.io/smallvec/1.11.2 \
+crate://crates.io/smallvec/1.13.2 \
 crate://crates.io/subtle/2.5.0 \
-crate://crates.io/syn/2.0.41 \
-crate://crates.io/target-lexicon/0.12.12 \
+crate://crates.io/syn/2.0.60 \
+crate://crates.io/target-lexicon/0.12.14 \
 crate://crates.io/typenum/1.17.0 \
 crate://crates.io/unicode-ident/1.0.12 \
 crate://crates.io/unindent/0.2.3 \
 crate://crates.io/version_check/0.9.4 \
 crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \
-crate://crates.io/windows-targets/0.48.5 \
-crate://crates.io/windows_aarch64_gnullvm/0.48.5 \
-crate://crates.io/windows_aarch64_msvc/0.48.5 \
-crate://crates.io/windows_i686_gnu/0.48.5 \
-crate://crates.io/windows_i686_msvc/0.48.5 \
-crate://crates.io/windows_x86_64_gnu/0.48.5 \
-crate://crates.io/windows_x86_64_gnullvm/0.48.5 \
-crate://crates.io/windows_x86_64_msvc/0.48.5 \
+crate://crates.io/windows-targets/0.52.5 \
+crate://crates.io/windows_aarch64_gnullvm/0.52.5 \
+crate://crates.io/windows_aarch64_msvc/0.52.5 \
+crate://crates.io/windows_i686_gnu/0.52.5 \
+crate://crates.io/windows_i686_gnullvm/0.52.5 \
+crate://crates.io/windows_i686_msvc/0.52.5 \
+crate://crates.io/windows_x86_64_gnu/0.52.5 \
+crate://crates.io/windows_x86_64_gnullvm/0.52.5 \
+crate://crates.io/windows_x86_64_msvc/0.52.5 \
 crate://crates.io/zeroize/1.7.0 \
 "
 
-SRC_URI[autocfg

Re: [OE-core][PATCH 10/10] maintainers.inc: transfer some python recipes to tgamblin

2024-05-21 Thread Tim Orling
On Tue, May 21, 2024 at 10:05 AM Trevor Gamblin via lists.openembedded.org
 wrote:

> Change maintainer for the following recipes to tgamblin:
>
> python3-hypothesis
> python3-pygments
> python3-pytest
> python3-referencing
> python3-pyproject-metadata
> python3-setuptools-scm
> python3-sphinx
>

Thank you for picking up part of the workload.
This is much appreciated.
—Tim


> Signed-off-by: Trevor Gamblin 
> ---
>  meta/conf/distro/include/maintainers.inc | 14 +++---
>  1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/meta/conf/distro/include/maintainers.inc
> b/meta/conf/distro/include/maintainers.inc
> index aab53c22eb8..2124f3e7ec6 100644
> --- a/meta/conf/distro/include/maintainers.inc
> +++ b/meta/conf/distro/include/maintainers.inc
> @@ -627,7 +627,7 @@ RECIPE_MAINTAINER:pn-python3-dtschema-wrapper = "Bruce
> Ashfield   RECIPE_MAINTAINER:pn-python3-editables = "Ross Burton <
> ross.bur...@arm.com>"
>  RECIPE_MAINTAINER:pn-python3-pycryptodome = "Joshua Watt <
> jpewhac...@gmail.com>"
>  RECIPE_MAINTAINER:pn-python3-pycryptodomex = "Joshua Watt <
> jpewhac...@gmail.com>"
> -RECIPE_MAINTAINER:pn-python3-pyproject-metadata = "Tim Orling <
> tim.orl...@konsulko.com>"
> +RECIPE_MAINTAINER:pn-python3-pyproject-metadata = "Trevor Gamblin <
> tgamb...@baylibre.com>"
>  RECIPE_MAINTAINER:pn-python3-pyrsistent = "Bruce Ashfield <
> bruce.ashfi...@gmail.com>"
>  RECIPE_MAINTAINER:pn-python3-extras = "Trevor Gamblin <
> tgamb...@baylibre.com>"
>  RECIPE_MAINTAINER:pn-python3-flit-core = "Tim Orling <
> tim.orl...@konsulko.com>"
> @@ -636,7 +636,7 @@ RECIPE_MAINTAINER:pn-python3-gitdb = "Trevor Gamblin <
> tgamb...@baylibre.com>"
>  RECIPE_MAINTAINER:pn-python3-hatchling = "Ross Burton <
> ross.bur...@arm.com>"
>  RECIPE_MAINTAINER:pn-python3-hatch-fancy-pypi-readme = "Ross Burton <
> ross.bur...@arm.com>"
>  RECIPE_MAINTAINER:pn-python3-hatch-vcs = "Ross Burton <
> ross.bur...@arm.com>"
> -RECIPE_MAINTAINER:pn-python3-hypothesis = "Tim Orling <
> tim.orl...@konsulko.com>"
> +RECIPE_MAINTAINER:pn-python3-hypothesis = "Trevor Gamblin <
> tgamb...@baylibre.com>"
>  RECIPE_MAINTAINER:pn-python3-idna = "Bruce Ashfield <
> bruce.ashfi...@gmail.com>"
>  RECIPE_MAINTAINER:pn-python3-imagesize = "Tim Orling <
> tim.orl...@konsulko.com>"
>  RECIPE_MAINTAINER:pn-python3-importlib-metadata = "Tim Orling <
> tim.orl...@konsulko.com>"
> @@ -676,19 +676,19 @@ RECIPE_MAINTAINER:pn-python3-pyasn1 = "Tim Orling <
> tim.orl...@konsulko.com>"
>  RECIPE_MAINTAINER:pn-python3-pycairo = "Zang Ruochen <
> zangruoc...@loongson.cn>"
>  RECIPE_MAINTAINER:pn-python3-pycparser = "Tim Orling <
> tim.orl...@konsulko.com>"
>  RECIPE_MAINTAINER:pn-python3-pyelftools = "Joshua Watt <
> jpewhac...@gmail.com>"
> -RECIPE_MAINTAINER:pn-python3-pygments = "Tim Orling <
> tim.orl...@konsulko.com>"
> +RECIPE_MAINTAINER:pn-python3-pygments = "Trevor Gamblin <
> tgamb...@baylibre.com>"
>  RECIPE_MAINTAINER:pn-python3-pygobject = "Zang Ruochen <
> zangruoc...@loongson.cn>"
>  RECIPE_MAINTAINER:pn-python3-pyopenssl = "Tim Orling <
> tim.orl...@konsulko.com>"
>  RECIPE_MAINTAINER:pn-python3-pyparsing = "Trevor Gamblin <
> tgamb...@baylibre.com>"
>  RECIPE_MAINTAINER:pn-python3-pyproject-hooks = "Ross Burton <
> ross.bur...@arm.com>"
>  RECIPE_MAINTAINER:pn-python3-pysocks = "Tim Orling <
> tim.orl...@konsulko.com>"
> -RECIPE_MAINTAINER:pn-python3-pytest = "Tim Orling <
> tim.orl...@konsulko.com>"
> +RECIPE_MAINTAINER:pn-python3-pytest = "Trevor Gamblin <
> tgamb...@baylibre.com>"
>  RECIPE_MAINTAINER:pn-python3-pytest-runner = "Tim Orling <
> tim.orl...@konsulko.com>"
>  RECIPE_MAINTAINER:pn-python3-pytest-subtests = "Tim Orling <
> tim.orl...@konsulko.com>"
>  RECIPE_MAINTAINER:pn-python3-pytz = "Tim Orling  >"
>  RECIPE_MAINTAINER:pn-python3-pyyaml = "Tim Orling <
> tim.orl...@konsulko.com>"
>  RECIPE_MAINTAINER:pn-python3-rdflib = "Wang Mingyu "
> -RECIPE_MAINTAINER:pn-python3-referencing = "Tim Orling <
> tim.orl...@konsulko.com>"
> +RECIPE_MAINTAINER:pn-python3-referencing = "Trevor Gamblin <
> tgamb...@baylibre.com>"
>  RECIPE_MAINTAINER:pn-python3-requests = "Tim Or

[OE-core] [PATCH v2] python3-cryptography: upgrade 42.0.5 -> 42.0.7

2024-05-21 Thread Tim Orling
From: Tim Orling 

Also upgrade python3-cryptography-vectors
Refresh python3-cryptography-crates.inc

42.0.7 - 2024-05-06
Restored Windows 7 compatibility for our pre-built wheels. Note that we
do not test on Windows 7 and wheels for our next release will not support
it. Microsoft no longer provides support for Windows 7 and users are
encouraged to upgrade.

42.0.6 - 2024-05-04
Fixed compilation when using LibreSSL 3.9.1.

https://cryptography.io/en/latest/changelog/#v42-0-7
https://cryptography.io/en/latest/changelog/#v42-0-6
https://github.com/pyca/cryptography/compare/42.0.5...42.0.7

Signed-off-by: Tim Orling 
---
Changes in v2:
 Rebased on top of current master (with WORKDIR -> UNPACKDIR change)

Tested with core-image-ptest-python3-cryptography on qemux86-64

 .../python/python3-cryptography-crates.inc| 8 
 ...s_42.0.5.bb => python3-cryptography-vectors_42.0.7.bb} | 2 +-
 ...1-pyproject.toml-remove-benchmark-disable-option.patch | 7 ++-
 ...ptography_42.0.5.bb => python3-cryptography_42.0.7.bb} | 2 +-
 4 files changed, 8 insertions(+), 11 deletions(-)
 rename meta/recipes-devtools/python/{python3-cryptography-vectors_42.0.5.bb => 
python3-cryptography-vectors_42.0.7.bb} (91%)
 rename meta/recipes-devtools/python/{python3-cryptography_42.0.5.bb => 
python3-cryptography_42.0.7.bb} (95%)

diff --git a/meta/recipes-devtools/python/python3-cryptography-crates.inc 
b/meta/recipes-devtools/python/python3-cryptography-crates.inc
index b26e22b70c3..dbeda05dc45 100644
--- a/meta/recipes-devtools/python/python3-cryptography-crates.inc
+++ b/meta/recipes-devtools/python/python3-cryptography-crates.inc
@@ -18,9 +18,9 @@ SRC_URI += " \
 crate://crates.io/lock_api/0.4.11 \
 crate://crates.io/memoffset/0.9.0 \
 crate://crates.io/once_cell/1.19.0 \
-crate://crates.io/openssl/0.10.63 \
+crate://crates.io/openssl/0.10.64 \
 crate://crates.io/openssl-macros/0.1.1 \
-crate://crates.io/openssl-sys/0.9.99 \
+crate://crates.io/openssl-sys/0.9.102 \
 crate://crates.io/parking_lot/0.12.1 \
 crate://crates.io/parking_lot_core/0.9.9 \
 crate://crates.io/pem/3.0.3 \
@@ -68,9 +68,9 @@ SRC_URI[libc-0.2.152.sha256sum] = 
"13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb0
 SRC_URI[lock_api-0.4.11.sha256sum] = 
"3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45"
 SRC_URI[memoffset-0.9.0.sha256sum] = 
"5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
 SRC_URI[once_cell-1.19.0.sha256sum] = 
"3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
-SRC_URI[openssl-0.10.63.sha256sum] = 
"15c9d69dd87a29568d4d017cfe8ec518706046a05184e5aea92d0af890b803c8"
+SRC_URI[openssl-0.10.64.sha256sum] = 
"95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f"
 SRC_URI[openssl-macros-0.1.1.sha256sum] = 
"a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
-SRC_URI[openssl-sys-0.9.99.sha256sum] = 
"22e1bf214306098e4832460f797824c05d25aacdf896f64a985fb0fd992454ae"
+SRC_URI[openssl-sys-0.9.102.sha256sum] = 
"c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2"
 SRC_URI[parking_lot-0.12.1.sha256sum] = 
"3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
 SRC_URI[parking_lot_core-0.9.9.sha256sum] = 
"4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
 SRC_URI[pem-3.0.3.sha256sum] = 
"1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"
diff --git 
a/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.5.bb 
b/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.7.bb
similarity index 91%
rename from meta/recipes-devtools/python/python3-cryptography-vectors_42.0.5.bb
rename to meta/recipes-devtools/python/python3-cryptography-vectors_42.0.7.bb
index ee522af08e6..9a025a530ce 100644
--- a/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.5.bb
+++ b/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.7.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \
 # NOTE: Make sure to keep this recipe at the same version as 
python3-cryptography
 #   Upgrade both recipes at the same time
 
-SRC_URI[sha256sum] = 
"505cd5e3b0cb32da1526f07042b7fc38a4b6c356710cb73d2b5f76b037a38ed1"
+SRC_URI[sha256sum] = 
"8294c632dbe2cb14c7b7e24219560e674bc2224dfc4bed577ab077dbb82bfa3c"
 
 PYPI_PACKAGE = "cryptography_vectors"
 
diff --git 
a/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
 
b/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
index f9c8d1393d2..ec4bfcc98bd 100644
--- 
a/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
+++ 
b/meta/recipes-devtools/python/py

[OE-core] [PATCH] python3-cryptography: upgrade 42.0.5 -> 42.0.7

2024-05-17 Thread Tim Orling
From: Tim Orling 

Also upgrade python3-cryptography-vectors
Refresh python3-cryptography-crates.inc

42.0.7 - 2024-05-06
Restored Windows 7 compatibility for our pre-built wheels. Note that we
do not test on Windows 7 and wheels for our next release will not support
it. Microsoft no longer provides support for Windows 7 and users are
encouraged to upgrade.

42.0.6 - 2024-05-04
Fixed compilation when using LibreSSL 3.9.1.

https://cryptography.io/en/latest/changelog/#v42-0-7
https://cryptography.io/en/latest/changelog/#v42-0-6
https://github.com/pyca/cryptography/compare/42.0.5...42.0.7

Signed-off-by: Tim Orling 
---
Tested with core-image-ptest-python3-cryptography on qemux86-64

 .../python/python3-cryptography-crates.inc| 8 
 ...s_42.0.5.bb => python3-cryptography-vectors_42.0.7.bb} | 2 +-
 ...1-pyproject.toml-remove-benchmark-disable-option.patch | 7 ++-
 ...ptography_42.0.5.bb => python3-cryptography_42.0.7.bb} | 2 +-
 4 files changed, 8 insertions(+), 11 deletions(-)
 rename meta/recipes-devtools/python/{python3-cryptography-vectors_42.0.5.bb => 
python3-cryptography-vectors_42.0.7.bb} (91%)
 rename meta/recipes-devtools/python/{python3-cryptography_42.0.5.bb => 
python3-cryptography_42.0.7.bb} (95%)

diff --git a/meta/recipes-devtools/python/python3-cryptography-crates.inc 
b/meta/recipes-devtools/python/python3-cryptography-crates.inc
index b26e22b70c3..dbeda05dc45 100644
--- a/meta/recipes-devtools/python/python3-cryptography-crates.inc
+++ b/meta/recipes-devtools/python/python3-cryptography-crates.inc
@@ -18,9 +18,9 @@ SRC_URI += " \
 crate://crates.io/lock_api/0.4.11 \
 crate://crates.io/memoffset/0.9.0 \
 crate://crates.io/once_cell/1.19.0 \
-crate://crates.io/openssl/0.10.63 \
+crate://crates.io/openssl/0.10.64 \
 crate://crates.io/openssl-macros/0.1.1 \
-crate://crates.io/openssl-sys/0.9.99 \
+crate://crates.io/openssl-sys/0.9.102 \
 crate://crates.io/parking_lot/0.12.1 \
 crate://crates.io/parking_lot_core/0.9.9 \
 crate://crates.io/pem/3.0.3 \
@@ -68,9 +68,9 @@ SRC_URI[libc-0.2.152.sha256sum] = 
"13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb0
 SRC_URI[lock_api-0.4.11.sha256sum] = 
"3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45"
 SRC_URI[memoffset-0.9.0.sha256sum] = 
"5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
 SRC_URI[once_cell-1.19.0.sha256sum] = 
"3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
-SRC_URI[openssl-0.10.63.sha256sum] = 
"15c9d69dd87a29568d4d017cfe8ec518706046a05184e5aea92d0af890b803c8"
+SRC_URI[openssl-0.10.64.sha256sum] = 
"95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f"
 SRC_URI[openssl-macros-0.1.1.sha256sum] = 
"a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
-SRC_URI[openssl-sys-0.9.99.sha256sum] = 
"22e1bf214306098e4832460f797824c05d25aacdf896f64a985fb0fd992454ae"
+SRC_URI[openssl-sys-0.9.102.sha256sum] = 
"c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2"
 SRC_URI[parking_lot-0.12.1.sha256sum] = 
"3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
 SRC_URI[parking_lot_core-0.9.9.sha256sum] = 
"4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
 SRC_URI[pem-3.0.3.sha256sum] = 
"1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"
diff --git 
a/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.5.bb 
b/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.7.bb
similarity index 91%
rename from meta/recipes-devtools/python/python3-cryptography-vectors_42.0.5.bb
rename to meta/recipes-devtools/python/python3-cryptography-vectors_42.0.7.bb
index ee522af08e6..9a025a530ce 100644
--- a/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.5.bb
+++ b/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.7.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \
 # NOTE: Make sure to keep this recipe at the same version as 
python3-cryptography
 #   Upgrade both recipes at the same time
 
-SRC_URI[sha256sum] = 
"505cd5e3b0cb32da1526f07042b7fc38a4b6c356710cb73d2b5f76b037a38ed1"
+SRC_URI[sha256sum] = 
"8294c632dbe2cb14c7b7e24219560e674bc2224dfc4bed577ab077dbb82bfa3c"
 
 PYPI_PACKAGE = "cryptography_vectors"
 
diff --git 
a/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
 
b/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
index f9c8d1393d2..ec4bfcc98bd 100644
--- 
a/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
+++ 
b/meta/recipes-devtools/python/python3-cryptography/0001-pyproject.toml-remove-benchmark-disable-option.patch
@@ -1,4 +

Re: [OE-core] [PATCH] python3-manifest: prune python3-core

2024-05-01 Thread Tim Orling
On Wed, May 1, 2024 at 2:28 PM Guðni Már Gilbert via lists.openembedded.org
 wrote:

> Remove file entries which no longer exist in the source.
>
> I spotted this when I added a custom QA error locally which
> raised a warning when a file in FILES list of a package isn't
> found in the source.
>
>
This manifest is automatically generated by:
https://git.yoctoproject.org/poky/tree/meta/recipes-devtools/python/python3/create_manifest3.py

We do not want to be making manual changes to the json file. If there are
mistakes due to changes in what is now shipped with Python 3.12.x, we
should be fixing in the tooling, not this file.

Also, please share your local QA tooling. It does no one any good to have
that be siloed.


> Signed-off-by: Guðni Már Gilbert 
> ---
> .../python/python3/python3-manifest.json | 23 ---
> 1 file changed, 23 deletions(-)
>
> diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json
> b/meta/recipes-devtools/python/python3/python3-manifest.json
> index 46092d4004..6e06002783 100644
> --- a/meta/recipes-devtools/python/python3/python3-manifest.json
> +++ b/meta/recipes-devtools/python/python3/python3-manifest.json
> @@ -219,15 +219,9 @@
> "rdepends": [],
> "files": [
> "${bindir}/python${PYTHON_MAJMIN}",
> - "${bindir}/python${PYTHON_MAJMIN}.real",
> "${bindir}/python3",
> "${includedir}/python${PYTHON_MAJMIN}/pyconfig*.h",
> - "${libdir}/python${PYTHON_MAJMIN}/UserDict.py",
> - "${libdir}/python${PYTHON_MAJMIN}/UserList.py",
> - "${libdir}/python${PYTHON_MAJMIN}/UserString.py",
> "${libdir}/python${PYTHON_MAJMIN}/__future__.py",
> - "${libdir}/python${PYTHON_MAJMIN}/_abcoll.py",
> - "${libdir}/python${PYTHON_MAJMIN}/_bootlocale.py",
> "${libdir}/python${PYTHON_MAJMIN}/_collections_abc.py",
> "${libdir}/python${PYTHON_MAJMIN}/_compression.py",
> "${libdir}/python${PYTHON_MAJMIN}/_markupbase.py",
> @@ -262,7 +256,6 @@
> "${libdir}/python${PYTHON_MAJMIN}/getopt.py",
> "${libdir}/python${PYTHON_MAJMIN}/gettext.py",
> "${libdir}/python${PYTHON_MAJMIN}/heapq.py",
> - "${libdir}/python${PYTHON_MAJMIN}/imp.py",
> "${libdir}/python${PYTHON_MAJMIN}/importlib",
> "${libdir}/python${PYTHON_MAJMIN}/importlib/_abc.py",
> "${libdir}/python${PYTHON_MAJMIN}/importlib/_bootstrap.py",
> @@ -274,10 +267,6 @@
> "${libdir}/python${PYTHON_MAJMIN}/io.py",
> "${libdir}/python${PYTHON_MAJMIN}/ipaddress.py",
> "${libdir}/python${PYTHON_MAJMIN}/keyword.py",
> - "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/__pycache__/_struct.*.so",
> - "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/__pycache__/binascii.*.so",
> - "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/__pycache__/time.*.so",
> -
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/__pycache__/xreadlines.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_bisect.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_bz2.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_csv.*.so",
> @@ -286,22 +275,17 @@
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_opcode.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_posixsubprocess.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_struct.*.so",
> - "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_typing.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/array.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/binascii.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/grp.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/math.*.so",
> - "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/parser.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/readline.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/select.*.so",
> - "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/time.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/unicodedata.*.so",
> - "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/xreadlines.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/zlib.*.so",
> "${libdir}/python${PYTHON_MAJMIN}/linecache.py",
> "${libdir}/python${PYTHON_MAJMIN}/locale.py",
> "${libdir}/python${PYTHON_MAJMIN}/lzma.py",
> - "${libdir}/python${PYTHON_MAJMIN}/new.py",
> "${libdir}/python${PYTHON_MAJMIN}/ntpath.py",
> "${libdir}/python${PYTHON_MAJMIN}/opcode.py",
> "${libdir}/python${PYTHON_MAJMIN}/operator.py",
> @@ -323,7 +307,6 @@
> "${libdir}/python${PYTHON_MAJMIN}/shutil.py",
> "${libdir}/python${PYTHON_MAJMIN}/signal.py",
> "${libdir}/python${PYTHON_MAJMIN}/site.py",
> - "${libdir}/python${PYTHON_MAJMIN}/sitecustomize.py",
> "${libdir}/python${PYTHON_MAJMIN}/sre_compile.py",
> "${libdir}/python${PYTHON_MAJMIN}/sre_constants.py",
> "${libdir}/python${PYTHON_MAJMIN}/sre_parse.py",
> @@ -331,7 +314,6 @@
> "${libdir}/python${PYTHON_MAJMIN}/stringprep.py",
> "${libdir}/python${PYTHON_MAJMIN}/struct.py",
> "${libdir}/python${PYTHON_MAJMIN}/subprocess.py",
> - "${libdir}/python${PYTHON_MAJMIN}/symbol.py",
> "${libdir}/python${PYTHON_MAJMIN}/sysconfig.py",
> "${libdir}/python${PYTHON_MAJMIN}/textwrap.py",
> "${libdir}/python${PYTHON_MAJMIN}/threading.py",
> @@ 

[OE-core] [PATCH] python3-maturin: upgrade 1.4.0 -> 1.5.1

2024-05-01 Thread Tim Orling
* Drop riscv-32 patch (merged in 1.5.0)
* Refresh ${BPN}-crates.inc

1.5.1 - 2024-03-21
* Fix usage of --compatibility when run as a PEP517 backend in #1992
* Fix upload returning malformed summary error in #2002

1.5.0 - 2024-03-05
* Bump metadata version from 2.1 to 2.3 in #1965. Source distributions
  created by maturin now have reliable metadata, meaning tool such as
  pip, uv and poetry could skip building them for version resolution.
* Allow identical VIRTUAL_ENV and CONDA_PREFIX env vars in #1879
* Reject -i python when cross compiling in #1891
* Support uniffi-bindgen in cargo workspaces in #1909
* Add support for configuring xwin using env vars in #1961
* Add validation for crate/package name in new/init in #1943
* Add 32-bit RISC-V support in #1969
* Improve import hook changes in #1958
* Adjust cbindgen Overrides for CFFI in #1957

https://github.com/PyO3/maturin/compare/v1.4.0...v1.5.1

Signed-off-by: Tim Orling 
---
Tested by running oe-selftest for recipetool...maturin
Tested by building python3-rpds-py

 .../python/python3-maturin-crates.inc | 474 +-
 .../0001-Add-32-bit-RISC-V-support.patch  | 102 
 ...urin_1.4.0.bb => python3-maturin_1.5.1.bb} |   3 +-
 3 files changed, 225 insertions(+), 354 deletions(-)
 delete mode 100644 
meta/recipes-devtools/python/python3-maturin/0001-Add-32-bit-RISC-V-support.patch
 rename meta/recipes-devtools/python/{python3-maturin_1.4.0.bb => 
python3-maturin_1.5.1.bb} (87%)

diff --git a/meta/recipes-devtools/python/python3-maturin-crates.inc 
b/meta/recipes-devtools/python/python3-maturin-crates.inc
index 3cb614d52af..ba207458ef9 100644
--- a/meta/recipes-devtools/python/python3-maturin-crates.inc
+++ b/meta/recipes-devtools/python/python3-maturin-crates.inc
@@ -3,24 +3,22 @@
 # from Cargo.lock
 SRC_URI += " \
 crate://crates.io/adler/1.0.2 \
-crate://crates.io/ahash/0.8.6 \
+crate://crates.io/ahash/0.8.7 \
 crate://crates.io/aho-corasick/1.1.2 \
 crate://crates.io/allocator-api2/0.2.16 \
-crate://crates.io/anstream/0.3.2 \
-crate://crates.io/anstream/0.6.4 \
-crate://crates.io/anstyle/1.0.2 \
-crate://crates.io/anstyle-parse/0.2.1 \
-crate://crates.io/anstyle-query/1.0.0 \
-crate://crates.io/anstyle-wincon/1.0.2 \
-crate://crates.io/anstyle-wincon/3.0.1 \
-crate://crates.io/anyhow/1.0.75 \
+crate://crates.io/anstream/0.6.11 \
+crate://crates.io/anstyle/1.0.4 \
+crate://crates.io/anstyle-parse/0.2.3 \
+crate://crates.io/anstyle-query/1.0.2 \
+crate://crates.io/anstyle-wincon/3.0.2 \
+crate://crates.io/anyhow/1.0.80 \
 crate://crates.io/autocfg/1.1.0 \
 crate://crates.io/base64/0.13.1 \
-crate://crates.io/base64/0.21.5 \
+crate://crates.io/base64/0.21.7 \
 crate://crates.io/bitflags/1.3.2 \
-crate://crates.io/bitflags/2.4.1 \
+crate://crates.io/bitflags/2.4.2 \
 crate://crates.io/block-buffer/0.10.4 \
-crate://crates.io/bstr/1.8.0 \
+crate://crates.io/bstr/1.9.0 \
 crate://crates.io/byteorder/1.5.0 \
 crate://crates.io/bytes/1.5.0 \
 crate://crates.io/bytesize/1.3.0 \
@@ -28,42 +26,42 @@ SRC_URI += " \
 crate://crates.io/bzip2-sys/0.1.11+1.0.8 \
 crate://crates.io/cab/0.4.1 \
 crate://crates.io/camino/1.1.6 \
-crate://crates.io/cargo-config2/0.1.16 \
+crate://crates.io/cargo-config2/0.1.19 \
 crate://crates.io/cargo-options/0.7.2 \
-crate://crates.io/cargo-platform/0.1.5 \
-crate://crates.io/cargo-xwin/0.16.2 \
-crate://crates.io/cargo-zigbuild/0.18.0 \
+crate://crates.io/cargo-platform/0.1.6 \
+crate://crates.io/cargo-xwin/0.16.4 \
+crate://crates.io/cargo-zigbuild/0.18.3 \
 crate://crates.io/cargo_metadata/0.18.1 \
 crate://crates.io/cbindgen/0.26.0 \
-crate://crates.io/cc/1.0.83 \
+crate://crates.io/cc/1.0.88 \
 crate://crates.io/cfb/0.9.0 \
 crate://crates.io/cfg-if/1.0.0 \
 crate://crates.io/charset/0.1.3 \
 crate://crates.io/chumsky/0.9.3 \
-crate://crates.io/clap/4.3.24 \
-crate://crates.io/clap_builder/4.3.24 \
-crate://crates.io/clap_complete/4.3.2 \
+crate://crates.io/clap/4.4.18 \
+crate://crates.io/clap_builder/4.4.18 \
+crate://crates.io/clap_complete/4.4.9 \
 crate://crates.io/clap_complete_command/0.5.1 \
-crate://crates.io/clap_complete_fig/4.3.1 \
 crate://crates.io/clap_complete_nushell/0.1.11 \
-crate://crates.io/clap_derive/4.3.12 \
-crate://crates.io/clap_lex/0.5.0 \
+crate://crates.io/clap_derive/4.4.7 \
+crate://crates.io/clap_lex/0.6.0 \
 crate://crates.io/cli-table/0.4.7 \
 crate://crates.io/colorchoice/1.0.0 \
-crate://crates.io/configparser/3.0.3 \
-crate://crates.io/console/0.15.7 \
+crate://crates.io/configparser/3.0.4 \
+crate://crates.io/console/0.15.8 \
 crate://crates.io/content_inspector/0.2.4 \
-crate://crates.io/core-foundation/0.9.3 \
-crate://crates.io/core-foundation-sys/0.

Re: [OE-core] [PATCH] bmaptool: add PROVIDES bmap-tools for compatibility

2024-04-19 Thread Tim Orling
On Fri, Apr 19, 2024 at 2:16 PM Rasmus Villemoes via lists.openembedded.org
 wrote:

> On 19/04/2024 23.00, Alexander Kanavin wrote:
> > This was already proposed, and rejected.
> > https://lists.openembedded.org/g/openembedded-core/topic/104753355
> >
> > You need to fix the metadata that refers to the old name.
>
> So, how can a layer then be compatible with both nanbield and scarthgap?
> Could this perhaps be applied just to the scarthgap branch, but not master?


Ask yourself why you are choosing one branch to be compatible with multiple
releases? And then have your push scripts push to a “nanbield” branch and a
“scarthgap” branch. This means the Layer Index will also automatically know
about your compatibility. This means any traditional Yocto project user
will have zero questions about which of your branches to choose.

Multiple LAYERSERIES_COMPAT is not really intent. It’s also often not
accurate (layers with addpylib are not actually compatible with dunfell).

Branches are cheap. Use them as intended.


>
> Rasmus
>
>
> 
>
>

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



Re: [OE-core] [PATCH] rootfs.py: Fix logger error message format

2024-04-19 Thread Tim Orling
On Wed, Apr 17, 2024 at 12:56 PM John Ripple via lists.openembedded.org
 wrote:

> This patch adds a missing "%s" format in a logger.error call. Without
> this addition the logger itself would error out and not print a useful
> message.
>
> Signed-off-by: John Ripple 
> ---
>  scripts/lib/wic/plugins/source/rootfs.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/lib/wic/plugins/source/rootfs.py
> b/scripts/lib/wic/plugins/source/rootfs.py
> index e29f3a4c2f..c990143c0d 100644
> --- a/scripts/lib/wic/plugins/source/rootfs.py
> +++ b/scripts/lib/wic/plugins/source/rootfs.py
> @@ -43,7 +43,7 @@ class RootfsPlugin(SourcePlugin):
>  # directory, or modify a directory outside OpenEmbedded).
>  full_path = os.path.realpath(os.path.join(rootfs_dir, path))
>  if not full_path.startswith(os.path.realpath(rootfs_dir)):
> -logger.error("%s: Must point inside the rootfs:" % (cmd,
> path))
> +logger.error("%s: Must point inside the rootfs: %s" % (cmd,
> path))
>

Nice catch. Thank you.
Reviewed-by: Tim Orling 

 sys.exit(1)
>
>  return full_path
> --
> 2.34.1
>
> 
>
>

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



Re: [OE-core][PATCH] openssl: openssl: patch CVE-2024-2511

2024-04-13 Thread Tim Orling via lists.openembedded.org
Looks like when 3.2.2 is released it will include this. So 3.2.2 should be
applied to scarthgap.

“master” will be moving to 3.3.0 soon for styhead

On Sat, Apr 13, 2024 at 3:50 PM Peter Marko via lists.openembedded.org
 wrote:

> From: Peter Marko 
>
> Patch:
> https://github.com/openssl/openssl/commit/e9d7083e241670332e0443da0f0d4ffb52829f08
> News:
> https://github.com/openssl/openssl/commit/b7acb6731a96b073d6150465bd090e2052a595c2
>
> Signed-off-by: Peter Marko 
> ---
>  .../openssl/openssl/CVE-2024-2511.patch   | 120 ++
>  .../openssl/openssl_3.2.1.bb  |   1 +
>  2 files changed, 121 insertions(+)
>  create mode 100644
> meta/recipes-connectivity/openssl/openssl/CVE-2024-2511.patch
>
> diff --git a/meta/recipes-connectivity/openssl/openssl/CVE-2024-2511.patch
> b/meta/recipes-connectivity/openssl/openssl/CVE-2024-2511.patch
> new file mode 100644
> index 00..8772f716d5
> --- /dev/null
> +++ b/meta/recipes-connectivity/openssl/openssl/CVE-2024-2511.patch
> @@ -0,0 +1,120 @@
> +From e9d7083e241670332e0443da0f0d4ffb52829f08 Mon Sep 17 00:00:00 2001
> +From: Matt Caswell 
> +Date: Tue, 5 Mar 2024 15:43:53 +
> +Subject: [PATCH] Fix unconstrained session cache growth in TLSv1.3
> +
> +In TLSv1.3 we create a new session object for each ticket that we send.
> +We do this by duplicating the original session. If SSL_OP_NO_TICKET is in
> +use then the new session will be added to the session cache. However, if
> +early data is not in use (and therefore anti-replay protection is being
> +used), then multiple threads could be resuming from the same session
> +simultaneously. If this happens and a problem occurs on one of the
> threads,
> +then the original session object could be marked as not_resumable. When we
> +duplicate the session object this not_resumable status gets copied into
> the
> +new session object. The new session object is then added to the session
> +cache even though it is not_resumable.
> +
> +Subsequently, another bug means that the session_id_length is set to 0 for
> +sessions that are marked as not_resumable - even though that session is
> +still in the cache. Once this happens the session can never be removed
> from
> +the cache. When that object gets to be the session cache tail object the
> +cache never shrinks again and grows indefinitely.
> +
> +CVE-2024-2511
> +
> +Reviewed-by: Neil Horman 
> +Reviewed-by: Tomas Mraz 
> +(Merged from https://github.com/openssl/openssl/pull/24043)
> +
> +CVE: CVE-2024-2511
> +Upstream-Status: Backport [
> https://github.com/openssl/openssl/commit/e9d7083e241670332e0443da0f0d4ffb52829f08
> ]
> +Signed-off-by: Peter Marko 
> +---
> + ssl/ssl_lib.c|  5 +++--
> + ssl/ssl_sess.c   | 28 ++--
> + ssl/statem/statem_srvr.c |  5 ++---
> + 3 files changed, 27 insertions(+), 11 deletions(-)
> +
> +diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
> +index 4afb43bc86e54..c51529ddab5bb 100644
> +--- a/ssl/ssl_lib.c
>  b/ssl/ssl_lib.c
> +@@ -4457,9 +4457,10 @@ void ssl_update_cache(SSL_CONNECTION *s, int mode)
> +
> + /*
> +  * If the session_id_length is 0, we are not supposed to cache it,
> and it
> +- * would be rather hard to do anyway :-)
> ++ * would be rather hard to do anyway :-). Also if the session has
> already
> ++ * been marked as not_resumable we should not cache it for later
> reuse.
> +  */
> +-if (s->session->session_id_length == 0)
> ++if (s->session->session_id_length == 0 || s->session->not_resumable)
> + return;
> +
> + /*
> +diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c
> +index 3dcc4d81e5bc6..1fa6d17c46863 100644
> +--- a/ssl/ssl_sess.c
>  b/ssl/ssl_sess.c
> +@@ -127,16 +127,11 @@ SSL_SESSION *SSL_SESSION_new(void)
> + return ss;
> + }
> +
> +-SSL_SESSION *SSL_SESSION_dup(const SSL_SESSION *src)
> +-{
> +-return ssl_session_dup(src, 1);
> +-}
> +-
> + /*
> +  * Create a new SSL_SESSION and duplicate the contents of |src| into it.
> If
> +  * ticket == 0 then no ticket information is duplicated, otherwise it is.
> +  */
> +-SSL_SESSION *ssl_session_dup(const SSL_SESSION *src, int ticket)
> ++static SSL_SESSION *ssl_session_dup_intern(const SSL_SESSION *src, int
> ticket)
> + {
> + SSL_SESSION *dest;
> +
> +@@ -265,6 +260,27 @@ SSL_SESSION *ssl_session_dup(const SSL_SESSION *src,
> int ticket)
> + return NULL;
> + }
> +
> ++SSL_SESSION *SSL_SESSION_dup(const SSL_SESSION *src)
> ++{
> ++return ssl_session_dup_intern(src, 1);
> ++}
> ++
> ++/*
> ++ * Used internally when duplicating a session which might be already
> shared.
> ++ * We will have resumed the original session. Subsequently we might have
> marked
> ++ * it as non-resumable (e.g. in another thread) - but this copy should
> be ok to
> ++ * resume from.
> ++ */
> ++SSL_SESSION *ssl_session_dup(const SSL_SESSION *src, int ticket)
> ++{
> ++SSL_SESSION *sess = ssl_session_dup_intern(src, ticket);
> ++
> ++if (sess != NULL)
> ++   

Re: [OE-core] [PATCH 0/2] Clear remaining ${PYTHON_PN} uses

2024-04-11 Thread Tim Orling
On Thu, Apr 11, 2024 at 12:47 PM Justin Bronder 
wrote:

> Removing a couple of remaining ${PYTHON_PN} uses that were missed in the
> prior scrubs.
>

Thank you. I thought we had already caught everything.
We really do not need to be carrying such obfuscation and abstraction
anymore. Let python2 go off to pasture in quiet reverence.


>
>
> 
>
>

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



Re: [OE-core] [PATCH] u-boot: update to final v2024.04 release

2024-04-09 Thread Tim Orling
To make it absolutely clear, this is for "master" (styhead 5.1) NOT for
"scarthgap".

On Tue, Apr 9, 2024 at 8:12 AM Tim Orling  wrote:

> Release announcement:
> https://lists.denx.de/pipermail/u-boot/2024-April/549827.html
>
> "The merge window is formally open again, and I'll be merging in next
> shortly. v2024.07 is scheduled for Monday, July 1st, 2024 and the merge
> window will close and -rc1 will be released on the 22nd of April, and
> then the next window will open with -rc2, two weeks later.
> "
>
> Changes since v2024.01:
> https://github.com/u-boot/u-boot/compare/v2024.01...v2024.04
>
> Complete changelog of merges from v2024.01...v2024.04:
>
> 425dc46a2c Merge tag 'u-boot-imx-master-20240330' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-imx
> 9468bf3a69 <https://gitlab.denx.de/u-boot/custodians/u-boot-imx9468bf3a69>
> Merge tag 'doc-2024-04-rc6' of
> https://source.denx.de/u-boot/custodians/u-boot-efi
> a5ec56aea1 <https://source.denx.de/u-boot/custodians/u-boot-efia5ec56aea1>
> Merge https://source.denx.de/u-boot/custodians/u-boot-riscv
> 34f0452e0e
> <https://source.denx.de/u-boot/custodians/u-boot-riscv34f0452e0e> Merge
> tag 'u-boot-amlogic-fixes-20240325' of
> https://source.denx.de/u-boot/custodians/u-boot-amlogic
> 5397daaed8
> <https://source.denx.de/u-boot/custodians/u-boot-amlogic5397daaed8> Merge
> tag 'efi-2024-04-rc5-2' of
> https://source.denx.de/u-boot/custodians/u-boot-efi
> 6ec096a711 <https://source.denx.de/u-boot/custodians/u-boot-efi6ec096a711>
> Merge tag 'u-boot-imx-master-20240317' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-imx
> 86fd291a79 <https://gitlab.denx.de/u-boot/custodians/u-boot-imx86fd291a79>
> Merge tag 'efi-2024-04-rc5' of
> https://source.denx.de/u-boot/custodians/u-boot-efi
> a81242099c <https://source.denx.de/u-boot/custodians/u-boot-efia81242099c>
> Merge tag 'mips-fixes-for-v2024.04' of
> https://source.denx.de/u-boot/custodians/u-boot-mips
> 7422f661e2
> <https://source.denx.de/u-boot/custodians/u-boot-mips7422f661e2> Merge
> https://source.denx.de/u-boot/custodians/u-boot-riscv
> da07a629e1
> <https://source.denx.de/u-boot/custodians/u-boot-riscvda07a629e1> Merge
> tag 'u-boot-imx-master-20240311' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-imx
> 0981f8900f <https://gitlab.denx.de/u-boot/custodians/u-boot-imx0981f8900f>
> Merge https://source.denx.de/u-boot/custodians/u-boot-usb
> 485bfe1adb <https://source.denx.de/u-boot/custodians/u-boot-usb485bfe1adb>
> Merge branch 'master' of
> https://source.denx.de/u-boot/custodians/u-boot-marvell
> 46e3871aa6
> <https://source.denx.de/u-boot/custodians/u-boot-marvell46e3871aa6> Merge
> branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi
> 773cb2bca7
> <https://source.denx.de/u-boot/custodians/u-boot-sunxi773cb2bca7> Merge
> tag 'u-boot-imx-master-20240304' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-imx
> eac52e4be4 <https://gitlab.denx.de/u-boot/custodians/u-boot-imxeac52e4be4>
> Merge patch series "ARM: renesas: Rename R-Mobile to Renesas"
> 574aac1c8c Merge branch 'master-riic' of
> https://source.denx.de/u-boot/custodians/u-boot-sh
> 44a15c3f4e <https://source.denx.de/u-boot/custodians/u-boot-sh44a15c3f4e>
> Merge patch series "toradex: fix reset and hardware detection regressions"
> abd4fb5ac1 Merge patch series "Dockerfile: Build coreboot from source"
> 1a66a7768a Merge tag 'u-boot-imx-master-20240224' of
> https://source.denx.de/u-boot/custodians/u-boot-imx
> bb9d6c7f4f <https://source.denx.de/u-boot/custodians/u-boot-imxbb9d6c7f4f>
> Merge tag 'u-boot-amlogic-fixes-20240223' of
> https://source.denx.de/u-boot/custodians/u-boot-amlogic
> 5e4a0c7f4a
> <https://source.denx.de/u-boot/custodians/u-boot-amlogic5e4a0c7f4a> Merge
> branch 'qcom-fixes-2024.04' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-snapdragon
> 7bb761c42d
> <https://gitlab.denx.de/u-boot/custodians/u-boot-snapdragon7bb761c42d>
> Merge patch series "board/ti: k3 boards: Stop using findfdt"
> 1817afe30f Merge https://gitlab.denx.de/u-boot/custodians/u-boot-usb
> bebf916f9e <https://gitlab.denx.de/u-boot/custodians/u-boot-usbbebf916f9e>
> Merge https://gitlab.denx.de/u-boot/custodians/u-boot-samsung
> 3e6f2a94bf
> <https://gitlab.denx.de/u-boot/custodians/u-boot-samsung3e6f2a94bf> Merge
> tag 'u-boot-imx-master-20240219' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-imx
> e4013bcb10 <https://gitlab.denx.de/u-boot/custodians/u-boot-imxe4013bcb10>
> Merge branch 'master-porter' of
> https://source.denx.de/u-boot/custodians/u-

[OE-core] [PATCH] u-boot: update to final v2024.04 release

2024-04-09 Thread Tim Orling
t;
fa3f19aa56 Merge tag 'xilinx-for-v2024.04-rc1' of 
https://source.denx.de/u-boot/custodians/u-boot-microblaze into next
11e1cc7aae Merge tag 'u-boot-imx-next-20231214' of 
https://gitlab.denx.de/u-boot/custodians/u-boot-imx into next
86f623dcf8 Merge tag 'dm-next-13dec23' of 
https://gitlab.denx.de/u-boot/custodians/u-boot-dm into next
9565771076 Merge patch series "bootm: Refactoring to reduce reliance on CMDLINE 
(part A)"
bfe3c7b93b Merge patch series "some LED patches"
e54987d6af Merge patch series "cmd: bdinfo: Optionally use getopt and implement 
bdinfo -a"
d379150621 Merge tag 'v2024.01-rc4' into next
4a363dd516 Merge branch 'staging' of 
https://source.denx.de/u-boot/custodians/u-boot-tegra into next
6357cf0cc4 Merge branch '2023-11-29-assorted-platform-updates' into next
339d96822e Merge patch series "cmd: add scmi command"
e2a9edc0ce Merge patch series "fs: fat: calculate FAT type based on cluster 
count"
38cc6cdeb1 Merge patch series "Import "string" I/O functions from Linux"
66c21738fd Merge patch series "sysinfo: Expand sysinfo with some more banner 
information"
d6e052c615 Merge patch series "ufs: Add a PCI UFS controller support"
129d6a0d87 Merge tag 'u-boot-dfu-next-20231124' of 
https://source.denx.de/u-boot/custodians/u-boot-dfu into next
1682d97db9 Merge branch '2023-11-25-assorted-platform-updates' into next
054222eb68 Merge branch '2023-11-22-TI-K3-cleanups' into next
0744fef6a3 Merge tag 'tpm-next-22112023' of 
https://source.denx.de/u-boot/custodians/u-boot-tpm into next
dca7a8958f Merge tag 'v2024.01-rc3' into next
9e4b42267e Merge tag 'efi-next-18112023' of 
https://source.denx.de/u-boot/custodians/u-boot-tpm into next
ae7ec8b0be Merge branch '2023-11-16-assorted-updates' into next
6c1608b1ff Merge patch series "spl: Use common function for loading/parsing 
images"
5e6a112e11 Merge patch series "nand: Add sandbox tests"
be0724601a Merge tag 'u-boot-stm32-20231113' of 
https://source.denx.de/u-boot/custodians/u-boot-stm into next
3b6db6901f Merge branch '2023-11-10-improve-semihosting-armv6' into next
1e4d9dd871 Merge branch '2023-11-07-assorted-big-cleanups' into next

Signed-off-by: Tim Orling 
---
 meta/recipes-bsp/u-boot/u-boot-common.inc   | 2 +-
 .../u-boot/{u-boot-tools_2024.01.bb => u-boot-tools_2024.04.bb} | 0
 .../recipes-bsp/u-boot/{u-boot_2024.01.bb => u-boot_2024.04.bb} | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-bsp/u-boot/{u-boot-tools_2024.01.bb => 
u-boot-tools_2024.04.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot_2024.01.bb => u-boot_2024.04.bb} (100%)

diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc 
b/meta/recipes-bsp/u-boot/u-boot-common.inc
index 1f17bd7d0af..ca5357392a5 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -12,7 +12,7 @@ PE = "1"
 
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "866ca972d6c3cabeaf6dbac431e8e08bb30b3c8e"
+SRCREV = "25049ad560826f7dc1c4740883b0016014a59789"
 
 SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
 
diff --git a/meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb 
b/meta/recipes-bsp/u-boot/u-boot-tools_2024.04.bb
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-tools_2024.01.bb
rename to meta/recipes-bsp/u-boot/u-boot-tools_2024.04.bb
diff --git a/meta/recipes-bsp/u-boot/u-boot_2024.01.bb 
b/meta/recipes-bsp/u-boot/u-boot_2024.04.bb
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot_2024.01.bb
rename to meta/recipes-bsp/u-boot/u-boot_2024.04.bb
-- 
2.43.2


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



[OE-core] [PATCH 2/2] liberror-perl: move to meta-perl

2024-03-28 Thread Tim Orling
The upstream maintainer for Error has deprecated it for quite some time [1].
The only dependency in oe-core was coreutils-ptest.

[YOCTO #15461]

[1] https://metacpan.org/pod/Error#WARNING

Using the "Error" module is no longer recommended due to the black-magical
nature of its syntactic sugar, which often tends to break. Its maintainers
have stopped actively writing code that uses it, and discourage people from
doing so. See the "SEE ALSO" section below for better recommendations [2].

[2] https://metacpan.org/pod/Error#SEE-ALSO

SEE ALSO


See Exception::Class for a different module providing Object-Oriented
exception handling, along with a convenient syntax for declaring hierarchies
for them. It doesn't provide Error's syntactic sugar of try { ... },
catch { ... }, etc. which may be a good thing or a bad thing based on what
you want. (Because Error's syntactic sugar tends to break.)

Error::Exception aims to combine Error and Exception::Class "with correct
stringification".

TryCatch and Try::Tiny are similar in concept to Error.pm only providing a
syntax that hopefully breaks less.

Signed-off-by: Tim Orling 
---
 meta/conf/distro/include/maintainers.inc  |  1 -
 .../distro/include/ptest-packagelists.inc |  1 -
 .../perl/liberror-perl_0.17029.bb | 48 ---
 3 files changed, 50 deletions(-)
 delete mode 100644 meta/recipes-devtools/perl/liberror-perl_0.17029.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 4ca5430a941..2d1f9fdec55 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -328,7 +328,6 @@ RECIPE_MAINTAINER:pn-libdrm = "Otavio Salvador 
https://github.com/shlomif/perl-error.pm;
-SECTION = "libs"
-LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
-
-LIC_FILES_CHKSUM = "file://LICENSE;md5=8f3499d09ee74a050c0319391ff9d100"
-
-
-DEPENDS += "perl"
-
-RDEPENDS:${PN} += " \
-perl-module-carp \
-perl-module-exporter \
-perl-module-scalar-util \
-perl-module-overload \
-perl-module-strict \
-perl-module-vars \
-perl-module-warnings \
-"
-
-RDEPENDS:${PN}-ptest += " \
-perl-module-base \
-perl-module-file-spec \
-perl-module-io-handle \
-perl-module-ipc-open3 \
-perl-module-lib \
-perl-module-test-more \
-"
-
-SRC_URI = "http://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Error-${PV}.tar.gz;
-
-SRC_URI[md5sum] = "6732b1c6207e4a9a3e2987c88368039a"
-SRC_URI[sha256sum] = 
"1a23f7913032aed6d4b68321373a3899ca66590f4727391a091ec19c95bf7adc"
-
-S = "${WORKDIR}/Error-${PV}"
-
-inherit cpan ptest-perl
-
-do_install:prepend() {
-   # test requires "-T" (taint) command line option
-   rm -rf ${B}/t/pod-coverage.t
-}
-
-BBCLASSEXTEND = "native"
-- 
2.34.1


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



[OE-core] [PATCH 1/2] coreutils: drop obsolete liberror-perl RDEPENDS

2024-03-28 Thread Tim Orling
The upstream maintainer for Error has deprecated it for quite some time [1].
There is no dependency in current coreutils tests for it.

[YOCTO #15461]

[1] https://metacpan.org/pod/Error#WARNING

Using the "Error" module is no longer recommended due to the black-magical
nature of its syntactic sugar, which often tends to break. Its maintainers
have stopped actively writing code that uses it, and discourage people from
doing so.

Signed-off-by: Tim Orling 
---
 meta/recipes-core/coreutils/coreutils_9.4.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/coreutils/coreutils_9.4.bb 
b/meta/recipes-core/coreutils/coreutils_9.4.bb
index fc51adcd5b1..62ecdea6ec1 100644
--- a/meta/recipes-core/coreutils/coreutils_9.4.bb
+++ b/meta/recipes-core/coreutils/coreutils_9.4.bb
@@ -23,7 +23,7 @@ SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \
 SRC_URI[sha256sum] = 
"ea613a4cf44612326e917201bbbcdfbd301de21ffc3b59b6e5c07e040b275e52"
 
 # 
http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=v8.27-101-gf5d7c0842
-# 
+#
 CVE_STATUS[CVE-2016-2781] = "disputed: runcon is not really a sandbox command, 
use `runcon ... setsid ...` to avoid this particular issue."
 
 EXTRA_OECONF:class-target = "--enable-install-program=arch,hostname 
--libexecdir=${libdir}"
@@ -169,7 +169,7 @@ BBCLASSEXTEND = "native nativesdk"
 
 inherit ptest
 
-RDEPENDS:${PN}-ptest += "bash findutils gawk liberror-perl make perl 
perl-modules python3-core sed shadow"
+RDEPENDS:${PN}-ptest += "bash findutils gawk make perl perl-modules 
python3-core sed shadow"
 
 # -dev automatic dependencies fails as we don't want libmodule-build-perl-dev, 
its too heavy
 # may need tweaking if DEPENDS changes
-- 
2.34.1


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



[OE-core] [PATCH 0/2] Move liberror-perl to meta-perl

2024-03-28 Thread Tim Orling
This perl package has not seen any updates since 2020.

The upstream author of Error has deprecated it for quite some time.

https://metacpan.org/pod/Error#WARNING

'Using the "Error" module is no longer recommended due to the
 black-magical nature of its syntactic sugar, which often tends
 to break. Its maintainers have stopped actively writing code
 that uses it, and discourage people from doing so.'

The only recipe in oe-core which had any depdency on it was coreutils-ptest,
and that has now been removed. All ptests passed for core-image-ptest-coreutils
on qemux86-64.

It is not clear when the dependency in coreutils was present, but it is
definitely not needed in the current v9.4 release.

Tim Orling (2):
  coreutils: drop obsolete liberror-perl RDEPENDS
  liberror-perl: move to meta-perl

 meta/conf/distro/include/maintainers.inc  |  1 -
 .../distro/include/ptest-packagelists.inc |  1 -
 meta/recipes-core/coreutils/coreutils_9.4.bb  |  4 +-
 .../perl/liberror-perl_0.17029.bb | 48 ---
 4 files changed, 2 insertions(+), 52 deletions(-)
 delete mode 100644 meta/recipes-devtools/perl/liberror-perl_0.17029.bb

-- 
2.34.1


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



[OE-core] [PATCH] opkg: retry opkg_lock

2024-03-21 Thread Tim Orling
When systemd is enabled, we can get into a race condition
between run-postinsts and systemctl restarting services.

If we fail to create the lock file (or fd), then
sleep 10 seconds and retry up to 5 times.

[YOCTO #15428]

Patch submitted upstream to opkg:
https://lists.yoctoproject.org/g/opkg/message/60

Signed-off-by: Tim Orling 
---
 ...kg_lock-retry-if-we-fail-to-get-lock.patch | 59 +++
 meta/recipes-devtools/opkg/opkg_0.6.3.bb  |  1 +
 2 files changed, 60 insertions(+)
 create mode 100644 
meta/recipes-devtools/opkg/opkg/0001-opkg_lock-retry-if-we-fail-to-get-lock.patch

diff --git 
a/meta/recipes-devtools/opkg/opkg/0001-opkg_lock-retry-if-we-fail-to-get-lock.patch
 
b/meta/recipes-devtools/opkg/opkg/0001-opkg_lock-retry-if-we-fail-to-get-lock.patch
new file mode 100644
index 000..863667fe400
--- /dev/null
+++ 
b/meta/recipes-devtools/opkg/opkg/0001-opkg_lock-retry-if-we-fail-to-get-lock.patch
@@ -0,0 +1,59 @@
+From cdc7d347f41a7095ba0e29515951a1394c632479 Mon Sep 17 00:00:00 2001
+From: Tim Orling 
+Date: Wed, 20 Mar 2024 23:00:31 -0700
+Subject: [opkg][PATCH] opkg_lock: retry if we fail to get lock
+To: o...@lists.yoctoproject.org
+
+When systemd is enabled, we can get into a race condition
+between run-postinsts and systemctl restarting services.
+
+If we fail to create the lock file (or fd), then
+sleep 10 seconds and retry up to 5 times.
+
+[YOCTO #15428]
+
+Upstream-Status: Submitted [https://lists.yoctoproject.org/g/opkg/message/60]
+
+Signed-off-by: Tim Orling 
+---
+ libopkg/opkg_conf.c | 22 --
+ 1 file changed, 16 insertions(+), 6 deletions(-)
+
+diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c
+index 4dc777b..03bb40a 100644
+--- a/libopkg/opkg_conf.c
 b/libopkg/opkg_conf.c
+@@ -660,14 +660,24 @@ int opkg_lock()
+ return -1;
+ }
+ 
+-r = lockf(lock_fd, F_TLOCK, (off_t) 0);
++int retry = 5;
++do {
++r = lockf(lock_fd, F_TLOCK, (off_t) 0);
++if (r == -1) {
++opkg_perror(INFO, "Could not lock %s, retry %d", 
opkg_config->lock_file, retry);
++r = close(lock_fd);
++  if (r == -1)
++opkg_perror(ERROR, "Couldn't close descriptor %d (%s)", 
lock_fd,
++opkg_config->lock_file);
++  retry--;
++sleep(10);
++}
++}
++while (retry > 0 && r == -1);
++
+ if (r == -1) {
+ opkg_perror(ERROR, "Could not lock %s", opkg_config->lock_file);
+-r = close(lock_fd);
+-if (r == -1)
+-opkg_perror(ERROR, "Couldn't close descriptor %d (%s)", lock_fd,
+-opkg_config->lock_file);
+-lock_fd = -1;
++  lock_fd = -1;
+ return -1;
+ }
+ 
+-- 
+2.34.1
+
diff --git a/meta/recipes-devtools/opkg/opkg_0.6.3.bb 
b/meta/recipes-devtools/opkg/opkg_0.6.3.bb
index 9592ffc5d6d..b4c7c114bcb 100644
--- a/meta/recipes-devtools/opkg/opkg_0.6.3.bb
+++ b/meta/recipes-devtools/opkg/opkg_0.6.3.bb
@@ -16,6 +16,7 @@ SRC_URI = 
"http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz
file://opkg.conf \

file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch \
file://0001-libopkg-Use-libgen.h-to-provide-basename-API.patch \
+  file://0001-opkg_lock-retry-if-we-fail-to-get-lock.patch \
file://run-ptest \
"
 
-- 
2.34.1


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



Re: [OE-core] [PATCH] bmaptool: Add bmap-tools alias for compatibility

2024-03-06 Thread Tim Orling
On Wed, Mar 6, 2024 at 7:04 AM Alexander Kanavin 
wrote:

> On Wed, 6 Mar 2024 at 14:08, Otavio Salvador
>  wrote:
> >> Put another way, if I were to merge the PROVIDES, when would it ever be
> >> acceptable to remove it?
> >
> >
> > I'd do it in next release; so it keeps a time for upgrade.
>
> But what would incentivize people to fix the metadata? If you put
> PROVIDES in there, they are not going to notice that they have to fix
> anything, and when it's removed later, it will break all the same.
> What's the point of this additional work then?
>
> It's master branch, it can and does break. No one ever promised that
> you can make a layer that works across several releases, and I would
> strongly object to making such a promise.
>

As one of the new maintainers for bmaptool, I was somewhat leaning towards
the old name, but that ship has sailed.
As Alex points out, change happens in master. This is normal. This should
not be prevented nor should workarounds
to let users continue to follow now "wrong" practices continue.

I will also chime in to say that layers that claim multiple
LAYERSERIES_COMPAT are really a problem for the layerindex.
The existing update mechanism is driven by well behaved stable branch
names. Anything else requires manual intervention.

This means that layers that do not follow stable branch names will not
automatically be installed with something like:
bitbake-layers layerindex-fetch
which is really a shame because that tool is much easier for users (and
likely to be part of upcoming bitbake/oe-core setup behavior).

Branches are cheap. CI can push to multiple branches with the same content.


> Alex
>
> 
>
>

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



Re: [OE-core] [PATCH 38/47] python3-wcwidth: upgrade 0.2.12 -> 0.2.13

2024-03-06 Thread Tim Orling
On Wed, Mar 6, 2024 at 7:42 AM Alexander Kanavin 
wrote:

> Signed-off-by: Alexander Kanavin 
> ---
>  ...{python3-wcwidth_0.2.12.bb => python3-wcwidth_0.2.13.bb} | 6 --
>  1 file changed, 4 insertions(+), 2 deletions(-)
>  rename meta/recipes-devtools/python/{python3-wcwidth_0.2.12.bb =>
> python3-wcwidth_0.2.13.bb} (72%)
>
> diff --git a/meta/recipes-devtools/python/python3-wcwidth_0.2.12.bb
> b/meta/recipes-devtools/python/python3-wcwidth_0.2.13.bb
> similarity index 72%
> rename from meta/recipes-devtools/python/python3-wcwidth_0.2.12.bb
> rename to meta/recipes-devtools/python/python3-wcwidth_0.2.13.bb
> index 6ce5e70c2a6..4a9bf753233 100644
> --- a/meta/recipes-devtools/python/python3-wcwidth_0.2.12.bb
> +++ b/meta/recipes-devtools/python/python3-wcwidth_0.2.13.bb
> @@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/jquast/wcwidth;
>  LICENSE = "MIT"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=b15979c39a2543892fca8cd86b4b52cb"
>
> -SRC_URI[sha256sum] =
> "f01c104efdf57971bcb756f054dd58ddec5204dd15fa31d6503ea57947d97c02"
> +SRC_URI[sha256sum] =
> "72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5"
>
>  inherit pypi setuptools3 ptest
>
> @@ -18,8 +18,10 @@ RDEPENDS:${PN}-ptest += " \
>  "
>
>  do_install_ptest() {
> -  install -d ${D}${PTEST_PATH}/tests
> +  install -d ${D}${PTEST_PATH}/tests
>cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> +  install -d ${D}${PTEST_PATH}/bin
> +  cp -rf ${S}/bin/* ${D}${PTEST_PATH}/bin/
>  }
>

thank you. I had figured out that this was needed but you beat me to it.

Reviewed-by: Tim Orling 

>
>  BBCLASSEXTEND = "native nativesdk"
> --
> 2.39.2
>
>
> 
>
>

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



[OE-core] [PATCH] python3-hypothesis: upgrade 6.98.12 -> 6.98.15

2024-03-03 Thread Tim Orling
https://hypothesis.readthedocs.io/en/latest/changes.html#v6-98-15
https://hypothesis.readthedocs.io/en/latest/changes.html#v6-98-14
https://hypothesis.readthedocs.io/en/latest/changes.html#v6-98-13

6.98.15 - 2024-02-29
* This release adds support for the Array API’s 2023.12 release via the
  api_version argument in make_strategies_namespace(). The API additions
  and modifications in the 2023.12 spec do not necessitate any changes in
  the Hypothesis strategies, hence there is no distinction between a
  2022.12 and 2023.12 strategies namespace.

6.98.14 - 2024-02-29
* This patch adjusts the printing of bundle values to correspond with
  their names when using stateful testing.

6.98.13 - 2024-02-27
* This patch implements filter-rewriting for text() and binary() with
  the search(), match(), or fullmatch() method of a re.compile()d regex.

Signed-off-by: Tim Orling 
---
Tested with buildall-qemu core-image-ptest-python3-hypothesis
I saw an issue with qemuarmv5-musl, but not obvious it has anything
to do with this upgrade, seemed like just a qemu timeout

 ...hon3-hypothesis_6.98.12.bb => python3-hypothesis_6.98.15.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-hypothesis_6.98.12.bb => 
python3-hypothesis_6.98.15.bb} (91%)

diff --git a/meta/recipes-devtools/python/python3-hypothesis_6.98.12.bb 
b/meta/recipes-devtools/python/python3-hypothesis_6.98.15.bb
similarity index 91%
rename from meta/recipes-devtools/python/python3-hypothesis_6.98.12.bb
rename to meta/recipes-devtools/python/python3-hypothesis_6.98.15.bb
index a74c3af401d..a17abe58c0f 100644
--- a/meta/recipes-devtools/python/python3-hypothesis_6.98.12.bb
+++ b/meta/recipes-devtools/python/python3-hypothesis_6.98.15.bb
@@ -13,7 +13,7 @@ SRC_URI += " \
 file://test_rle.py \
 "
 
-SRC_URI[sha256sum] = 
"584ef03a847464b0d14a63e53fcc3335a75b1f1eb3bcc770a03ff950ee4e279e"
+SRC_URI[sha256sum] = 
"1e31210951511b24ce8b3b6e04d791c466385a30ac3af571bf2223954b025d77"
 
 RDEPENDS:${PN} += " \
 python3-attrs \
-- 
2.34.1


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



[OE-core] [PATCH v2] python3-attrs: disable Hypothesis deadline

2024-02-29 Thread Tim Orling
The deadline is by default 200ms, but this is intended to be useful to
the developer and not necessarily recommended for heavily loaded CI
systems. Avoid warnings by disabling the deadline completely.

https://github.com/HypothesisWorks/hypothesis/issues/3713
https://hypothesis.readthedocs.io/en/latest/settings.html#hypothesis.settings.deadline
https://lists.openembedded.org/g/openembedded-core/topic/104640034#196437
https://github.com/python-attrs/attrs/pull/1252

Fixes:
"""
Unreliable test timings! On an initial run, this test took 268.29ms,
which exceeded the deadline of 200.00ms, but on a subsequent run it
took 2.63 ms, which did not. If you expect this sort of variability in
your test timings, consider turning deadlines off for this test by
setting deadline=None.
"""

[YOCTO #15350]

Signed-off-by: Tim Orling 
---
Changes in v2:
* Reference Bugzilla #15350 which is HIGHLY likely to be related
* Change Upstream-Status to submitted, since the comments in conftest.py state
  it is setting up for CI situation. "patience" and deadline=None seem to go
  hand in hand :)

 .../0001-conftest.py-disable-deadline.patch   | 45 +++
 .../python/python3-attrs_23.2.0.bb|  1 +
 2 files changed, 46 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3-attrs/0001-conftest.py-disable-deadline.patch

diff --git 
a/meta/recipes-devtools/python/python3-attrs/0001-conftest.py-disable-deadline.patch
 
b/meta/recipes-devtools/python/python3-attrs/0001-conftest.py-disable-deadline.patch
new file mode 100644
index 000..b1e6d999168
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3-attrs/0001-conftest.py-disable-deadline.patch
@@ -0,0 +1,45 @@
+From 41103f017f6a233ebb477dd1712fe82ea8f1c84c Mon Sep 17 00:00:00 2001
+From: Tim Orling 
+Date: Thu, 29 Feb 2024 08:45:54 -0800
+Subject: [PATCH] conftest.py: disable deadline
+
+The deadline is by default 200ms, but this is intended to be useful to
+the developer and not necessarily recommended for heavily loaded CI
+systems. Avoid warnings by disabling the deadline completely.
+
+https://github.com/HypothesisWorks/hypothesis/issues/3713
+https://hypothesis.readthedocs.io/en/latest/settings.html#hypothesis.settings.deadline
+https://lists.openembedded.org/g/openembedded-core/topic/104640034#196437
+
+Fixes:
+"""
+Unreliable test timings! On an initial run, this test took 268.29ms,
+which exceeded the deadline of 200.00ms, but on a subsequent run it
+took 2.63 ms, which did not. If you expect this sort of variability in
+your test timings, consider turning deadlines off for this test by
+setting deadline=None.
+"""
+
+Upstream-Status: Submitted [https://github.com/python-attrs/attrs/pull/1252]
+
+Signed-off-by: Tim Orling 
+---
+ conftest.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/conftest.py b/conftest.py
+index 144e5f3..fdead3d 100644
+--- a/conftest.py
 b/conftest.py
+@@ -20,7 +20,7 @@ def _frozen(request):
+ def pytest_configure(config):
+ # HealthCheck.too_slow causes more trouble than good -- especially in CIs.
+ settings.register_profile(
+-"patience", settings(suppress_health_check=[HealthCheck.too_slow])
++"patience", settings(suppress_health_check=[HealthCheck.too_slow], 
deadline=None)
+ )
+ settings.load_profile("patience")
+ 
+-- 
+2.34.1
+
diff --git a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb 
b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
index 3945798ba5e..a6380979884 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
@@ -9,6 +9,7 @@ inherit pypi ptest python_hatchling
 
 SRC_URI += " \
file://0001-test_funcs-skip-test_unknown-for-pytest-8.patch \
+   file://0001-conftest.py-disable-deadline.patch \
file://run-ptest \
 "
 
-- 
2.34.1


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



[OE-core] [PATCH] python3-attrs: disable Hypothesis deadline

2024-02-29 Thread Tim Orling
The deadline is by default 200ms, but this is intended to be useful to
the developer and not necessarily recommended for CI systems. Avoid,
AB warnings by disabling the deadline completely.

https://github.com/HypothesisWorks/hypothesis/issues/3713
https://hypothesis.readthedocs.io/en/latest/settings.html#hypothesis.settings.deadline
https://lists.openembedded.org/g/openembedded-core/topic/104640034#196437

Fixes:
"""
Unreliable test timings! On an initial run, this test took 268.29ms,
which exceeded the deadline of 200.00ms, but on a subsequent run it
took 2.63 ms, which did not. If you expect this sort of variability in
your test timings, consider turning deadlines off for this test by
setting deadline=None.
"""

Signed-off-by: Tim Orling 
---
All tests pass on qemux86-64 for core-image-ptest-python3-attrs

 .../0001-conftest.py-disable-deadline.patch   | 45 +++
 .../python/python3-attrs_23.2.0.bb|  1 +
 2 files changed, 46 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3-attrs/0001-conftest.py-disable-deadline.patch

diff --git 
a/meta/recipes-devtools/python/python3-attrs/0001-conftest.py-disable-deadline.patch
 
b/meta/recipes-devtools/python/python3-attrs/0001-conftest.py-disable-deadline.patch
new file mode 100644
index 000..efd78fca608
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3-attrs/0001-conftest.py-disable-deadline.patch
@@ -0,0 +1,45 @@
+From 41103f017f6a233ebb477dd1712fe82ea8f1c84c Mon Sep 17 00:00:00 2001
+From: Tim Orling 
+Date: Thu, 29 Feb 2024 08:45:54 -0800
+Subject: [PATCH] conftest.py: disable deadline
+
+The deadline is by default 200ms, but this is intended to be useful to
+the developer and not necessarily recommended for CI systems. Avoid,
+AB warnings by disabling the deadline completely.
+
+https://github.com/HypothesisWorks/hypothesis/issues/3713
+https://hypothesis.readthedocs.io/en/latest/settings.html#hypothesis.settings.deadline
+https://lists.openembedded.org/g/openembedded-core/topic/104640034#196437
+
+Fixes:
+"""
+Unreliable test timings! On an initial run, this test took 268.29ms,
+which exceeded the deadline of 200.00ms, but on a subsequent run it
+took 2.63 ms, which did not. If you expect this sort of variability in
+your test timings, consider turning deadlines off for this test by
+setting deadline=None.
+"""
+
+Upstream-Status: Inappropriate [CI specific]
+
+Signed-off-by: Tim Orling 
+---
+ conftest.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/conftest.py b/conftest.py
+index 144e5f3..fdead3d 100644
+--- a/conftest.py
 b/conftest.py
+@@ -20,7 +20,7 @@ def _frozen(request):
+ def pytest_configure(config):
+ # HealthCheck.too_slow causes more trouble than good -- especially in CIs.
+ settings.register_profile(
+-"patience", settings(suppress_health_check=[HealthCheck.too_slow])
++"patience", settings(suppress_health_check=[HealthCheck.too_slow], 
deadline=None)
+ )
+ settings.load_profile("patience")
+ 
+-- 
+2.34.1
+
diff --git a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb 
b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
index 3945798ba5e..a6380979884 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
@@ -9,6 +9,7 @@ inherit pypi ptest python_hatchling
 
 SRC_URI += " \
file://0001-test_funcs-skip-test_unknown-for-pytest-8.patch \
+   file://0001-conftest.py-disable-deadline.patch \
file://run-ptest \
 "
 
-- 
2.34.1


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



Re: [OE-core] python3-attrs - turn deadline off?

2024-02-29 Thread Tim Orling
On Thu, Feb 29, 2024 at 12:25 AM Richard Purdie <
richard.pur...@linuxfoundation.org> wrote:

> I noticed this failures:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6139
>
> which leads to:
>
>
> http://autobuilder.yocto.io/pub/non-release/20240228-36/testresults/qemuarm64-ptest/python3-attrs.log
>
> which says:
>
> """
> Unreliable test timings! On an initial run, this test took 268.29ms,
> which exceeded the deadline of 200.00ms, but on a subsequent run it
> took 2.63 ms, which did not. If you expect this sort of variability in
> your test timings, consider turning deadlines off for this test by
> setting deadline=None.
> """
>
> This warning is coming from python3-hypothesis, and is totally no obvious
from the test case itself
https://github.com/python-attrs/attrs/blob/23.2.0/tests/test_make.py#L1318C1-L1337C24

@given(integers(), booleans())
def test_converter_factory_property(self, val, init):
"""
Property tests for attributes with converter, and a factory default.
"""
C = make_class(
"C",
{
"y": attr.ib(),
"x": attr.ib(
init=init,
default=Factory(lambda: val),
converter=lambda v: v + 1,
),
},
)
c = C(2)

assert c.x == val + 1
assert c.y == 2

Related:
https://github.com/HypothesisWorks/hypothesis/issues/3713

Is there a setting we should be considering?
>
> Cheers,
>
> Richard
>
> 
>
>

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



[OE-core] [PATCH 1/1] python3-cryptography{-vectors}: upgrade to 42.0.5

2024-02-28 Thread Tim Orling
* Includes an upgrade to pyo3 from 0.20.0 to 0.20.3 which fixes ppc64
* Refresh -crates.inc

https://cryptography.io/en/latest/changelog/#v42-0-5
https://cryptography.io/en/latest/changelog/#v42-0-4
https://cryptography.io/en/latest/changelog/#v42-0-3

42.0.5 - 2024-02-23
* Limit the number of name constraint checks that will be performed in
  X.509 path validation to protect against denial of service attacks.
* Upgrade pyo3 version, which fixes building on PowerPC.

42.0.4 - 2024-02-20
* Fixed a null-pointer-dereference and segfault that could occur when
  creating a PKCS#12 bundle. Credit to Alexander-Programming for
  reporting the issue. CVE-2024-26130
* Fixed ASN.1 encoding for PKCS7/SMIME signed messages. The fields
  SMIMECapabilities and SignatureAlgorithmIdentifier should now be
  correctly encoded according to the definitions in RFC 2633 RFC 3370.

42.0.3 - 2024-02-15
* Fixed an initialization issue that caused key loading failures for
  some users.

CVE: CVE-2024-26130
https://nvd.nist.gov/vuln/detail/CVE-2024-26130

Signed-off-by: Tim Orling 
---
 .../python/python3-cryptography-crates.inc| 22 ++-
 ...=> python3-cryptography-vectors_42.0.5.bb} |  2 +-
 0.2.bb => python3-cryptography_42.0.5.bb} |  2 +-
 3 files changed, 14 insertions(+), 12 deletions(-)
 rename meta/recipes-devtools/python/{python3-cryptography-vectors_42.0.2.bb => 
python3-cryptography-vectors_42.0.5.bb} (91%)
 rename meta/recipes-devtools/python/{python3-cryptography_42.0.2.bb => 
python3-cryptography_42.0.5.bb} (95%)

diff --git a/meta/recipes-devtools/python/python3-cryptography-crates.inc 
b/meta/recipes-devtools/python/python3-cryptography-crates.inc
index 4714c76bd2b..b26e22b70c3 100644
--- a/meta/recipes-devtools/python/python3-cryptography-crates.inc
+++ b/meta/recipes-devtools/python/python3-cryptography-crates.inc
@@ -25,12 +25,13 @@ SRC_URI += " \
 crate://crates.io/parking_lot_core/0.9.9 \
 crate://crates.io/pem/3.0.3 \
 crate://crates.io/pkg-config/0.3.29 \
+crate://crates.io/portable-atomic/1.6.0 \
 crate://crates.io/proc-macro2/1.0.78 \
-crate://crates.io/pyo3/0.20.2 \
-crate://crates.io/pyo3-build-config/0.20.2 \
-crate://crates.io/pyo3-ffi/0.20.2 \
-crate://crates.io/pyo3-macros/0.20.2 \
-crate://crates.io/pyo3-macros-backend/0.20.2 \
+crate://crates.io/pyo3/0.20.3 \
+crate://crates.io/pyo3-build-config/0.20.3 \
+crate://crates.io/pyo3-ffi/0.20.3 \
+crate://crates.io/pyo3-macros/0.20.3 \
+crate://crates.io/pyo3-macros-backend/0.20.3 \
 crate://crates.io/quote/1.0.35 \
 crate://crates.io/redox_syscall/0.4.1 \
 crate://crates.io/scopeguard/1.2.0 \
@@ -74,12 +75,13 @@ SRC_URI[parking_lot-0.12.1.sha256sum] = 
"3742b2c103b9f06bc9fff0a37ff4912935851be
 SRC_URI[parking_lot_core-0.9.9.sha256sum] = 
"4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
 SRC_URI[pem-3.0.3.sha256sum] = 
"1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"
 SRC_URI[pkg-config-0.3.29.sha256sum] = 
"2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"
+SRC_URI[portable-atomic-1.6.0.sha256sum] = 
"7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
 SRC_URI[proc-macro2-1.0.78.sha256sum] = 
"e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
-SRC_URI[pyo3-0.20.2.sha256sum] = 
"9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"
-SRC_URI[pyo3-build-config-0.20.2.sha256sum] = 
"07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"
-SRC_URI[pyo3-ffi-0.20.2.sha256sum] = 
"dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"
-SRC_URI[pyo3-macros-0.20.2.sha256sum] = 
"05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"
-SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] = 
"0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"
+SRC_URI[pyo3-0.20.3.sha256sum] = 
"53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
+SRC_URI[pyo3-build-config-0.20.3.sha256sum] = 
"deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
+SRC_URI[pyo3-ffi-0.20.3.sha256sum] = 
"62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
+SRC_URI[pyo3-macros-0.20.3.sha256sum] = 
"7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
+SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] = 
"7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
 SRC_URI[quote-1.0.35.sha256sum] = 
"291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
 SRC_URI[redox_syscall-0.4.1.sha256sum] = 
"4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
 SRC_URI[scopeguard-1.2.0.sha256sum] = 
"94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
diff --git 
a/meta/recipes-devtools/python/python3-

[OE-core] [PATCH 0/1] python3-cryptograpy upgrade to 42.0.5

2024-02-28 Thread Tim Orling
This upgrade fixes CVE-2024-26130 and also upgraes the pyo3 crate
to 0.20.3 which fixes builds for ppc64.

Supercedes:
"python3-cryptography: Update pyo3 crate to 0.20.3"
https://patchwork.yoctoproject.org/project/oe-core/patch/20240227175138.2843184-2-raj.k...@gmail.com/

"python3-cryptography{-vectors}: 42.0.2 -> 42.0.4"
https://patchwork.yoctoproject.org/project/oe-core/patch/20240228073818.2520528-1-soumya.sa...@windriver.com/

Built on top of current master-next, sans "python3-cryptography: Update pyo3 
crate to 0.20.3".
All ptests pass on qemux86-64 for core-image-ptest-python3-cryptography

I will also sanity test ppc64 build, but am sending this now so it can be added 
to AB builds.

Tim Orling (1):
  python3-cryptography{-vectors}: upgrade to 42.0.5

 .../python/python3-cryptography-crates.inc| 22 ++-
 ...=> python3-cryptography-vectors_42.0.5.bb} |  2 +-
 0.2.bb => python3-cryptography_42.0.5.bb} |  2 +-
 3 files changed, 14 insertions(+), 12 deletions(-)
 rename meta/recipes-devtools/python/{python3-cryptography-vectors_42.0.2.bb => 
python3-cryptography-vectors_42.0.5.bb} (91%)
 rename meta/recipes-devtools/python/{python3-cryptography_42.0.2.bb => 
python3-cryptography_42.0.5.bb} (95%)

-- 
2.34.1


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



Re: [OE-core][PATCH 1/1] python3-cryptography{-vectors}: 42.0.2 -> 42.0.4

2024-02-28 Thread Tim Orling
We need the change in 42.0.5 for ppc64 support.

I will submit the full bump from 42.0.2 to 42.0.5 later today.

On Tue, Feb 27, 2024 at 11:38 PM Soumya via lists.openembedded.org
 wrote:

> From: Soumya Sambu 
>
> Changelog:
> ==
> 42.0.4 - 2024-02-20
> * Fixed a null-pointer-dereference and segfault that could occur
> when creating a PKCS#12 bundle. Credit to Alexander-Programming for
> reporting the issue. CVE-2024-26130
> * Fixed ASN.1 encoding for PKCS7/SMIME signed messages. The fields
> SMIMECapabilities and SignatureAlgorithmIdentifier should now be
> correctly encoded according to the definitions in RFC 2633 RFC 3370.
>
> 42.0.3 - 2024-02-15
> * Fixed an initialization issue that caused key loading failures for
> some users.
>
> https://cryptography.io/en/latest/changelog/#v42-0-4
>
> Signed-off-by: Soumya Sambu 
> ---
>  ...vectors_42.0.2.bb => python3-cryptography-vectors_42.0.4.bb} | 2 +-
>  ...n3-cryptography_42.0.2.bb => python3-cryptography_42.0.4.bb} | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>  rename meta/recipes-devtools/python/{
> python3-cryptography-vectors_42.0.2.bb =>
> python3-cryptography-vectors_42.0.4.bb} (91%)
>  rename meta/recipes-devtools/python/{python3-cryptography_42.0.2.bb =>
> python3-cryptography_42.0.4.bb} (95%)
>
> diff --git a/meta/recipes-devtools/python/
> python3-cryptography-vectors_42.0.2.bb b/meta/recipes-devtools/python/
> python3-cryptography-vectors_42.0.4.bb
> similarity index 91%
> rename from meta/recipes-devtools/python/
> python3-cryptography-vectors_42.0.2.bb
> rename to meta/recipes-devtools/python/
> python3-cryptography-vectors_42.0.4.bb
> index 94fbc94c55..9500e890f3 100644
> --- a/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.2.bb
> +++ b/meta/recipes-devtools/python/python3-cryptography-vectors_42.0.4.bb
> @@ -9,7 +9,7 @@ LIC_FILES_CHKSUM =
> "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \
>  # NOTE: Make sure to keep this recipe at the same version as
> python3-cryptography
>  #   Upgrade both recipes at the same time
>
> -SRC_URI[sha256sum] =
> "adcdccf5d9ee661a9602ad21d2525f678ba07a6e768ce79835994e208bab0e16"
> +SRC_URI[sha256sum] =
> "d6b707d238a5e2390c3dae7761b997b68c2b8c0723ed24fc13f832bcc8739945"
>
>  PYPI_PACKAGE = "cryptography_vectors"
>
> diff --git a/meta/recipes-devtools/python/python3-cryptography_42.0.2.bb
> b/meta/recipes-devtools/python/python3-cryptography_42.0.4.bb
> similarity index 95%
> rename from meta/recipes-devtools/python/python3-cryptography_42.0.2.bb
> rename to meta/recipes-devtools/python/python3-cryptography_42.0.4.bb
> index c21c4d1a03..e864d6ce4f 100644
> --- a/meta/recipes-devtools/python/python3-cryptography_42.0.2.bb
> +++ b/meta/recipes-devtools/python/python3-cryptography_42.0.4.bb
> @@ -8,7 +8,7 @@ LIC_FILES_CHKSUM =
> "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \
> "
>  LDSHARED += "-pthread"
>
> -SRC_URI[sha256sum] =
> "e0ec52ba3c7f1b7d813cd52649a5b3ef1fc0d433219dc8c93827c57eab6cf888"
> +SRC_URI[sha256sum] =
> "831a4b37accef30cccd34fcb916a5d7b5be3cbbe27268a02832c3e450aea39cb"
>
>  SRC_URI +=
> "file://0001-pyproject.toml-remove-benchmark-disable-option.patch \
>  file://check-memfree.py \
> --
> 2.40.0
>
>
> 
>
>

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



Re: [OE-core] [PATCH v2 2/2] python3-cryptography: Update pyo3 crate to 0.20.3

2024-02-28 Thread Tim Orling
On Tue, Feb 27, 2024 at 10:12 PM Khem Raj  wrote:

> On Tue, Feb 27, 2024 at 10:59 AM Tim Orling  wrote:
> >
> >
> >
> > On Tue, Feb 27, 2024 at 9:51 AM Khem Raj  wrote:
> >>
> >> This gets it building on architectures without 64bit atomics.
> >>
> >
> > We could also upgrade to python3-cryptography 42.0.5
> > https://cryptography.io/en/latest/changelog/#v42-0-5
> > Do we want to do that at this stage?
>
> upgrade to 42.0.5 will still need this patch regardless
> since it will only be in next release, so update or not is orthogonal
> to this issue.
>
> The pyo3 upgrade was backported to 42.0.5
https://github.com/pyca/cryptography/compare/42.0.2...42.0.5
https://github.com/pyca/cryptography/commit/8e9de309f850a17409da5de39cfcd9296c25ea36


> >
> >>
> >> Signed-off-by: Khem Raj 
> >> ---
> >>  .../python/python3-cryptography-crates.inc|  22 ++--
> >>  ...m-0.20.2-to-0.20.3-in-src-rust-10462.patch | 105 ++
> >>  .../python/python3-cryptography_42.0.2.bb |   1 +
> >>  3 files changed, 118 insertions(+), 10 deletions(-)
> >>  create mode 100644
> meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch
> >>
> >> diff --git
> a/meta/recipes-devtools/python/python3-cryptography-crates.inc
> b/meta/recipes-devtools/python/python3-cryptography-crates.inc
> >> index 4714c76bd2b..b26e22b70c3 100644
> >> --- a/meta/recipes-devtools/python/python3-cryptography-crates.inc
> >> +++ b/meta/recipes-devtools/python/python3-cryptography-crates.inc
> >> @@ -25,12 +25,13 @@ SRC_URI += " \
> >>  crate://crates.io/parking_lot_core/0.9.9 \
> >>  crate://crates.io/pem/3.0.3 \
> >>  crate://crates.io/pkg-config/0.3.29 \
> >> +crate://crates.io/portable-atomic/1.6.0 \
> >>  crate://crates.io/proc-macro2/1.0.78 \
> >> -crate://crates.io/pyo3/0.20.2 \
> >> -crate://crates.io/pyo3-build-config/0.20.2 \
> >> -crate://crates.io/pyo3-ffi/0.20.2 \
> >> -crate://crates.io/pyo3-macros/0.20.2 \
> >> -crate://crates.io/pyo3-macros-backend/0.20.2 \
> >> +crate://crates.io/pyo3/0.20.3 \
> >> +crate://crates.io/pyo3-build-config/0.20.3 \
> >> +crate://crates.io/pyo3-ffi/0.20.3 \
> >> +crate://crates.io/pyo3-macros/0.20.3 \
> >> +crate://crates.io/pyo3-macros-backend/0.20.3 \
> >>  crate://crates.io/quote/1.0.35 \
> >>  crate://crates.io/redox_syscall/0.4.1 \
> >>  crate://crates.io/scopeguard/1.2.0 \
> >> @@ -74,12 +75,13 @@ SRC_URI[parking_lot-0.12.1.sha256sum] =
> "3742b2c103b9f06bc9fff0a37ff4912935851be
> >>  SRC_URI[parking_lot_core-0.9.9.sha256sum] =
> "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
> >>  SRC_URI[pem-3.0.3.sha256sum] =
> "1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"
> >>  SRC_URI[pkg-config-0.3.29.sha256sum] =
> "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"
> >> +SRC_URI[portable-atomic-1.6.0.sha256sum] =
> "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
> >>  SRC_URI[proc-macro2-1.0.78.sha256sum] =
> "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
> >> -SRC_URI[pyo3-0.20.2.sha256sum] =
> "9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"
> >> -SRC_URI[pyo3-build-config-0.20.2.sha256sum] =
> "07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"
> >> -SRC_URI[pyo3-ffi-0.20.2.sha256sum] =
> "dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"
> >> -SRC_URI[pyo3-macros-0.20.2.sha256sum] =
> "05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"
> >> -SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] =
> "0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"
> >> +SRC_URI[pyo3-0.20.3.sha256sum] =
> "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
> >> +SRC_URI[pyo3-build-config-0.20.3.sha256sum] =
> "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
> >> +SRC_URI[pyo3-ffi-0.20.3.sha256sum] =
> "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
> >> +SRC_URI[pyo3-macros-0.20.3.sha256sum] =
> "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
> >> +SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] =
> "7c7e9b68bb9c3149c5b0cade5d

Re: [OE-core] [PATCH v2 2/2] python3-cryptography: Update pyo3 crate to 0.20.3

2024-02-27 Thread Tim Orling
On Tue, Feb 27, 2024 at 9:51 AM Khem Raj  wrote:

> This gets it building on architectures without 64bit atomics.
>
>
We could also upgrade to python3-cryptography 42.0.5
https://cryptography.io/en/latest/changelog/#v42-0-5
Do we want to do that at this stage?


> Signed-off-by: Khem Raj 
> ---
>  .../python/python3-cryptography-crates.inc|  22 ++--
>  ...m-0.20.2-to-0.20.3-in-src-rust-10462.patch | 105 ++
>  .../python/python3-cryptography_42.0.2.bb |   1 +
>  3 files changed, 118 insertions(+), 10 deletions(-)
>  create mode 100644
> meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch
>
> diff --git a/meta/recipes-devtools/python/python3-cryptography-crates.inc
> b/meta/recipes-devtools/python/python3-cryptography-crates.inc
> index 4714c76bd2b..b26e22b70c3 100644
> --- a/meta/recipes-devtools/python/python3-cryptography-crates.inc
> +++ b/meta/recipes-devtools/python/python3-cryptography-crates.inc
> @@ -25,12 +25,13 @@ SRC_URI += " \
>  crate://crates.io/parking_lot_core/0.9.9 \
>  crate://crates.io/pem/3.0.3 \
>  crate://crates.io/pkg-config/0.3.29 \
> +crate://crates.io/portable-atomic/1.6.0 \
>  crate://crates.io/proc-macro2/1.0.78 \
> -crate://crates.io/pyo3/0.20.2 \
> -crate://crates.io/pyo3-build-config/0.20.2 \
> -crate://crates.io/pyo3-ffi/0.20.2 \
> -crate://crates.io/pyo3-macros/0.20.2 \
> -crate://crates.io/pyo3-macros-backend/0.20.2 \
> +crate://crates.io/pyo3/0.20.3 \
> +crate://crates.io/pyo3-build-config/0.20.3 \
> +crate://crates.io/pyo3-ffi/0.20.3 \
> +crate://crates.io/pyo3-macros/0.20.3 \
> +crate://crates.io/pyo3-macros-backend/0.20.3 \
>  crate://crates.io/quote/1.0.35 \
>  crate://crates.io/redox_syscall/0.4.1 \
>  crate://crates.io/scopeguard/1.2.0 \
> @@ -74,12 +75,13 @@ SRC_URI[parking_lot-0.12.1.sha256sum] =
> "3742b2c103b9f06bc9fff0a37ff4912935851be
>  SRC_URI[parking_lot_core-0.9.9.sha256sum] =
> "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
>  SRC_URI[pem-3.0.3.sha256sum] =
> "1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310"
>  SRC_URI[pkg-config-0.3.29.sha256sum] =
> "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"
> +SRC_URI[portable-atomic-1.6.0.sha256sum] =
> "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
>  SRC_URI[proc-macro2-1.0.78.sha256sum] =
> "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
> -SRC_URI[pyo3-0.20.2.sha256sum] =
> "9a89dc7a5850d0e983be1ec2a463a171d20990487c3cfcd68b5363f1ee3d6fe0"
> -SRC_URI[pyo3-build-config-0.20.2.sha256sum] =
> "07426f0d8fe5a601f26293f300afd1a7b1ed5e78b2a705870c5f30893c5163be"
> -SRC_URI[pyo3-ffi-0.20.2.sha256sum] =
> "dbb7dec17e17766b46bca4f1a4215a85006b4c2ecde122076c562dd058da6cf1"
> -SRC_URI[pyo3-macros-0.20.2.sha256sum] =
> "05f738b4e40d50b5711957f142878cfa0f28e054aa0ebdfc3fd137a843f74ed3"
> -SRC_URI[pyo3-macros-backend-0.20.2.sha256sum] =
> "0fc910d4851847827daf9d6cdd4a823fbdaab5b8818325c5e97a86da79e8881f"
> +SRC_URI[pyo3-0.20.3.sha256sum] =
> "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
> +SRC_URI[pyo3-build-config-0.20.3.sha256sum] =
> "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
> +SRC_URI[pyo3-ffi-0.20.3.sha256sum] =
> "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
> +SRC_URI[pyo3-macros-0.20.3.sha256sum] =
> "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
> +SRC_URI[pyo3-macros-backend-0.20.3.sha256sum] =
> "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
>  SRC_URI[quote-1.0.35.sha256sum] =
> "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
>  SRC_URI[redox_syscall-0.4.1.sha256sum] =
> "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
>  SRC_URI[scopeguard-1.2.0.sha256sum] =
> "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
> diff --git
> a/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch
> b/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch
> new file mode 100644
> index 000..33dd7ae5d5a
> --- /dev/null
> +++
> b/meta/recipes-devtools/python/python3-cryptography/0001-Bump-pyo3-from-0.20.2-to-0.20.3-in-src-rust-10462.patch
> @@ -0,0 +1,105 @@
> +From f6ec5ab18b5beacb08b0157c5193ea626b44b4e1 Mon Sep 17 00:00:00 2001
> +From: Khem Raj 
> +Date: Tue, 27 Feb 2024 09:30:15 -0800
> +Subject: [PATCH] Bump pyo3 from 0.20.2 to 0.20.3 in /src/rust (#10462)
> +
> +It fixes build on hosts without 64bit atomics
> +
> +Upstream-Status: Backport [
> https://github.com/pyca/cryptography/commit/3598d2ee4b5060dbbe6938b893410ed35074567c
> ]
> +
> +Signed-off-by: Khem Raj 
> +---
> + src/rust/Cargo.lock | 28 ++--
> + 1 file changed, 18 insertions(+), 10 deletions(-)
> +
> +diff --git 

[OE-core] [PATCH] python3-pyproject-metadata: HOMEPAGE; DESCRIPTION

2024-02-19 Thread Tim Orling
Add HOMEPAGE and DESCRIPTION that were missing in
the original recipe in meta-python

Signed-off-by: Tim Orling 
---
 .../python/python3-pyproject-metadata_0.7.1.bb| 11 +++
 1 file changed, 11 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb 
b/meta/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb
index e0da1d96907..8b9549f3d07 100644
--- a/meta/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb
+++ b/meta/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb
@@ -1,10 +1,21 @@
 SUMMARY = "PEP 621 metadata parsing"
+DESCRIPTION = "Dataclass for PEP 621 metadata with support for core \
+metadata generation \
+\
+This project does not implement the parsing of pyproject.toml containing \
+PEP 621 metadata.\
+\
+Instead, given a Python data structure representing PEP 621 metadata \
+(already parsed), it will validate this input and generate a \
+PEP 643-compliant metadata file (e.g. PKG-INFO)."
+HOMEPAGE = "https://github.com/FFY00/python-pyproject-metadata;
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=310439af287b0fb4780b2ad6907c256c"
 
 PYPI_PACKAGE = "pyproject-metadata"
 
 inherit pypi python_setuptools_build_meta
+
 SRC_URI[sha256sum] = 
"0a94f18b108b9b21f3a26a3d541f056c34edcb17dc872a144a15618fed7aef67"
 
 RDEPENDS:${PN} += " \
-- 
2.34.1


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



[OE-core] [PATCH] python3-pyproject-metadata: move from meta-python

2024-02-19 Thread Tim Orling
This is a dependency for python3-meson-python.

Signed-off-by: Tim Orling 
---
 meta/conf/distro/include/maintainers.inc |  1 +
 .../python/python3-pyproject-metadata_0.7.1.bb   | 16 
 2 files changed, 17 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 1ab69175bb8..7e17e9b71fa 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -629,6 +629,7 @@ RECIPE_MAINTAINER:pn-python3-dtschema-wrapper = "Bruce 
Ashfield 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#195898): 
https://lists.openembedded.org/g/openembedded-core/message/195898
Mute This Topic: https://lists.openembedded.org/mt/104455875/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 4/4] recipetool; add support for python_mesonpy class

2024-02-19 Thread Tim Orling
* Add support to detect the "mesonpy" build-backend for recipetool create.
* Add oe-selftest case for creating a recipe for "siphash24" from pypi.
  https://pypi.org/project/siphash24/

This is by far the simplest recipe using the mesonpy build backend.

Upstream does not provide LICENSE file(s) and we do not detect the
LICENSE so don't check for that result in the test. Likewise, upstream
does not define HOMEPAGE, so skip that result.

Signed-off-by: Tim Orling 
---
 meta/lib/oeqa/selftest/cases/recipetool.py| 19 +++
 .../lib/recipetool/create_buildsys_python.py  |  4 
 2 files changed, 23 insertions(+)

diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py 
b/meta/lib/oeqa/selftest/cases/recipetool.py
index 83361814dfd..2eca1800de1 100644
--- a/meta/lib/oeqa/selftest/cases/recipetool.py
+++ b/meta/lib/oeqa/selftest/cases/recipetool.py
@@ -676,6 +676,25 @@ class RecipetoolCreateTests(RecipetoolBase):
 
 self._test_recipe_contents(recipefile, checkvars, inherits)
 
+def test_recipetool_create_python3_pep517_mesonpy(self):
+# This test require python 3.11 or above for the tomllib module or 
tomli module to be installed
+needTomllib(self)
+
+# Test creating python3 package from tarball (using mesonpy class)
+temprecipe = os.path.join(self.tempdir, 'recipe')
+os.makedirs(temprecipe)
+pn = 'siphash24'
+pv = '1.4'
+recipefile = os.path.join(temprecipe, 'python3-%s_%s.bb' % (pn, pv))
+srcuri = 
'https://files.pythonhosted.org/packages/c2/32/b934a70592f314afcfa86c7f7e388804a8061be65b822e2aa07e573b6477/%s-%s.tar.gz'
 % (pn, pv)
+result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri))
+self.assertTrue(os.path.isfile(recipefile))
+checkvars = {}
+checkvars['SRC_URI[sha256sum]'] = 
'7fd65e39b2a7c8c4ddc3a168a687f4610751b0ac2ebb518783c0cdfc30bec4a0'
+inherits = ['python_mesonpy', 'pypi']
+
+self._test_recipe_contents(recipefile, checkvars, inherits)
+
 def test_recipetool_create_github_tarball(self):
 # Basic test to ensure github URL mangling doesn't apply to release 
tarballs.
 # Deliberately use an older release of Meson at present so we don't 
need a toml parser.
diff --git a/scripts/lib/recipetool/create_buildsys_python.py 
b/scripts/lib/recipetool/create_buildsys_python.py
index a589343cfbf..a807dafae52 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -739,6 +739,7 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler):
 "flit_core.buildapi": "python_flit_core",
 "hatchling.build": "python_hatchling",
 "maturin": "python_maturin",
+"mesonpy": "python_mesonpy",
 }
 
 # setuptools.build_meta and flit declare project metadata into the 
"project" section of pyproject.toml
@@ -779,6 +780,8 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler):
 "python3-poetry-core-native",
 # already provided by python_flit_core.bbclass
 "python3-flit-core-native",
+# already provided by python_mesonpy
+"python3-meson-python-native",
 ]
 
 # add here a list of known and often used packages and the corresponding 
bitbake package
@@ -790,6 +793,7 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler):
 "setuptools-scm": "python3-setuptools-scm",
 "hatchling": "python3-hatchling",
 "hatch-vcs": "python3-hatch-vcs",
+"meson-python" : "python3-meson-python",
 }
 
 def __init__(self):
-- 
2.34.1


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



[OE-core] [PATCH 3/4] python3-numpy: inherit python_mesonpy

2024-02-19 Thread Tim Orling
Replace the deprecated setuptools3 bbclass with python_mesonpy.

The build-backend has been defined as "mesonpy" since:
https://github.com/numpy/numpy/commit/942fb8caf33a65e449fbf198ecf1cd39be953248

The vendored meson-python was dropped in:
https://github.com/numpy/numpy/commit/6544e33ac7a3a600c2fb565401c811a17ecdb3d5

While we are at it:
* Drop ${PYTHON_PN} and use python3 instead
* Sort RDEPENDS alphabetically

The ptests run, but we still have issues with sufficient memory and
free disk space (the reason python3-numpy is in PTEST_PROBLEMS).

Signed-off-by: Tim Orling 
---
 .../python/python3-numpy_1.26.4.bb| 54 ++-
 1 file changed, 28 insertions(+), 26 deletions(-)

diff --git a/meta/recipes-devtools/python/python3-numpy_1.26.4.bb 
b/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
index d11b03efc3d..402d74db72d 100644
--- a/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
+++ b/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
@@ -20,7 +20,7 @@ UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P\d+(\.\d+)+)$"
 
 DEPENDS += "python3-cython-native"
 
-inherit ptest setuptools3 github-releases
+inherit ptest python_mesonpy github-releases
 
 S = "${WORKDIR}/numpy-${PV}"
 
@@ -33,32 +33,34 @@ do_compile:prepend() {
 FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a 
${PYTHON_SITEPACKAGES_DIR}/numpy/random/lib/*.a"
 
 # install what is needed for numpy.test()
-RDEPENDS:${PN} = "${PYTHON_PN}-unittest \
-  ${PYTHON_PN}-difflib \
-  ${PYTHON_PN}-pprint \
-  ${PYTHON_PN}-pickle \
-  ${PYTHON_PN}-shell \
-  ${PYTHON_PN}-doctest \
-  ${PYTHON_PN}-datetime \
-  ${PYTHON_PN}-misc \
-  ${PYTHON_PN}-mmap \
-  ${PYTHON_PN}-netclient \
-  ${PYTHON_PN}-numbers \
-  ${PYTHON_PN}-pydoc \
-  ${PYTHON_PN}-pkgutil \
-  ${PYTHON_PN}-email \
-  ${PYTHON_PN}-compression \
-  ${PYTHON_PN}-ctypes \
-  ${PYTHON_PN}-threading \
-  ${PYTHON_PN}-multiprocessing \
-  ${PYTHON_PN}-json \
+RDEPENDS:${PN} = "\
+python3-compression \
+python3-ctypes \
+python3-datetime \
+python3-difflib \
+python3-doctest \
+python3-email \
+python3-json \
+python3-misc \
+python3-mmap \
+python3-multiprocessing \
+python3-netclient \
+python3-numbers \
+python3-pickle \
+python3-pkgutil \
+python3-pprint \
+python3-pydoc \
+python3-shell \
+python3-threading \
+python3-unittest \
 "
-RDEPENDS:${PN}-ptest += "${PYTHON_PN}-pytest \
- ${PYTHON_PN}-hypothesis \
- ${PYTHON_PN}-sortedcontainers \
- ${PYTHON_PN}-resource \
- ${PYTHON_PN}-typing-extensions \
- ldd \
+RDEPENDS:${PN}-ptest += "\
+ldd \
+python3-hypothesis \
+python3-pytest \
+python3-resource \
+python3-sortedcontainers \
+python3-typing-extensions \
 "
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.34.1


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



[OE-core] [PATCH 2/4] python_mesonpy.bbclass: move from meta-python

2024-02-19 Thread Tim Orling
Move the PEP-517 back-end bbclass from meta-python to support:

[build-system]
build-backend = "mesonpy"

This is the declared backend in python3-numpy since:
https://github.com/numpy/numpy/commit/942fb8caf33a65e449fbf198ecf1cd39be953248

Signed-off-by: Tim Orling 
---
 meta/classes-recipe/python_mesonpy.bbclass | 52 ++
 1 file changed, 52 insertions(+)
 create mode 100644 meta/classes-recipe/python_mesonpy.bbclass

diff --git a/meta/classes-recipe/python_mesonpy.bbclass 
b/meta/classes-recipe/python_mesonpy.bbclass
new file mode 100644
index 000..131fa74bede
--- /dev/null
+++ b/meta/classes-recipe/python_mesonpy.bbclass
@@ -0,0 +1,52 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+inherit meson setuptools3-base python3targetconfig python_pep517
+
+# meson_do_qa_configure does the wrong thing here because
+# mesonpy runs "meson setup ..." in do_compile context.
+# Make it a dummy function.
+meson_do_qa_configure () {
+:
+}
+
+# This prevents the meson error:
+# ERROR: Got argument buildtype as both -Dbuildtype and --buildtype. Pick one.
+MESONOPTS:remove = "--buildtype ${MESON_BUILDTYPE}"
+
+CONFIGURE_FILES = "pyproject.toml"
+
+DEPENDS += "python3-wheel-native python3-meson-python-native"
+
+def mesonpy_get_args(d):
+vars = ['MESONOPTS', 'MESON_CROSS_FILE', 'EXTRA_OEMESON']
+varlist = []
+for var in vars:
+value = d.getVar(var)
+vallist = value.split()
+for elem in vallist:
+varlist.append("-Csetup-args=" + elem)
+return ' '.join(varlist)
+
+PEP517_BUILD_OPTS = "-Cbuilddir='${B}' ${@mesonpy_get_args(d)}"
+
+# Python pyx -> c -> so build leaves absolute build paths in the code
+INSANE_SKIP:${PN} += "buildpaths"
+INSANE_SKIP:${PN}-src += "buildpaths"
+
+python_mesonpy_do_configure () {
+python_pep517_do_configure
+}
+
+python_mesonpy_do_compile () {
+python_pep517_do_compile
+}
+
+python_mesonpy_do_install () {
+python_pep517_do_install
+}
+
+EXPORT_FUNCTIONS do_configure do_compile do_install
-- 
2.34.1


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



[OE-core] [PATCH 1/4] python3-meson-python: move from meta-python

2024-02-19 Thread Tim Orling
meson-python is a Python build backend built on top of the Meson
build-system. It enables you to use Meson for your Python packages.

https://meson-python.readthedocs.io/en/latest/

It is used as the PEP-517 build-backend for python3-numpy and python3-scipy.

For other projects using the backend, see:
https://meson-python.readthedocs.io/en/latest/projects-using-meson-python.html

Signed-off-by: Tim Orling 
---
 meta/conf/distro/include/maintainers.inc  |  1 +
 .../python/python3-meson-python_0.15.0.bb | 27 +++
 2 files changed, 28 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-meson-python_0.15.0.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index f489fbe275f..1ab69175bb8 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -657,6 +657,7 @@ RECIPE_MAINTAINER:pn-python3-mako = "Trevor Gamblin 
"
 RECIPE_MAINTAINER:pn-python3-markdown = "Alexander Kanavin 
"
 RECIPE_MAINTAINER:pn-python3-markupsafe = "Richard Purdie 
"
 RECIPE_MAINTAINER:pn-python3-maturin = "Tim Orling "
+RECIPE_MAINTAINER:pn-python3-meson-python = "Tim Orling 
"
 RECIPE_MAINTAINER:pn-python3-more-itertools = "Tim Orling 
"
 RECIPE_MAINTAINER:pn-python3-ndg-httpsclient = "Tim Orling 
"
 RECIPE_MAINTAINER:pn-python3-numpy = "Trevor Gamblin "
diff --git a/meta/recipes-devtools/python/python3-meson-python_0.15.0.bb 
b/meta/recipes-devtools/python/python3-meson-python_0.15.0.bb
new file mode 100644
index 000..ad3cfe17d9e
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-meson-python_0.15.0.bb
@@ -0,0 +1,27 @@
+SUMMARY = "Meson Python build backend (PEP 517)"
+HOMEPAGE = "https://github.com/mesonbuild/meson-python;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d580b27e67cc0892a5b005b0be114b60"
+
+DEPENDS = " \
+   meson-native \
+   ninja-native \
+   patchelf-native \
+   python3-pyproject-metadata-native \
+"
+
+PYPI_PACKAGE = "meson_python"
+
+inherit pypi python_mesonpy
+SRC_URI[sha256sum] = 
"fddb73eecd49e89c1c41c87937cd89c2d0b65a1c63ba28238681d4bd9484d26f"
+
+DEPENDS:remove:class-native = "python3-meson-python-native"
+
+RDEPENDS:${PN} = " \
+   meson \
+   ninja \
+   patchelf \
+   python3-pyproject-metadata \
+"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.34.1


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



[OE-core] [PATCH 0/4] Add python_mesonpy ("mesonpy") PEP-517 backend support

2024-02-19 Thread Tim Orling
Move the python_mesonpy bbclass and python3-meson-python recipe from 
meta-python.

https://meson-python.readthedocs.io/en/latest/

This is the declared backend for python-numpy, so it is time to move it to 
oe-core.

The following changes since commit 4cfd0f7e4e2db19344677999572e5b71ae97dfc4:

  lib/oe/patch: Use git notes to store the filenames for the patches 
(2024-02-19 16:03:22 +)

are available in the Git repository at:

  https://git.yoctoproject.org/poky-contrib timo/python_mesonpy
  https://git.yoctoproject.org/poky-contrib/log/?h=timo/python_mesonpy

Tim Orling (4):
  python3-meson-python: move from meta-python
  python_mesonpy.bbclass: move from meta-python
  python3-numpy: inherit python_mesonpy
  recipetool; add support for python_mesonpy class

 meta/classes-recipe/python_mesonpy.bbclass| 52 ++
 meta/conf/distro/include/maintainers.inc  |  1 +
 meta/lib/oeqa/selftest/cases/recipetool.py| 19 +++
 .../python/python3-meson-python_0.15.0.bb | 27 ++
 .../python/python3-numpy_1.26.4.bb| 54 ++-
 .../lib/recipetool/create_buildsys_python.py  |  4 ++
 6 files changed, 131 insertions(+), 26 deletions(-)
 create mode 100644 meta/classes-recipe/python_mesonpy.bbclass
 create mode 100644 meta/recipes-devtools/python/python3-meson-python_0.15.0.bb

-- 
2.34.1


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



[OE-core] [dunfell][kirkstone][nanbield][PATCH] vim: upgrade v9.0.2130 -> v9.0.2190

2024-02-18 Thread Tim Orling
This is the latest/last of the 9.0.z upgrades, since 9.1 is now
released.

CVE: CVE-2024-22667
(includes the patch for .2142 
https://github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47)

Changes:
https://github.com/vim/vim/compare/v9.0.2130...v9.0.2190

Signed-off-by: Tim Orling 
---
 meta/recipes-support/vim/vim.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc
index 6b440d89472..906aa53a163 100644
--- a/meta/recipes-support/vim/vim.inc
+++ b/meta/recipes-support/vim/vim.inc
@@ -19,8 +19,8 @@ SRC_URI = 
"git://github.com/vim/vim.git;branch=master;protocol=https \
file://no-path-adjust.patch \
"
 
-PV .= ".2130"
-SRCREV = "075ad7047457debfeef13442c01e74088b461092"
+PV .= ".2190"
+SRCREV = "6a950da86d7a6eb09d5ebeab17657986420d07ac"
 
 # Do not consider .z in x.y.z, as that is updated with every commit
 UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+\.\d+)\.0"
-- 
2.34.1


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



Re: [OE-core] [PATCH] vim: upgrade 9.0.2130 -> 9.0.2142

2024-02-18 Thread Tim Orling
On Sun, Feb 18, 2024 at 7:49 AM Simone Weiß  wrote:

> On Sun, 2024-02-18 at 07:01 -0800, Tim Orling wrote:
>
>
>
> On Sun, Feb 18, 2024 at 4:33 AM Simone Weiß 
> wrote:
>
> From: Simone Weiß 
>
> Changes:
> https://github.com/vim/vim/compare/v9.0.2130...v9.0.2142
>
> This fixes CVE-2024-22667
>
> Signed-off-by: Simone Weiß 
> ---
>  meta/recipes-support/vim/vim.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-support/vim/vim.inc
> b/meta/recipes-support/vim/vim.inc
> index 6b440d8947..84af72472a 100644
> --- a/meta/recipes-support/vim/vim.inc
> +++ b/meta/recipes-support/vim/vim.inc
> @@ -19,7 +19,7 @@ SRC_URI = "git://
> github.com/vim/vim.git;branch=master;protocol=https \
> file://no-path-adjust.patch \
> "
>
> -PV .= ".2130"
> +PV .= ".2142"
>  SRCREV = "075ad7047457debfeef13442c01e74088b461092"
>
> You need to actually change the SRCREV to point to .2142
>
> https://github.com/vim/vim/commits/v9.0.2142
>
> b39b240c386a5a29241415541f1c99e2e6b8ce47
>
>
> And then ask yourself if we should take an even more recent version:
>
> https://github.com/vim/vim/commits/v9.1.0114
>
>
> Thanks, will do so.
>

I was already planning on addressing the CVE issue this morning, so I have
gone ahead and sent the upgrade to 9.1.0114


>
>
>  # Do not consider .z in x.y.z, as that is updated with every commit
>
> 
>
>
>

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



[OE-core] [PATCH] vim: upgrade from 9.0.2130 -> 9.1.0114

2024-02-18 Thread Tim Orling
https://www.vim.org/vim-9.1-released.php

Vim 9.1 is available

The Vim project is happy to announce that Vim 9.1 has finally been released.
This release is dedicated to Bram Moolenaar, Vim's lead developer for more
than 30 years, who passed away half a year ago. The Vim project wouldn't
exist without his work!

Vim 9.1 is mainly a bug fix release, it contains hundreds of bug fixes, a
few new features and there are many minor improvements.

Changes:
https://github.com/vim/vim/compare/v9.0.2130...v9.1.0114

CVE: CVE-2024-22667
(includes commit 
https://github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47)

Signed-off-by: Tim Orling 
---
 meta/recipes-support/vim/{vim-tiny_9.0.bb => vim-tiny_9.1.bb} | 0
 meta/recipes-support/vim/vim.inc  | 4 ++--
 meta/recipes-support/vim/{vim_9.0.bb => vim_9.1.bb}   | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-support/vim/{vim-tiny_9.0.bb => vim-tiny_9.1.bb} (100%)
 rename meta/recipes-support/vim/{vim_9.0.bb => vim_9.1.bb} (100%)

diff --git a/meta/recipes-support/vim/vim-tiny_9.0.bb 
b/meta/recipes-support/vim/vim-tiny_9.1.bb
similarity index 100%
rename from meta/recipes-support/vim/vim-tiny_9.0.bb
rename to meta/recipes-support/vim/vim-tiny_9.1.bb
diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc
index 6b440d89472..071deed338b 100644
--- a/meta/recipes-support/vim/vim.inc
+++ b/meta/recipes-support/vim/vim.inc
@@ -19,8 +19,8 @@ SRC_URI = 
"git://github.com/vim/vim.git;branch=master;protocol=https \
file://no-path-adjust.patch \
"
 
-PV .= ".2130"
-SRCREV = "075ad7047457debfeef13442c01e74088b461092"
+PV .= ".0114"
+SRCREV = "fcaed6a70faf73bff3e5405ada556d726024f866"
 
 # Do not consider .z in x.y.z, as that is updated with every commit
 UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+\.\d+)\.0"
diff --git a/meta/recipes-support/vim/vim_9.0.bb 
b/meta/recipes-support/vim/vim_9.1.bb
similarity index 100%
rename from meta/recipes-support/vim/vim_9.0.bb
rename to meta/recipes-support/vim/vim_9.1.bb
-- 
2.34.1


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



Re: [OE-core] [PATCH] vim: upgrade 9.0.2130 -> 9.0.2142

2024-02-18 Thread Tim Orling
On Sun, Feb 18, 2024 at 4:33 AM Simone Weiß 
wrote:

> From: Simone Weiß 
>
> Changes:
> https://github.com/vim/vim/compare/v9.0.2130...v9.0.2142
>
> This fixes CVE-2024-22667
>
> Signed-off-by: Simone Weiß 
> ---
>  meta/recipes-support/vim/vim.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-support/vim/vim.inc
> b/meta/recipes-support/vim/vim.inc
> index 6b440d8947..84af72472a 100644
> --- a/meta/recipes-support/vim/vim.inc
> +++ b/meta/recipes-support/vim/vim.inc
> @@ -19,7 +19,7 @@ SRC_URI = "git://
> github.com/vim/vim.git;branch=master;protocol=https \
> file://no-path-adjust.patch \
> "
>
> -PV .= ".2130"
> +PV .= ".2142"
>  SRCREV = "075ad7047457debfeef13442c01e74088b461092"
>
You need to actually change the SRCREV to point to .2142

https://github.com/vim/vim/commits/v9.0.2142

b39b240c386a5a29241415541f1c99e2e6b8ce47


And then ask yourself if we should take an even more recent version:

https://github.com/vim/vim/commits/v9.1.0114


>  # Do not consider .z in x.y.z, as that is updated with every commit
> --
> 2.39.2
>
>
> 
>
>

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



[OE-core] [PATCH 2/2] python3-attrs: skip test failing with pytest-8

2024-02-16 Thread Tim Orling
tests/test_funcs.py test_unknown test case is failing with
pytest 8. Skip it for now until upstream has a fix.

https://github.com/python-attrs/attrs/issues/1233

Signed-off-by: Tim Orling 
---
Tested with core-image-ptest-python3-attrs on qemux86-64.

 ...funcs-skip-test_unknown-for-pytest-8.patch | 30 +++
 .../python/python3-attrs_23.2.0.bb|  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch

diff --git 
a/meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch
 
b/meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch
new file mode 100644
index 000..bb69c0f1573
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch
@@ -0,0 +1,30 @@
+From cbe95e1aa6d95195dce13406a6f0522b2964babc Mon Sep 17 00:00:00 2001
+From: Tim Orling 
+Date: Fri, 16 Feb 2024 07:17:19 -0800
+Subject: [PATCH] test_funcs: skip test_unknown for pytest 8
+
+https://github.com/python-attrs/attrs/issues/1233
+
+Upstream-Status: Inappropriate [Test case needs to be properly fixed upstream]
+
+Signed-off-by: Tim Orling 
+---
+ tests/test_funcs.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_funcs.py b/tests/test_funcs.py
+index 044aaab..0872c31 100644
+--- a/tests/test_funcs.py
 b/tests/test_funcs.py
+@@ -593,7 +593,7 @@ class TestAssoc:
+ for k, v in change_dict.items():
+ assert getattr(changed, k) == v
+ 
+-@given(simple_classes())
++@pytest.mark.skip('Broken with pytest 8. See 
https://github.com/python-attrs/attrs/issues/1233')
+ def test_unknown(self, C):
+ """
+ Wanting to change an unknown attribute raises an
+-- 
+2.34.1
+
diff --git a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb 
b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
index 7b6a6bd94c9..cdd78c2bd9d 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
@@ -8,6 +8,7 @@ SRC_URI[sha256sum] = 
"935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19
 inherit pypi ptest python_hatchling
 
 SRC_URI += " \
+   file://0001-test_funcs-skip-test_unknown-for-pytest-8.patch \
file://run-ptest \
 "
 
-- 
2.34.1


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



[OE-core] [PATCH 1/2] python3-pytest: upgrade 7.4.4 -> 8.0.0

2024-02-16 Thread Tim Orling
From: Wang Mingyu 

Changelog:
=
#11842: Properly escape the reason of a skip mark when writing JUnit XML files.
#11861: Avoid microsecond exceeds 1_000_000 when using log-date-format with
 %f specifier, which might cause the test suite to crash.

Signed-off-by: Wang Mingyu 
Signed-off-by: Tim Orling 
---
 .../python/{python3-pytest_7.4.4.bb => python3-pytest_8.0.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-pytest_7.4.4.bb => 
python3-pytest_8.0.0.bb} (93%)

diff --git a/meta/recipes-devtools/python/python3-pytest_7.4.4.bb 
b/meta/recipes-devtools/python/python3-pytest_8.0.0.bb
similarity index 93%
rename from meta/recipes-devtools/python/python3-pytest_7.4.4.bb
rename to meta/recipes-devtools/python/python3-pytest_8.0.0.bb
index 18062c8fb85..994f6cbdaf5 100644
--- a/meta/recipes-devtools/python/python3-pytest_7.4.4.bb
+++ b/meta/recipes-devtools/python/python3-pytest_8.0.0.bb
@@ -5,7 +5,7 @@ DESCRIPTION = "The pytest framework makes it easy to write 
small tests, yet scal
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bd27e41b6550fe0fc45356d1d81ee37c"
 
-SRC_URI[sha256sum] = 
"2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"
+SRC_URI[sha256sum] = 
"249b1b0864530ba251b7438274c4d251c58d868edaaec8762893ad4a0d71c36c"
 
 DEPENDS += "python3-setuptools-scm-native"
 
-- 
2.34.1


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



[OE-core] [PATCH 0/2] Fix for python3-pytest 8.0.0 related failure

2024-02-16 Thread Tim Orling
The python3-pytest upgrade to 8.0.0 caused a failure in python3-attrs.
https://github.com/python-attrs/attrs/issues/1233

Tim Orling (1):
  python3-attrs: skip test failing with pytest-8

Wang Mingyu (1):
  python3-pytest: upgrade 7.4.4 -> 8.0.0

 ...funcs-skip-test_unknown-for-pytest-8.patch | 30 +++
 .../python/python3-attrs_23.2.0.bb|  1 +
 ...ytest_7.4.4.bb => python3-pytest_8.0.0.bb} |  2 +-
 3 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch
 rename meta/recipes-devtools/python/{python3-pytest_7.4.4.bb => 
python3-pytest_8.0.0.bb} (93%)

-- 
2.34.1


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



Re: [OE-core] [PATCH v3] openssh: Add a work around for ICE on mips/mips64

2024-02-15 Thread Tim Orling
I’m

On Thu, Feb 15, 2024 at 5:12 PM Khem Raj  wrote:

> On Thu, Feb 15, 2024 at 1:29 PM Richard Purdie
>  wrote:
> >
> > Unfortunately the new openssh version has an ICE on mips. This looks
> similar to:
> >
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104817
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104820
> >
> > Given how long these have been open, workaround the issue by disabling
> the compiler
> > hardening options on mips.
> >
> > It is likely better to do this than have the open CVEs for everyone
> > as we can't upgrade.
> >
> > An example:
> >
> > | during RTL pass: zero_call_used_regs
> > | clientloop.c: In function 'client_loop':
> > | clientloop.c:1699:1: internal compiler error: in int_mode_for_mode, at
> stor-layout.cc:407
> > |  1699 | }
> > |   | ^
> > | 0x14d0acc internal_error(char const*, ...)
> > |   ???:0
> > | 0x5cf765 fancy_abort(char const*, int, char const*)
> > |   ???:0
> > | 0x826f1f emit_move_insn_1(rtx_def*, rtx_def*)
> > |   ???:0
> > | 0x8270c5 emit_move_insn(rtx_def*, rtx_def*)
> > |   ???:0
> > | 0xb7b994 default_zero_call_used_regs(HARD_REG_SET)
> > |   ???:0
> > | Please submit a full bug report, with preprocessed source (by using
> -freport-bug).
> > | Please include the complete backtrace with any bug report.
> >
> > Signed-off-by: Richard Purdie 
> > ---
> >  meta/recipes-connectivity/openssh/openssh_9.6p1.bb | 4 
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
> b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
> > index 6366cefdf96..1fd36a266fd 100644
> > --- a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
> > +++ b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
> > @@ -81,6 +81,10 @@ EXTRA_OECONF = "'LOGIN_PROGRAM=${base_bindir}/login' \
> >  # musl doesn't implement wtmp/utmp and logwtmp
> >  EXTRA_OECONF:append:libc-musl = " --disable-wtmp --disable-lastlog"
> >
> > +# Work around ICE on mips/mips64 starting in 9.6p1
> > +EXTRA_OECONF:append:mips = " --without-hardening"
> > +EXTRA_OECONF:append:mips64 = " --without-hardening"
>
> Perhaps just use mipsarch override since I imagine it will impact all
> kinds of mips.
>

Just a data point, both qemumips and qemumips64 are based on the ~2006-ish
“Malta” machine. I don’t know yet if that set of tuning is a factor (vs
“Boston” which is more like 2015). I’ll still follow through with a bug
report on gcc bugzilla.


> > +
> >  # Since we do not depend on libbsd, we do not want configure to use it
> >  # just because it finds libutil.h.  But, specifying --disable-libutil
> >  # causes compile errors, so...
> > --
> > 2.40.1
> >
> >
> >
> >
>
> 
>
>

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



Re: [OE-core] [AUH] python3-poetry-core: upgrading to 1.9.0 SUCCEEDED

2024-02-15 Thread Tim Orling
On Thu, Feb 15, 2024 at 11:43 AM Tim Orling  wrote:

> This version deprecates the very PEP-517 build backend we depend upon for
> the python_poetry_core bbclass.
> We do not want to take this so late in the release cycle, nor do we want
> to add all the dependencies required to build the full poetry.
>
> https://github.com/python-poetry/poetry-core/pull/692
>
> Nevermind. This was a nothing-burger. Build of python3-tomlkit was just
fine and so were its ptests (meta-python-image-ptest-python3-tomlkit).


> On Thu, Feb 15, 2024 at 9:33 AM Auto Upgrade Helper 
> wrote:
>
>> Hello,
>>
>> this email is a notification from the Auto Upgrade Helper
>> that the automatic attempt to upgrade the recipe *python3-poetry-core* to
>> *1.9.0* has Succeeded.
>>
>> Next steps:
>> - apply the patch: git am
>> 0001-python3-poetry-core-upgrade-1.8.1-1.9.0.patch
>> - check the changes to upstream patches and summarize them in the
>> commit message,
>> - compile an image that contains the package
>> - perform some basic sanity tests
>> - amend the patch and sign it off: git commit -s --reset-author
>> --amend
>> - send it to the appropriate mailing list
>>
>> Alternatively, if you believe the recipe should not be upgraded at this
>> time,
>> you can fill RECIPE_NO_UPDATE_REASON in respective recipe file so that
>> automatic upgrades would no longer be attempted.
>>
>> Please review the attached files for further information and build/update
>> failures.
>> Any problem please file a bug at
>> https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Automated%20Update%20Handler
>>
>> Regards,
>> The Upgrade Helper
>>
>> -- >8 --
>> From 7441a91a0d58936eb42a90698ec8e8d80f4d72ad Mon Sep 17 00:00:00 2001
>> From: Upgrade Helper 
>> Date: Thu, 15 Feb 2024 08:16:50 +
>> Subject: [PATCH] python3-poetry-core: upgrade 1.8.1 -> 1.9.0
>>
>> ---
>>  ...ython3-poetry-core_1.8.1.bb => python3-poetry-core_1.9.0.bb} | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>  rename meta/recipes-devtools/python/{python3-poetry-core_1.8.1.bb =>
>> python3-poetry-core_1.9.0.bb} (94%)
>>
>> diff --git a/meta/recipes-devtools/python/python3-poetry-core_1.8.1.bb
>> b/meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb
>> similarity index 94%
>> rename from meta/recipes-devtools/python/python3-poetry-core_1.8.1.bb
>> rename to meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb
>> index fcb6d30ee0..dfb29c4b86 100644
>> --- a/meta/recipes-devtools/python/python3-poetry-core_1.8.1.bb
>> +++ b/meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb
>> @@ -15,7 +15,7 @@ LIC_FILES_CHKSUM = "\
>>
>>  
>> file://src/poetry/core/_vendor/tomli/LICENSE;md5=f0879d17df0110d1aa8c8c9f46f5
>> \
>>  "
>>
>> -SRC_URI[sha256sum] =
>> "67a76c671da2a70e55047cddda83566035b701f7e463b32a2abfeac6e2a16376"
>> +SRC_URI[sha256sum] =
>> "fa7a4001eae8aa572ee84f35feb510b321bd652e5cf9293249d62853e1f935a2"
>>
>>  inherit python_poetry_core pypi
>>  PYPI_ARCHIVE_NAME = "poetry_core-${PV}.${PYPI_PACKAGE_EXT}"
>> --
>> 2.42.0
>>
>>
>> 
>>
>>

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



[OE-core] [PATCH] python3-poetry-core: upgrade 1.8.1 -> 1.9.0

2024-02-15 Thread Tim Orling
This version deprecates "poetry.core.masonry.builder", but we detect
"poetry.core.masonry.api" in recipetool and nothing has broken our
build of wheels.

Thanks to Ross for noticing that the
"from poetry.core.masonry.builders.wheel import WheelBuilder"
is not a massive change in practice.

Changes:

1.9.0 - 2024-02-02

Added
* Add a to key in tool.poetry.packages to allow custom subpackage names (#672).
* Add support for path dependencies that do not define a build system (#675).
* Add a tool.poetry.package-mode key to support non-package mode (#661).

Changed
* Update list of supported licenses (#659, #669, #678, #694).
* Improve support for PEP 691 JSON-based Simple API (#664).
* Establish zipapp compatibility (#670).
* Rework list of files included in build artifacts (#666).
* Improve performance by treating collections in packages as immutable (#663).
* Deprecate poetry.core.masonry.builder (#682).
* Deprecate scripts that depend on extras (#690).

Fixed
* Fix an issue where insignificant errors were printed if the working
  directory is not inside a git repository (#684).
* Fix an issue where the project's directory was not recognized as git
  repository on Windows due to an encoding issue (#685).

Vendoring
* fastjsonschema==2.19.1
* lark==1.1.8

https://github.com/python-poetry/poetry-core/blob/main/CHANGELOG.md#190---2024-02-02

Signed-off-by: Tim Orling 
---
Tested by running meta-python-image-ptest-python3-tomlkit. All tests pass.
Manual python3> import poetry.core; print(poetry.core.__version__) worked as 
well.

 ...ython3-poetry-core_1.8.1.bb => python3-poetry-core_1.9.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-poetry-core_1.8.1.bb => 
python3-poetry-core_1.9.0.bb} (94%)

diff --git a/meta/recipes-devtools/python/python3-poetry-core_1.8.1.bb 
b/meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb
similarity index 94%
rename from meta/recipes-devtools/python/python3-poetry-core_1.8.1.bb
rename to meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb
index fcb6d30ee00..dfb29c4b863 100644
--- a/meta/recipes-devtools/python/python3-poetry-core_1.8.1.bb
+++ b/meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb
@@ -15,7 +15,7 @@ LIC_FILES_CHKSUM = "\
 
file://src/poetry/core/_vendor/tomli/LICENSE;md5=f0879d17df0110d1aa8c8c9f46f5
 \
 "
 
-SRC_URI[sha256sum] = 
"67a76c671da2a70e55047cddda83566035b701f7e463b32a2abfeac6e2a16376"
+SRC_URI[sha256sum] = 
"fa7a4001eae8aa572ee84f35feb510b321bd652e5cf9293249d62853e1f935a2"
 
 inherit python_poetry_core pypi
 PYPI_ARCHIVE_NAME = "poetry_core-${PV}.${PYPI_PACKAGE_EXT}"
-- 
2.34.1


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



Re: [OE-core] [AUH] python3-poetry-core: upgrading to 1.9.0 SUCCEEDED

2024-02-15 Thread Tim Orling
This version deprecates the very PEP-517 build backend we depend upon for
the python_poetry_core bbclass.
We do not want to take this so late in the release cycle, nor do we want to
add all the dependencies required to build the full poetry.

https://github.com/python-poetry/poetry-core/pull/692

On Thu, Feb 15, 2024 at 9:33 AM Auto Upgrade Helper 
wrote:

> Hello,
>
> this email is a notification from the Auto Upgrade Helper
> that the automatic attempt to upgrade the recipe *python3-poetry-core* to
> *1.9.0* has Succeeded.
>
> Next steps:
> - apply the patch: git am
> 0001-python3-poetry-core-upgrade-1.8.1-1.9.0.patch
> - check the changes to upstream patches and summarize them in the
> commit message,
> - compile an image that contains the package
> - perform some basic sanity tests
> - amend the patch and sign it off: git commit -s --reset-author --amend
> - send it to the appropriate mailing list
>
> Alternatively, if you believe the recipe should not be upgraded at this
> time,
> you can fill RECIPE_NO_UPDATE_REASON in respective recipe file so that
> automatic upgrades would no longer be attempted.
>
> Please review the attached files for further information and build/update
> failures.
> Any problem please file a bug at
> https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Automated%20Update%20Handler
>
> Regards,
> The Upgrade Helper
>
> -- >8 --
> From 7441a91a0d58936eb42a90698ec8e8d80f4d72ad Mon Sep 17 00:00:00 2001
> From: Upgrade Helper 
> Date: Thu, 15 Feb 2024 08:16:50 +
> Subject: [PATCH] python3-poetry-core: upgrade 1.8.1 -> 1.9.0
>
> ---
>  ...ython3-poetry-core_1.8.1.bb => python3-poetry-core_1.9.0.bb} | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>  rename meta/recipes-devtools/python/{python3-poetry-core_1.8.1.bb =>
> python3-poetry-core_1.9.0.bb} (94%)
>
> diff --git a/meta/recipes-devtools/python/python3-poetry-core_1.8.1.bb
> b/meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb
> similarity index 94%
> rename from meta/recipes-devtools/python/python3-poetry-core_1.8.1.bb
> rename to meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb
> index fcb6d30ee0..dfb29c4b86 100644
> --- a/meta/recipes-devtools/python/python3-poetry-core_1.8.1.bb
> +++ b/meta/recipes-devtools/python/python3-poetry-core_1.9.0.bb
> @@ -15,7 +15,7 @@ LIC_FILES_CHKSUM = "\
>
>  
> file://src/poetry/core/_vendor/tomli/LICENSE;md5=f0879d17df0110d1aa8c8c9f46f5
> \
>  "
>
> -SRC_URI[sha256sum] =
> "67a76c671da2a70e55047cddda83566035b701f7e463b32a2abfeac6e2a16376"
> +SRC_URI[sha256sum] =
> "fa7a4001eae8aa572ee84f35feb510b321bd652e5cf9293249d62853e1f935a2"
>
>  inherit python_poetry_core pypi
>  PYPI_ARCHIVE_NAME = "poetry_core-${PV}.${PYPI_PACKAGE_EXT}"
> --
> 2.42.0
>
>
> 
>
>

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



Re: [OE-core][PATCH] python3-yamllint: Add recipe

2024-01-22 Thread Tim Orling
On Mon, Jan 22, 2024 at 3:36 PM Ryan Eatmon via lists.openembedded.org
 wrote:

>
>
> On 1/22/2024 4:30 PM, Yoann Congal wrote:
> > Hi,
> >
> > Le 22/01/2024 à 21:07, Ryan Eatmon via lists.openembedded.org a écrit :
> >> Add recipe for yamllint.  There is an upcoming change in u-boot where
> >> the binman tool is now configured to call yamllint to verify the configs
> >> during compile time.
> >>
> >> There was a previous patch a year ago from Trevor Woerner that never
> >> made it into oe-core.  This patch is a reworking of his patch but
> >> pointing to a newer version.
> >>
> >> Signed-off-by: Ryan Eatmon 
> >> ---
> >>   .../python/python3-yamllint_1.33.0.bb | 15
> +++
> >>   1 file changed, 15 insertions(+)
> >>   create mode 100644 meta/recipes-devtools/python/
> python3-yamllint_1.33.0.bb
> >
> > FYI, this new recipe lacks a maintainer and throw this warning :
> > WARNING: python3-yamllint-1.33.0-r0 do_recipe_qa: QA Issue: Recipe
> python3-yamllint in [...]/poky/meta/recipes-devtools/python/
> python3-yamllint_1.33.0.bb does not have an assigned maintainer. Please
> add an entry into meta/conf/distro/include/maintainers.inc.
> [missing-maintainer]
>
> Tim,
>
> Do you mind being the maintainer for this new python recipe?  You are
> maintainer for many other python modules including pyyaml which this
> module depends on.  I can submit a v2 updating that file as well if you
> are willing.
>

That’s fine with me.

—Tim

>
>
> > Regards,
>
> --
> Ryan Eatmonreat...@ti.com
> -
> Texas Instruments, Inc.  -  LCPD  -  MGTS
>
> 
>
>

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



Re: [OE-core] [PATCH 2/2] openssl: Fix ptest dependencies on perl-module-* being ignored by COMPLEMENTARY_GLOB

2024-01-16 Thread Tim Orling
On Tue, Jan 16, 2024 at 10:57 AM Tim Orling via lists.openembedded.org
 wrote:

>
>
> On Tue, Jan 16, 2024 at 9:21 AM Alexander Kanavin 
> wrote:
>
>> How about simple depending on specific module packages? I don’t think
>> OpenSSL truly needs all modules.
>>
>
> Agreed. I don’t see a compelling reason to add the perl-modules-force-all
> complication. This will add confusion in my opinion.
>
> Iterate the tests and add the required perl-module-* sub-packages one by
> one (or by inspection if the test cases)
>
> In almost all cases, RDEPENDS on perl-modules is a short cut and should be
> avoided in favor of being explicit.
>
> This inspired me to sweep the dust off of
https://git.yoctoproject.org/poky-contrib/log/?h=timo/perl-deps_13376

This detects (but doesn't yet know how to properly handle) the RDEPENDS for
openssl-ptest. See attached snippet of the log.

It is too greedy so some dependencies are not going to be needed.



>> Alex
>>
>> On Tue 16. Jan 2024 at 17.56, Lyu, William via lists.openembedded.org
>>  wrote:
>>
>>> From: William Lyu 
>>>
>>> Change the openssl-ptest RDEPENDS from perl-modules to
>>> perl-modules-force-all which RDEPENDS on the same set of packages
>>> perl-module-* recommended by perl-modules. So, when openssl-ptest is
>>> added via COMPLEMENTARY_GLOB "ptest-pkgs", its dependencies on these
>>> perl-module-* packages still get added.
>>>
>>> Signed-off-by: William Lyu 
>>> ---
>>>  meta/recipes-connectivity/openssl/openssl_3.2.0.bb | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/meta/recipes-connectivity/openssl/openssl_3.2.0.bb
>>> b/meta/recipes-connectivity/openssl/openssl_3.2.0.bb
>>> index d041d2d214..7076bd3a7b 100644
>>> --- a/meta/recipes-connectivity/openssl/openssl_3.2.0.bb
>>> +++ b/meta/recipes-connectivity/openssl/openssl_3.2.0.bb
>>> @@ -247,7 +247,7 @@ CONFFILES:openssl-conf =
>>> "${sysconfdir}/ssl/openssl.cnf"
>>>
>>>  RRECOMMENDS:libcrypto += "openssl-conf ${PN}-ossl-module-legacy"
>>>  RDEPENDS:${PN}-misc = "perl"
>>> -RDEPENDS:${PN}-ptest += "openssl-bin perl perl-modules bash sed"
>>> +RDEPENDS:${PN}-ptest += "openssl-bin perl perl-modules-force-all bash
>>> sed"
>>>
>>>  RDEPENDS:${PN}-bin += "openssl-conf"
>>>
>>> --
>>> 2.43.0
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
> 
>
>
DEBUG: openssl-3.2.0-r0 do_perldeps: len(unresolved_rdeps[openssl-ptest]) = 82
DEBUG: openssl-3.2.0-r0 do_perldeps: unresolved_rdeps[openssl-ptest]:
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(TLSProxy::ServerHello)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(OpenSSL::Util)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Errno)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Getopt::Std)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl >= 0:5.008
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(parent)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(FindBin)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(platform::mingw)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(List::Util)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(warnings)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(File::Basename)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(IO::Socket)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(OpenSSL::Glob)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Time::Local)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl >= 1:5.10.0
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(OpenSSL::Template)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Test::Pod) >= 1.41
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(TLSProxy::NewSessionTicket)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(File::Glob)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Carp)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Text::Diff)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Text::Template) >= 1.46
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(OpenSSL::Test::Simple)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Pod::Html)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Getopt::Long)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(File::Path) >= 2.00
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(ssltests_base)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(TLSProxy::CertificateRequest)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(platform::BASE)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(TLSProxy::Alert)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(OpenSSL::Test)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(Test::More) >= 0.96
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(TLSProxy::ServerKeyExchange)
DEBUG: openssl-3.2.0-r0 do_perldeps: 	perl(platform)
DEBUG: openssl-3.2.0-r0 do_per

Re: [OE-core] [PATCH 2/2] openssl: Fix ptest dependencies on perl-module-* being ignored by COMPLEMENTARY_GLOB

2024-01-16 Thread Tim Orling
On Tue, Jan 16, 2024 at 9:21 AM Alexander Kanavin 
wrote:

> How about simple depending on specific module packages? I don’t think
> OpenSSL truly needs all modules.
>

Agreed. I don’t see a compelling reason to add the perl-modules-force-all
complication. This will add confusion in my opinion.

Iterate the tests and add the required perl-module-* sub-packages one by
one (or by inspection if the test cases)

In almost all cases, RDEPENDS on perl-modules is a short cut and should be
avoided in favor of being explicit.


> Alex
>
> On Tue 16. Jan 2024 at 17.56, Lyu, William via lists.openembedded.org
>  wrote:
>
>> From: William Lyu 
>>
>> Change the openssl-ptest RDEPENDS from perl-modules to
>> perl-modules-force-all which RDEPENDS on the same set of packages
>> perl-module-* recommended by perl-modules. So, when openssl-ptest is
>> added via COMPLEMENTARY_GLOB "ptest-pkgs", its dependencies on these
>> perl-module-* packages still get added.
>>
>> Signed-off-by: William Lyu 
>> ---
>>  meta/recipes-connectivity/openssl/openssl_3.2.0.bb | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-connectivity/openssl/openssl_3.2.0.bb
>> b/meta/recipes-connectivity/openssl/openssl_3.2.0.bb
>> index d041d2d214..7076bd3a7b 100644
>> --- a/meta/recipes-connectivity/openssl/openssl_3.2.0.bb
>> +++ b/meta/recipes-connectivity/openssl/openssl_3.2.0.bb
>> @@ -247,7 +247,7 @@ CONFFILES:openssl-conf =
>> "${sysconfdir}/ssl/openssl.cnf"
>>
>>  RRECOMMENDS:libcrypto += "openssl-conf ${PN}-ossl-module-legacy"
>>  RDEPENDS:${PN}-misc = "perl"
>> -RDEPENDS:${PN}-ptest += "openssl-bin perl perl-modules bash sed"
>> +RDEPENDS:${PN}-ptest += "openssl-bin perl perl-modules-force-all bash
>> sed"
>>
>>  RDEPENDS:${PN}-bin += "openssl-conf"
>>
>> --
>> 2.43.0
>>
>>
>>
>>
>>
> 
>
>

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



[OE-core] [PATCH] python3-alabaster: upgrade 0.7.13 -> 0.7.16

2024-01-16 Thread Tim Orling
* Since 0.7.14 setup.py was dropped and now the project is using the
  flit core backend (inherit python_flit_core)
* Add BUGTRACKER url

License-Update: LICENSE renamed to LICENSE.rst

https://alabaster.readthedocs.io/en/latest/changelog.html#changelog

0.7.14 – 2024-01-08
* Dropped support for Python 3.8 and earlier.
* Dropped support for Sphinx 3.3 and earlier.
* #198 Fix horizontal scrolling on mobile.
* #206 Properly support the html_support_sphinx config value.
* #211 Fix the GitHub ‘forkme’ banner.
* Added alabaster_version_info to the HTML template context.
* Declare support for Python 3.13.
* Adopt the Ruff linter and formatter.
* Migrate from CircleCI to GitHub Actions.

0.7.15 – 2024-01-08
* #213 Allow an arbitrary string in the logo_name option.
* #114 Improved sidebar CSS styles.
* #178 Deprecated canonical_url in favor of html_baseurl.
* #200 Removed duplicate  tag.
* #188 Removed underline from whitespace.
* #164 Removed type="text/javascript" from 

Re: [OE-core] [PATCH 1/2] python3-attrs: upgrade 23.1.0 -> 23.2.0

2024-01-05 Thread Tim Orling
Ignore this one, since it has already been addressed by:
https://patchwork.yoctoproject.org/project/oe-core/patch/1704271378-18012-1-git-send-email-wan...@fujitsu.com/

But please take 2/2 for ptest.

On Fri, Jan 5, 2024 at 10:17 AM Tim Orling via lists.openembedded.org
 wrote:

> https://www.attrs.org/en/stable/changelog.html
>
> 23.2.0 - 2023-12-31
>
> Changes
> * The type annotation for attrs.resolve_types() is now correct. #1141
> * Type stubs now use typing.dataclass_transform to decorate dataclass-like
>   decorators, instead of the non-standard __dataclass_transform__ special
>   form, which is only supported by Pyright. #1158
> * Fixed serialization of namedtuple fields using attrs.asdict/astuple()
> with
>   retain_collection_types=True. #1165
> * attrs.AttrsInstance is now a typing.Protocol in both type hints and code.
>   This allows you to subclass it along with another Protocol. #1172
> * If attrs detects that __attrs_pre_init__ accepts more than just self, it
>   will call it with the same arguments as __init__ was called. This allows
>   you to, for example, pass arguments to super().__init__(). #1187
> * Slotted classes now transform functools.cached_property decorated methods
>   to support equivalent semantics. #1200
> * Added class_body argument to attrs.make_class() to provide additional
>   attributes for newly created classes. It is, for example, now possible to
>   attach methods. #1203
>
> Signed-off-by: Tim Orling 
> ---
> Requires python3-hatch-fancy-pypi-readme upgrade beyond 23.1.0
>
> https://patchwork.yoctoproject.org/project/oe-core/patch/1704180223-8624-1-git-send-email-wan...@fujitsu.com/
>
>  .../python/{python3-attrs_23.1.0.bb => python3-attrs_23.2.0.bb} | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>  rename meta/recipes-devtools/python/{python3-attrs_23.1.0.bb =>
> python3-attrs_23.2.0.bb} (82%)
>
> diff --git a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
> b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
> similarity index 82%
> rename from meta/recipes-devtools/python/python3-attrs_23.1.0.bb
> rename to meta/recipes-devtools/python/python3-attrs_23.2.0.bb
> index 314053de081..e00e1520156 100644
> --- a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
> +++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
> @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.attrs.org/;
>  LICENSE = "MIT"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=5e55731824cf9205cfabeab9a0600887"
>
> -SRC_URI[sha256sum] =
> "6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015"
> +SRC_URI[sha256sum] =
> "935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30"
>
>  inherit pypi python_hatchling
>
> --
> 2.34.1
>
>
> 
>
>

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



[OE-core] [PATCH 2/2] python3-attrs: enable ptest

2024-01-05 Thread Tim Orling
The conftest.py file is needed to define the "slots" and "frozen" fixtures
for pytest

Signed-off-by: Tim Orling 
---

All ptests passed on core-image-ptest-python3-attrs in about 19 seconds
on qemux86-64

 .../conf/distro/include/ptest-packagelists.inc |  1 +
 .../python/python3-attrs/run-ptest |  3 +++
 .../python/python3-attrs_23.2.0.bb | 18 +-
 3 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/python/python3-attrs/run-ptest

diff --git a/meta/conf/distro/include/ptest-packagelists.inc 
b/meta/conf/distro/include/ptest-packagelists.inc
index 9057c12b091..ef6f471e7bd 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -57,6 +57,7 @@ PTESTS_FAST = "\
 pango \
 popt \
 python3-atomicwrites \
+python3-attrs \
 python3-bcrypt \
 python3-calver \
 python3-hypothesis \
diff --git a/meta/recipes-devtools/python/python3-attrs/run-ptest 
b/meta/recipes-devtools/python/python3-attrs/run-ptest
new file mode 100644
index 000..8d2017d39ce
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-attrs/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
diff --git a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb 
b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
index e00e1520156..7b6a6bd94c9 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
@@ -5,7 +5,11 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=5e55731824cf9205cfabeab9a0600887"
 
 SRC_URI[sha256sum] = 
"935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30"
 
-inherit pypi python_hatchling
+inherit pypi ptest python_hatchling
+
+SRC_URI += " \
+   file://run-ptest \
+"
 
 DEPENDS += " \
 python3-hatch-vcs-native \
@@ -18,4 +22,16 @@ RDEPENDS:${PN}+= " \
 python3-crypt \
 "
 
+RDEPENDS:${PN}-ptest += " \
+${PYTHON_PN}-hypothesis \
+${PYTHON_PN}-pytest \
+${PYTHON_PN}-unittest-automake-output \
+"
+
+do_install_ptest() {
+install -d ${D}${PTEST_PATH}/tests
+cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+install ${S}/conftest.py ${D}${PTEST_PATH}/
+}
+
 BBCLASSEXTEND = "native nativesdk"
-- 
2.34.1


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



[OE-core] [PATCH 1/2] python3-attrs: upgrade 23.1.0 -> 23.2.0

2024-01-05 Thread Tim Orling
https://www.attrs.org/en/stable/changelog.html

23.2.0 - 2023-12-31

Changes
* The type annotation for attrs.resolve_types() is now correct. #1141
* Type stubs now use typing.dataclass_transform to decorate dataclass-like
  decorators, instead of the non-standard __dataclass_transform__ special
  form, which is only supported by Pyright. #1158
* Fixed serialization of namedtuple fields using attrs.asdict/astuple() with
  retain_collection_types=True. #1165
* attrs.AttrsInstance is now a typing.Protocol in both type hints and code.
  This allows you to subclass it along with another Protocol. #1172
* If attrs detects that __attrs_pre_init__ accepts more than just self, it
  will call it with the same arguments as __init__ was called. This allows
  you to, for example, pass arguments to super().__init__(). #1187
* Slotted classes now transform functools.cached_property decorated methods
  to support equivalent semantics. #1200
* Added class_body argument to attrs.make_class() to provide additional
  attributes for newly created classes. It is, for example, now possible to
  attach methods. #1203

Signed-off-by: Tim Orling 
---
Requires python3-hatch-fancy-pypi-readme upgrade beyond 23.1.0
https://patchwork.yoctoproject.org/project/oe-core/patch/1704180223-8624-1-git-send-email-wan...@fujitsu.com/

 .../python/{python3-attrs_23.1.0.bb => python3-attrs_23.2.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-attrs_23.1.0.bb => 
python3-attrs_23.2.0.bb} (82%)

diff --git a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb 
b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
similarity index 82%
rename from meta/recipes-devtools/python/python3-attrs_23.1.0.bb
rename to meta/recipes-devtools/python/python3-attrs_23.2.0.bb
index 314053de081..e00e1520156 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.1.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.attrs.org/;
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=5e55731824cf9205cfabeab9a0600887"
 
-SRC_URI[sha256sum] = 
"6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015"
+SRC_URI[sha256sum] = 
"935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30"
 
 inherit pypi python_hatchling
 
-- 
2.34.1


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



[OE-core] [PATCH] python3-bcrypt: upgrade 4.1.1 -> 4.1.2

2024-01-05 Thread Tim Orling
* Refresh -crates.inc

https://github.com/pyca/bcrypt/compare/4.1.1...4.1.2

https://github.com/pyca/bcrypt/?tab=readme-ov-file#changelog
https://github.com/pyca/bcrypt/?tab=readme-ov-file#412

* Publish both py37 and py39 wheels. This should resolve some errors
  relating to initializing a module multiple times per process.

Signed-off-by: Tim Orling 
---
All ptests pass on core-image-ptest-python3-bcrypt on qemux86-64

 .../python/python3-bcrypt-crates.inc | 12 ++--
 ...thon3-bcrypt_4.1.1.bb => python3-bcrypt_4.1.2.bb} |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)
 rename meta/recipes-devtools/python/{python3-bcrypt_4.1.1.bb => 
python3-bcrypt_4.1.2.bb} (90%)

diff --git a/meta/recipes-devtools/python/python3-bcrypt-crates.inc 
b/meta/recipes-devtools/python/python3-bcrypt-crates.inc
index b99d753a877..5db6d1e96ef 100644
--- a/meta/recipes-devtools/python/python3-bcrypt-crates.inc
+++ b/meta/recipes-devtools/python/python3-bcrypt-crates.inc
@@ -20,10 +20,10 @@ SRC_URI += " \
 crate://crates.io/heck/0.4.1 \
 crate://crates.io/indoc/2.0.4 \
 crate://crates.io/inout/0.1.3 \
-crate://crates.io/libc/0.2.150 \
+crate://crates.io/libc/0.2.151 \
 crate://crates.io/lock_api/0.4.11 \
 crate://crates.io/memoffset/0.9.0 \
-crate://crates.io/once_cell/1.18.0 \
+crate://crates.io/once_cell/1.19.0 \
 crate://crates.io/parking_lot/0.12.1 \
 crate://crates.io/parking_lot_core/0.9.9 \
 crate://crates.io/pbkdf2/0.12.2 \
@@ -39,7 +39,7 @@ SRC_URI += " \
 crate://crates.io/sha2/0.10.8 \
 crate://crates.io/smallvec/1.11.2 \
 crate://crates.io/subtle/2.5.0 \
-crate://crates.io/syn/2.0.39 \
+crate://crates.io/syn/2.0.41 \
 crate://crates.io/target-lexicon/0.12.12 \
 crate://crates.io/typenum/1.17.0 \
 crate://crates.io/unicode-ident/1.0.12 \
@@ -75,10 +75,10 @@ SRC_URI[getrandom-0.2.11.sha256sum] = 
"fe9006bed769170c11f845cf00c7c1e9092aeb3f2
 SRC_URI[heck-0.4.1.sha256sum] = 
"95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
 SRC_URI[indoc-2.0.4.sha256sum] = 
"1e186cfbae8084e513daff4240b4797e342f988cecda4fb6c939150f96315fd8"
 SRC_URI[inout-0.1.3.sha256sum] = 
"a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5"
-SRC_URI[libc-0.2.150.sha256sum] = 
"89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c"
+SRC_URI[libc-0.2.151.sha256sum] = 
"302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4"
 SRC_URI[lock_api-0.4.11.sha256sum] = 
"3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45"
 SRC_URI[memoffset-0.9.0.sha256sum] = 
"5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
-SRC_URI[once_cell-1.18.0.sha256sum] = 
"dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
+SRC_URI[once_cell-1.19.0.sha256sum] = 
"3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
 SRC_URI[parking_lot-0.12.1.sha256sum] = 
"3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
 SRC_URI[parking_lot_core-0.9.9.sha256sum] = 
"4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
 SRC_URI[pbkdf2-0.12.2.sha256sum] = 
"f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2"
@@ -94,7 +94,7 @@ SRC_URI[scopeguard-1.2.0.sha256sum] = 
"94143f37725109f92c262ed2cf5e59bce7498c01b
 SRC_URI[sha2-0.10.8.sha256sum] = 
"793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
 SRC_URI[smallvec-1.11.2.sha256sum] = 
"4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970"
 SRC_URI[subtle-2.5.0.sha256sum] = 
"81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc"
-SRC_URI[syn-2.0.39.sha256sum] = 
"23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a"
+SRC_URI[syn-2.0.41.sha256sum] = 
"44c8b28c477cc3bf0e7966561e3460130e1255f7a1cf71931075f1c5e7a7e269"
 SRC_URI[target-lexicon-0.12.12.sha256sum] = 
"14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a"
 SRC_URI[typenum-1.17.0.sha256sum] = 
"42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
 SRC_URI[unicode-ident-1.0.12.sha256sum] = 
"3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
diff --git a/meta/recipes-devtools/python/python3-bcrypt_4.1.1.bb 
b/meta/recipes-devtools/python/python3-bcrypt_4.1.2.bb
similarity index 90%
rename from meta/recipes-devtools/python/python3-bcrypt_4.1.1.bb
rename to meta/recipes-devtools/python/python3-bcrypt_4.1.2.bb
index 30063c3410f..860f2914769 100644
--- a/meta/recipes-devtools/python/python3-bcrypt_4.1.1.bb
+++ b/meta/recipes-devtools/python/python3-bcrypt_4.1.2.bb
@@ -6,7 +6,7 @@ HOMEPAGE = "https://pypi.org/project/bcrypt/;
 DEPENDS += "${PYTHON_PN}-cffi-native"
 LDFLAGS:append = "${@bb.utils.contains('DISTR

[OE-core] [PATCH] openssh: upgrade 9.5p1 -> 9.6p1

2024-01-05 Thread Tim Orling
* Relocate Upstream-Status in 
0001-regress-banner.sh-log-input-and-output-files-on-erro.patch
  so it will not throw an error in AUH

https://www.openssh.com/txt/release-9.6
https://github.com/openssh/openssh-portable/compare/V_9_5_P1...V_9_6_P1

https://nvd.nist.gov/vuln/detail/CVE-2023-48795
https://nvd.nist.gov/vuln/detail/CVE-2023-51384
https://nvd.nist.gov/vuln/detail/CVE-2023-51385

CVE: CVE-2023-48795
CVE: CVE-2023-51384
CVE: CVE-2023-51385

Signed-off-by: Tim Orling 
---
All ptests passed on core-image-ptest-openssh on qemux86-64

 ...regress-banner.sh-log-input-and-output-files-on-erro.patch | 4 ++--
 .../openssh/{openssh_9.5p1.bb => openssh_9.6p1.bb}| 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename meta/recipes-connectivity/openssh/{openssh_9.5p1.bb => 
openssh_9.6p1.bb} (98%)

diff --git 
a/meta/recipes-connectivity/openssh/openssh/0001-regress-banner.sh-log-input-and-output-files-on-erro.patch
 
b/meta/recipes-connectivity/openssh/openssh/0001-regress-banner.sh-log-input-and-output-files-on-erro.patch
index 2c14014fed8..8763f30f4b3 100644
--- 
a/meta/recipes-connectivity/openssh/openssh/0001-regress-banner.sh-log-input-and-output-files-on-erro.patch
+++ 
b/meta/recipes-connectivity/openssh/openssh/0001-regress-banner.sh-log-input-and-output-files-on-erro.patch
@@ -34,13 +34,13 @@ return value: 1
 
 See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15178
 
+Upstream-Status: Denied [https://github.com/openssh/openssh-portable/pull/437]
+
 Signed-off-by: Mikko Rapeli 
 ---
  regress/banner.sh | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
 
-Upstream-Status: Denied [https://github.com/openssh/openssh-portable/pull/437]
-
 diff --git a/regress/banner.sh b/regress/banner.sh
 index a84feb5a..de84957a 100644
 --- a/regress/banner.sh
diff --git a/meta/recipes-connectivity/openssh/openssh_9.5p1.bb 
b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
similarity index 98%
rename from meta/recipes-connectivity/openssh/openssh_9.5p1.bb
rename to meta/recipes-connectivity/openssh/openssh_9.6p1.bb
index bbb8fb091ad..fa44eb0bd4e 100644
--- a/meta/recipes-connectivity/openssh/openssh_9.5p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
@@ -28,7 +28,7 @@ SRC_URI = 
"http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar

file://0001-regress-banner.sh-log-input-and-output-files-on-erro.patch \

file://0001-systemd-Add-optional-support-for-systemd-sd_notify.patch \
"
-SRC_URI[sha256sum] = 
"f026e7b79ba7fb540f75182af96dc8a8f1db395f922bbc9f6ca603672686086b"
+SRC_URI[sha256sum] = 
"910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c"
 
 CVE_STATUS[CVE-2007-2768] = "not-applicable-config: This CVE is specific to 
OpenSSH with the pam opie which we don't build/use here."
 
-- 
2.34.1


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



Re: [OE-core][PATCH] python3-maturin: Add missing space appending to CFLAGS

2023-12-21 Thread Tim Orling
Acknowledged. This was intended but not present in the series as merged.

On Thu, Dec 21, 2023 at 1:57 PM Renat Khalikov 
wrote:

> When the CFLAGS variable is appended to, the missing space causes build
> errors when CFLAGS was set previously.
>
> For example:
>
>   error: unrecognized command-line option
> '-mno-unaligned-access-fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home'
>
> Signed-off-by: Renat Khalikov 
> CC: Tim Orling 
> ---
>  meta/recipes-devtools/python/python3-maturin_1.4.0.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/python/python3-maturin_1.4.0.bb
> b/meta/recipes-devtools/python/python3-maturin_1.4.0.bb
> index 07ad1201b8..82e65abb24 100644
> --- a/meta/recipes-devtools/python/python3-maturin_1.4.0.bb
> +++ b/meta/recipes-devtools/python/python3-maturin_1.4.0.bb
> @@ -9,7 +9,7 @@ SRC_URI[sha256sum] =
> "ed12e1768094a7adeafc3a74ebdb8dc2201fa64c4e7e31f14cfc70378b
>
>  S = "${WORKDIR}/maturin-${PV}"
>
> -CFLAGS:append =
> "-fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home"
> +CFLAGS:append = "
> -fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home"
>
>  DEPENDS += "\
>  python3-setuptools-rust-native \
> --
> 2.34.1
>
>
> 
>
>

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



[OE-core] [PATCH v2] oeqa: add runtime 'maturin develop' test case

2023-12-17 Thread Tim Orling
Similar to the sdk test case, build the "guessing-game" example from
https://maturin.rs/tutorial

This test case:
* creates a python3 venv
* echoes "nameserver 8.8.8.8" to /etc/resolv.conf as we need to have
  functional DNS to fetch the crates on target
* fetches crates, builds guessing-game crate and wheel

Put the following in your local.conf:

EXTRA_IMAGE_FEATURES += "tools-sdk"
SDK_INCLUDE_TOOLCHAIN = '1'
SDK_TOOLCHAIN_LANGS += 'rust'

IMAGE_INSTALL:append = " python3-maturin"

IMAGE_CLASSES += "testimage"
TEST_QEMUPARAMS ?= "-m 8192 -smp 4"
IMAGE_ROOTFS_EXTRA_SPACE = "1000"
NOHDD="1"
NOISO="1"

TEST_SUITES = "ping ssh python maturin"

Test with:

bitbake core-image-full-cmdline
bitbake -c testimage core-image-full-cmdline

Signed-off-by: Tim Orling 
---
Changes in v2:
  Clarify that tools-sdk is required in the image, plus
  we need the 'rust' toolchain lang

Tested on qemuarm64 core-image-full-cmdline

 meta/lib/oeqa/runtime/cases/maturin.py | 35 ++
 1 file changed, 35 insertions(+)

diff --git a/meta/lib/oeqa/runtime/cases/maturin.py 
b/meta/lib/oeqa/runtime/cases/maturin.py
index b9a3b4acbcd..4e6384fe5e6 100644
--- a/meta/lib/oeqa/runtime/cases/maturin.py
+++ b/meta/lib/oeqa/runtime/cases/maturin.py
@@ -10,6 +10,7 @@ from oeqa.runtime.case import OERuntimeTestCase
 from oeqa.core.decorator.depends import OETestDepends
 from oeqa.runtime.decorator.package import OEHasPackage
 
+
 class MaturinTest(OERuntimeTestCase):
 @OETestDepends(['ssh.SSHTest.test_ssh', 'python.PythonTest.test_python3'])
 @OEHasPackage(['python3-maturin'])
@@ -21,3 +22,37 @@ class MaturinTest(OERuntimeTestCase):
 python_version = "%s.%s" % (py_major, py_minor)
 self.assertEqual(output, " 1 python interpreter found:\n"
  " - CPython %s at /usr/bin/python%s" % 
(python_version, python_version))
+
+
+class MaturinDevelopTest(OERuntimeTestCase):
+@classmethod
+def setUp(cls):
+dst = '/tmp'
+src = os.path.join(cls.tc.files_dir, "maturin/guessing-game")
+cls.tc.target.copyTo(src, dst)
+
+@classmethod
+def tearDown(cls):
+cls.tc.target.run('rm -rf %s' %  '/tmp/guessing-game/target')
+
+@OETestDepends(['ssh.SSHTest.test_ssh', 'python.PythonTest.test_python3'])
+@OEHasPackage(['python3-maturin'])
+def test_maturin_develop(self):
+"""
+This test case requires:
+  (1) that a .venv can been created.
+  (2) DNS nameserver to resolve crate URIs for fetching
+  (3) a functional 'rustc' and 'cargo'
+"""
+targetdir = os.path.join("/tmp", "guessing-game")
+self.target.run("cd %s; python3 -m venv .venv" % targetdir)
+self.target.run("echo 'nameserver 8.8.8.8' > /etc/resolv.conf")
+cmd = "cd %s; maturin develop" % targetdir
+status, output = self.target.run(cmd)
+self.assertRegex(output, r" Found pyo3 bindings with abi3 support for 
Python ≥ 3.8")
+self.assertRegex(output, r" Not using a specific python interpreter")
+self.assertRegex(output, r" Using build options features from 
pyproject.toml")
+self.assertRegex(output, r"Compiling guessing-game v0.1.0")
+self.assertRegex(output, r" Built wheel for abi3 Python ≥ 3.8")
+self.assertRegex(output, r" Installed guessing-game-0.1.0")
+self.assertEqual(status, 0)
-- 
2.34.1


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



[OE-core] [PATCH] oeqa: add runtime 'maturin develop' test case

2023-12-17 Thread Tim Orling
Similar to the sdk test case, build the "guessing-game" example from
https://maturin.rs/tutorial

This test case:
* creates a python3 venv
* echoes "nameserver 8.8.8.8" to /etc/resolv.conf as we need to have
  functional DNS to fetch the crates on target
* fetches crates, builds guessing-game crate and wheel

Put the following in your local.conf:

IMAGE_INSTALL:append = " python3-maturin"

IMAGE_CLASSES += "testimage"
TEST_QEMUPARAMS ?= "-m 8192 -smp 4"
IMAGE_ROOTFS_EXTRA_SPACE = "1000"
NOHDD="1"
NOISO="1"

TEST_SUITES = "ping ssh python maturin"

Test with:

bitbake core-image-full-cmdline
bitbake -c testimage core-image-full-cmdline

Signed-off-by: Tim Orling 
---
 meta/lib/oeqa/runtime/cases/maturin.py | 35 ++
 1 file changed, 35 insertions(+)

diff --git a/meta/lib/oeqa/runtime/cases/maturin.py 
b/meta/lib/oeqa/runtime/cases/maturin.py
index b9a3b4acbcd..4e6384fe5e6 100644
--- a/meta/lib/oeqa/runtime/cases/maturin.py
+++ b/meta/lib/oeqa/runtime/cases/maturin.py
@@ -10,6 +10,7 @@ from oeqa.runtime.case import OERuntimeTestCase
 from oeqa.core.decorator.depends import OETestDepends
 from oeqa.runtime.decorator.package import OEHasPackage
 
+
 class MaturinTest(OERuntimeTestCase):
 @OETestDepends(['ssh.SSHTest.test_ssh', 'python.PythonTest.test_python3'])
 @OEHasPackage(['python3-maturin'])
@@ -21,3 +22,37 @@ class MaturinTest(OERuntimeTestCase):
 python_version = "%s.%s" % (py_major, py_minor)
 self.assertEqual(output, " 1 python interpreter found:\n"
  " - CPython %s at /usr/bin/python%s" % 
(python_version, python_version))
+
+
+class MaturinDevelopTest(OERuntimeTestCase):
+@classmethod
+def setUp(cls):
+dst = '/tmp'
+src = os.path.join(cls.tc.files_dir, "maturin/guessing-game")
+cls.tc.target.copyTo(src, dst)
+
+@classmethod
+def tearDown(cls):
+cls.tc.target.run('rm -rf %s' %  '/tmp/guessing-game/target')
+
+@OETestDepends(['ssh.SSHTest.test_ssh', 'python.PythonTest.test_python3'])
+@OEHasPackage(['python3-maturin'])
+def test_maturin_develop(self):
+"""
+This test case requires:
+  (1) that a .venv can been created.
+  (2) DNS nameserver to resolve crate URIs for fetching
+  (3) a functional 'rustc' and 'cargo'
+"""
+targetdir = os.path.join("/tmp", "guessing-game")
+self.target.run("cd %s; python3 -m venv .venv" % targetdir)
+self.target.run("echo 'nameserver 8.8.8.8' > /etc/resolv.conf")
+cmd = "cd %s; maturin develop" % targetdir
+status, output = self.target.run(cmd)
+self.assertRegex(output, r" Found pyo3 bindings with abi3 support for 
Python ≥ 3.8")
+self.assertRegex(output, r" Not using a specific python interpreter")
+self.assertRegex(output, r" Using build options features from 
pyproject.toml")
+self.assertRegex(output, r"Compiling guessing-game v0.1.0")
+self.assertRegex(output, r" Built wheel for abi3 Python ≥ 3.8")
+self.assertRegex(output, r" Installed guessing-game-0.1.0")
+self.assertEqual(status, 0)
-- 
2.34.1


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



Re: [OE-core] Patchtest results for [PATCH 5/7] oe-selfest: add maturn runtime (testimage) test

2023-12-16 Thread Tim Orling
It appears patchtest gets confused when emoji Unicode characters are
present.

On Sat, Dec 16, 2023 at 10:11 PM 
wrote:

> Thank you for your submission. Patchtest identified one
> or more issues with the patch. Please see the log below for
> more information:
>
> ---
> Testing patch
> /home/patchtest/share/mboxes/5-7-oe-selfest-add-maturn-runtime-testimage-test.patch
>
> FAIL: test mbox format: Series has malformed diff lines. Create the series
> again using git-format-patch and ensure it applies using git am
> (test_mbox.TestMbox.test_mbox_format)
>
> PASS: test Signed-off-by presence
> (test_mbox.TestMbox.test_signed_off_by_presence)
> PASS: test author valid (test_mbox.TestMbox.test_author_valid)
> PASS: test commit message presence
> (test_mbox.TestMbox.test_commit_message_presence)
> PASS: test max line length
> (test_metadata.TestMetadata.test_max_line_length)
> PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
> PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
> PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
> PASS: test target mailing list
> (test_mbox.TestMbox.test_target_mailing_list)
>
> SKIP: pretest pylint: Python-unidiff parse error
> (test_python_pylint.PyLint.pretest_pylint)
> SKIP: pretest src uri left files: Patch cannot be merged
> (test_metadata.TestMetadata.pretest_src_uri_left_files)
> SKIP: test CVE tag format: Parse error Hunk is shorter than expected
> (test_patch.TestPatch.test_cve_tag_format)
> SKIP: test Signed-off-by presence: Parse error Hunk is shorter than
> expected (test_patch.TestPatch.test_signed_off_by_presence)
> SKIP: test Upstream-Status presence: Parse error Hunk is shorter than
> expected (test_patch.TestPatch.test_upstream_status_presence_format)
> SKIP: test bugzilla entry format: No bug ID found
> (test_mbox.TestMbox.test_bugzilla_entry_format)
> SKIP: test lic files chksum modified not mentioned: No modified recipes,
> skipping test
> (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
> SKIP: test lic files chksum presence: No added recipes, skipping test
> (test_metadata.TestMetadata.test_lic_files_chksum_presence)
> SKIP: test license presence: No added recipes, skipping test
> (test_metadata.TestMetadata.test_license_presence)
> SKIP: test pylint: Python-unidiff parse error
> (test_python_pylint.PyLint.test_pylint)
> SKIP: test series merge on head: Merge test is disabled for now
> (test_mbox.TestMbox.test_series_merge_on_head)
> SKIP: test src uri left files: Patch cannot be merged
> (test_metadata.TestMetadata.test_src_uri_left_files)
> SKIP: test summary presence: No added recipes, skipping test
> (test_metadata.TestMetadata.test_summary_presence)
>
> ---
>
> Please address the issues identified and
> submit a new revision of the patch, or alternatively, reply to this
> email with an explanation of why the patch should be accepted. If you
> believe these results are due to an error in patchtest, please submit a
> bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
> under 'Yocto Project Subprojects'). For more information on specific
> failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
> you!
>

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



[OE-core] [PATCH 7/7] oeqa: add "maturin develop" SDK test case

2023-12-16 Thread Tim Orling
'maturin develop' first checks that a virtual environment
has been created, which is a good test for our python3 SDK
environment ;)

Source for guessing-game lifted from https://www.maturin.rs/tutorial

The test case is expected to fetch any necessary crates, build a
development version of the crate and package it as a wheel

Needs at a minimum the following in e.g. local.conf:
TOOLCHAIN_HOST_TASK:append = " nativesdk-python3-maturin"
SDK_INCLUDE_TOOLCHAIN = '1'
SDK_TOOLCHAIN_LANGS += 'rust'

The output of 'maturin develop' should be something like:
...
 Found pyo3 bindings with abi3 support for Python ≥ 3.8
 Not using a specific python interpreter
 Using build options features from pyproject.toml
   ...
   Compiling guessing-game v0.1.0 (/path/to/guessing-game)
Finished dev [unoptimized + debuginfo] target(s) in 7.14s
 Built wheel for abi3 Python ≥ 3.8 to 
/path/to/tmpdir/guessing_game-0.1.0-cp38-abi3-linux_x86_64.whl
 Installed guessing-game-0.1.0

Signed-off-by: Tim Orling 
---
 .../files/maturin/guessing-game/Cargo.toml|  20 ++
 .../maturin/guessing-game/LICENSE-APACHE  | 201 ++
 .../files/maturin/guessing-game/LICENSE-MIT   |  25 +++
 .../maturin/guessing-game/pyproject.toml  |   8 +
 .../files/maturin/guessing-game/src/lib.rs|  48 +
 meta/lib/oeqa/sdk/cases/maturin.py|  48 -
 6 files changed, 349 insertions(+), 1 deletion(-)
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/Cargo.toml
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/LICENSE-APACHE
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/LICENSE-MIT
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/pyproject.toml
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/src/lib.rs

diff --git a/meta/lib/oeqa/files/maturin/guessing-game/Cargo.toml 
b/meta/lib/oeqa/files/maturin/guessing-game/Cargo.toml
new file mode 100644
index 000..de95025e863
--- /dev/null
+++ b/meta/lib/oeqa/files/maturin/guessing-game/Cargo.toml
@@ -0,0 +1,20 @@
+[package]
+name = "guessing-game"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at 
https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[lib]
+name = "guessing_game"
+# "cdylib" is necessary to produce a shared library for Python to import from.
+crate-type = ["cdylib"]
+
+[dependencies]
+rand = "0.8.4"
+
+[dependencies.pyo3]
+version = "0.19.0"
+# "abi3-py38" tells pyo3 (and maturin) to build using the stable ABI with 
minimum Python version 3.8
+features = ["abi3-py38"]
+
diff --git a/meta/lib/oeqa/files/maturin/guessing-game/LICENSE-APACHE 
b/meta/lib/oeqa/files/maturin/guessing-game/LICENSE-APACHE
new file mode 100644
index 000..16fe87b06e8
--- /dev/null
+++ b/meta/lib/oeqa/files/maturin/guessing-game/LICENSE-APACHE
@@ -0,0 +1,201 @@
+  Apache License
+Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+   "License" shall mean the terms and conditions for use, reproduction,
+   and distribution as defined by Sections 1 through 9 of this document.
+
+   "Licensor" shall mean the copyright owner or entity authorized by
+   the copyright owner that is granting the License.
+
+   "Legal Entity" shall mean the union of the acting entity and all
+   other entities that control, are controlled by, or are under common
+   control with that entity. For the purposes of this definition,
+   "control" means (i) the power, direct or indirect, to cause the
+   direction or management of such entity, whether by contract or
+   otherwise, or (ii) ownership of fifty percent (50%) or more of the
+   outstanding shares, or (iii) beneficial ownership of such entity.
+
+   "You" (or "Your") shall mean an individual or Legal Entity
+   exercising permissions granted by this License.
+
+   "Source" form shall mean the preferred form for making modifications,
+   including but not limited to software source code, documentation
+   source, and configuration files.
+
+   "Object" form shall mean any form resulting from mechanical
+   transformation or translation of a Source form, including but
+   not limited to compiled object code, generated documentation,
+   and conversions to other media types.
+
+   "Work" shall mean the work of authorship, whether in Source or
+   Object form, made available under the License, as indicated by a
+   copyright notice that is included in or attached to the work
+   (an example is provided in the Appendix below).
+
+   "Derivative Works" shall mean any work, whether in Source or Object
+   form, that is based on (or derived from) the Work and for which the
+ 

[OE-core] [PATCH 6/7] oeqa: add simple 'maturin' SDK (testsdk) test case

2023-12-16 Thread Tim Orling
We expect 'maturin' will be used in SDKs, so it makes sense to also
test it in the testsdk environment.

To run this test case, you can add the following to local.conf:
TOOLCHAIN_HOST_TASK:append = " nativesdk-python3-maturin"

And then build and test the SDK:
bitbake -c populate_sdk core-image-full-cmdline
bitbake -c testsdk core-image-full-cmdline

You can substitute a different image recipe for "core-image-full-cmdline"

Signed-off-by: Tim Orling 
---
 meta/lib/oeqa/sdk/cases/maturin.py | 33 ++
 1 file changed, 33 insertions(+)
 create mode 100644 meta/lib/oeqa/sdk/cases/maturin.py

diff --git a/meta/lib/oeqa/sdk/cases/maturin.py 
b/meta/lib/oeqa/sdk/cases/maturin.py
new file mode 100644
index 000..14245bc36e5
--- /dev/null
+++ b/meta/lib/oeqa/sdk/cases/maturin.py
@@ -0,0 +1,33 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+import unittest
+from oeqa.sdk.case import OESDKTestCase
+
+from oeqa.utils.subprocesstweak import errors_have_output
+
+errors_have_output()
+
+
+class MaturinTest(OESDKTestCase):
+def setUp(self):
+if not (
+self.tc.hasHostPackage("nativesdk-python3-maturin")
+or self.tc.hasHostPackage("python3-maturin-native")
+):
+raise unittest.SkipTest("No python3-maturin package in the SDK")
+
+def test_maturin_list_python(self):
+py_major = self._run("python3 -c 'import sys; 
print(sys.version_info.major)'")
+py_minor = self._run("python3 -c 'import sys; 
print(sys.version_info.minor)'")
+python_version = "%s.%s" % (py_major.strip(), py_minor.strip())
+cmd = "maturin list-python"
+output = self._run(cmd)
+self.assertRegex(output, r"^ 1 python interpreter found:\n")
+self.assertRegex(
+output,
+r" - CPython %s (.+)/usr/bin/python%s$" % (python_version, 
python_version),
+)
-- 
2.34.1


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



[OE-core] [PATCH 5/7] oe-selfest: add maturn runtime (testimage) test

2023-12-16 Thread Tim Orling
Basic smoke test for maturin to test the 'maturin list-python' case.

Signed-off-by: Tim Orling 
---
 meta/lib/oeqa/runtime/cases/maturin.py | 23 +++
 1 file changed, 23 insertions(+)
 create mode 100644 meta/lib/oeqa/runtime/cases/maturin.py

diff --git a/meta/lib/oeqa/runtime/cases/maturin.py 
b/meta/lib/oeqa/runtime/cases/maturin.py
new file mode 100644
index 000..b9a3b4acbcd
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/maturin.py
@@ -0,0 +1,23 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+import os
+
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.depends import OETestDepends
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class MaturinTest(OERuntimeTestCase):
+@OETestDepends(['ssh.SSHTest.test_ssh', 'python.PythonTest.test_python3'])
+@OEHasPackage(['python3-maturin'])
+def test_maturin_list_python(self):
+status, output = self.target.run("maturin list-python")
+self.assertEqual(status, 0)
+_, py_major = self.target.run("python3 -c 'import sys; 
print(sys.version_info.major)'")
+_, py_minor = self.target.run("python3 -c 'import sys; 
print(sys.version_info.minor)'")
+python_version = "%s.%s" % (py_major, py_minor)
+self.assertEqual(output, " 1 python interpreter found:\n"
+ " - CPython %s at /usr/bin/python%s" % 
(python_version, python_version))
-- 
2.34.1


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



[OE-core] [PATCH 4/7] recipetool: add python_maturin support

2023-12-16 Thread Tim Orling
Add the new python_maturin PEP-517 backend

Add selftest for 'pydantic-core' pypi package.

Signed-off-by: Tim Orling 
---
 meta/lib/oeqa/selftest/cases/recipetool.py| 29 +++
 .../lib/recipetool/create_buildsys_python.py  |  1 +
 2 files changed, 30 insertions(+)

diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py 
b/meta/lib/oeqa/selftest/cases/recipetool.py
index a19439d88e3..df15c80069c 100644
--- a/meta/lib/oeqa/selftest/cases/recipetool.py
+++ b/meta/lib/oeqa/selftest/cases/recipetool.py
@@ -670,6 +670,35 @@ class RecipetoolCreateTests(RecipetoolBase):
 
 self._test_recipe_contents(recipefile, checkvars, inherits)
 
+def test_recipetool_create_python3_pep517_maturin(self):
+# This test require python 3.11 or above for the tomllib module
+# or tomli module to be installed
+try:
+import tomllib
+except ImportError:
+try:
+import tomli
+except ImportError:
+self.skipTest('Test requires python 3.11 or above for tomllib 
module or tomli module')
+
+# Test creating python3 package from tarball (using maturin class)
+temprecipe = os.path.join(self.tempdir, 'recipe')
+os.makedirs(temprecipe)
+pn = 'pydantic-core'
+pv = '2.14.5'
+recipefile = os.path.join(temprecipe, 'python3-%s_%s.bb' % (pn, pv))
+srcuri = 
'https://files.pythonhosted.org/packages/64/26/cffb93fe9c6b5a91c497f37fae14a4b073ecbc47fc36a9979c7aa888b245/pydantic_core-%s.tar.gz'
 % pv
+result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri))
+self.assertTrue(os.path.isfile(recipefile))
+checkvars = {}
+checkvars['HOMEPAGE'] = 'https://github.com/pydantic/pydantic-core'
+checkvars['LICENSE'] = set(['MIT'])
+checkvars['LIC_FILES_CHKSUM'] = 
'file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c'
+checkvars['SRC_URI[sha256sum]'] = 
'6d30226dfc816dd0fdf120cae611dd2215117e4f9b124af8c60ab9093b6e8e71'
+inherits = ['python_maturin', 'pypi']
+
+self._test_recipe_contents(recipefile, checkvars, inherits)
+
 def test_recipetool_create_github_tarball(self):
 # Basic test to ensure github URL mangling doesn't apply to release 
tarballs
 temprecipe = os.path.join(self.tempdir, 'recipe')
diff --git a/scripts/lib/recipetool/create_buildsys_python.py 
b/scripts/lib/recipetool/create_buildsys_python.py
index a2af41fdda8..60c59034504 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -735,6 +735,7 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler):
 "poetry.core.masonry.api": "python_poetry_core",
 "flit_core.buildapi": "python_flit_core",
 "hatchling.build": "python_hatchling",
+"maturin": "python_maturin",
 }
 
 # setuptools.build_meta and flit declare project metadata into the 
"project" section of pyproject.toml
-- 
2.34.1


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



[OE-core] [PATCH 3/7] classes-recipe: add python_maturin.bbclass

2023-12-16 Thread Tim Orling
maturin is a replacement for setuptools_rust and another "backend" for
building python wheels.

Signed-off-by: Tim Orling 
---
 meta/classes-recipe/python_maturin.bbclass | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 meta/classes-recipe/python_maturin.bbclass

diff --git a/meta/classes-recipe/python_maturin.bbclass 
b/meta/classes-recipe/python_maturin.bbclass
new file mode 100644
index 000..c39d6c6e37d
--- /dev/null
+++ b/meta/classes-recipe/python_maturin.bbclass
@@ -0,0 +1,17 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+inherit python_pyo3 python_setuptools_build_meta
+
+DEPENDS += "python3-maturin-native"
+
+python_maturin_do_configure() {
+python_pyo3_do_configure
+cargo_common_do_configure
+python_pep517_do_configure
+}
+
+EXPORT_FUNCTIONS do_configure
-- 
2.34.1


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



[OE-core] [PATCH 1/7] python3-maturin: add v1.4.0

2023-12-16 Thread Tim Orling
Build and publish crates with pyo3, rust-cpython, cffi and uniffi bindings
as well as rust binaries as python packages.

This project is meant as a zero configuration replacement for setuptools-rust
and milksnake. It supports building wheels for python 3.7+ on windows, linux,
mac and freebsd, can upload them to pypi and has basic pypy and graalpy support.

https://github.com/pyo3/maturin

* Referesh -crates.inc for 1.4.0

Signed-off-by: Tim Orling 
---
 meta/conf/distro/include/maintainers.inc  |   1 +
 .../python/python3-maturin-crates.inc | 618 ++
 .../python/python3-maturin_1.4.0.bb   |  40 ++
 3 files changed, 659 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-maturin-crates.inc
 create mode 100644 meta/recipes-devtools/python/python3-maturin_1.4.0.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 445f797bcb7..74f7e1baa89 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -653,6 +653,7 @@ RECIPE_MAINTAINER:pn-python3-magic = "Joshua Watt 
"
 RECIPE_MAINTAINER:pn-python3-mako = "Trevor Gamblin "
 RECIPE_MAINTAINER:pn-python3-markdown = "Alexander Kanavin 
"
 RECIPE_MAINTAINER:pn-python3-markupsafe = "Richard Purdie 
"
+RECIPE_MAINTAINER:pn-python3-maturin = "Tim Orling "
 RECIPE_MAINTAINER:pn-python3-more-itertools = "Tim Orling 
"
 RECIPE_MAINTAINER:pn-python3-ndg-httpsclient = "Tim Orling 
"
 RECIPE_MAINTAINER:pn-python3-numpy = "Trevor Gamblin "
diff --git a/meta/recipes-devtools/python/python3-maturin-crates.inc 
b/meta/recipes-devtools/python/python3-maturin-crates.inc
new file mode 100644
index 000..3cb614d52af
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-maturin-crates.inc
@@ -0,0 +1,618 @@
+# Autogenerated with 'bitbake -c update_crates python3-maturin'
+
+# from Cargo.lock
+SRC_URI += " \
+crate://crates.io/adler/1.0.2 \
+crate://crates.io/ahash/0.8.6 \
+crate://crates.io/aho-corasick/1.1.2 \
+crate://crates.io/allocator-api2/0.2.16 \
+crate://crates.io/anstream/0.3.2 \
+crate://crates.io/anstream/0.6.4 \
+crate://crates.io/anstyle/1.0.2 \
+crate://crates.io/anstyle-parse/0.2.1 \
+crate://crates.io/anstyle-query/1.0.0 \
+crate://crates.io/anstyle-wincon/1.0.2 \
+crate://crates.io/anstyle-wincon/3.0.1 \
+crate://crates.io/anyhow/1.0.75 \
+crate://crates.io/autocfg/1.1.0 \
+crate://crates.io/base64/0.13.1 \
+crate://crates.io/base64/0.21.5 \
+crate://crates.io/bitflags/1.3.2 \
+crate://crates.io/bitflags/2.4.1 \
+crate://crates.io/block-buffer/0.10.4 \
+crate://crates.io/bstr/1.8.0 \
+crate://crates.io/byteorder/1.5.0 \
+crate://crates.io/bytes/1.5.0 \
+crate://crates.io/bytesize/1.3.0 \
+crate://crates.io/bzip2/0.4.4 \
+crate://crates.io/bzip2-sys/0.1.11+1.0.8 \
+crate://crates.io/cab/0.4.1 \
+crate://crates.io/camino/1.1.6 \
+crate://crates.io/cargo-config2/0.1.16 \
+crate://crates.io/cargo-options/0.7.2 \
+crate://crates.io/cargo-platform/0.1.5 \
+crate://crates.io/cargo-xwin/0.16.2 \
+crate://crates.io/cargo-zigbuild/0.18.0 \
+crate://crates.io/cargo_metadata/0.18.1 \
+crate://crates.io/cbindgen/0.26.0 \
+crate://crates.io/cc/1.0.83 \
+crate://crates.io/cfb/0.9.0 \
+crate://crates.io/cfg-if/1.0.0 \
+crate://crates.io/charset/0.1.3 \
+crate://crates.io/chumsky/0.9.3 \
+crate://crates.io/clap/4.3.24 \
+crate://crates.io/clap_builder/4.3.24 \
+crate://crates.io/clap_complete/4.3.2 \
+crate://crates.io/clap_complete_command/0.5.1 \
+crate://crates.io/clap_complete_fig/4.3.1 \
+crate://crates.io/clap_complete_nushell/0.1.11 \
+crate://crates.io/clap_derive/4.3.12 \
+crate://crates.io/clap_lex/0.5.0 \
+crate://crates.io/cli-table/0.4.7 \
+crate://crates.io/colorchoice/1.0.0 \
+crate://crates.io/configparser/3.0.3 \
+crate://crates.io/console/0.15.7 \
+crate://crates.io/content_inspector/0.2.4 \
+crate://crates.io/core-foundation/0.9.3 \
+crate://crates.io/core-foundation-sys/0.8.4 \
+crate://crates.io/cpufeatures/0.2.11 \
+crate://crates.io/crc32fast/1.3.2 \
+crate://crates.io/crossbeam-channel/0.5.8 \
+crate://crates.io/crossbeam-deque/0.8.3 \
+crate://crates.io/crossbeam-epoch/0.9.15 \
+crate://crates.io/crossbeam-utils/0.8.16 \
+crate://crates.io/crypto-common/0.1.6 \
+crate://crates.io/data-encoding/2.5.0 \
+crate://crates.io/deranged/0.3.9 \
+crate://crates.io/dialoguer/0.11.0 \
+crate://crates.io/diff/0.1.13 \
+crate://crates.io/digest/0.10.7 \
+crate://crates.io/dirs/5.0.1 \
+crate://crates.io/dirs-sys/0.4.1 \
+crate://crates.io/dissimilar/1.0.7 \
+crate://crates.io/dunce/1.0.4 \
+crate://crates.io/either/1.9.0 \
+crate://crates.io/enco

[OE-core] [PATCH 2/7] python3-maturin: bzip2-sys reproduciblility

2023-12-16 Thread Tim Orling
The /usr/bin/.debug/maturin binary ends up with the path
to the bzip-sys (bzip2-1.0.8) source in the python3-maturin-dbg package

Fix this by mapping the debug path for CARGO_HOME
to TARGET_DBGSRC_DIR/cargo_home via CFLAGS. This is
required because the bzip-sys crate is compiled using
the cc crate and we override default CFLAGS.

Signed-off-by: Tim Orling 
---
 meta/recipes-devtools/python/python3-maturin_1.4.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-maturin_1.4.0.bb 
b/meta/recipes-devtools/python/python3-maturin_1.4.0.bb
index 6f7cc6ef397..07ad1201b89 100644
--- a/meta/recipes-devtools/python/python3-maturin_1.4.0.bb
+++ b/meta/recipes-devtools/python/python3-maturin_1.4.0.bb
@@ -9,6 +9,8 @@ SRC_URI[sha256sum] = 
"ed12e1768094a7adeafc3a74ebdb8dc2201fa64c4e7e31f14cfc70378b
 
 S = "${WORKDIR}/maturin-${PV}"
 
+CFLAGS:append = 
"-fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home"
+
 DEPENDS += "\
 python3-setuptools-rust-native \
 python3-semantic-version-native \
-- 
2.34.1


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



[OE-core] [PATCH v2 0/7] Add 'maturin' backend support

2023-12-16 Thread Tim Orling
We are increasingly seeing Rust extensions for Python added in the
ecosystem. The current best practices approach has moved from using
'setuptools-rust' to using 'maturin'.

* Add python3-maturin, including 'native' and 'nativesdk' support.
* Add a 'python_maturin' bbclass for the PEP-517 backend.
* Add recipetool support for the 'maturin' PEP-517 backend.
* Add a very basic 'maturin list-python' smoke test to oeqa for
  both 'runtime' (-c testimage) and 'sdk' (-c testsdk).

Changes in v2:
* Bump 'maturin' to v1.4.0
* Fix the reproducible build of the bzip2-sys crate which was causing
  python3-maturin to be non-reproducible.
* Add a more exhaustive 'maturin develop' test case for oeqa 'sdk',
  which exercises:
  - Creation of a python3 virtual environment
  - Fetching crates for the 'guessing-game' app from the maturin tutorial
  - Building dev version of 'guessing-game' crate and wheel

The following changes since commit 5815ccc1f6fd93690a684f7ff0f8a0a19758fdaa:

  build-appliance-image: Update to master head revision (2023-12-16 13:12:52 
+)

are available in the Git repository at:

  https://git.yoctoproject.org/poky-contrib timo/maturin_1.4.0
  https://git.yoctoproject.org/poky-contrib/log/?h=timo/maturin_1.4.0

Tim Orling (7):
  python3-maturin: add v1.4.0
  python3-maturin: bzip2-sys reproduciblility
  classes-recipe: add python_maturin.bbclass
  recipetool: add python_maturin support
  oe-selfest: add maturn runtime (testimage) test
  oeqa: add simple 'maturin' SDK (testsdk) test case
  oeqa: add "maturin develop" SDK test case

 meta/classes-recipe/python_maturin.bbclass|  17 +
 meta/conf/distro/include/maintainers.inc  |   1 +
 .../files/maturin/guessing-game/Cargo.toml|  20 +
 .../maturin/guessing-game/LICENSE-APACHE  | 201 ++
 .../files/maturin/guessing-game/LICENSE-MIT   |  25 +
 .../maturin/guessing-game/pyproject.toml  |   8 +
 .../files/maturin/guessing-game/src/lib.rs|  48 ++
 meta/lib/oeqa/runtime/cases/maturin.py|  23 +
 meta/lib/oeqa/sdk/cases/maturin.py|  79 +++
 meta/lib/oeqa/selftest/cases/recipetool.py|  29 +
 .../python/python3-maturin-crates.inc | 618 ++
 .../python/python3-maturin_1.4.0.bb   |  42 ++
 .../lib/recipetool/create_buildsys_python.py  |   1 +
 13 files changed, 1112 insertions(+)
 create mode 100644 meta/classes-recipe/python_maturin.bbclass
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/Cargo.toml
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/LICENSE-APACHE
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/LICENSE-MIT
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/pyproject.toml
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/src/lib.rs
 create mode 100644 meta/lib/oeqa/runtime/cases/maturin.py
 create mode 100644 meta/lib/oeqa/sdk/cases/maturin.py
 create mode 100644 meta/recipes-devtools/python/python3-maturin-crates.inc
 create mode 100644 meta/recipes-devtools/python/python3-maturin_1.4.0.bb

-- 
2.34.1


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



Re: [OE-core] mdns on musl

2023-12-16 Thread Tim Orling
On Sat, Dec 16, 2023 at 12:16 PM Khem Raj  wrote:

> is this issue specific to musl systems?
> Maybe try to reproduce it with glibc on qemu or something?
>

You might also search for mdns issues/solutions in Alpine Linux which is
always musl.

>
> On Sat, Dec 16, 2023 at 9:11 AM  wrote:
> >
> > Hi all,
> >
> > I'm working on an embedded system and it needs mDNS in order to interact
> with .local hostnames.
> >
> > The image is based on musl so it cannot use the libnss-mdns library.
> >
> > From what I've read the mdns recipe is supposed to support mDNS on
> non-glibc systems.
> >
> > The recipe takes care of modifying /etc/nsswitch.conf and appends mdns
> to the hosts line.
> >
> > When the system boots it runs mdnsd and I can see it join the multicast
> group in wireshark, but I cannot ping any .local addresses.
> >
> > Is there some other configuration that needs to be done?
> >
> > Has anyone successfully done this with a musl system?
> >
> > Thanks, Matt.
> >
> >
> >
> >
> >
>
> 
>
>

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



Re: [OE-core] [PATCH v2 4/6] recipetool: add python_maturin support

2023-12-13 Thread Tim Orling
On Sat, Dec 9, 2023 at 3:59 AM Alexandre Belloni <
alexandre.bell...@bootlin.com> wrote:

> On 09/12/2023 12:29:50+0100, Alexandre Belloni via lists.openembedded.org
> wrote:
> > Hello,
> >
> > maturin is not reproducible:
> >
> >
> https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20231208-rfbproj4/packages/diff-html/
>
>
> Probably related:
>
> WARNING: python3-maturin-1.3.2-r0 do_package_qa: QA Issue: File
> /usr/bin/.debug/maturin in package python3-maturin-dbg contains reference
> to TMPDIR
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/8267/steps/14/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6018/steps/12/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/52/builds/8141/steps/11/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/108/builds/5453/steps/11/logs/stdio
>
> I think at least this part is sorted:
https://github.com/alexcrichton/bzip2-rs/pull/101

Thank you to khem for making me realize the options passed to the ‘cc’
crate were the issue in this case. (The Makefile is not used, nor are
CFLAGS from the environment)

The reordering bits might be a different problem. If anybody has any
thoughts on that I’m all ears.

>
> >
> > On 08/12/2023 18:02:24-0800, Tim Orling wrote:
> > > Add the new python_maturin PEP-517 backend
> > >
> > > Add selftest for 'pydantic-core' pypi package.
> > >
> > > Signed-off-by: Tim Orling 
> > > ---
> > > Changes in v2:
> > >  - drop all SRC_URI checksums except sha256sum (Peter's change)
> > >* requires "[PATCH v2] recipetool: pypi: do not clobber SRC_URI
> checksums"
> > >  - drop SRC_URI (Julien's change)
> > >  - add "inherit pypi" (Julien's change)
> > >
> > >  meta/lib/oeqa/selftest/cases/recipetool.py| 29 +++
> > >  .../lib/recipetool/create_buildsys_python.py  |  1 +
> > >  2 files changed, 30 insertions(+)
> > >
> > > diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py
> b/meta/lib/oeqa/selftest/cases/recipetool.py
> > > index d10d61bc5b0..8d39f639acf 100644
> > > --- a/meta/lib/oeqa/selftest/cases/recipetool.py
> > > +++ b/meta/lib/oeqa/selftest/cases/recipetool.py
> > > @@ -663,6 +663,35 @@ class RecipetoolCreateTests(RecipetoolBase):
> > >
> > >  self._test_recipe_contents(recipefile, checkvars, inherits)
> > >
> > > +def test_recipetool_create_python3_pep517_maturin(self):
> > > +# This test require python 3.11 or above for the tomllib
> module
> > > +# or tomli module to be installed
> > > +try:
> > > +import tomllib
> > > +except ImportError:
> > > +try:
> > > +import tomli
> > > +except ImportError:
> > > +self.skipTest('Test requires python 3.11 or above for
> tomllib module or tomli module')
> > > +
> > > +# Test creating python3 package from tarball (using maturin
> class)
> > > +temprecipe = os.path.join(self.tempdir, 'recipe')
> > > +os.makedirs(temprecipe)
> > > +pn = 'pydantic-core'
> > > +pv = '2.14.5'
> > > +recipefile = os.path.join(temprecipe, 'python3-%s_%s.bb' %
> (pn, pv))
> > > +srcuri = '
> https://files.pythonhosted.org/packages/64/26/cffb93fe9c6b5a91c497f37fae14a4b073ecbc47fc36a9979c7aa888b245/pydantic_core-%s.tar.gz'
> % pv
> > > +result = runCmd('recipetool create -o %s %s' % (temprecipe,
> srcuri))
> > > +self.assertTrue(os.path.isfile(recipefile))
> > > +checkvars = {}
> > > +checkvars['HOMEPAGE'] = '
> https://github.com/pydantic/pydantic-core'
> > > +checkvars['LICENSE'] = set(['MIT'])
> > > +checkvars['LIC_FILES_CHKSUM'] =
> 'file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c'
> > > +checkvars['SRC_URI[sha256sum]'] =
> '6d30226dfc816dd0fdf120cae611dd2215117e4f9b124af8c60ab9093b6e8e71'
> > > +inherits = ['python_maturin', 'pypi']
> > > +
> > > +self._test_recipe_contents(recipefile, checkvars, inherits)
> > > +
> > >  def test_recipetool_create_github_tarball(self):
> > >  # Basic test to ensure github URL mangling doesn't apply to
> release tarballs
> > >  temprecipe = os.path.join(self.tempdir, 'recipe')
> > > diff --git a/scripts/lib/recipetool/crea

Re: [OE-core] [PATCH] strace: Disable bluetooth support by default

2023-12-12 Thread Tim Orling
On Tue, Dec 12, 2023 at 3:37 PM Yoann Congal  wrote:

> The bluetooth support adds a bluez5 dependency (and,recursively, a lot
> of other stuff). Disable it by default to avoid having to build all of
> this when it is not needed.
>
> This decrease the number of tasks run for a core-image-minimal build by
> ~1000 (-21%).
>
> To re-enable bluetooth support in strace, add "bluez" to strace
> PACKAGECONFIG. For example, in local.conf:
>   PACKAGECONFIG:append:pn-strace = "bluetooth"

typo: = “bluez” unless you meant to reference the DISTRO_FEATURE?

>
>
> Fixes [YOCTO #15323]
>
> Signed-off-by: Yoann Congal 
> ---
>  meta/recipes-devtools/strace/strace_6.6.bb | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/meta/recipes-devtools/strace/strace_6.6.bb
> b/meta/recipes-devtools/strace/strace_6.6.bb
> index a3de7941cf..c355b45b20 100644
> --- a/meta/recipes-devtools/strace/strace_6.6.bb
> +++ b/meta/recipes-devtools/strace/strace_6.6.bb
> @@ -22,9 +22,6 @@ inherit autotools ptest
>  # Not yet ported to rv32
>  COMPATIBLE_HOST:riscv32 = "null"
>
> -PACKAGECONFIG:class-target ??= "\
> -${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}
> \
> -"
>
>  PACKAGECONFIG[bluez] =
> "ac_cv_header_bluetooth_bluetooth_h=yes,ac_cv_header_bluetooth_bluetooth_h=no,bluez5"
>  PACKAGECONFIG[libunwind] =
> "--with-libunwind,--without-libunwind,libunwind"
> --
> 2.30.2
>
>
> 
>
>

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



[OE-core] [PATCH v2 4/6] recipetool: add python_maturin support

2023-12-08 Thread Tim Orling
Add the new python_maturin PEP-517 backend

Add selftest for 'pydantic-core' pypi package.

Signed-off-by: Tim Orling 
---
Changes in v2:
 - drop all SRC_URI checksums except sha256sum (Peter's change)
   * requires "[PATCH v2] recipetool: pypi: do not clobber SRC_URI checksums"
 - drop SRC_URI (Julien's change)
 - add "inherit pypi" (Julien's change)

 meta/lib/oeqa/selftest/cases/recipetool.py| 29 +++
 .../lib/recipetool/create_buildsys_python.py  |  1 +
 2 files changed, 30 insertions(+)

diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py 
b/meta/lib/oeqa/selftest/cases/recipetool.py
index d10d61bc5b0..8d39f639acf 100644
--- a/meta/lib/oeqa/selftest/cases/recipetool.py
+++ b/meta/lib/oeqa/selftest/cases/recipetool.py
@@ -663,6 +663,35 @@ class RecipetoolCreateTests(RecipetoolBase):
 
 self._test_recipe_contents(recipefile, checkvars, inherits)
 
+def test_recipetool_create_python3_pep517_maturin(self):
+# This test require python 3.11 or above for the tomllib module
+# or tomli module to be installed
+try:
+import tomllib
+except ImportError:
+try:
+import tomli
+except ImportError:
+self.skipTest('Test requires python 3.11 or above for tomllib 
module or tomli module')
+
+# Test creating python3 package from tarball (using maturin class)
+temprecipe = os.path.join(self.tempdir, 'recipe')
+os.makedirs(temprecipe)
+pn = 'pydantic-core'
+pv = '2.14.5'
+recipefile = os.path.join(temprecipe, 'python3-%s_%s.bb' % (pn, pv))
+srcuri = 
'https://files.pythonhosted.org/packages/64/26/cffb93fe9c6b5a91c497f37fae14a4b073ecbc47fc36a9979c7aa888b245/pydantic_core-%s.tar.gz'
 % pv
+result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri))
+self.assertTrue(os.path.isfile(recipefile))
+checkvars = {}
+checkvars['HOMEPAGE'] = 'https://github.com/pydantic/pydantic-core'
+checkvars['LICENSE'] = set(['MIT'])
+checkvars['LIC_FILES_CHKSUM'] = 
'file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c'
+checkvars['SRC_URI[sha256sum]'] = 
'6d30226dfc816dd0fdf120cae611dd2215117e4f9b124af8c60ab9093b6e8e71'
+inherits = ['python_maturin', 'pypi']
+
+self._test_recipe_contents(recipefile, checkvars, inherits)
+
 def test_recipetool_create_github_tarball(self):
 # Basic test to ensure github URL mangling doesn't apply to release 
tarballs
 temprecipe = os.path.join(self.tempdir, 'recipe')
diff --git a/scripts/lib/recipetool/create_buildsys_python.py 
b/scripts/lib/recipetool/create_buildsys_python.py
index a2af41fdda8..60c59034504 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -735,6 +735,7 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler):
 "poetry.core.masonry.api": "python_poetry_core",
 "flit_core.buildapi": "python_flit_core",
 "hatchling.build": "python_hatchling",
+"maturin": "python_maturin",
 }
 
 # setuptools.build_meta and flit declare project metadata into the 
"project" section of pyproject.toml
-- 
2.34.1


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



[OE-core] [PATCH v2] recipetool: pypi: do not clobber SRC_URI checksums

2023-12-08 Thread Tim Orling
The pypi change:
"85a2a6f68af recipetool: create_buildsys_python: add pypi support"
deleted all the SRC_URI variables, including the SRC_URI checksums.
These are not generated by the pypi.bbclass (how could they be trusted?)

Without the checksum(s), we are vulnerable to a man-in-the-middle attack
and zero checks on the validity of the downloaded tarball from pypi.org.

Fix by only setting S and SRC_URI to None.

Signed-off-by: Tim Orling 
---
Changes in v2:
  - clarify the pypi.bbclass comment

 scripts/lib/recipetool/create_buildsys_python.py | 7 +--
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/scripts/lib/recipetool/create_buildsys_python.py 
b/scripts/lib/recipetool/create_buildsys_python.py
index 5e07222ece1..a2af41fdda8 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -167,16 +167,11 @@ class PythonRecipeHandler(RecipeHandler):
 if pypi_package_ext != "tar.gz":
 extravalues["PYPI_PACKAGE_EXT"] = pypi_package_ext
 
-# Pypi class will handle S and SRC_URIxxx variables, so remove them
+# Pypi class will handle S and SRC_URI variables, so remove them
 # TODO: allow oe.recipeutils.patch_recipe_lines() to accept regexp 
so we can simplify the following to:
 # extravalues['SRC_URI(?:\[.*?\])?'] = None
 extravalues['S'] = None
 extravalues['SRC_URI'] = None
-extravalues['SRC_URI[md5sum]'] = None
-extravalues['SRC_URI[sha1sum]'] = None
-extravalues['SRC_URI[sha256sum]'] = None
-extravalues['SRC_URI[sha384sum]'] = None
-extravalues['SRC_URI[sha512sum]'] = None
 
 classes.append('pypi')
 
-- 
2.34.1


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



[OE-core] [PATCH] recipetool: pypi: do not clobber SRC_URI checksums

2023-12-08 Thread Tim Orling
The pypi change:
"85a2a6f68af recipetool: create_buildsys_python: add pypi support"
deleted all the SRC_URI variables, including the SRC_URI checksums.
These are not generated by the pypi.bbclass (how could they be trusted?)

Without the checksum(s), we are vulnerable to a man-in-the-middle attack
and zero checks on the validity of the downloaded tarball from pypi.org.

Fix by only setting S and SRC_URI to None.

Signed-off-by: Tim Orling 
---
 scripts/lib/recipetool/create_buildsys_python.py | 5 -
 1 file changed, 5 deletions(-)

diff --git a/scripts/lib/recipetool/create_buildsys_python.py 
b/scripts/lib/recipetool/create_buildsys_python.py
index 5e07222ece1..66de36ba3e4 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -172,11 +172,6 @@ class PythonRecipeHandler(RecipeHandler):
 # extravalues['SRC_URI(?:\[.*?\])?'] = None
 extravalues['S'] = None
 extravalues['SRC_URI'] = None
-extravalues['SRC_URI[md5sum]'] = None
-extravalues['SRC_URI[sha1sum]'] = None
-extravalues['SRC_URI[sha256sum]'] = None
-extravalues['SRC_URI[sha384sum]'] = None
-extravalues['SRC_URI[sha512sum]'] = None
 
 classes.append('pypi')
 
-- 
2.34.1


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



Re: [OE-core] [RESEND][PATCH 5/7] recipetool: create_buildsys_python: add pypi support

2023-12-08 Thread Tim Orling
On Mon, Dec 4, 2023 at 7:59 AM Julien Stephan  wrote:

> Today, we can use devtool/recipetool to create recipes for python projects
> using the github url or the direct release tarball of the project, but the
> create_buildsys_python plugin doesn't support the pypi class, since we
> cannot
> know from the extracted source if the package is available on pypi or not.
>
> By implementing the new optional process_url callback, we can detect
> that the url is a pypi one (i.e 'https://pypi.org/project/')
> and retrieve the release tarball location.
> Also detect if the url points to a release tarball hosted on
> "files.pythonhosted.iorg" (i.e https://files.pythonhosted.org/packages/..
> .)
>
> In both cases, adds the pypi class, remove 'S' and 'SRC_URIxxx'
> variables from the created recipe as they will be handled by the pypi class
> and add the PYPI_PACKAGE variable
>
> This helps to produce cleaner recipes when package is hosted on pypi.
>
> If the url points to a github url or a release tarball not coming from
> "files.pythonhosted.org", the created recipe is the same as before.
> One can also use the newly added "--no-pypi" switch to NOT inherit
> from pypi class on matching url, to keep legacy behaviour.
>
> To create a recipe for a pypi package, one can now use one of the
> new following syntax (using recipetool create / devtool add):
>
> * recipetool create https://pypi.org/project/
> * recipetool create https://pypi.org/project//
> * recipetool create https://pypi.org/project/ --version 
>
> or the old syntax:
> * recipetool create https://files.pythonhosted.org/packages/<...>
>
> Signed-off-by: Julien Stephan 
> ---
>  scripts/lib/devtool/standard.py   |  3 +
>  scripts/lib/recipetool/create.py  |  1 +
>  .../lib/recipetool/create_buildsys_python.py  | 72 +++
>  3 files changed, 76 insertions(+)
>
> diff --git a/scripts/lib/devtool/standard.py
> b/scripts/lib/devtool/standard.py
> index d53fb810071..f18ebaa70d3 100644
> --- a/scripts/lib/devtool/standard.py
> +++ b/scripts/lib/devtool/standard.py
> @@ -147,6 +147,8 @@ def add(args, config, basepath, workspace):
>  extracmdopts += ' -a'
>  if args.npm_dev:
>  extracmdopts += ' --npm-dev'
> +if args.no_pypi:
> +extracmdopts += ' --no-pypi'
>  if args.mirrors:
>  extracmdopts += ' --mirrors'
>  if args.srcrev:
> @@ -2260,6 +2262,7 @@ def register_commands(subparsers, context):
>  group.add_argument('--no-same-dir', help='Force build in a separate
> build directory', action="store_true")
>  parser_add.add_argument('--fetch', '-f', help='Fetch the specified
> URI and extract it to create the source tree (deprecated - pass as
> positional argument instead)', metavar='URI')
>  parser_add.add_argument('--npm-dev', help='For npm, also fetch
> devDependencies', action="store_true")
> +parser_add.add_argument('--no-pypi', help='Do not inherit pypi
> class', action="store_true")
>  parser_add.add_argument('--version', '-V', help='Version to use
> within recipe (PV)')
>  parser_add.add_argument('--no-git', '-g', help='If fetching source,
> do not set up source tree as a git repository', action="store_true")
>  group = parser_add.add_mutually_exclusive_group()
> diff --git a/scripts/lib/recipetool/create.py
> b/scripts/lib/recipetool/create.py
> index 5c5ac7ae403..963aa91421e 100644
> --- a/scripts/lib/recipetool/create.py
> +++ b/scripts/lib/recipetool/create.py
> @@ -1413,6 +1413,7 @@ def register_commands(subparsers):
>  parser_create.add_argument('-B', '--srcbranch', help='Branch in
> source repository if fetching from an SCM such as git (default master)')
>  parser_create.add_argument('--keep-temp', action="store_true",
> help='Keep temporary directory (for debugging)')
>  parser_create.add_argument('--npm-dev', action="store_true",
> help='For npm, also fetch devDependencies')
> +parser_create.add_argument('--no-pypi', action="store_true", help='Do
> not inherit pypi class')
>  parser_create.add_argument('--devtool', action="store_true",
> help=argparse.SUPPRESS)
>  parser_create.add_argument('--mirrors', action="store_true",
> help='Enable PREMIRRORS and MIRRORS for source tree fetching (disabled by
> default).')
>  parser_create.set_defaults(func=create_recipe)
> diff --git a/scripts/lib/recipetool/create_buildsys_python.py
> b/scripts/lib/recipetool/create_buildsys_python.py
> index b620e3271b1..5e07222ece1 100644
> --- a/scripts/lib/recipetool/create_buildsys_python.py
> +++ b/scripts/lib/recipetool/create_buildsys_python.py
> @@ -18,7 +18,11 @@ import os
>  import re
>  import sys
>  import subprocess
> +import json
> +import urllib.request
>  from recipetool.create import RecipeHandler
> +from urllib.parse import urldefrag
> +from recipetool.create import determine_from_url
>
>  logger = logging.getLogger('recipetool')
>
> @@ -111,6 +115,74 @@ class PythonRecipeHandler(RecipeHandler):
>  def __init__(self):

Re: [OE-core] [PATCH 0/6] Add 'maturin' python backend support

2023-12-08 Thread Tim Orling
On Fri, Dec 8, 2023 at 3:58 PM Tim Orling via lists.openembedded.org
 wrote:

>
>
> On Fri, Dec 8, 2023 at 2:50 PM Alexandre Belloni <
> alexandre.bell...@bootlin.com> wrote:
>
>> Hello Tim,
>>
>> I got this failure, can you check?
>>
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6166/steps/14/logs/stdio
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6159/steps/14/logs/stdio
>>
>> this is from Peter’s change which had not been merged when I sent this
> series.
>

Correction: it is from Julien’s pypi recipetool change. The pypi.bbclass
does not create SRC_URI checksums. The inly test case other than mine with
SRC_URI checksums was for —no-pypi setuptools3 and do we have zero coverage.

>
>> 2023-12-08 22:03:18,822 - oe-selftest - INFO - FAIL:
>> recipetool.RecipetoolCreateTests.test_recipetool_create_python3_pep517_maturin
>> (subunit.RemotedTestCase)
>> 2023-12-08 22:03:18,822 - oe-selftest - INFO -
>> --
>> 2023-12-08 22:03:18,823 - oe-selftest - INFO -
>> testtools.testresult.real._StringException: Traceback (most recent call
>> last):
>>   File
>> "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/recipetool.py",
>> line 698, in test_recipetool_create_python3_pep517_maturin
>> self._test_recipe_contents(recipefile, checkvars, inherits)
>>   File
>> "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/devtool.py",
>> line 178, in _test_recipe_contents
>> self.assertEqual(missingvars, {}, 'Some expected variables not found
>> in recipe: %s' % checkvars)
>>   File "/usr/lib64/python3.11/unittest/case.py", line 873, in assertEqual
>> assertion_func(first, second, msg=msg)
>>   File "/usr/lib64/python3.11/unittest/case.py", line 1172, in
>> assertDictEqual
>> self.fail(self._formatMessage(msg, standardMsg))
>>   File "/usr/lib64/python3.11/unittest/case.py", line 703, in fail
>> raise self.failureException(msg)
>> AssertionError: {'SRC_URI': 'https://files.pythonhosted.or[586
>> chars]238'} != {}
>> Diff is 656 characters long. Set self.maxDiff to None to see it. : Some
>> expected variables not found in recipe: {'SRC_URI': '
>> https://files.pythonhosted.org/packages/64/26/cffb93fe9c6b5a91c497f37fae14a4b073ecbc47fc36a9979c7aa888b245/pydantic_core-${PV}.tar.gz',
>> 'SRC_URI[md5sum]': '1eb13c211147496c1c9484ff7f8ac438', 'SRC_URI[sha1sum]':
>> '0803a731aa793f3eaf4d52f656d7300408ca0b36', 'SRC_URI[sha256sum]':
>> '6d30226dfc816dd0fdf120cae611dd2215117e4f9b124af8c60ab9093b6e8e71',
>> 'SRC_URI[sha384sum]':
>> 'cca6d9f0ba72ff92e16aaf3d6c628b8df33bdf244cc39c9d59cff9d541f35d4e87ec136e60e4b040ad73c5c69b27cec6',
>> 'SRC_URI[sha512sum]':
>> 'e6c3081dfa58d9b59f8c33dfe80712d732ac3048a2f8240f9a0f5448d9bfc83e222c1e08b8bb49779b84f685c3bec3060cc935c113a818b1ab8aa955f3df2238'}
>>
>>
>>
>>
>> On 07/12/2023 15:13:17-0800, Tim Orling wrote:
>> > We are increasingly seeing Rust extensions for Python added in the
>> > ecosystem. The current best practices approach has moved from using
>> > 'setuptools-rust' to using 'maturin'.
>> >
>> > * Add python3-maturin, including 'native' and 'nativesdk' support.
>> > * Add a 'python_maturin' bbclass for the PEP-517 backend.
>> > * Add recipetool support for the 'maturin' PEP-517 backend.
>> > * Add a very basic 'maturin list-python' smoke test added to oeqa for
>> >   both 'runtime' (-c testimage) and 'sdk' (-c testsdk).
>> >
>> > The following changes since commit
>> 70ad9b9b309575134834757468cb32c9e3b87448:
>> >
>> >   bitbake: hashserv: sqlite: Ensure sync propagates to database
>> connections (2023-12-04 22:36:09 +)
>> >
>> > are available in the Git repository at:
>> >
>> >   https://git.yoctoproject.org/poky-contrib timo/maturin_1.3.2
>> >   https://git.yoctoproject.org/poky-contrib/log/?h=timo/maturin_1.3.2
>> >
>> > Tim Orling (6):
>> >   python3-setuptools-rust: BBCLASSEXTEND + nativesdk
>> >   python3-maturin: add v1.3.2
>> >   classes-recipe: add python_maturin.bbclass
>> >   recipetool: add python_maturin support
>> >   oe-selfest: add maturn runtime (testimage) test
>> >   python3-maturin: add sdk (testsdk) test case
>> >
>> >  meta/classes-recipe/python_maturin.bbclass|  17 +
>> >  meta/conf/distro/include/maintainers.inc

Re: [OE-core] [PATCH 0/6] Add 'maturin' python backend support

2023-12-08 Thread Tim Orling
On Fri, Dec 8, 2023 at 2:50 PM Alexandre Belloni <
alexandre.bell...@bootlin.com> wrote:

> Hello Tim,
>
> I got this failure, can you check?
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6166/steps/14/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6159/steps/14/logs/stdio
>
> this is from Peter’s change which had not been merged when I sent this
series.

>
> 2023-12-08 22:03:18,822 - oe-selftest - INFO - FAIL:
> recipetool.RecipetoolCreateTests.test_recipetool_create_python3_pep517_maturin
> (subunit.RemotedTestCase)
> 2023-12-08 22:03:18,822 - oe-selftest - INFO -
> --
> 2023-12-08 22:03:18,823 - oe-selftest - INFO -
> testtools.testresult.real._StringException: Traceback (most recent call
> last):
>   File
> "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/recipetool.py",
> line 698, in test_recipetool_create_python3_pep517_maturin
> self._test_recipe_contents(recipefile, checkvars, inherits)
>   File
> "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/devtool.py",
> line 178, in _test_recipe_contents
> self.assertEqual(missingvars, {}, 'Some expected variables not found
> in recipe: %s' % checkvars)
>   File "/usr/lib64/python3.11/unittest/case.py", line 873, in assertEqual
> assertion_func(first, second, msg=msg)
>   File "/usr/lib64/python3.11/unittest/case.py", line 1172, in
> assertDictEqual
> self.fail(self._formatMessage(msg, standardMsg))
>   File "/usr/lib64/python3.11/unittest/case.py", line 703, in fail
> raise self.failureException(msg)
> AssertionError: {'SRC_URI': 'https://files.pythonhosted.or[586
> chars]238'} != {}
> Diff is 656 characters long. Set self.maxDiff to None to see it. : Some
> expected variables not found in recipe: {'SRC_URI': '
> https://files.pythonhosted.org/packages/64/26/cffb93fe9c6b5a91c497f37fae14a4b073ecbc47fc36a9979c7aa888b245/pydantic_core-${PV}.tar.gz',
> 'SRC_URI[md5sum]': '1eb13c211147496c1c9484ff7f8ac438', 'SRC_URI[sha1sum]':
> '0803a731aa793f3eaf4d52f656d7300408ca0b36', 'SRC_URI[sha256sum]':
> '6d30226dfc816dd0fdf120cae611dd2215117e4f9b124af8c60ab9093b6e8e71',
> 'SRC_URI[sha384sum]':
> 'cca6d9f0ba72ff92e16aaf3d6c628b8df33bdf244cc39c9d59cff9d541f35d4e87ec136e60e4b040ad73c5c69b27cec6',
> 'SRC_URI[sha512sum]':
> 'e6c3081dfa58d9b59f8c33dfe80712d732ac3048a2f8240f9a0f5448d9bfc83e222c1e08b8bb49779b84f685c3bec3060cc935c113a818b1ab8aa955f3df2238'}
>
>
>
>
> On 07/12/2023 15:13:17-0800, Tim Orling wrote:
> > We are increasingly seeing Rust extensions for Python added in the
> > ecosystem. The current best practices approach has moved from using
> > 'setuptools-rust' to using 'maturin'.
> >
> > * Add python3-maturin, including 'native' and 'nativesdk' support.
> > * Add a 'python_maturin' bbclass for the PEP-517 backend.
> > * Add recipetool support for the 'maturin' PEP-517 backend.
> > * Add a very basic 'maturin list-python' smoke test added to oeqa for
> >   both 'runtime' (-c testimage) and 'sdk' (-c testsdk).
> >
> > The following changes since commit
> 70ad9b9b309575134834757468cb32c9e3b87448:
> >
> >   bitbake: hashserv: sqlite: Ensure sync propagates to database
> connections (2023-12-04 22:36:09 +)
> >
> > are available in the Git repository at:
> >
> >   https://git.yoctoproject.org/poky-contrib timo/maturin_1.3.2
> >   https://git.yoctoproject.org/poky-contrib/log/?h=timo/maturin_1.3.2
> >
> > Tim Orling (6):
> >   python3-setuptools-rust: BBCLASSEXTEND + nativesdk
> >   python3-maturin: add v1.3.2
> >   classes-recipe: add python_maturin.bbclass
> >   recipetool: add python_maturin support
> >   oe-selfest: add maturn runtime (testimage) test
> >   python3-maturin: add sdk (testsdk) test case
> >
> >  meta/classes-recipe/python_maturin.bbclass|  17 +
> >  meta/conf/distro/include/maintainers.inc  |   1 +
> >  meta/lib/oeqa/runtime/cases/maturin.py|  23 +
> >  meta/lib/oeqa/sdk/cases/maturin.py|  33 +
> >  meta/lib/oeqa/selftest/cases/recipetool.py|  34 ++
> >  .../python/python3-maturin-crates.inc | 572 ++
> >  .../python/python3-maturin_1.3.2.bb   |  40 ++
> >  .../python/python3-setuptools-rust_1.8.1.bb   |   2 +-
> >  .../lib/recipetool/create_buildsys_python.py  |   1 +
> >  9 files changed, 722 insertions(+), 1 deletion(-)
> >  create mode 100644 meta/classes-recipe/python_maturin.bbclass
> >  create mode 100644 meta/lib/oeqa

[OE-core] [PATCH 4/6] recipetool: add python_maturin support

2023-12-07 Thread Tim Orling
Add the new python_maturin PEP-517 backend

Add selftest for 'pydantic-core' pypi package.

[YOCTO #15312]

Signed-off-by: Tim Orling 
---
 meta/lib/oeqa/selftest/cases/recipetool.py| 34 +++
 .../lib/recipetool/create_buildsys_python.py  |  1 +
 2 files changed, 35 insertions(+)

diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py 
b/meta/lib/oeqa/selftest/cases/recipetool.py
index 55cbba9ca74..ddcacaa73c7 100644
--- a/meta/lib/oeqa/selftest/cases/recipetool.py
+++ b/meta/lib/oeqa/selftest/cases/recipetool.py
@@ -611,6 +611,40 @@ class RecipetoolCreateTests(RecipetoolBase):
 
 self._test_recipe_contents(recipefile, checkvars, inherits)
 
+def test_recipetool_create_python3_pep517_maturin(self):
+# This test require python 3.11 or above for the tomllib module
+# or tomli module to be installed
+try:
+import tomllib
+except ImportError:
+try:
+import tomli
+except ImportError:
+self.skipTest('Test requires python 3.11 or above for tomllib 
module or tomli module')
+
+# Test creating python3 package from tarball (using maturin class)
+temprecipe = os.path.join(self.tempdir, 'recipe')
+os.makedirs(temprecipe)
+pn = 'pydantic-core'
+pv = '2.14.5'
+recipefile = os.path.join(temprecipe, 'python3-%s_%s.bb' % (pn, pv))
+srcuri = 
'https://files.pythonhosted.org/packages/64/26/cffb93fe9c6b5a91c497f37fae14a4b073ecbc47fc36a9979c7aa888b245/pydantic_core-%s.tar.gz'
 % pv
+result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri))
+self.assertTrue(os.path.isfile(recipefile))
+checkvars = {}
+checkvars['HOMEPAGE'] = 'https://github.com/pydantic/pydantic-core'
+checkvars['LICENSE'] = set(['MIT'])
+checkvars['LIC_FILES_CHKSUM'] = 
'file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c'
+checkvars['SRC_URI'] = 
'https://files.pythonhosted.org/packages/64/26/cffb93fe9c6b5a91c497f37fae14a4b073ecbc47fc36a9979c7aa888b245/pydantic_core-${PV}.tar.gz'
+checkvars['SRC_URI[md5sum]'] = '1eb13c211147496c1c9484ff7f8ac438'
+checkvars['SRC_URI[sha1sum]'] = 
'0803a731aa793f3eaf4d52f656d7300408ca0b36'
+checkvars['SRC_URI[sha256sum]'] = 
'6d30226dfc816dd0fdf120cae611dd2215117e4f9b124af8c60ab9093b6e8e71'
+checkvars['SRC_URI[sha384sum]'] = 
'cca6d9f0ba72ff92e16aaf3d6c628b8df33bdf244cc39c9d59cff9d541f35d4e87ec136e60e4b040ad73c5c69b27cec6'
+checkvars['SRC_URI[sha512sum]'] = 
'e6c3081dfa58d9b59f8c33dfe80712d732ac3048a2f8240f9a0f5448d9bfc83e222c1e08b8bb49779b84f685c3bec3060cc935c113a818b1ab8aa955f3df2238'
+inherits = ['python_maturin']
+
+self._test_recipe_contents(recipefile, checkvars, inherits)
+
 def test_recipetool_create_github_tarball(self):
 # Basic test to ensure github URL mangling doesn't apply to release 
tarballs
 temprecipe = os.path.join(self.tempdir, 'recipe')
diff --git a/scripts/lib/recipetool/create_buildsys_python.py 
b/scripts/lib/recipetool/create_buildsys_python.py
index 9312e4abf13..9bebb3061b1 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -668,6 +668,7 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler):
 "poetry.core.masonry.api": "python_poetry_core",
 "flit_core.buildapi": "python_flit_core",
 "hatchling.build": "python_hatchling",
+"maturin": "python_maturin",
 }
 
 # setuptools.build_meta and flit declare project metadata into the 
"project" section of pyproject.toml
-- 
2.34.1


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



[OE-core] [PATCH 6/6] python3-maturin: add sdk (testsdk) test case

2023-12-07 Thread Tim Orling
We expect 'maturin' will be used in SDKs, so it makes sense to also
test it in the testsdk environment.

To run this test case, you can add the following to local.conf:
TOOLCHAIN_HOST_TASK:append = " nativesdk-python3-maturin"

And the build and test the SDK:
bitbake -c populate_sdk core-image-full-cmdline
bitbake -c testsdk core-image-full-cmdline

You can substitute a different image recipe for "core-image-full-cmdline"

[YOCTO #15312]

Signed-off-by: Tim Orling 
---
 meta/lib/oeqa/sdk/cases/maturin.py | 33 ++
 1 file changed, 33 insertions(+)
 create mode 100644 meta/lib/oeqa/sdk/cases/maturin.py

diff --git a/meta/lib/oeqa/sdk/cases/maturin.py 
b/meta/lib/oeqa/sdk/cases/maturin.py
new file mode 100644
index 000..14245bc36e5
--- /dev/null
+++ b/meta/lib/oeqa/sdk/cases/maturin.py
@@ -0,0 +1,33 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+import unittest
+from oeqa.sdk.case import OESDKTestCase
+
+from oeqa.utils.subprocesstweak import errors_have_output
+
+errors_have_output()
+
+
+class MaturinTest(OESDKTestCase):
+def setUp(self):
+if not (
+self.tc.hasHostPackage("nativesdk-python3-maturin")
+or self.tc.hasHostPackage("python3-maturin-native")
+):
+raise unittest.SkipTest("No python3-maturin package in the SDK")
+
+def test_maturin_list_python(self):
+py_major = self._run("python3 -c 'import sys; 
print(sys.version_info.major)'")
+py_minor = self._run("python3 -c 'import sys; 
print(sys.version_info.minor)'")
+python_version = "%s.%s" % (py_major.strip(), py_minor.strip())
+cmd = "maturin list-python"
+output = self._run(cmd)
+self.assertRegex(output, r"^ 1 python interpreter found:\n")
+self.assertRegex(
+output,
+r" - CPython %s (.+)/usr/bin/python%s$" % (python_version, 
python_version),
+)
-- 
2.34.1


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



[OE-core] [PATCH 5/6] oe-selfest: add maturn runtime (testimage) test

2023-12-07 Thread Tim Orling
Basic smoke test for maturin to test the 'maturin list-python' case.

[YOCTO #15312]

Signed-off-by: Tim Orling 
---
 meta/lib/oeqa/runtime/cases/maturin.py | 23 +++
 1 file changed, 23 insertions(+)
 create mode 100644 meta/lib/oeqa/runtime/cases/maturin.py

diff --git a/meta/lib/oeqa/runtime/cases/maturin.py 
b/meta/lib/oeqa/runtime/cases/maturin.py
new file mode 100644
index 000..b9a3b4acbcd
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/maturin.py
@@ -0,0 +1,23 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+import os
+
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.depends import OETestDepends
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class MaturinTest(OERuntimeTestCase):
+@OETestDepends(['ssh.SSHTest.test_ssh', 'python.PythonTest.test_python3'])
+@OEHasPackage(['python3-maturin'])
+def test_maturin_list_python(self):
+status, output = self.target.run("maturin list-python")
+self.assertEqual(status, 0)
+_, py_major = self.target.run("python3 -c 'import sys; 
print(sys.version_info.major)'")
+_, py_minor = self.target.run("python3 -c 'import sys; 
print(sys.version_info.minor)'")
+python_version = "%s.%s" % (py_major, py_minor)
+self.assertEqual(output, " 1 python interpreter found:\n"
+ " - CPython %s at /usr/bin/python%s" % 
(python_version, python_version))
-- 
2.34.1


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



[OE-core] [PATCH 3/6] classes-recipe: add python_maturin.bbclass

2023-12-07 Thread Tim Orling
maturin is a replacement for setuptools_rust and another "backend" for
building python wheels.

[YOCTO #15312]

Signed-off-by: Tim Orling 
---
 meta/classes-recipe/python_maturin.bbclass | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 meta/classes-recipe/python_maturin.bbclass

diff --git a/meta/classes-recipe/python_maturin.bbclass 
b/meta/classes-recipe/python_maturin.bbclass
new file mode 100644
index 000..c39d6c6e37d
--- /dev/null
+++ b/meta/classes-recipe/python_maturin.bbclass
@@ -0,0 +1,17 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+inherit python_pyo3 python_setuptools_build_meta
+
+DEPENDS += "python3-maturin-native"
+
+python_maturin_do_configure() {
+python_pyo3_do_configure
+cargo_common_do_configure
+python_pep517_do_configure
+}
+
+EXPORT_FUNCTIONS do_configure
-- 
2.34.1


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



[OE-core] [PATCH 2/6] python3-maturin: add v1.3.2

2023-12-07 Thread Tim Orling
Build and publish crates with pyo3, rust-cpython, cffi and uniffi bindings
as well as rust binaries as python packages.

This project is meant as a zero configuration replacement for setuptools-rust
and milksnake. It supports building wheels for python 3.7+ on windows, linux,
mac and freebsd, can upload them to pypi and has basic pypy and graalpy support.

https://github.com/pyo3/maturin

[YOCTO #15312]

Signed-off-by: Tim Orling 
---
 meta/conf/distro/include/maintainers.inc  |   1 +
 .../python/python3-maturin-crates.inc | 572 ++
 .../python/python3-maturin_1.3.2.bb   |  40 ++
 3 files changed, 613 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-maturin-crates.inc
 create mode 100644 meta/recipes-devtools/python/python3-maturin_1.3.2.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 2c59db56ac6..8fe1efd3288 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -653,6 +653,7 @@ RECIPE_MAINTAINER:pn-python3-magic = "Joshua Watt 
"
 RECIPE_MAINTAINER:pn-python3-mako = "Trevor Gamblin "
 RECIPE_MAINTAINER:pn-python3-markdown = "Alexander Kanavin 
"
 RECIPE_MAINTAINER:pn-python3-markupsafe = "Richard Purdie 
"
+RECIPE_MAINTAINER:pn-python3-maturin = "Tim Orling "
 RECIPE_MAINTAINER:pn-python3-more-itertools = "Tim Orling 
"
 RECIPE_MAINTAINER:pn-python3-ndg-httpsclient = "Tim Orling 
"
 RECIPE_MAINTAINER:pn-python3-numpy = "Trevor Gamblin "
diff --git a/meta/recipes-devtools/python/python3-maturin-crates.inc 
b/meta/recipes-devtools/python/python3-maturin-crates.inc
new file mode 100644
index 000..2b6949ee496
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-maturin-crates.inc
@@ -0,0 +1,572 @@
+# Autogenerated with 'bitbake -c update_crates python3-maturin'
+
+# from Cargo.lock
+SRC_URI += " \
+crate://crates.io/adler/1.0.2 \
+crate://crates.io/ahash/0.7.7 \
+crate://crates.io/aho-corasick/0.7.20 \
+crate://crates.io/anstream/0.3.2 \
+crate://crates.io/anstyle/1.0.1 \
+crate://crates.io/anstyle-parse/0.2.1 \
+crate://crates.io/anstyle-query/1.0.0 \
+crate://crates.io/anstyle-wincon/1.0.2 \
+crate://crates.io/anyhow/1.0.75 \
+crate://crates.io/autocfg/1.1.0 \
+crate://crates.io/base64/0.13.1 \
+crate://crates.io/base64/0.21.2 \
+crate://crates.io/bitflags/1.3.2 \
+crate://crates.io/block-buffer/0.10.4 \
+crate://crates.io/bstr/1.6.0 \
+crate://crates.io/byteorder/1.4.3 \
+crate://crates.io/bytes/1.4.0 \
+crate://crates.io/bytesize/1.2.0 \
+crate://crates.io/bzip2/0.4.4 \
+crate://crates.io/bzip2-sys/0.1.11+1.0.8 \
+crate://crates.io/cab/0.4.1 \
+crate://crates.io/camino/1.1.6 \
+crate://crates.io/cargo-config2/0.1.9 \
+crate://crates.io/cargo-options/0.6.0 \
+crate://crates.io/cargo-platform/0.1.3 \
+crate://crates.io/cargo-xwin/0.14.8 \
+crate://crates.io/cargo-zigbuild/0.17.5 \
+crate://crates.io/cargo_metadata/0.18.0 \
+crate://crates.io/cbindgen/0.26.0 \
+crate://crates.io/cc/1.0.82 \
+crate://crates.io/cfb/0.7.3 \
+crate://crates.io/cfg-expr/0.15.4 \
+crate://crates.io/cfg-if/1.0.0 \
+crate://crates.io/charset/0.1.3 \
+crate://crates.io/chumsky/0.9.2 \
+crate://crates.io/clap/4.1.14 \
+crate://crates.io/clap_builder/4.1.14 \
+crate://crates.io/clap_complete/4.2.3 \
+crate://crates.io/clap_complete_command/0.5.1 \
+crate://crates.io/clap_complete_fig/4.2.0 \
+crate://crates.io/clap_complete_nushell/0.1.11 \
+crate://crates.io/clap_derive/4.1.14 \
+crate://crates.io/clap_lex/0.4.1 \
+crate://crates.io/cli-table/0.4.7 \
+crate://crates.io/colorchoice/1.0.0 \
+crate://crates.io/configparser/3.0.2 \
+crate://crates.io/console/0.15.7 \
+crate://crates.io/content_inspector/0.2.4 \
+crate://crates.io/core-foundation/0.9.3 \
+crate://crates.io/core-foundation-sys/0.8.4 \
+crate://crates.io/cpufeatures/0.2.9 \
+crate://crates.io/crc32fast/1.3.2 \
+crate://crates.io/crossbeam-channel/0.5.8 \
+crate://crates.io/crossbeam-deque/0.8.3 \
+crate://crates.io/crossbeam-epoch/0.9.15 \
+crate://crates.io/crossbeam-utils/0.8.16 \
+crate://crates.io/crypto-common/0.1.6 \
+crate://crates.io/data-encoding/2.4.0 \
+crate://crates.io/dialoguer/0.11.0 \
+crate://crates.io/diff/0.1.13 \
+crate://crates.io/digest/0.10.7 \
+crate://crates.io/dirs/5.0.1 \
+crate://crates.io/dirs-sys/0.4.1 \
+crate://crates.io/dissimilar/1.0.7 \
+crate://crates.io/dunce/1.0.4 \
+crate://crates.io/either/1.9.0 \
+crate://crates.io/encode_unicode/0.3.6 \
+crate://crates.io/encoding_rs/0.8.32 \
+crate://crates.io/errno/0.3.2 \
+crate://crates.io/errno-dragonfly/0.1.2 \
+crate://crates.io/expect-test/1.4.1 \
+c

[OE-core] [PATCH 1/6] python3-setuptools-rust: BBCLASSEXTEND + nativesdk

2023-12-07 Thread Tim Orling
We would like to build python3-maturin for nativesdk use
and nativesdk-python3-setuptools-rust is a dependency.

Signed-off-by: Tim Orling 
---
 meta/recipes-devtools/python/python3-setuptools-rust_1.8.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-setuptools-rust_1.8.1.bb 
b/meta/recipes-devtools/python/python3-setuptools-rust_1.8.1.bb
index db5c6c449c3..a91ee23ca0c 100644
--- a/meta/recipes-devtools/python/python3-setuptools-rust_1.8.1.bb
+++ b/meta/recipes-devtools/python/python3-setuptools-rust_1.8.1.bb
@@ -33,4 +33,4 @@ RDEPENDS:${PN} += " \
 python3-wheel \
 "
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
-- 
2.34.1


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



[OE-core] [PATCH 0/6] Add 'maturin' python backend support

2023-12-07 Thread Tim Orling
We are increasingly seeing Rust extensions for Python added in the
ecosystem. The current best practices approach has moved from using
'setuptools-rust' to using 'maturin'.

* Add python3-maturin, including 'native' and 'nativesdk' support.
* Add a 'python_maturin' bbclass for the PEP-517 backend.
* Add recipetool support for the 'maturin' PEP-517 backend.
* Add a very basic 'maturin list-python' smoke test added to oeqa for
  both 'runtime' (-c testimage) and 'sdk' (-c testsdk).

The following changes since commit 70ad9b9b309575134834757468cb32c9e3b87448:

  bitbake: hashserv: sqlite: Ensure sync propagates to database connections 
(2023-12-04 22:36:09 +)

are available in the Git repository at:

  https://git.yoctoproject.org/poky-contrib timo/maturin_1.3.2
  https://git.yoctoproject.org/poky-contrib/log/?h=timo/maturin_1.3.2

Tim Orling (6):
  python3-setuptools-rust: BBCLASSEXTEND + nativesdk
  python3-maturin: add v1.3.2
  classes-recipe: add python_maturin.bbclass
  recipetool: add python_maturin support
  oe-selfest: add maturn runtime (testimage) test
  python3-maturin: add sdk (testsdk) test case

 meta/classes-recipe/python_maturin.bbclass|  17 +
 meta/conf/distro/include/maintainers.inc  |   1 +
 meta/lib/oeqa/runtime/cases/maturin.py|  23 +
 meta/lib/oeqa/sdk/cases/maturin.py|  33 +
 meta/lib/oeqa/selftest/cases/recipetool.py|  34 ++
 .../python/python3-maturin-crates.inc | 572 ++
 .../python/python3-maturin_1.3.2.bb   |  40 ++
 .../python/python3-setuptools-rust_1.8.1.bb   |   2 +-
 .../lib/recipetool/create_buildsys_python.py  |   1 +
 9 files changed, 722 insertions(+), 1 deletion(-)
 create mode 100644 meta/classes-recipe/python_maturin.bbclass
 create mode 100644 meta/lib/oeqa/runtime/cases/maturin.py
 create mode 100644 meta/lib/oeqa/sdk/cases/maturin.py
 create mode 100644 meta/recipes-devtools/python/python3-maturin-crates.inc
 create mode 100644 meta/recipes-devtools/python/python3-maturin_1.3.2.bb

-- 
2.34.1


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



Re: [OE-core] [PATCH 2/4] python3-qemu-qmp: Add recipe

2023-12-07 Thread Tim Orling
This will also need a maintainer entry in:
https://git.openembedded.org/openembedded-core/tree/meta/conf/distro/include/maintainers.inc

On Thu, Dec 7, 2023 at 6:36 AM Eilís 'pidge' Ní Fhlannagáin <
pi...@baylibre.com> wrote:

> From: Ross Burton 
>
> Add a recipe for python QEMU Monitor Protocol. This will be needed for
> qemu screendumps for qemu screendump testing.
>
> Signed-off-by: Ross Burton 
> Signed-off-by: Eilís 'pidge' Ní Fhlannagáin 
> ---
>  .../python/python3-qemu-qmp_0.0.2.bb   | 14 ++
>  1 file changed, 14 insertions(+)
>  create mode 100644 meta/recipes-devtools/python/python3-qemu-qmp_0.0.2.bb
>
> diff --git a/meta/recipes-devtools/python/python3-qemu-qmp_0.0.2.bb
> b/meta/recipes-devtools/python/python3-qemu-qmp_0.0.2.bb
> new file mode 100644
> index 000..faa0cc69738
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3-qemu-qmp_0.0.2.bb
> @@ -0,0 +1,14 @@
> +SUMMARY = "asyncio library for communicating with QEMU Monitor Protocol
> (QMP) servers"
> +LICENSE = "LGPLv2+ & GPLv2"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=4cf66a4984120007c9881cc871cf49db \
> +
> file://LICENSE_GPL2;md5=441c28d2cf86e15a37fa47e15a72fbac"
> +
> +SRC_URI[sha256sum] =
> "c918e9e3ae09abdf70c7ece67637a93ac4583d940bbf48d24ff77987f74f1b8b"
> +
> +inherit pypi python_setuptools_build_meta
> +
> +PYPI_PACKAGE = "qemu.qmp"
> +
> +DEPENDS += "python3-setuptools-scm-native"
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.34.1
>
>
> 
>
>

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



[OE-core] [PATCH] python3-pygments: upgrade 2.16.1 -> 2.17.2

2023-12-04 Thread Tim Orling
* Drop redundant DEPENDS
* PEP-517 backend is now hatchling -> inherit python_hatchling
* Drop PYPI_PACKAGE as upstream download filename is now "pygments"
* Add UPSTREAM_CHECK_PYPI_PACKAGE since upstream path is still "/Pygments/"

https://github.com/pygments/pygments/blob/2.17.2/CHANGES

Signed-off-by: Tim Orling 
---
Tested basic "python3; import pygments" on core-image-full-cmdline for 
qemux86-64
Tested 'devtool latest-version python3-pygments'

 ...-pygments_2.16.1.bb => python3-pygments_2.17.2.bb} | 11 +++
 1 file changed, 3 insertions(+), 8 deletions(-)
 rename meta/recipes-devtools/python/{python3-pygments_2.16.1.bb => 
python3-pygments_2.17.2.bb} (61%)

diff --git a/meta/recipes-devtools/python/python3-pygments_2.16.1.bb 
b/meta/recipes-devtools/python/python3-pygments_2.17.2.bb
similarity index 61%
rename from meta/recipes-devtools/python/python3-pygments_2.16.1.bb
rename to meta/recipes-devtools/python/python3-pygments_2.17.2.bb
index 240d01d0dfa..8b98064b784 100644
--- a/meta/recipes-devtools/python/python3-pygments_2.16.1.bb
+++ b/meta/recipes-devtools/python/python3-pygments_2.17.2.bb
@@ -4,15 +4,10 @@ HOMEPAGE = "http://pygments.org/;
 LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=36a13c90514e2899f1eba7f41c3ee592"
 
-inherit python_setuptools_build_meta
-SRC_URI[sha256sum] = 
"1daff0494820c69bc8941e407aa20f577374ee88364ee10a98fdbe0aece96e29"
-
-DEPENDS += "\
-${PYTHON_PN} \
-"
-
-PYPI_PACKAGE = "Pygments"
+inherit python_hatchling
+SRC_URI[sha256sum] = 
"da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367"
 
+UPSTREAM_CHECK_PYPI_PACKAGE = "Pygments"
 inherit pypi
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.34.1


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



  1   2   3   4   5   6   7   8   9   10   >