GNOME Bugzilla – Bug 621461
Automatically set GI_TYPELIB_PATH
Last modified: 2010-06-14 14:05:22 UTC
This env var is required to be able to run stuff that depend on gobject-introspection.
Created attachment 163516 [details] [review] Automatically set GI_TYPELIB_PATH
Review of attachment 163516 [details] [review]: Needs a bit of additional work ::: jhbuild/config.py @@ +345,3 @@ + # GI_TYPELIB_PATH + if os.environ.get('GI_TYPELIB_PATH') is None: if not 'GI_TYPELIB_PATH' in os.environ: @@ +346,3 @@ + # GI_TYPELIB_PATH + if os.environ.get('GI_TYPELIB_PATH') is None: + if os.path.exists('/usr/lib/girepository-1.0'): Use os.path.join @@ +348,3 @@ + if os.path.exists('/usr/lib/girepository-1.0'): + addpath('GI_TYPELIB_PATH', '/usr/lib/girepository-1.0') + typelibpath = os.path.join(self.prefix, 'lib', 'girepository-1.0') libdir is correct here, as it takes lib64 into account.
Created attachment 163583 [details] [review] Automatically set GI_TYPELIB_PATH The previous patch was based on the section for PKG_CONFIG_PATH, but the new one is following jdahlin's directives instead.
Created attachment 163584 [details] [review] Automatically set GI_TYPELIB_PATH I attached the wrong patch...
Created attachment 163585 [details] [review] Automatically set GI_TYPELIB_PATH Same with indentation fixed.
Created attachment 163586 [details] [review] Automatically set GI_TYPELIB_PATH Use self.use_lib64
Created attachment 163587 [details] [review] Automatically set GI_TYPELIB_PATH
Review of attachment 163587 [details] [review]: This looks good
Attachment 163587 [details] pushed as dcda5c0 - Automatically set GI_TYPELIB_PATH