From a3c761707a43b8064bdea30897331e1a1ca1285c Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Mon, 9 Nov 2026 13:05:26 +0100 Subject: [PATCH] colord: add a vapi PACKAGECONFIG Build the vala bindings when gobject-introspection data is enabled. simple-scan uses colord when it is found and needs colord.vapi for it. Tested by building colord and simple-scan for x86-64. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Markus Volk Signed-off-by: Khem Raj --- meta-oe/recipes-support/colord/colord.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-support/colord/colord.bb b/meta-oe/recipes-support/colord/colord.bb index 571c4b1826..0652a48846 100644 --- a/meta-oe/recipes-support/colord/colord.bb +++ b/meta-oe/recipes-support/colord/colord.bb @@ -1,6 +1,6 @@ require ${BPN}.inc -inherit meson gobject-introspection gsettings gtk-doc gettext bash-completion systemd features_check useradd pkgconfig +inherit meson gobject-introspection gsettings gtk-doc gettext bash-completion systemd features_check useradd pkgconfig vala # polkit and gobject-introspection are mandatory and cannot be configured REQUIRED_DISTRO_FEATURES = "polkit gobject-introspection-data" @@ -29,8 +29,12 @@ EXTRA_OEMESON += " \ -Dpnp_ids=${datadir}/hwdata/pnp.ids \ " -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG ??= " \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)} \ +" PACKAGECONFIG[systemd] = "-Dsystemd=true, -Dsystemd=false, systemd" +PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false" SYSTEMD_SERVICE:${PN} = "colord.service"