diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-09-04 23:56:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-09 12:12:23 +0100 |
commit | f22415435f92238ebeeb15142844874cfa157453 (patch) | |
tree | 4d452e4b26b00e648735dab765785f91e87483c5 /meta | |
parent | ca9ff8b7d384392ef984da687f1d56a18da9772c (diff) | |
download | poky-f22415435f92238ebeeb15142844874cfa157453.tar.gz |
gobject-introspection: set GI_SCANNER_DISABLE_CACHE for native
The native recipe should not write files to $HOME/.cache as target, this can
avoid problems when multi builds are running on the same host like:
| File "./g-ir-scanner", line 66, in <module>
| sys.exit(scanner_main(sys.argv))
| File "../gobject-introspection-1.48.0/giscanner/scannermain.py", line 543, in scanner_main
| transformer = create_transformer(namespace, options)
| File "../gobject-introspection-1.48.0/giscanner/scannermain.py", line 389, in create_transformer
| symbol_filter_cmd=options.symbol_filter_cmd)
| File "../gobject-introspection-1.48.0/giscanner/transformer.py", line 54, in __init__
| self._cachestore = CacheStore()
| File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 61, in __init__
| self._check_cache_version()
| File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 89, in _check_cache_version
| self._clean()
| File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 141, in _clean
| self._remove_filename(os.path.join(self._directory, filename))
| File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 123, in _remove_filename
| os.unlink(filename)
| FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/.cache/g-ir-scanner/0a47aa95823c95a0b5d1bd610b60d02f35785f26'
| Makefile:3518: recipe for target 'GModule-2.0.gir' failed
(From OE-Core rev: d3c48ff7d19e86b2338b1778f9563969bba3d336)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb index b41a317099..abaa485798 100644 --- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb +++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb | |||
@@ -107,7 +107,7 @@ EXTRA_OECONF_class-target += "--enable-host-gi \ | |||
107 | PACKAGECONFIG ?= "" | 107 | PACKAGECONFIG ?= "" |
108 | PACKAGECONFIG[doctool] = "--enable-doctool,--disable-doctool,python3-mako," | 108 | PACKAGECONFIG[doctool] = "--enable-doctool,--disable-doctool,python3-mako," |
109 | 109 | ||
110 | do_compile_prepend_class-target() { | 110 | do_compile_prepend() { |
111 | # This prevents g-ir-scanner from writing cache data to $HOME | 111 | # This prevents g-ir-scanner from writing cache data to $HOME |
112 | export GI_SCANNER_DISABLE_CACHE=1 | 112 | export GI_SCANNER_DISABLE_CACHE=1 |
113 | 113 | ||