Hi Danny, I think you’re describing the problem that others pointed out earlier (there’s an open bug report IIRC) which is that grafting derivations do not necessarily produce all the outputs of the original derivation (so in one case you get a grafted ‘glib’ with just “out”, and in the other case a grafted ‘glib’ with “out”, “debug”, “static”, and “bin”.
As a consequence, the GIR program ends up dlopening two different libglib.so. I believe this was discussed in <https://issues.guix.gnu.org/75157>. Perhaps we should start from there, possibly considering a revert or change of strategy of commit 482fda2729c3e76999892cb8f9a0391a7bd37119. (I’d suggest having the discussion in bug tracker anyway to reduce the chance that it’ll get lost.) Thanks, Ludo’.