Hi Richard,

This is caused by the zstd C extension (lib-dynload/zstd.*.so) not being 
included in python3-compression. 

I have a patch to add it to python3-compression:

https://lists.openembedded.org/g/openembedded-core/message/233857

I've verified the ptests pass with this fix applied.

Thanks,
Jiaying

-----Original Message-----
From: Richard Purdie <[email protected]> 
Sent: Tuesday, March 24, 2026 4:40 PM
To: Song, Jiaying (CN) <[email protected]>; 
[email protected]; [email protected]
Subject: Re: [OE-core] [PATCH v2] python3-pyzstd: Upgrade 0.17.0 -> 0.19.1

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know 
the content is safe.

On Mon, 2026-03-23 at 11:11 +0800, Song, Jiaying (CN) via 
lists.openembedded.org wrote:
> From: Jiaying Song <[email protected]>
>
> Changelog:https://github.com/Rogdham/pyzstd/blob/master/CHANGELOG.md
>
> Recipe changes:
> - Remove 0001-Remove-setuptools-version-limit-of-74.patch (no longer 
> needed)
> - Switch from python_setuptools_build_meta to python_hatchling
> - Add python3-hatch-vcs-native to DEPENDS
> - Remove obsolete do_configure:append:arm:toolchain-clang (setup.py no 
> longer exists)
>
> Signed-off-by: Jiaying Song <[email protected]>
> ---
>  ...emove-setuptools-version-limit-of-74.patch | 27 
> -------------------  ...std_0.17.0.bb => python3-pyzstd_0.19.1.bb} | 
> 11 +++-----
>  2 files changed, 4 insertions(+), 34 deletions(-)  delete mode 100644 
> meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-ver
> sion-limit-of-74.patch  rename 
> meta/recipes-devtools/python/{python3-pyzstd_0.17.0.bb => 
> python3-pyzstd_0.19.1.bb} (53%)
>
> diff --git 
> a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-v
> ersion-limit-of-74.patch 
> b/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-v
> ersion-limit-of-74.patch
> deleted file mode 100644
> index f2910322ff..0000000000
> --- 
> a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-v
> ersion-limit-of-74.patch
> +++ /dev/null
> @@ -1,27 +0,0 @@
> -From bc9b975c9f41e43481a2eb0623b4180926baecec Mon Sep 17 00:00:00 
> 2001
> -From: Khem Raj <[email protected]>
> -Date: Wed, 9 Apr 2025 14:38:31 -0700
> -Subject: [PATCH] Remove setuptools version limit of '74'
> -
> -Upstream sticks to 0.74 since setuptools have dropped msvc9compiler 
> -support beyond that which is needed for python 3.9 on windows. We -do 
> not have this problem on Linux
> -
> -Upstream-Status: Inappropriate [OE-specific]
> -Signed-off-by: Khem Raj <[email protected]>
> ----
> - pyproject.toml | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -diff --git a/pyproject.toml b/pyproject.toml -index dd885e4..5d4d511 
> 100644
> ---- a/pyproject.toml
> -+++ b/pyproject.toml
> -@@ -1,6 +1,6 @@
> - [build-system]
> - # setuptools 64+ support --build-option
> - # setuptools 74+ drops distutils.msvc9compiler required for Python 
> 3.9 under Windows --requires = ["setuptools>=64,<74"]
> -+requires = ["setuptools>=64"]
> - backend-path = ["build_script"]
> - build-backend = "pyzstd_pep517"
> diff --git a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb 
> b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> similarity index 53%
> rename from meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
> rename to meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> index af7069b6ed..ccf37eacf3 100644
> --- a/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
> +++ b/meta/recipes-devtools/python/python3-pyzstd_0.19.1.bb
> @@ -9,12 +9,9 @@ LIC_FILES_CHKSUM = 
> "file://LICENSE;md5=aedb5a2679cd1552fb61c181ef974b9e"
>
>  PYPI_PACKAGE = "pyzstd"
>
> -SRC_URI += "file://0001-Remove-setuptools-version-limit-of-74.patch"
> -SRC_URI[sha256sum] = 
> "d84271f8baa66c419204c1dd115a4dec8b266f8a2921da21b81764fa208c1db6"
> +SRC_URI[sha256sum] = 
> "36723d3c915b3981de9198d0a2c82b2f5fe3eaa36e4d8d586937830a8afc7d72"
>
> -inherit pypi python_setuptools_build_meta ptest-python-pytest
> +inherit pypi python_hatchling ptest-python-pytest
> +
> +DEPENDS += "python3-hatch-vcs-native"
>
> -# clang-16 with -flto segfaults on arm, therefore ignore flto for now
> -do_configure:append:arm:toolchain-clang() {
> -    sed -i -e "s|'-flto'|''|" ${S}/setup.py
> -}

The ptests aren't quite working yet:

https://valkyrie.yocto.io/pub/non-release/20260324-50/testresults/qemux86-64-ptest/python3-pyzstd.log

Cheers,

Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#233858): 
https://lists.openembedded.org/g/openembedded-core/message/233858
Mute This Topic: https://lists.openembedded.org/mt/118459472/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to