summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome
diff options
context:
space:
mode:
authorTomas Frydrych <tomas@sleepfive.com>2013-05-10 14:36:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-12 09:37:28 +0100
commitc4c053b8f31ee47db99a15282ccc1c4038f20907 (patch)
treeb6f84749e7f82821e06a75802842fb7e9ca64932 /meta/recipes-gnome
parent97490c41d25b5984bf78327e0b110ccdc659b1bb (diff)
downloadpoky-c4c053b8f31ee47db99a15282ccc1c4038f20907.tar.gz
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. (From OE-Core rev: 271b772855e091f5d0d97594acd613a9aee47fcb) Signed-off-by: Tomas Frydrych <tomas@sleepfive.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome')
-rw-r--r--meta/recipes-gnome/librsvg/librsvg_2.32.1.bb11
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 ff17cf75ed..dcacce4b00 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 \
55 55
56PIXBUF_PACKAGES = "librsvg-gtk" 56PIXBUF_PACKAGES = "librsvg-gtk"
57PARALLEL_MAKE = "" 57PARALLEL_MAKE = ""
58
59# ensure that the native gdk-pixbuf loaders cache is updated when we stage
60# our svg loader
61SSTATEPOSTINSTFUNCS_class_native += "librsvg_sstate_postinst"
62
63librsvg_sstate_postinst() {
64 if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
65 then
66 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
67 fi
68}