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 627474 - g_irepository_require(NULL, ...) does not honour GI_TYPELIB_PATH
g_irepository_require(NULL, ...) does not honour GI_TYPELIB_PATH
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-08-20 09:34 UTC by Pavel Holejsovsky
Modified: 2015-02-07 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch initializing globals. (926 bytes, patch)
2010-08-20 09:45 UTC, Pavel Holejsovsky
none Details | Review

Description Pavel Holejsovsky 2010-08-20 09:34:44 UTC
This is because g_irepository_require () calls build_search_path_with_overrides () and this method does not call init_globals () which initializes overrides according to GI_TYPELIB_PATH env. variable.  init_globals () is called later during require_internal ().
Comment 1 Pavel Holejsovsky 2010-08-20 09:45:21 UTC
Created attachment 168377 [details] [review]
Patch initializing globals.

Attached patch fixes this for me.
Comment 2 Pavel Holejsovsky 2010-09-04 07:35:16 UTC
Fixed by walters' commit 4a01ca43c976ba09c1647cbc56918f3b3e917ff4
Comment 3 André Klapper 2015-02-07 16:50:29 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]