gdb-cross: remove duplicated PACKAGECONFIG
PATCH 1/1 gdb-cross: remove duplicated PACKAGECONFIG
From: Etienne Cordonnier <[email protected]>
Duplicating the PACKAGECONFIG variable in gdb-cross and gdb-common makes it easy to forget updating one definition without updating the other. However at the moment there is no need for two different definitions.
xz is also useful for gdb-cross when minidebuginfo is enabled, so it also needs to be in the definition of PACKAGECONFIG in gdb-cross.inc
Let's remove the definition from gdb-cross.inc to make maintenance easier. This enables xz for gdb-cross as side-effect.
--- meta/recipes-devtools/gdb/gdb-cross.inc | 1 - 1 file changed, 1 deletion(-)
meta/recipes-devtools/gdb/gdb-cross.inc +0 -1
@@ -5,7 +5,6 @@ DEPENDS = "expat-native gmp-native mpfr-native ncurses-native flex-native bison- inherit python3native pkgconfig # Overrides PACKAGECONFIG variables in gdb-common.inc -PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native" PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native"
Signature · 1 line
2.43.0
Quoted 9 lines · Etienne Cordonnier via lists.openembedded.org
From: Etienne Cordonnier <[email protected]>
Duplicating the PACKAGECONFIG variable in gdb-cross and gdb-common makes it easy to forget updating one definition without updating the other. However at the moment there is no need for two different definitions.
xz is also useful for gdb-cross when minidebuginfo is enabled, so it also needs to be in the definition of PACKAGECONFIG in gdb-cross.inc
Quoted 7 lines
Let's remove the definition from gdb-cross.inc to make maintenance easier. This enables xz for gdb-cross as side-effect.
Signed-off-by Etienne Cordonnier <[email protected]>---
meta/recipes-devtools/gdb/gdb-cross.inc | 1 -1 file changed, 1 deletion(-)
At the very least this commit message needs to be a bit clearer as there is a change of behaviour here.
To be clear, this change adds:
${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'xz', '', d)}
to the default PACKAGECONFIG for gdb-cross. You can't tell that from the patch.
I'd also mention that there is still a different definition for gdb- cross-canadian and if we do this, they should all probably match.
Whether we should do this, I'm unsure. It might be worth just adding xz unconditionally at this point by default to be honest, it isn't a huge dependency. gdb is a debugging tool, not for a minimal system.
Cheers,
Richard
Quoted 29 lines · Richard Purdie via lists.openembedded.org
Quoted 9 lines · Etienne Cordonnier via lists.openembedded.org
From: Etienne Cordonnier <[email protected]>
Duplicating the PACKAGECONFIG variable in gdb-cross and gdb-common makes it easy to forget updating one definition without updating the other. However at the moment there is no need for two different definitions.
xz is also useful for gdb-cross when minidebuginfo is enabled, so it also needs to be in the definition of PACKAGECONFIG in gdb-cross.inc
Quoted 7 lines
Let's remove the definition from gdb-cross.inc to make maintenance easier. This enables xz for gdb-cross as side-effect.
Signed-off-by Etienne Cordonnier <[email protected]>--- meta/recipes-devtools/gdb/gdb-cross.inc | 1 - 1 file changed, 1 deletion(-)At the very least this commit message needs to be a bit clearer as there is a change of behaviour here.
To be clear, this change adds:
${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'xz', '', d)}
to the default PACKAGECONFIG for gdb-cross. You can't tell that from the patch.
Quoted 6 lines
I'd also mention that there is still a different definition for gdb- cross-canadian and if we do this, they should all probably match.
Whether we should do this, I'm unsure. It might be worth just adding xz unconditionally at this point by default to be honest, it isn't a huge dependency. gdb is a debugging tool, not for a minimal system.
target gdb where the size and dependencies might matter, for cross and cross-canadian
IIRC it won't matter as much from size perspective. we can let the defaults be controlled from
bb itself or from inc and then add/remove as needed in bb files. Status quo is a mix of both
so we should do something. Perhaps this patch with updated commit log is a good one
Quoted 13 lines
Cheers,
Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#211104): https://lists.openembedded.org/g/openembedded-core/message/211104
Mute This Topic: https://lists.openembedded.org/mt/111104210/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 6 lines
To be clear, this change adds:
${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'xz', '', d)}
to the default PACKAGECONFIG for gdb-cross. You can't tell that from the patch.
That's what I was referring to in the commit message with "This enables xz for gdb-cross as side-effect.", but I've reworded it now so that it is hopefully clearer.
I've sent a new version of the patch as "[PATCH v2] gdb: enable xz in gdb-cross and gdb-cross-canadian"
Étienne
Quoted 70 lines · Khem Raj
Quoted 2 lines · Richard Purdie via lists.openembedded.org
On Mon, 2025-02-10 at 16:49 +0100, Etienne Cordonnier via
Quoted 3 lines · lists.openembedded.org
Quoted 3 lines
From: Etienne Cordonnier <[email protected]>
Duplicating the PACKAGECONFIG variable in gdb-cross and gdb-common
makes
Quoted 4 lines
Quoted 4 lines
it easy to forget updating one definition without updating the other. However at the moment there is no need for two different definitions.
xz is also useful for gdb-cross when minidebuginfo is enabled, so it
also needs
Quoted 3 lines
Quoted 3 lines
to be in the definition of PACKAGECONFIG in gdb-cross.inc
Let's remove the definition from gdb-cross.inc to make maintenance
easier.
Quoted 17 lines
Quoted 6 lines
This enables xz for gdb-cross as side-effect.
Signed-off-by Etienne Cordonnier <[email protected]>--- meta/recipes-devtools/gdb/gdb-cross.inc | 1 - 1 file changed, 1 deletion(-)At the very least this commit message needs to be a bit clearer as there is a change of behaviour here.
To be clear, this change adds:
${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'xz', '', d)}
to the default PACKAGECONFIG for gdb-cross. You can't tell that from the patch.
Quoted 6 lines
I'd also mention that there is still a different definition for gdb- cross-canadian and if we do this, they should all probably match.
Whether we should do this, I'm unsure. It might be worth just adding xz unconditionally at this point by default to be honest, it isn't a huge dependency. gdb is a debugging tool, not for a minimal system.
target gdb where the size and dependencies might matter, for cross and cross-canadian
IIRC it won't matter as much from size perspective. we can let the defaults be controlled from
bb itself or from inc and then add/remove as needed in bb files. Status quo is a mix of both
so we should do something. Perhaps this patch with updated commit log is a good oneQuoted 8 lines
Cheers,
Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#211104):Quoted 1 line
Mute This Topic:
Quoted 2 lines
Group Owner: [email protected] Unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Dcore_unsub&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=B9ScRVJzxS9xTwss3tO6LOaEc25WeGEM_0kgqZqT1CxQ8-mnKsbdAMJWNa1exXOj&s=LzjhLaGMsXHO9k8oG2EZBslP7bQuVNQresguoGJre7E&e=
[[email protected]]Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-