Source: libosinfo
Version: 1.12.0-3
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
libosinfo fails to cross build from source, because meson.build is
confused. It attempts to detect availability of gobject-introspection,
but decides that cross builds can never do gobject-introspection (even
though they now can on Debian). Then it enables vala support and fails,
because vala support requires gobject-introspection.
I suggest dropping the cross compilation condition. Once removing it,
the build proceeds much further until the gtk-doc scanner fails.
Ideally, the documentation would be separated to an arch:all -doc
package. Then, the -dev package would be much smaller and libosinfo
would become cross buildable.
In the mean time, I suggest fixing the confusion about
gobject-introspection.
Helmut
--- libosinfo-1.12.0.orig/meson.build
+++ libosinfo-1.12.0/meson.build
@@ -29,7 +29,7 @@
# gobject introspection
gir = find_program('g-ir-scanner', required: get_option('enable-introspection'))
-enable_introspection = gir.found() and not meson.is_cross_build()
+enable_introspection = gir.found()
# vala
vapi_opt = get_option('enable-vala')