mingw64: gir search paths are wrong
I tried compiling Pango, with docs enabled on MSYS2-MINGW64
. Everything went fine but I got an error when using gi-docgen
,
[104/142] Generating pango-doc with a custom command (wrapped by meson to set PATH)
FAILED: docs/Pango
"C:/msys64/mingw64/bin/meson" "--internal" "exe" "--unpickle" "H:/pango/pango/_build/meson-private/meson_exe_python.exe_7add920ac21e6e085b5731dc46352149b098ae18.dat"
while executing ['C:/msys64/mingw64/bin/python.exe', 'H:/pango/pango/subprojects/gi-docgen/gi-docgen.py', 'generate', '--quiet', '--add-include-path=H:/pango/pango/_build/docs/../pango', '--config', 'docs/pango.toml', '--output-dir=docs/Pango', '--no-namespace-dir', '--content-dir=H:/pango/pango/docs', 'pango/Pango-1.0.gir']
--- stdout ---
--- stderr ---
ERROR: Could not find GIR dependency in the search paths: GObject-2.0
I think that is because,GObject-2.0.gir
from https://packages.msys2.org/base/mingw-w64-gobject-introspection is installed in /mingw64/share/
(you can see the file listing on that web page).
I could see it falls back to /usr/share:/usr/local/share
but those files can't be found there because it is for msys2 installation location and not mingw64.
https://gitlab.gnome.org/ebassi/gi-docgen/-/blob/main/gidocgen/gdgendeps.py#L69
I don't know what I should do to make that work, neither I don't know how that must be handled. For mingw32
, it should be in /mingw32/share
for mingw64
is should be in /mingw64/share
for ucrt64
it should be in /ucrt64/share
(ucrt
is new enough so maybe it isn't compiled yet).
Thanks.