On Fri, Dec 26, 2025 at 2:46 AM Martin Jansa <[email protected]> wrote:

> oe-core imported 0.17.0 version which fails to build with lto while
> meta-oe had 0.19.0 which doesn't fail
>
> it wasn't detected before, because of the overlayed version in
> meta-oe, removed by Khem now:
>
> https://git.openembedded.org/meta-openembedded/commit/?id=dbc5ef5e12e49c14546be301421a7ea9cb998699
>
> oe-core is missing these pyzstd changes from meta-oe:
>
>
> https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=abce3f440f46687a85cd04a40b61a5c38eb2bdcb
> python3-pyzstd
> <https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=abce3f440f46687a85cd04a40b61a5c38eb2bdcbpython3-pyzstd>:
> upgrade 0.17.0 -> 0.18.0
>
> https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=332072205f3ea5dcefe72cc2fe89b2fdbf7ee330
> python3-backports-zstd
> <https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=332072205f3ea5dcefe72cc2fe89b2fdbf7ee330python3-backports-zstd>:
> Add recipe
>
> https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=0b5f2ba62c32ab23bda52e54df2d144fc270cf50
> python3-pyzstd
> <https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=0b5f2ba62c32ab23bda52e54df2d144fc270cf50python3-pyzstd>:
> Add ptest dependency on backports.zstd
>
> https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=d8e7190fd3de3807599ec8fafbd23b8bf68100a1
> python3-pyzstd
> <https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=d8e7190fd3de3807599ec8fafbd23b8bf68100a1python3-pyzstd>:
> Remove setup.py tweak for lto/clang
>
>
and there might be more, e.g. python3-mypy would be needed to brought in as
well for python3-backports-zstd ptests to pass and it might need more


> Koen: will you please take care of them?
>
> Cheers,
>
> On Tue, Dec 23, 2025 at 4:39 PM Khem Raj via lists.openembedded.org
> <[email protected]> wrote:
> >
> > Hi Koen
> >
> > It's now applied to oe-core, we need it removed from meta-python, would
> you mind cooking a patch for it ?
> >
> > On Fri, Dec 19, 2025 at 4:01 AM Koen Kooi via lists.openembedded.org
> <[email protected]> wrote:
> >>
> >> From the upstream website:
> >>         Pyzstd module provides classes and functions for compressing and
> >>         decompressing data, using Facebook's Zstandard (or zstd as
> short name)
> >>         algorithm.
> >>
> >> This recipe is being moved over for systemd 258.x, the 'ukify' tool
> >> depends on this.
> >>
> >> Signed-off-by: Koen Kooi <[email protected]>
> >> ---
> >> Changes since v3:
> >>  * Added SUMMARY
> >> Changes since v2:
> >>  * No changes
> >> Changes since v1:
> >>  * Adjusted pyzstd patch to not specify an upper limit to the setuptools
> >>    version, as suggested by Alexander Kanavin.
> >>
> >>  ...emove-setuptools-version-limit-of-74.patch | 27 +++++++++++++++++++
> >>  .../python/python3-pyzstd_0.17.0.bb           | 20 ++++++++++++++
> >>  2 files changed, 47 insertions(+)
> >>  create mode 100644
> meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> >>  create mode 100644 meta/recipes-devtools/python/
> python3-pyzstd_0.17.0.bb
> >>
> >> diff --git
> a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> b/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> >> new file mode 100644
> >> index 0000000000..f2910322ff
> >> --- /dev/null
> >> +++
> b/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
> >> @@ -0,0 +1,27 @@
> >> +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.17.0.bb
> >> new file mode 100644
> >> index 0000000000..af7069b6ed
> >> --- /dev/null
> >> +++ b/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
> >> @@ -0,0 +1,20 @@
> >> +DESCRIPTION = "Pyzstd module provides classes and functions for
> compressing and \
> >> +decompressing data, using Facebook’s Zstandard (or zstd as short name)
> algorithm."
> >> +SUMMARY = "Python bindings to Zstandard (zstd) compression library"
> >> +HOMEPAGE = "https://github.com/animalize/pyzstd";
> >> +SECTION = "devel/python"
> >> +
> >> +LICENSE = "BSD-3-Clause"
> >> +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"
> >> +
> >> +inherit pypi python_setuptools_build_meta ptest-python-pytest
> >> +
> >> +# 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
> >> +}
> >> --
> >> 2.34.1
> >>
> >>
> >>
> >>
> >
> > 
> >
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#228613): 
https://lists.openembedded.org/g/openembedded-core/message/228613
Mute This Topic: https://lists.openembedded.org/mt/116858017/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to