All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] gdb: package python support separately
@ 2023-05-19  9:58 Alexander Kanavin
  2023-05-19  9:58 ` [PATCH v2 2/3] gdb: enable python PACKAGECONFIG Alexander Kanavin
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexander Kanavin @ 2023-05-19  9:58 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexander Kanavin

This avoids pulling in the whole python stack if only
the main package is installed.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meta/recipes-devtools/gdb/gdb-common.inc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index 9db61b785f3..d03f744a845 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -33,13 +33,17 @@ EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
 PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
 # Use --without-system-readline to compile with readline 5.
 PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
-PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs"
+PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3"
 PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
 # ncurses is already a hard DEPENDS, but would be added here if it weren't
 PACKAGECONFIG[tui] = "--enable-tui,--disable-tui"
 PACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz"
 PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils"
 
+PACKAGES =+ "${PN}-python"
+RDEPENDS:${PN}-python = "python3 python3-codecs"
+FILES:${PN}-python = "${datadir}/gdb/python/"
+
 GDBPROPREFIX = "--program-prefix=''"
 
 DISABLE_STATIC = ""
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-20 21:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-19  9:58 [PATCH v2 1/3] gdb: package python support separately Alexander Kanavin
2023-05-19  9:58 ` [PATCH v2 2/3] gdb: enable python PACKAGECONFIG Alexander Kanavin
2023-05-19  9:58 ` [PATCH v2 3/3] valgrind: update 3.20.0 -> 3.21.0 Alexander Kanavin
2023-05-20 21:54 ` [OE-core] [PATCH v2 1/3] gdb: package python support separately Alexandre Belloni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.