GNOME Bugzilla – Bug 649054
Allow a command line argument to disable the cache
Last modified: 2015-02-07 16:55:40 UTC
There does not seem to be an option to disable caching with g-ir-scanner. Please provide such an option, so we can properly build gnome within MacPorts which disables writing to $HOME during the build process: https://trac.macports.org/ticket/26783
What would work best for you here? You probably want an environment variable, since a commandline argument would have to be hacked into projects' makefiles, correct?
Created attachment 187051 [details] [review] Add GI_SCANNER_DISABLE_CACHE environment variable
Yep, that would work great for us. Thanks.
Attachment 187051 [details] pushed as 2330248 - Add GI_SCANNER_DISABLE_CACHE environment variable
A build tool should not write files outside its working directory or at least outside the top source directory. Using a $HOME-based cache is the wrong default except maybe for the gobject-introspection hackers themselves. Distributions will surely not like this (clean/reproducible builds). Is it not possible to implement a cache in the working directory instead? Compare for example with intltool-update (uses cache in working directory).
Or the cache could even be disabled by default.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]