From patchwork Mon Dec 17 12:32:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] gtk+-native: add gtk-update-icon-cache wrapper Date: Mon, 17 Dec 2012 12:32:43 -0000 From: Laurentiu Palcu X-Patchwork-Id: 41199 Message-Id: <1355747563-17504-3-git-send-email-laurentiu.palcu@intel.com> To: openembedded-core@lists.openembedded.org This is needed in order to point where the pixbuf loaders.cache is located and avoid warnings like the one below that appear when the sstate is fetched from a remote machine: (gtk-update-icon-cache:8913): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/REMOTE/MACHINE/PATH/loaders.cache': No such file or directory Signed-off-by: Laurentiu Palcu --- meta/recipes-gnome/gtk+/gtk+_2.24.13.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/recipes-gnome/gtk+/gtk+_2.24.13.bb b/meta/recipes-gnome/gtk+/gtk+_2.24.13.bb index bc88284..3b3d3c0 100644 --- a/meta/recipes-gnome/gtk+/gtk+_2.24.13.bb +++ b/meta/recipes-gnome/gtk+/gtk+_2.24.13.bb @@ -42,6 +42,11 @@ BBCLASSEXTEND = "native" RRECOMMENDS_${PN}_class-native = "" DEPENDS_class-native = "glib-2.0-native atk-native pango-native cairo-native gdk-pixbuf-native" +do_install_append_class-native () { + create_wrapper ${D}/${bindir}/gtk-update-icon-cache \ + GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache +} + python populate_packages_prepend () { prologue = d.getVar("postinst_prologue", True)