#1140049 gir1.2-ayatanacommon-0.1: typelibs installed in incorrect directory

Package:
gir1.2-ayatanacommon-0.1
Source:
gir1.2-ayatanacommon-0.1
Description:
Ayatana System Indicators' common API functions (GObject Introspection)
Submitter:
Simon McVittie
Date:
2026-06-15 09:37:02 UTC
Severity:
normal
Tags:
#1140049#5
Date:
2026-06-15 09:35:34 UTC
From:
To:
A smoke-test similar to this one should work for every package
containing "public" typelibs:

$ podman run --rm -it debian:sid-slim
# apt update
# apt upgrade
# apt install python3-gi gir1.2-ayatanacommon-0.1
# python3

But for gir1.2-ayatanacommon-0.1, it currently fails:
because the typelib is installed to a directory that is not searched by
GObject-Introspection: /usr/lib/x86_64-linux-gnu/girepository-1.2/
instead of the correct /usr/lib/x86_64-linux-gnu/girepository-1.0/.

Similarly the -dev package installs the GIR XML into /usr/share/gir-1.2/
instead of the correct /usr/share/gir-1.0/. I know the XML says
"<repository version="1.2"..." but the correct directory names still
have 1.0 in them, as documented in
file:///usr/share/doc/gobject-introspection/policy.txt.gz:

This appears to have been an intentional upstream change:

which surprises me, because I don't see how this change can have worked
successfully. How was it tested?

It is often a good idea for packages with GObject-Introspection to have
a superficial autopkgtest similar to
<https://salsa.debian.org/gnome-team/libadwaita/-/blob/debian/latest/debian/tests/python-gi-test?ref_type=heads>
to confirm that the intended typelib API can be loaded successfully.

Thanks,
    smcv