Skip to contentSkip to conversation

librsvg: Make Vala support dependent on gobject-introspection-data

PATCH New Alex Kiernan 1 participant 1 message Jan 17, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 librsvg: Make Vala support dependent on gobject-introspection-data

Build fails as Vala bindings require --enable-introspection:

| checking for gobject-introspection... no (disabled, use --enable-introspection to enable) | configure: error: Vala bindings require GObject Introspection

---

 meta/recipes-gnome/librsvg/librsvg_2.54.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-gnome/librsvg/librsvg_2.54.5.bb +1 -1
index b2e93a268448..fcc25248c0d1 100644
@@ -42,7 +42,7 @@ do_configure[postfuncs] += "cargo_common_do_configure"
 
 inherit rust-target-config
 
-EXTRA_OECONF:class-target = "--enable-vala"
+EXTRA_OECONF:append:class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-vala', '--disable-vala', d)}"
 
 # rust-cross writes the target linker binary into target json definition without any flags.
 # This breaks here because the linker isn't going to work without at least knowing where
Signature · 1 line
2.39.0