Fix and adjust ukify packaging
v4 cover Fix and adjust ukify packaging
This packages up 'ukify' from systemd to be used as an, optional, stand-alone tool to generate and inspect Unified Kernel Images (UKIs) on the target. The original plan was to add this to sytemd-boot, as systemd-boot-native already handles 'ukify', but the recent systemd upgrade snuck in 'ukify' under the radar. So package it up properly from inside the systemd recipe.
Changes since v3:
* Add SUMMARY to python3-pyzstd, as suggested by Mathieu Dubois-Briand
* Add a maintainer entry for python3-pyzstd, as suggested by Mathieu Dubois-Briand
Changes since v2:
* Add python3-pyzstd to ptest-packagelist.inc, as suggested by Mathieu Dubois-Briand
Changes since v1:
* Adjusted pyzstd patch to not specify an upper limit to the setuptools version, as suggested by Alexander Kanavin.
Koen Kooi (2):
python3-pyzstd: import 0.17.0 from meta-python
systemd: package 'ukify' seperately
meta/recipes-core/systemd/systemd_258.1.bb | 19 +++++++++++++ ...emove-setuptools-version-limit-of-74.patch | 27 +++++++++++++++++++ .../python/python3-pyzstd_0.17.0.bb | 19 +++++++++++++ 3 files changed, 65 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
Signature · 1 line
2.34.1
PATCH v4 1/4 python3-pyzstd: import 0.17.0 from meta-python
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.
---
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
meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch new file +27 -0
@@ -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"
meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +20 -0
@@ -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 +}
Signature · 1 line
2.34.1
Re: [OE-core] [PATCH v4 1/4] python3-pyzstd: import 0.17.0 from meta-python
Hi Koen
It's now applied to oe-core, we need it removed from meta-python, would you mind cooking a patch for it ?
Quoted 108 lines · Koen Kooi via lists.openembedded.org
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.bbdiff --git
a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patchb/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patchnew file mode 100644
index 0000000000..f2910322ff
---/dev/null
+++b/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patchmeta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch new file +23
-0@@ -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.9under Windows
+-requires = ["setuptools>=64,<74"]
++requires = ["setuptools>=64"]
+ backend-path = ["build_script"]
+ build-backend = "pyzstd_pep517"meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +1
-0@@ -0,0 +1,20 @@ +DESCRIPTION = "Pyzstd module provides classes and functions forcompressing and \
+decompressing data, using Facebook’s Zstandard (or zstd as short name) algorithm."meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +11
-0+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"meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +7
-1+ +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 (#228222):
https://lists.openembedded.org/g/openembedded-core/message/228222
Mute This Topic: https://lists.openembedded.org/mt/116858017/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] [PATCH v4 1/4] python3-pyzstd: import 0.17.0 from meta-python
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: upgrade 0.17.0 -> 0.18.0
https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=332072205f3ea5dcefe72cc2fe89b2fdbf7ee330
python3-backports-zstd: Add recipe
https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=0b5f2ba62c32ab23bda52e54df2d144fc270cf50
python3-pyzstd: Add ptest dependency on backports.zstd
https://git.openembedded.org/meta-openembedded/commit/meta-python/recipes-devtools/python?id=d8e7190fd3de3807599ec8fafbd23b8bf68100a1
python3-pyzstd: Remove setup.py tweak for lto/clang
Koen: will you please take care of them?
Cheers,
Quoted 105 lines · Khem Raj via lists.openembedded.org
Hi Koen
It's now applied to oe-core, we need it removed from meta-python, would you mind cooking a patch for it ?
Quoted 85 lines · Koen Kooi via lists.openembedded.org
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.bbmeta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch new file +27
-0@@ -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"meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +20
-1@@ -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 +} --Quoted 5 lines
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#228472): https://lists.openembedded.org/g/openembedded-core/message/228472
Mute This Topic: https://lists.openembedded.org/mt/116858017/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] [PATCH v4 1/4] python3-pyzstd: import 0.17.0 from meta-python
Quoted 26 lines · Martin Jansa
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.0https://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 recipehttps://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
Quoted 6 lines
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>:
Removesetup.pytweak 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
Quoted 128 lines
Koen: will you please take care of them?
Cheers,
Quoted 4 lines · Khem Raj via lists.openembedded.org
Hi Koen
It's now applied to oe-core, we need it removed from meta-python, would
you mind cooking a patch for it ?
Quoted 2 lines
On Fri, Dec 19, 2025 at 4:01 AM Koen Kooi via lists.openembedded.org
Quoted 4 lines · <[email protected]> wrote:
Quoted 4 lines
From the upstream website:
Pyzstd module provides classes and functions for compressing and decompressing data, using Facebook's Zstandard (or zstd asshort name)
Quoted 15 lines
Quoted 15 lines
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.Quoted 4 lines
Quoted 4 lines
...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.patchQuoted 1 line
Quoted 1 line
create mode 100644 meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
Quoted 2 lines
Quoted 2 lines
diff --git
a/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patchb/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patchQuoted 4 lines
Quoted 4 lines
new file mode 100644
index 0000000000..f2910322ff
---/dev/null
+++
b/meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patchQuoted 16 lines
Quoted 16 lines
meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch new file +15
-0@@ -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(-) +Quoted 8 lines
meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch
Quoted 8 lines
meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch new file +8
-0+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 Python3.9 under Windows
Quoted 5 lines
Review
Quoted 5 lines
meta/recipes-devtools/python/python3-pyzstd/0001-Remove-setuptools-version-limit-of-74.patch new file +4
-0+-requires = ["setuptools>=64,<74"] ++requires = ["setuptools>=64"] + backend-path = ["build_script"] + build-backend = "pyzstd_pep517"(quoted diff) +0
-0b/meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
Quoted 6 lines
meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb line 1
Quoted 6 lines
new file mode 100644
index 0000000000..af7069b6edmeta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +1
-0@@ -0,0 +1,20 @@ +DESCRIPTION = "Pyzstd module provides classes and functions forcompressing and \
Quoted 1 line
meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb line 2
Quoted 1 line
meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +1
-0+decompressing data, using Facebook’s Zstandard (or zstd as short name)algorithm."
Quoted 6 lines
meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
Quoted 6 lines
meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +6
-0+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"
Quoted 5 lines
meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb
Quoted 5 lines
meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +5
-0+ +PYPI_PACKAGE = "pyzstd" + +SRC_URI += "file://0001-Remove-setuptools-version-limit-of-74.patch" +SRC_URI[sha256sum] ="
d84271f8baa66c419204c1dd115a4dec8b266f8a2921da21b81764fa208c1db6"Quoted 9 lines
Quoted 9 lines
meta/recipes-devtools/python/python3-pyzstd_0.17.0.bb new file +7
-1+ +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
Quoted 8 lines
Quoted 4 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#228472):https://lists.openembedded.org/g/openembedded-core/message/228472
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/116858017/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
PATCH v4 2/4 systemd: package 'ukify' seperately
In reply to Koen KooiThe upgrade to 258.x started shipping 'ukify' by default, but didn't adjust the runtime dependencies. Add the python modules 'ukify' imports and split out the package to avoid dragging in gigabytes of python just plain systemd.
Succesfully tested at runtime on:
* RB1-core-kit, using u-boot EFI mode + systemd-boot
* RB3gen2-core-kit, using Qualcomm UEFI + systemd-boot
* Rubikpi3, using Qualcomm UEFI and type 2 boot
* Beagleboneblack using u-boot UFI mode + systemd-boot
---
No changes since v1/v2/v3
meta/recipes-core/systemd/systemd_258.1.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
meta/recipes-core/systemd/systemd_258.1.bb +19 -0
@@ -408,6 +408,7 @@ PACKAGE_BEFORE_PN += "\ ${PN}-networkd \ ${PN}-rpm-macros \ ${PN}-udev-rules \ + ${PN}-ukify \ ${PN}-vconsole-setup \ ${PN}-zsh-completion \ libsystemd-shared \
@@ -630,6 +631,24 @@ FILES:${PN}-udev-rules = "\ ${nonarch_libdir}/udev/rules.d/99-systemd.rules \ " +SUMMARY:${PN}-ukify = "Create and inspect Unified Kernel Images (UKIs)" +DESCRIPTION:${PN}-ukify = "ukify is a tool whose primary purpose is to combine components (usually a kernel, an initrd, and a UEFI boot stub) to create a Unified Kernel Image (UKI) — a PE binary that can be executed by the firmware to start the embedded linux kernel." +FILES:${PN}-ukify = "${bindir}/ukify" +RDEPENDS:${PN}-ukify = " \ + python3-compression \ + python3-core \ + python3-crypt \ + python3-datetime \ + python3-io \ + python3-json \ + python3-netclient \ + python3-pefile \ + python3-pprint \ + python3-pydoc \ + python3-pyzstd \ + python3-shell \ + " + CONFFILES:${PN} = "${sysconfdir}/systemd/coredump.conf \ ${sysconfdir}/systemd/journald.conf \ ${sysconfdir}/systemd/logind.conf \
Signature · 1 line
2.34.1
Re: [OE-core] [PATCH v4 2/4] systemd: package 'ukify' seperately
Quoted 33 lines · Koen Kooi via lists.openembedded.org
The upgrade to 258.x started shipping 'ukify' by default, but didn't adjust the runtime dependencies. Add the python modules 'ukify' imports and split out the package to avoid dragging in gigabytes of python just plain systemd.
Succesfully tested at runtime on:
* RB1-core-kit, using u-boot EFI mode + systemd-boot
* RB3gen2-core-kit, using Qualcomm UEFI + systemd-boot
* Rubikpi3, using Qualcomm UEFI and type 2 boot
* Beagleboneblack using u-boot UFI mode + systemd-bootSigned-off-by Koen Kooi <[email protected]>---
No changes since v1/v2/v3
meta/recipes-core/systemd/systemd_258.1.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)meta/recipes-core/systemd/systemd_258.1.bb +1
-0@@ -408,6 +408,7 @@ PACKAGE_BEFORE_PN += "\ ${PN}-networkd \ ${PN}-rpm-macros \ ${PN}-udev-rules \ + ${PN}-ukify \ ${PN}-vconsole-setup \ ${PN}-zsh-completion \ libsystemd-shared \
meta/recipes-core/systemd/systemd_258.1.bb FILES:${PN}-udev-rules = "\ · line 636
Quoted 6 lines
meta/recipes-core/systemd/systemd_258.1.bb +3
-0@@ -630,6 +631,24 @@ FILES:${PN}-udev-rules = "\ ${nonarch_libdir}/udev/rules.d/99-systemd.rules \ " +SUMMARY:${PN}-ukify = "Create and inspect Unified Kernel Images (UKIs)" +DESCRIPTION:${PN}-ukify = "ukify is a tool whose primary purpose is to combine components (usually a kernel, an initrd, and a UEFI boot stub) to create a Unified Kernel Image (UKI) — a PE binary that can be executed by the firmware to start the embedded linux kernel." +FILES:${PN}-ukify = "${bindir}/ukify"
Is it correct that ${PN} contains ukify symlink in:
systemd/258.1/packages-split/systemd/usr/lib/systemd/ukify
so ${PN}-ukify always ends in RDEPENDS:${PN}?
systemd/258.1/temp/log.do_package:
...
DEBUG: systemd contains dangling link /usr/bin/ukify
DEBUG: target found in systemd-ukify
...
and now it pulls python3 into all images with systemd.
Quoted 30 lines
meta/recipes-core/systemd/systemd_258.1.bb +15
-1+RDEPENDS:${PN}-ukify = " \ + python3-compression \ + python3-core \ + python3-crypt \ + python3-datetime \ + python3-io \ + python3-json \ + python3-netclient \ + python3-pefile \ + python3-pprint \ + python3-pydoc \ + python3-pyzstd \ + python3-shell \ + " + CONFFILES:${PN} = "${sysconfdir}/systemd/coredump.conf \ ${sysconfdir}/systemd/journald.conf \ ${sysconfdir}/systemd/logind.conf \ --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#228223): https://lists.openembedded.org/g/openembedded-core/message/228223
Mute This Topic: https://lists.openembedded.org/mt/116858018/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH v4 3/4 ptest-packagelists.inc: add python3-pyzstd
In reply to Koen Kooi---
Changes since v3:
* None
First added in v3
meta/conf/distro/include/ptest-packagelists.inc | 1 + 1 file changed, 1 insertion(+)
meta/conf/distro/include/ptest-packagelists.inc +1 -0
@@ -76,6 +76,7 @@ PTESTS_FAST = "\ python3-pyasn1 \ python3-pytz \ python3-pyyaml \ + python3-pyzstd \ python3-rpds-py \ python3-trove-classifiers \ python3-uritools \
Signature · 1 line
2.34.1
PATCH v4 4/4 maintainers.inc: add myself as maintainer for python3-pyzstd
In reply to Koen Kooi---
First added in v4
meta/conf/distro/include/maintainers.inc | 1 + 1 file changed, 1 insertion(+)
meta/conf/distro/include/maintainers.inc +1 -0
@@ -704,6 +704,7 @@ RECIPE_MAINTAINER:pn-python3-pytest = "Trevor Gamblin <[email protected]>" RECIPE_MAINTAINER:pn-python3-pytest-subtests = "Tim Orling <[email protected]>" RECIPE_MAINTAINER:pn-python3-pytz = "Tim Orling <[email protected]>" RECIPE_MAINTAINER:pn-python3-pyyaml = "Tim Orling <[email protected]>" +RECIPE_MAINTAINER:pn-python3-pyzstd = "Koen Kooi <[email protected]>" RECIPE_MAINTAINER:pn-python3-rdflib = "Wang Mingyu <[email protected]>" RECIPE_MAINTAINER:pn-python3-referencing = "Trevor Gamblin <[email protected]>" RECIPE_MAINTAINER:pn-python3-requests = "Tim Orling <[email protected]>"
Signature · 1 line
2.34.1