Gobject-introspection has two different gir directories

(Tony Houghton) #1

I’ve got a problem with gobject-introspection. Its main gir directory (as returned by pkg-config --variable=girdir gobject-introspection-1.0) is /usr/local/Cellar/gobject-introspection/1.58.3/share/gir-1.0, but it doesn’t contain all the gir files I need. Most low-level libraries are there, but some are missing, including those that belong to the gtk+3 and vte3 packages.

/usr/local/share/gir-1.0 contains symlinks to gir files, including the ones missing above. The link targets are in the package that owns them eg /usr/local/share/gir-1.0/Vte-2.91.gir@ -> ../../Cellar/vte3/0.54.3/share/gir-1.0/Vte-2.91.gir rather than in the girdir returned by pkg-config. The trouble is, that leaves me without a non-hacky way of “finding” the gir directory portably.

Any ideas?

(Sean Molenaar) #2

That suggests that it’s actually part of a different package then the one you’re passing to pkg-config