Source: pqmarble
Version: 1.3.0-6
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

pqmarble fails to cross build from source, because it uses the build
architecture g-ir-compiler while it should be using the host
architecture one. I'm attaching a patch to fix that and it makes
pqmarble cross buildable. Please consider applying it and forwarding it
upstream.

Helmut
--- pqmarble-1.3.0.orig/src/meson.build
+++ pqmarble-1.3.0/src/meson.build
@@ -36,7 +36,12 @@
 install_data('pqmarble.deps',
              install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'vala', 'vapi'))
 
-g_ir_compiler = find_program('g-ir-compiler')
+gobject_introspection = dependency('gobject-introspection-1.0', required: false)
+if gobject_introspection.found()
+  g_ir_compiler = gobject_introspection.get_variable('g_ir_compiler')
+else
+  g_ir_compiler = find_program('g-ir-compiler')
+endif
 
 custom_target(pqmarble_typelib,
   command: [

Reply via email to