GNOME Bugzilla – Bug 747095
Disable g-ir-scanner cache on build
Last modified: 2015-03-31 13:48:58 UTC
During compilation g-ir-scanner will use the user-local cache (.cache/g-ir-scanner/). The problem is that it can create conflicts like this : Traceback (most recent call last):
+ Trace 234929
sys.exit(scanner_main(sys.argv))
transformer = create_transformer(namespace, options)
identifier_filter_cmd=options.identifier_filter_cmd)
self._cachestore = CacheStore()
self._check_cache_version()
shutil.move(versiontmp, version)
copy2(src, real_dst)
copyfile(src, dst)
with open(src, 'rb') as fsrc:
Makefile:2002: recipe for target 'Gst-1.0.gir' failed We should just disable cache usage during compilation, it's only really needed for installed .gir/.typelib This can be fixed by specifying GI_SCANNER_DISABLE_CACHE env variable for internal compilation
Created attachment 300651 [details] [review] introspection: Don't use g-ir-scanner cache at compile time It pollutes user directories and we don't need to cache it
Created attachment 300652 [details] [review] introspection: Don't use g-ir-scanner cache at compile time It pollutes user directories and we don't need to cache it
Created attachment 300653 [details] [review] introspection: Don't use g-ir-scanner cache at compile time It pollutes user directories and we don't need to cache it
Review of attachment 300653 [details] [review]: Make sense.
Pushed all. Thanks