[OE-core] [PATCH 2/2] gobject-introspection.bbclass: add libdir to XDG_DATA_DIRS

Alexander Kanavin alex.kanavin at gmail.com
Mon Dec 3 12:17:10 UTC 2018


Otherwise .gir files installed in the sysroot will not be found when multilib is in use
(multilib configurations use libdir rather than datadir).

Signed-off-by: Alexander Kanavin <alex.kanavin at gmail.com>
---
 meta/classes/gobject-introspection.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/gobject-introspection.bbclass b/meta/classes/gobject-introspection.bbclass
index a323c1fc876..4ceb0c68b12 100644
--- a/meta/classes/gobject-introspection.bbclass
+++ b/meta/classes/gobject-introspection.bbclass
@@ -25,7 +25,7 @@ DEPENDS_append_class-native = " gobject-introspection-native"
 DEPENDS_append_class-nativesdk = " gobject-introspection-native"
 
 # This is used by introspection tools to find .gir includes
-export XDG_DATA_DIRS = "${STAGING_DATADIR}"
+export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}"
 
 do_configure_prepend_class-target () {
     # introspection.m4 pre-packaged with upstream tarballs does not yet
-- 
2.17.1



More information about the Openembedded-core mailing list