Skip to contentSkip to conversation

systemd: fix efi dependency

PATCH Jose Quaresma 2 participants 4 messages Aug 8, 2023 – Aug 9, 2023 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Ping!

Jose Quaresma via lists.openembedded.org <quaresma.jose= [email protected]> escreveu no dia segunda, 7/08/2023 à(s) 15:26:

Quoted 56 lines

Last version of systemd dpends now on pyelftools to build the efi support but the required tool is the native ones and not the target. The systemd-boot has the corrected dependencie so fix this in the main recipe.

| Program python3 (jinja2) found: YES (/build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/recipe-sysroot-native/usr/bin/python3-native/python3)
modules: jinja2

| Checking if "32bit build possible" : links: NO
| Program python3 (elftools) found: NO
|
| ../git/meson.build:2147:8: ERROR: Problem encountered: EFI bootloader

support requires pyelftools.
|
| A full log can be found at /build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/build/meson-logs/meson-log.txt

---
 meta/recipes-core/systemd/systemd_254.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/systemd/systemd_254.bb +1 -7
index ea1a4f02f0..cd2a021da2 100644
@@ -142,7 +142,7 @@ PACKAGECONFIG[default-compression-lz4] = "-Dlz4=true
-Ddefault-compression=lz4,,
 PACKAGECONFIG[default-compression-xz] = "-Dxz=true
-Ddefault-compression=xz,,xz"
 PACKAGECONFIG[default-compression-zstd] = "-Dzstd=true
-Ddefault-compression=zstd,,zstd"
 PACKAGECONFIG[dbus] = "-Ddbus=true,-Ddbus=false,dbus"
-PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=true,-Defi=false
-Dbootloader=false,python3-pyelftools"
+PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=true,-Defi=false
-Dbootloader=false,python3-pyelftools-native"
 PACKAGECONFIG[elfutils] = "-Delfutils=true,-Delfutils=false,elfutils"
 PACKAGECONFIG[firstboot] = "-Dfirstboot=true,-Dfirstboot=false"
 PACKAGECONFIG[repart] = "-Drepart=true,-Drepart=false"
--

2.34.1

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

Signature · 3 lines
Best regards,

José Quaresma
#2 lore raw

Hello,

Quoted 1 line · Jose Quaresma

Ping!

We developed the same patch at the same time, I confirm yours is working but it was not enough to solve all the systemd v254 related issues. I've just sent the hopefully last patch to fix the remaining issue.

Quoted 68 lines

Jose Quaresma via lists.openembedded.org <quaresma.jose= [email protected]> escreveu no dia segunda, 7/08/2023 �(s) 15:26:

Quoted 48 lines

Last version of systemd dpends now on pyelftools to build the efi support but the required tool is the native ones and not the target. The systemd-boot has the corrected dependencie so fix this in the main recipe.

| Program python3 (jinja2) found: YES (/build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/recipe-sysroot-native/usr/bin/python3-native/python3)
modules: jinja2

| Checking if "32bit build possible" : links: NO
| Program python3 (elftools) found: NO
|
| ../git/meson.build:2147:8: ERROR: Problem encountered: EFI bootloader

support requires pyelftools.
|
| A full log can be found at /build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/build/meson-logs/meson-log.txt

---
 meta/recipes-core/systemd/systemd_254.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/systemd/systemd_254.bb +1 -7
index ea1a4f02f0..cd2a021da2 100644
@@ -142,7 +142,7 @@ PACKAGECONFIG[default-compression-lz4] = "-Dlz4=true
-Ddefault-compression=lz4,,
 PACKAGECONFIG[default-compression-xz] = "-Dxz=true
-Ddefault-compression=xz,,xz"
 PACKAGECONFIG[default-compression-zstd] = "-Dzstd=true
-Ddefault-compression=zstd,,zstd"
 PACKAGECONFIG[dbus] = "-Ddbus=true,-Ddbus=false,dbus"
-PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=true,-Defi=false
-Dbootloader=false,python3-pyelftools"
+PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=true,-Defi=false
-Dbootloader=false,python3-pyelftools-native"
 PACKAGECONFIG[elfutils] = "-Delfutils=true,-Delfutils=false,elfutils"
 PACKAGECONFIG[firstboot] = "-Dfirstboot=true,-Dfirstboot=false"
 PACKAGECONFIG[repart] = "-Drepart=true,-Drepart=false"
--

2.34.1

Signature · 12 lines
Best regards,

Jos� Quaresma


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#185679): https://lists.openembedded.org/g/openembedded-core/message/185679
Mute This Topic: https://lists.openembedded.org/mt/100600508/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

Hi Alexandre,

Alexandre Belloni <[email protected]> escreveu no dia quarta, 9/08/2023 à(s) 21:25:

Quoted 9 lines

Hello,

Quoted 1 line · Jose Quaresma

Ping!

We developed the same patch at the same time, I confirm yours is working but it was not enough to solve all the systemd v254 related issues. I've just sent the hopefully last patch to fix the remaining issue.

Thanks for your support and we hope your wic fix is the last one for the systemd-boot.

Anyway please note that this patch is not for the systemd-boot but it is for systemd to fix the build when the efi packageconfig is enabled.

Jose

Quoted 83 lines
Quoted 4 lines

Jose Quaresma via lists.openembedded.org <quaresma.jose= [email protected]> escreveu no dia segunda, 7/08/2023

à(s)

Quoted 3 lines

15:26:

Quoted 1 line

Last version of systemd dpends now on pyelftools to build the efi

support

Quoted 6 lines
Quoted 6 lines

but the required tool is the native ones and not the target. The systemd-boot has the corrected dependencie so fix this in the main recipe.

| Program python3 (jinja2) found: YES

