MINGW-packages icon indicating copy to clipboard operation
MINGW-packages copied to clipboard

[glib2] Introspection files not generated

Open jwharm opened this issue 1 year ago • 1 comments

Description / Steps to reproduce the issue

GObject-Introspection allows libraries to export their API in an xml repository (.gir) file. These files are installed under /usr/share/gir-1.0/ and are commonly used by language bindings.

In the past (until glib 2.78), the introspection outputs for glib, gobject, gmodule and gio were generated not from the glib2 package itself, but by building and installing a separate package, gobject-introspection. Since glib 2.80, this has been integrated into glib itself.

However, in the MINGW packages, the 'introspection' build option is still disabled for the glib2 package, so it doesn't generate and install the .gir files.

The mingw-w64-gobject-introspection package will still install the gir files, but those are the old ones for glib 2.78.

Steps to reproduce:

1. pacman -S mingw-w64-x86_64-glib2 --> installs glib 2.80
2. ls /mingw64/share/gir-1.0/GLib-2.0.gir --> does not exist
3. pacman -S mingw-w64-gobject-introspection
4. ls /mingw64/share/gir-1.0/GLib-2.0.gir --> file exists, but is based on glib 2.78

Expected behavior

GLib-2.0.gir, GObject-2.0.gir, GModule-2.0.gir and Gio-2.0.gir are generated when building mingw-w64-x86_64-glib2 and installed into /mingw64/share/gir-1.0/.

Actual behavior

The gir files are not installed with the glib2 package.

Verification

  • [X] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)

Windows Version

MINGW64_NT-10.0-22621

MINGW environments affected

  • [X] MINGW64
  • [ ] MINGW32
  • [ ] UCRT64
  • [ ] CLANG64
  • [ ] CLANG32
  • [ ] CLANGARM64

Are you willing to submit a PR?

Yes

jwharm avatar Apr 09 '24 20:04 jwharm

Yes, this is expected. gobject-introspection has not been updated yet.

Biswa96 avatar Apr 09 '24 20:04 Biswa96

Thanks @Biswa96

jwharm avatar May 25 '24 08:05 jwharm