Source: babl
Version: 1:0.1.118-2
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

babl fails to cross build from source, because meson.build disables
gobject-introspection for cross builds, because they cannot work and
then the packaging complains about missing files. What cannot work, does
work on Debian. When gobject-introspection is requested, it should be
enabled. Once doing so, babl cross builds successfully.

Helmut
--- babl-0.1.118.orig/meson.build
+++ babl-0.1.118/meson.build
@@ -436,15 +436,11 @@
   build_docs = false
 endif
 
-# Introspection - don't build  by default on cross-build environments
-if get_option('enable-gir') == 'auto'
-  build_gir = meson.is_cross_build() ? false : true
-else
-  build_gir = get_option('enable-gir') == 'true' ? true : false
-endif
-if not g_ir.found()
-  build_gir = false
+# Introspection
+if get_option('enable-gir') == 'true' and not g_ir.found()
+  error('enable-gir set to true but gobject-introspection-1.0 not found')
 endif
+build_gir = g_ir.found() and get_option('enable-gir') != 'false'
 
 # Vapi - only build if building introspection
 if build_gir and get_option('enable-vapi') and vapigen.found()

Reply via email to