From: Ross Burton Date: Thu, 10 Aug 2023 16:24:49 +0000 (+0100) Subject: gi-docgen: depend on qemu-usermode MACHINE_FEATURES X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=524eab0e39c53ea9006b95c9e08ea1f071f1d1f2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git gi-docgen: depend on qemu-usermode MACHINE_FEATURES gi-docgen uses GObject Introspection, so depends on qemu-usermode working. Signed-off-by: Ross Burton Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/gi-docgen.bbclass b/meta/classes-recipe/gi-docgen.bbclass index b4d7b177610..b178d1c3877 100644 --- a/meta/classes-recipe/gi-docgen.bbclass +++ b/meta/classes-recipe/gi-docgen.bbclass @@ -8,9 +8,10 @@ # seems to be a successor to gtk-doc: # https://gitlab.gnome.org/GNOME/gi-docgen -# This variable is set to True if api-documentation and -# gobject-introspection-data are in DISTRO_FEATURES, False otherwise. -GIDOCGEN_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation gobject-introspection-data', 'True', 'False', d)}" +# True if api-documentation and gobject-introspection-data are in DISTRO_FEATURES, +# and qemu-user is in MACHINE_FEATURES, False otherwise. +GIDOCGEN_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation gobject-introspection-data', \ + bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}" # When building native recipes, disable gi-docgen, as it is not necessary, # pulls in additional dependencies, and makes build times longer