Source: diodon
Version: 1.13.0-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

diodon fails to cross build from source, because the meson.build looks
for a bare (build architecture) g-ir-compiler. It should be looking for
a host architecture one. I'm attaching a patch for your convenience.
Once applying it, diodon cross builds successfully.

Helmut
--- diodon-1.13.0.orig/meson.build
+++ diodon-1.13.0/meson.build
@@ -65,12 +65,17 @@
 xtst_dep = dependency('xtst', version: '>=1.2.0')
 x11_dep = dependency('x11', version: '>=1.6.3')
 zeitgeist_dep = dependency('zeitgeist-2.0', version: '>=0.9.14')
+gobj_dep = dependency('gobject-introspection-1.0')
 
 # Programs
 
 glib_compile_schemas = find_program('glib-compile-schemas')
 desktop_file_validate = find_program('desktop-file-validate')
-g_ir_compiler = find_program('g-ir-compiler')
+if gobj_dep.found()
+  g_ir_compiler = gobj_dep.get_variable('g_ir_compiler')
+else
+  g_ir_compiler = find_program('g-ir-compiler')
+endif
 xvfb_run = find_program('xvfb-run')
 
 common_vflags = [

Reply via email to