[oe-commits] [openembedded-core] 24/43: gobject-introspection: override GIO_MODULE_DIR when scanning
git at git.openembedded.org
git at git.openembedded.org
Thu Mar 10 23:14:56 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit c544aabf9b070cda6ac1b31ab449bf857c245623
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Wed Mar 9 16:38:54 2016 +0000
gobject-introspection: override GIO_MODULE_DIR when scanning
When scanning we're running a user-mode qemu over the target sysroot, so the
libraries which want to load files from /usr/lib/gio/modules will attempt to
load files on the host's file system. For g-i scanning this is likely to be
mostly harmless but does produce warnings, so override GIO_MODULE_DIR to silence
them.
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
.../recipes-gnome/gobject-introspection/gobject-introspection_1.46.0.bb | 2 ++
1 file changed, 2 insertions(+)
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 d51e607..684d7cf 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
@@ -53,6 +53,8 @@ do_configure_prepend_class-target() {
qemu_binary="${@qemu_wrapper_cmdline(d, '$STAGING_DIR_HOST', ['\$GIR_EXTRA_LIBS_PATH','.libs','$STAGING_DIR_HOST/${libdir}','$STAGING_DIR_HOST/${base_libdir}'])}"
cat > ${B}/g-ir-scanner-qemuwrapper << EOF
#!/bin/sh
+export GIO_MODULE_DIR=${STAGING_LIBDIR}/gio/modules
+
$qemu_binary "\$@"
if [ \$? -ne 0 ]; then
echo "If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the recipe should help."
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list