Message ID | 20230519095811.1387602-1-alex@linutronix.de |
---|---|
State | New |
Headers | show |
Series | [v2,1/3] gdb: package python support separately | expand |
Hello, This breaks package.PackageTests.test_gdb_hardlink_debug https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/5204/steps/15/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/5154/steps/14/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/5233/steps/14/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/5196/steps/14/logs/stdio On 19/05/2023 11:58:09+0200, Alexander Kanavin wrote: > 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 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#181543): https://lists.openembedded.org/g/openembedded-core/message/181543 > Mute This Topic: https://lists.openembedded.org/mt/99009068/3617179 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com] > -=-=-=-=-=-=-=-=-=-=-=- >
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 = ""
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(-)