[oe-commits] Tomas Frydrych : librsvg: update gdk-pixbuf loader cache when staging native package

git at git.openembedded.org git at git.openembedded.org
Sun May 12 16:32:59 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 271b772855e091f5d0d97594acd613a9aee47fcb
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=271b772855e091f5d0d97594acd613a9aee47fcb

Author: Tomas Frydrych <tomas at sleepfive.com>
Date:   Fri May 10 14:36:39 2013 +0100

librsvg: update gdk-pixbuf loader cache when staging native package

librsvg installs an svg loader for gdk-pixbuf; in order for the native version
of the loader to be usable by gdk-pixbuf-native we have to update the loader
cache.

Signed-off-by: Tomas Frydrych <tomas at sleepfive.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-gnome/librsvg/librsvg_2.32.1.bb |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-gnome/librsvg/librsvg_2.32.1.bb b/meta/recipes-gnome/librsvg/librsvg_2.32.1.bb
index ff17cf7..dcacce4 100644
--- a/meta/recipes-gnome/librsvg/librsvg_2.32.1.bb
+++ b/meta/recipes-gnome/librsvg/librsvg_2.32.1.bb
@@ -55,3 +55,14 @@ FILES_librsvg-gtk-dbg += "${libdir}/gdk-pixbuf-2.0/.debug \
 
 PIXBUF_PACKAGES = "librsvg-gtk"
 PARALLEL_MAKE = ""
+
+# ensure that the native gdk-pixbuf loaders cache is updated when we stage
+# our svg loader
+SSTATEPOSTINSTFUNCS_class_native += "librsvg_sstate_postinst"
+
+librsvg_sstate_postinst() {
+	if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
+	then
+		GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders.cache gdk-pixbuf-query-loaders --update-cache
+	fi
+}





More information about the Openembedded-commits mailing list