Proposal: skip debug builds of native packages
Following the suggestion of Khem Raj after my issue with systemd-systemctl-native (https://lists.yoctoproject.org/g/poky/message/13589), I propose to not build debug versions of *-native packages when DEBUG_BUILD is enabled. At least for our use-case, building debug versions of native packages is unnecessary. Please share your opinions.
Greetings,
Jan
Quoted 8 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Jan Kircher via lists.openembedded.org
Sent: den 16 april 2025 11:02
To: [email protected]
Subject: [OE-core] Proposal: skip debug builds of native packages
Quoted 8 lines
Following the suggestion of Khem Raj after my issue with systemd- systemctl-native (https://lists.yoctoproject.org/g/poky/message/13589), I propose to not build debug versions of *-native packages when
DEBUG_BUILDis enabled. At least for our use-case, building debug versions of native packages is unnecessary. Please share your opinions.Greetings,
Jan
If I enable DEBUG_BUILD for a recipe, target or native, I expect it to be built with debug information. So the proposed change is definitely not one I would like to see.
If you are setting DEBUG_BUILD globally rather than per recipe, then the solution for you to avoid enabling it for native recipes would be to instead use:
DEBUG_BUILD:class-target = "1"
//Peter
Quoted 8 lines · Peter Kjellerstedt
If you are setting
DEBUG_BUILDglobally rather than per recipe, then the solution for you to avoid enabling it for native recipes would be to instead use:DEBUG_BUILD:class-target = "1"
//Peter
That is a way better solution. I didn't know this is possible. Thank you!
Absolutely not. Just because you had one isolated build fail in systemd doesn't mean we now need to switch it off across everything.
Anyone who does serious layer maintenance has to debug crashes and mysterious behaviour in native executables, and this is required functionality.
Alex
Quoted 14 lines · Jan Kircher via lists.openembedded.org
Following the suggestion of Khem Raj after my issue with systemd-systemctl-native (https://lists.yoctoproject.org/g/poky/message/13589), I propose to not build debug versions of *-native packages when
DEBUG_BUILDis enabled. At least for our use-case, building debug versions of native packages is unnecessary. Please share your opinions.Greetings,
Jan-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#214982): https://lists.openembedded.org/g/openembedded-core/message/214982
Mute This Topic: https://lists.openembedded.org/mt/112291802/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 6 lines · Alexander Kanavin via lists.openembedded.org
Absolutely not. Just because you had one isolated build fail in systemd doesn't mean we now need to switch it off across everything.
Anyone who does serious layer maintenance has to debug crashes and mysterious behaviour in native executables, and this is required functionality.
Question is if DEBUG_BUILD should extend to native packages, you can still debug crashes with defaults. DEBUG_BUILD lowers default optlevel which means we are building the package with an option set that is not
commonly tested. This cost is understood for target packages, but do we
want the supporting tools to be built with these options ? I don't think so. It will slow them down too.
So having an option to turn DEBUG_BUILD propagation to non-target packages can in fact help the majority of use-cases where OE is used.
Quoted 23 lines
Alex
Quoted 18 lines · Jan Kircher via lists.openembedded.org
Following the suggestion of Khem Raj after my issue with systemd-systemctl-native (https://lists.yoctoproject.org/g/poky/message/13589), I propose to not build debug versions of *-native packages when
DEBUG_BUILDis enabled. At least for our use-case, building debug versions of native packages is unnecessary. Please share your opinions.Greetings,
Jan-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#215229): https://lists.openembedded.org/g/openembedded-core/message/215229
Mute This Topic: https://lists.openembedded.org/mt/112291802/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 2 lines · Khem Raj via lists.openembedded.org
So having an option to turn
DEBUG_BUILDpropagation to non-target packages can in fact help the majority of use-cases where OE is used.
As Peter said, there's
DEBUG_BUILD:class-target = "1"
We should perhaps better document this, but I don't think there should be special-case hidden magic otherwise.
Alex
Quoted 10 lines · Alexander Kanavin
Quoted 2 lines · Khem Raj via lists.openembedded.org
So having an option to turn
DEBUG_BUILDpropagation to non-target packages can in fact help the majority of use-cases where OE is used.As Peter said, there's
DEBUG_BUILD:class-target = "1"We should perhaps better document this, but I don't think there should be special-case hidden magic otherwise.
That will improve things for sure
Quoted 2 lines
Alex