summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-04-21 20:18:30 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-24 22:50:43 +0100
commit91556f80461897914698ad96020b1441391df9ec (patch)
tree18fde64df7dda6c37b6ece94d518e175daf6d99e
parent6da7fc5ceabaf45e933b56bcc69d25f1f9f73821 (diff)
downloadpoky-91556f80461897914698ad96020b1441391df9ec.tar.gz
librsvg 2.32.1: fix postinst script
The symptom: root@pandaboard-core:~# sh /var/lib/opkg/info/librsvg-2-gtk.postinst g_module_open() failed for /home/root/--update-cache: /home/root/--update-cache.so: cannot open shared object file: No such file or directory root@pandaboard-core:~# the gdk-pixbuf-query-loaders app doesn't support arguments, only .so names, so remove --update-cache Also being fixed: * loader libdir * redirect output to /etc/gtk-2.0/gdk-pixbuf.loaders (From OE-Core rev: e726028424793093f22fd96f7eec791adf55f0ee) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-gnome/librsvg/librsvg_2.32.1.bb10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-gnome/librsvg/librsvg_2.32.1.bb b/meta/recipes-gnome/librsvg/librsvg_2.32.1.bb
index ea9456dff8..56c880042b 100644
--- a/meta/recipes-gnome/librsvg/librsvg_2.32.1.bb
+++ b/meta/recipes-gnome/librsvg/librsvg_2.32.1.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
9SECTION = "x11/utils" 9SECTION = "x11/utils"
10DEPENDS = "gtk+ libcroco cairo libxml2 popt" 10DEPENDS = "gtk+ libcroco cairo libxml2 popt"
11 11
12PR = "r0" 12PR = "r2"
13 13
14inherit autotools pkgconfig gnome 14inherit autotools pkgconfig gnome
15 15
@@ -43,6 +43,12 @@ if [ "x$D" != "x" ]; then
43 exit 1 43 exit 1
44fi 44fi
45 45
46test -x ${bindir}/gdk-pixbuf-query-loaders && { GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/2.10.0/loaders gdk-pixbuf-query-loaders --update-cache ; } 46if [ -d ${libdir}/gtk-2.0/2.10.0/loaders ] ; then
47 export GDK_PIXBUF_MODULEDIR=${libdir}/gtk-2.0/2.10.0/loaders
48else
49 export GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/2.10.0/loaders
50fi
51
52test -x ${bindir}/gdk-pixbuf-query-loaders && gdk-pixbuf-query-loaders > ${sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
47test -x ${bindir}/gtk-update-icon-cache && gtk-update-icon-cache -q ${datadir}/icons/hicolor 53test -x ${bindir}/gtk-update-icon-cache && gtk-update-icon-cache -q ${datadir}/icons/hicolor
48} 54}