On Wed, 28 Jun 2023 at 17:00:10 +0200, Thomas Uhle wrote:
> 1. Starting with harfbuzz/5.1.0-1, HarfBuzz-0.0.typelib as well as
>    HarfBuzz-0.0.gir do no longer reference libharfbuzz.so.0 although
>    449 of the 490 symbols are compiled into libharfbuzz.so.0 and just
>    the other 41 symbols are compiled into libharfbuzz-gobject.so.0.

I would guess that this might be because the upstream build system
is only passing in libharfbuzz_gobject as a positional parameter
to gnome.generate_gir in the Meson build (and a similar setup in
Autotools), with libharfbuzz_dep in the dependencies list instead. To
the GObject-Introspection tools, this is the same as saying that
libharfbuzz_gobject is a positional parameter and the external libgobject
library is a dependency.

Please try passing in both libharfbuzz_gobject and libharfbuzz as
positional parameters, and removing libharfbuzz_dep from the dependencies
named argument. I suspect that will result in the .gir referring to both
libraries, the same way that /usr/share/gir-1.0/GLib-2.0.gir refers to
both libgobject-2.0.so.0 and libglib-2.0.so.0.

Similarly,

      export_packages: ['harfbuzz-gobject'],

looks wrong to me: I would expect to see 'harfbuzz' in that list too,
leading to both pkg-config modules getting <package> elements in the GIR.

    smcv

Reply via email to