Source: folks
Version: 0.15.9-8
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
Control: affects 1126007 + src:folks
folks fails to cross build from source, because its meson.build attempts
to locate g-ir-compiler using find_program. As such, it does not pay
attention to the cross compilation prefix and locates the build
architecture instance, which doesn't work. I am proposing a change to
look up the right tool via pkg-config falling back to the prior method.
Once doing so, the cross build runs into #1126007. Please consider
applying the attached patch and forwarding it upstream.
Helmut
--- folks-0.15.9.orig/meson.build
+++ folks-0.15.9/meson.build
@@ -1,7 +1,7 @@
project('folks', [ 'vala', 'c' ],
version: '0.15.9',
license: 'LGPL-2.1-or-later',
- meson_version: '>= 0.57',
+ meson_version: '>= 0.58',
)
gnome = import('gnome')
@@ -76,7 +76,12 @@
gobject_dep = dependency('gobject-2.0', version: '>=' + min_glib_version)
libm_dep = cc.find_library('m')
posix_dep = valac.find_library('posix')
-g_ir_compiler = find_program('g-ir-compiler')
+gi_dep = dependency('gobject-introspection-1.0', required: false)
+if gi_dep.found()
+ g_ir_compiler = gi_dep.get_variable('g_ir_compiler')
+else
+ g_ir_compiler = find_program('g-ir-compiler')
+endif
if docs_enabled
valadoc = find_program('valadoc', required: docs_enabled)