Bug#982213: gio-2.0.pc references wrong glib-compile-schemas

Simon McVittie smcv at debian.org
Sun Feb 7 18:07:28 GMT 2021


On Sun, 07 Feb 2021 at 14:26:15 +0100, Helmut Grohne wrote:
> 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.

> --- 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'),

This is a revert of a Debian-specific patch,
debian/patches/debian/61_glib-compile-binaries-path.patch.

I think it's probably OK to drop that patch, because libglib2.0-dev already
Depends on libglib2.0-bin, which ships the necessary symlink
/usr/bin/glib-compile-schemas -> ../lib/${MULTIARCH}/glib-2.0/glib-compile-schemas.

However, I am certainly not going to upload anything non-critical until
we get 2.66.6-1 into testing, and we're getting very close to the freeze.
How urgent is this change?

    smcv



More information about the pkg-gnome-maintainers mailing list