Upstream now strips absolute paths to their basename on all platforms apart from Darwin: a41abe1868 To get around this without modifying the basename test we simply pass in `basename=False` when normally generating gir files.
a41abe1868
Uses patch Nirbheek Chauhan's patch from this issue upstream issue: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/222 Fixes #40599