[OE-core] [PATCH] gobject-introspection: stop GLib linking to GConf

Ross Burton ross.burton at intel.com
Fri Mar 11 17:26:30 UTC 2016


If gconf is installed in the sysroot then GLib will use it by default for the
GSettings backend.  This will pull a lot more libraries into the scanner
processes and expands the potential for bad linking through the imperfect qemu
user-mode emulation.

Set GSETTINGS_BACKEND=memory to force it to use the stub backend.  It's possible
that other fixes (such as glib relocation) have mitigated the damage that this
causes but right now it's better to be safe than sorry.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb
index 684d7cf..384204c 100644
--- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb
+++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb
@@ -54,6 +54,7 @@ do_configure_prepend_class-target() {
         cat > ${B}/g-ir-scanner-qemuwrapper << EOF
 #!/bin/sh
 export GIO_MODULE_DIR=${STAGING_LIBDIR}/gio/modules
+export GSETTINGS_BACKEND=memory
 
 $qemu_binary "\$@"
 if [ \$? -ne 0 ]; then
-- 
2.7.0




More information about the Openembedded-core mailing list