(/build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/recipe-sysroot-native/usr/bin/python3-native/python3)

Quoted 9 lines
Quoted 9 lines

modules: jinja2

| Checking if "32bit build possible" : links: NO
| Program python3 (elftools) found: NO
|
| ../git/meson.build:2147:8: ERROR: Problem encountered: EFI bootloader

support requires pyelftools.
|
| A full log can be found at

/build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/build/meson-logs/meson-log.txt

Quoted 6 lines
Quoted 6 lines
---
 meta/recipes-core/systemd/systemd_254.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 6 lines

meta/recipes-core/systemd/systemd_254.bb PACKAGECONFIG[default-compression-lz4] =

Quoted 6 lines
meta/recipes-core/systemd/systemd_254.bb +0 -0
index ea1a4f02f0..cd2a021da2 100644
@@ -142,7 +142,7 @@ PACKAGECONFIG[default-compression-lz4] =

"-Dlz4=true

Quoted 24 lines
Quoted 14 lines
meta/recipes-core/systemd/systemd_254.bb +1 -7
-Ddefault-compression=lz4,,
 PACKAGECONFIG[default-compression-xz] = "-Dxz=true
-Ddefault-compression=xz,,xz"
 PACKAGECONFIG[default-compression-zstd] = "-Dzstd=true
-Ddefault-compression=zstd,,zstd"
 PACKAGECONFIG[dbus] = "-Ddbus=true,-Ddbus=false,dbus"
-PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=true,-Defi=false
-Dbootloader=false,python3-pyelftools"
+PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=true,-Defi=false
-Dbootloader=false,python3-pyelftools-native"
 PACKAGECONFIG[elfutils] = "-Delfutils=true,-Delfutils=false,elfutils"
 PACKAGECONFIG[firstboot] = "-Dfirstboot=true,-Dfirstboot=false"
 PACKAGECONFIG[repart] = "-Drepart=true,-Drepart=false"
--
Quoted 6 lines

2.34.1

--
Best regards,

Quoted 6 lines

José Quaresma

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#185679):

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

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/100600508/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Signature · 3 lines
Best regards,

José Quaresma
#4 lore raw
Quoted 15 lines · Jose Quaresma

Hi Alexandre,

Alexandre Belloni <[email protected]> escreveu no dia quarta, 9/08/2023 �(s) 21:25:

Quoted 9 lines

Hello,

Quoted 1 line · Jose Quaresma

Ping!

We developed the same patch at the same time, I confirm yours is working but it was not enough to solve all the systemd v254 related issues. I've just sent the hopefully last patch to fix the remaining issue.

Quoted 6 lines

Thanks for your support and we hope your wic fix is the last one for the systemd-boot.

Anyway please note that this patch is not for the systemd-boot but it is for systemd to fix the build when the efi packageconfig is enabled.

Ah yes, sorry, I got confused with your other patch. I don't know what happened with this one. I'm pretty sure I had it in my branch at some point but it got dropped and I forgot to get it back, thanks for the reminder, I'll ensure it gets queued.

Quoted 92 lines

Jose

Quoted 83 lines
Quoted 4 lines

Jose Quaresma via lists.openembedded.org <quaresma.jose= [email protected]> escreveu no dia segunda, 7/08/2023

�(s)

Quoted 3 lines

15:26:

Quoted 1 line

Last version of systemd dpends now on pyelftools to build the efi

support

Quoted 6 lines
Quoted 6 lines

but the required tool is the native ones and not the target. The systemd-boot has the corrected dependencie so fix this in the main recipe.

| Program python3 (jinja2) found: YES

(/build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/recipe-sysroot-native/usr/bin/python3-native/python3)

Quoted 9 lines
Quoted 9 lines

modules: jinja2

| Checking if "32bit build possible" : links: NO
| Program python3 (elftools) found: NO
|
| ../git/meson.build:2147:8: ERROR: Problem encountered: EFI bootloader

support requires pyelftools.
|
| A full log can be found at

/build/tmp-lmp/work/corei7-64-lmp-linux/systemd/1_254-r0/build/meson-logs/meson-log.txt

Quoted 6 lines
Quoted 6 lines
---
 meta/recipes-core/systemd/systemd_254.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 6 lines

meta/recipes-core/systemd/systemd_254.bb PACKAGECONFIG[default-compression-lz4] =

Quoted 6 lines
meta/recipes-core/systemd/systemd_254.bb +0 -0
index ea1a4f02f0..cd2a021da2 100644
@@ -142,7 +142,7 @@ PACKAGECONFIG[default-compression-lz4] =

"-Dlz4=true

Quoted 24 lines
Quoted 14 lines
meta/recipes-core/systemd/systemd_254.bb +1 -7
-Ddefault-compression=lz4,,
 PACKAGECONFIG[default-compression-xz] = "-Dxz=true
-Ddefault-compression=xz,,xz"
 PACKAGECONFIG[default-compression-zstd] = "-Dzstd=true
-Ddefault-compression=zstd,,zstd"
 PACKAGECONFIG[dbus] = "-Ddbus=true,-Ddbus=false,dbus"
-PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=true,-Defi=false
-Dbootloader=false,python3-pyelftools"
+PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=true,-Defi=false
-Dbootloader=false,python3-pyelftools-native"
 PACKAGECONFIG[elfutils] = "-Delfutils=true,-Delfutils=false,elfutils"
 PACKAGECONFIG[firstboot] = "-Dfirstboot=true,-Dfirstboot=false"
 PACKAGECONFIG[repart] = "-Drepart=true,-Drepart=false"
--
Quoted 6 lines

2.34.1

--
Best regards,

Quoted 6 lines

Jos� Quaresma

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#185679):

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

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/100600508/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Signature · 3 lines
Best regards,

Jos� Quaresma
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com