All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] librsvg: Only enable the Vala bindings if GObject Introspection is enabled
@ 2023-01-18 11:27 Peter Kjellerstedt
  2023-01-18 12:13 ` [OE-core] " Jose Quaresma
  2023-01-18 16:22 ` Luca Ceresoli
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Kjellerstedt @ 2023-01-18 11:27 UTC (permalink / raw)
  To: openembedded-core

This avoids the following error:

  configure: error: Vala bindings require GObject Introspection

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/recipes-gnome/librsvg/librsvg_2.54.5.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-gnome/librsvg/librsvg_2.54.5.bb b/meta/recipes-gnome/librsvg/librsvg_2.54.5.bb
index b2e93a2684..c55aa250e9 100644
--- a/meta/recipes-gnome/librsvg/librsvg_2.54.5.bb
+++ b/meta/recipes-gnome/librsvg/librsvg_2.54.5.bb
@@ -42,8 +42,6 @@ do_configure[postfuncs] += "cargo_common_do_configure"
 
 inherit rust-target-config
 
-EXTRA_OECONF:class-target = "--enable-vala"
-
 # 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
 # the sysroot is. So copy the json to workdir, and patch in the path to wrapper from rust class
@@ -57,9 +55,10 @@ CVE_CHECK_IGNORE += "CVE-2018-1000041"
 
 CACHED_CONFIGUREVARS = "ac_cv_path_GDK_PIXBUF_QUERYLOADERS=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders"
 
-PACKAGECONFIG ??= "gdkpixbuf"
+PACKAGECONFIG ??= "gdkpixbuf ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vala', '', d)}"
 # The gdk-pixbuf loader
 PACKAGECONFIG[gdkpixbuf] = "--enable-pixbuf-loader,--disable-pixbuf-loader,gdk-pixbuf-native"
+PACKAGECONFIG[vala] = "--enable-vala,--disable-vala"
 
 do_install:append() {
 	# Loadable modules don't need .a or .la on Linux


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-01-20 12:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-18 11:27 [PATCH] librsvg: Only enable the Vala bindings if GObject Introspection is enabled Peter Kjellerstedt
2023-01-18 12:13 ` [OE-core] " Jose Quaresma
2023-01-18 14:44   ` Peter Kjellerstedt
2023-01-18 14:55     ` Jose Quaresma
2023-01-18 16:22 ` Luca Ceresoli
2023-01-18 22:22   ` Peter Kjellerstedt
2023-01-19  9:29     ` Luca Ceresoli
     [not found]     ` <173BABCA291B8E2A.14781@lists.openembedded.org>
2023-01-19 23:09       ` Luca Ceresoli
2023-01-20 12:53         ` Peter Kjellerstedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.