After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 593010 - [introspection.m3] Macro to check for .gir/.typelib
[introspection.m3] Macro to check for .gir/.typelib
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: build
2.21.x
Other Linux
: Normal enhancement
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks: 598479
 
 
Reported: 2009-08-25 12:36 UTC by Frederic Peters
Modified: 2018-02-08 11:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frederic Peters 2009-08-25 12:36:14 UTC
At the moment modules are using GOBJECT_INTROSPECTION_CHECK to enable introspection support, but then they call g-ir-scanner with some include flags, without any guarantee corresponding gir files exist.

It would be nice if gobject-introspection had a macro (new, or a new parameter to GOBJECT_INTROSPECTION_CHECK) modules could use to check for the presence of .gir files at ./configure time, instead of failing at build time.
Comment 1 Johan (not receiving bugmail) Dahlin 2009-08-25 14:26:49 UTC
Same applies to typelib, as some bindings, eg vala only uses the girs.
Modules providing introspection support should check for the typelib and not
the gir. In theory the typelib should be present if the gir is, but better safe than sorry in this case. Might need a small tool similar to pkg-config which is installed and checks the same paths as g-ir-scanner/g-ir-compiler

Proposed names:
  GOBJECT_INTROSPECTION_GIR(gtk+-2.0 gstreamer-0.10)
  GOBJECT_INTROSPECTION_TYPELIB(gtk+-2.0 gstreamer-0.10)
Comment 2 Marc-Andre Lureau 2009-10-14 19:59:06 UTC
(see also bug 598479 about jhbuild failing to build gnome because of that issue)
Comment 3 André Klapper 2015-02-07 17:17:52 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 4 Emmanuele Bassi (:ebassi) 2018-01-25 14:58:09 UTC
Would still be nice to have — even though we're doing a mass migration to Meson.
Comment 5 GNOME Infrastructure Team 2018-02-08 11:51:44 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/23.