Package: libglib2.0-dev
Version: 2.66.6-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
Control: affects -1 + src:ibus-unikey

ibus-unikey fails to cross build from source, because it fails running
glib-compile-schemas with an Exec format error. It looks up
glib-compile-schemas from gio-2.0.pc. This file lists the path in
/usr/lib/<triplet> and ends up referring to a host architecture
executable instead of the working /usr/bin/glib-compile-schemas. Please
consider applying the attached patch to fix the path.

Helmut
--- glib2.0-2.66.6.orig/gio/meson.build
+++ glib2.0-2.66.6/gio/meson.build
@@ -819,7 +819,7 @@
                'giomoduledir=' + pkgconfig_giomodulesdir,
                'gio=' + join_paths('${bindir}', 'gio'),
                'gio_querymodules=' + join_paths('${bindir}', 'gio-querymodules'),
-               'glib_compile_schemas=' + join_paths('${libdir}', 'glib-2.0', 'glib-compile-schemas'),
+               'glib_compile_schemas=' + join_paths('${bindir}', 'glib-compile-schemas'),
                'glib_compile_resources=' + join_paths('${bindir}', 'glib-compile-resources'),
                'gdbus=' + join_paths('${bindir}', 'gdbus'),
                'gdbus_codegen=' + join_paths('${bindir}', 'gdbus-codegen'),

Reply via email to