[OE-core] [PATCH] gobject-introspection.bbclass: Disable writing to $HOME/.cache/g-ir-scanner
Jason Wessel
jason.wessel at windriver.com
Wed Apr 10 21:54:02 UTC 2019
Investigation of an end user going over their quota in the user's home
directory showed that the gobject-instrospection is writing files into
the ~/.cache/g-ir-scanner when building -native packages. The test
package in this case was gdk-pixbuf-native.
Setting the GI_SCANNER_DISABLE_CACHE in the bbclass should be all that
is needed. The qemu wrapper was already setting this properly, but we
also need it for the -native builds.
meta/recipes-gnome/gobject-introspection/gobject-introspection_1.58.3.bb:131:
export GI_SCANNER_DISABLE_CACHE=1
Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
---
meta/classes/gobject-introspection.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass
index 4ceb0c68b1..359620fba7 100644
--- a/meta/classes/gobject-introspection.bbclass
+++ b/meta/classes/gobject-introspection.bbclass
@@ -27,6 +27,9 @@ DEPENDS_append_class-nativesdk = " gobject-introspection-native"
# This is used by introspection tools to find .gir includes
export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}"
+# Disable writing to $HOME/.cache/g-ir-scanner
+export GI_SCANNER_DISABLE_CACHE = "1"
+
do_configure_prepend_class-target () {
# introspection.m4 pre-packaged with upstream tarballs does not yet
# have our fixes
--
2.17.1
More information about the Openembedded-core
mailing list