* Proposal: skip debug builds of native packages
@ 2025-04-16 9:02 Jan Kircher
2025-04-16 13:00 ` [OE-core] " Peter Kjellerstedt
2025-04-22 14:56 ` [OE-core] " Alexander Kanavin
0 siblings, 2 replies; 7+ messages in thread
From: Jan Kircher @ 2025-04-16 9:02 UTC (permalink / raw)
To: openembedded-core
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [OE-core] Proposal: skip debug builds of native packages
2025-04-16 9:02 Proposal: skip debug builds of native packages Jan Kircher
@ 2025-04-16 13:00 ` Peter Kjellerstedt
2025-04-28 7:52 ` Jan Kircher
2025-04-22 14:56 ` [OE-core] " Alexander Kanavin
1 sibling, 1 reply; 7+ messages in thread
From: Peter Kjellerstedt @ 2025-04-16 13:00 UTC (permalink / raw)
To: jan.kircher@leica-microsystems.com,
openembedded-core@lists.openembedded.org
> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> core@lists.openembedded.org> On Behalf Of Jan Kircher via
> lists.openembedded.org
> Sent: den 16 april 2025 11:02
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] 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
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [OE-core] Proposal: skip debug builds of native packages
2025-04-16 9:02 Proposal: skip debug builds of native packages Jan Kircher
2025-04-16 13:00 ` [OE-core] " Peter Kjellerstedt
@ 2025-04-22 14:56 ` Alexander Kanavin
2025-04-22 22:43 ` Khem Raj
1 sibling, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2025-04-22 14:56 UTC (permalink / raw)
To: jan.kircher; +Cc: openembedded-core
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
On Wed, 16 Apr 2025 at 11:02, Jan Kircher via lists.openembedded.org
<jan.kircher=leica-microsystems.com@lists.openembedded.org> wrote:
>
> 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
>
> -=-=-=-=-=-=-=-=-=-=-=-
> 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: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [OE-core] Proposal: skip debug builds of native packages
2025-04-22 14:56 ` [OE-core] " Alexander Kanavin
@ 2025-04-22 22:43 ` Khem Raj
2025-04-22 23:32 ` Alexander Kanavin
0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2025-04-22 22:43 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1.1.1: Type: text/plain, Size: 1912 bytes --]
On 4/22/25 7:56 AM, Alexander Kanavin via lists.openembedded.org wrote:
> 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.
>
> Alex
>
> On Wed, 16 Apr 2025 at 11:02, Jan Kircher via lists.openembedded.org
> <jan.kircher=leica-microsystems.com@lists.openembedded.org> wrote:
>>
>> 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
>>
>>
>>
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> 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: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2613 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [OE-core] Proposal: skip debug builds of native packages
2025-04-22 22:43 ` Khem Raj
@ 2025-04-22 23:32 ` Alexander Kanavin
2025-04-23 0:38 ` Khem Raj
0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2025-04-22 23:32 UTC (permalink / raw)
To: raj.khem; +Cc: openembedded-core
On Wed, 23 Apr 2025 at 00:44, Khem Raj via lists.openembedded.org
<raj.khem=gmail.com@lists.openembedded.org> wrote:
> 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.
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [OE-core] Proposal: skip debug builds of native packages
2025-04-22 23:32 ` Alexander Kanavin
@ 2025-04-23 0:38 ` Khem Raj
0 siblings, 0 replies; 7+ messages in thread
From: Khem Raj @ 2025-04-23 0:38 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: openembedded-core
[-- Attachment #1.1.1: Type: text/plain, Size: 549 bytes --]
On 4/22/25 4:32 PM, Alexander Kanavin wrote:
> On Wed, 23 Apr 2025 at 00:44, Khem Raj via lists.openembedded.org
> <raj.khem=gmail.com@lists.openembedded.org> wrote:
>> 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.
>
> 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
>
> Alex
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2613 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Proposal: skip debug builds of native packages
2025-04-16 13:00 ` [OE-core] " Peter Kjellerstedt
@ 2025-04-28 7:52 ` Jan Kircher
0 siblings, 0 replies; 7+ messages in thread
From: Jan Kircher @ 2025-04-28 7:52 UTC (permalink / raw)
To: openembedded-core
On Wed, Apr 16, 2025 at 03:01 PM, Peter Kjellerstedt wrote:
> 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
>
That is a way better solution. I didn't know this is possible. Thank you!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-04-28 7:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-16 9:02 Proposal: skip debug builds of native packages Jan Kircher
2025-04-16 13:00 ` [OE-core] " Peter Kjellerstedt
2025-04-28 7:52 ` Jan Kircher
2025-04-22 14:56 ` [OE-core] " Alexander Kanavin
2025-04-22 22:43 ` Khem Raj
2025-04-22 23:32 ` Alexander Kanavin
2025-04-23 0:38 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox