From: Ross Burton Date: Fri, 26 Jun 2026 15:13:25 +0000 (+0100) Subject: classes/gtk-doc: inherit python3native only if gtk-doc is enabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46b79c40c7ee5fa79e3889b77ca71bebc3136b9c;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git classes/gtk-doc: inherit python3native only if gtk-doc is enabled Use inherit_defer to only inherit python3native (thus, a dependency on python3-native) when gtk-doc is actually enabled. This is useful in native builds where gtk-doc is disabled and so will no longer depend on python3-native. Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/gtk-doc.bbclass b/meta/classes-recipe/gtk-doc.bbclass index 9d3911966b..33f6617e1b 100644 --- a/meta/classes-recipe/gtk-doc.bbclass +++ b/meta/classes-recipe/gtk-doc.bbclass @@ -35,9 +35,11 @@ DEPENDS:append = " gtk-doc-native" export STAGING_DIR_HOST -inherit python3native pkgconfig qemu +inherit pkgconfig qemu DEPENDS:append = "${@' qemu-native' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}" +inherit_defer ${@bb.utils.contains('GTKDOC_ENABLED', 'True', 'python3native', '', d)} + do_compile:prepend:class-target () { if [ ${GTKDOC_ENABLED} = True ]; then # Write out a qemu wrapper that will be given to gtkdoc-scangobj so that it