Source: geary
Version: 46.0-11
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
geary fails to cross build from source, because the upstream build
system uses the build architecture g-ir-scanner where it should be using
the host architecture one. I am attaching a patch to fix that. Please
consider applying it. It makes geary cross buildable and is suitable for
upstream inclusion.
Helmut
--- geary-46.0.orig/subprojects/vala-unit/meson.build
+++ geary-46.0/subprojects/vala-unit/meson.build
@@ -31,8 +31,13 @@
gio = dependency('gio-2.0')
glib = dependency('glib-2.0', version: '>=' + target_glib)
gobject = dependency('gobject-2.0')
+gobject_introspection = dependency('gobject-introspection-1.0', required: false)
-g_ir_compiler = find_program('g-ir-compiler')
+if gobject_introspection.found()
+ g_ir_compiler = gobject_introspection.get_variable('g_ir_compiler')
+else
+ g_ir_compiler = find_program('g-ir-compiler')
+endif
if enable_valadoc
valadoc = find_program('valadoc')
endif