]> code.ossystems Code Review - openembedded-core.git/commitdiff
pixbufcache: Fix librsvg-native build
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Mar 2014 13:35:10 +0000 (13:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Mar 2014 23:05:23 +0000 (23:05 +0000)
bitbake librsvg-native would fail with an error about missing icu-native.
The reason is that bitbake doesn't directly parse setscene dependencies. This
change ensures bitbake does see the dependencies and avoids the error.

Ideally we'd teach bitbake about those but that is a significant and complex
change so this resolves the problem for now.

[YOCTO #5926]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/pixbufcache.bbclass

index 0fe5163912aa5f24ec715bae0d1733b509e77b15..414fd30e6a180a0373fef5852fa471abacedf4b4 100644 (file)
@@ -67,3 +67,4 @@ pixbufcache_sstate_postinst() {
 PIXBUFCACHE_SYSROOT_DEPS = ""
 PIXBUFCACHE_SYSROOT_DEPS_class-native = "${@['gdk-pixbuf-native:do_populate_sysroot_setscene', '']['${BPN}' == 'gdk-pixbuf']} glib-2.0-native:do_populate_sysroot_setscene libffi-native:do_populate_sysroot_setscene libpng-native:do_populate_sysroot_setscene zlib-native:do_populate_sysroot_setscene"
 do_populate_sysroot_setscene[depends] += "${PIXBUFCACHE_SYSROOT_DEPS}"
+do_populate_sysroot[depends] += "${@d.getVar('PIXBUFCACHE_SYSROOT_DEPS', True).replace('_setscene','')}"