Obsolete golang-120
[oi-userland.git] / components / desktop / desktop-cache / patches / 02-gdk.patch
blobe107557eaac223a6bbc1ca2d48947a7aa8b0b539
1 --- desktop-cache-smf-services-0.2.2/pixbuf-loaders/pixbuf-loaders-installer.orig
2 +++ desktop-cache-smf-services-0.2.2/pixbuf-loaders/pixbuf-loaders-installer
3 @@ -69,7 +69,7 @@
4 if [ -a "/etc/$DIR/gtk-2.0/gdk-pixbuf.loaders" ]; then
5 RESULT=`${FIND_NEWER} -f -c -m --name '*.so' \
6 --newer /etc/$DIR/gtk-2.0/gdk-pixbuf.loaders \
7 - /usr/lib/$DIR/gtk-2.0/*/loaders 2>/dev/null`
8 + /usr/lib/$DIR/gdk-pixbuf-2.0/*/loaders 2>/dev/null`
9 else
10 RESULT="no loader file"
12 @@ -77,6 +77,7 @@
13 if [ -n "$RESULT" ]; then
14 echo "updating/creating gdk pixbuf loader file"
15 /usr/bin/$DIR/gdk-pixbuf-query-loaders > /etc/$DIR/gtk-2.0/gdk-pixbuf.loaders
16 + /usr/bin/$DIR/gdk-pixbuf-query-loaders > /usr/lib/$DIR/gdk-pixbuf-2.0/2.10.0/loaders.cache
17 if [ $? -ne 0 ]; then
18 echo "gdk-pixbuf-query-loaders exited with an error while generating the installer file /etc/$DIR/gtk-2.0/gdk-pixbuf.loaders"
19 exit $SMF_EXIT_ERR_FATAL
20 @@ -95,7 +96,7 @@
21 continue
23 if [ -a "/etc/$DIR/gtk-2.0/gdk-pixbuf.loaders" ]; then
24 - RESULT=`/usr/bin/find /usr/lib/$DIR/gtk-2.0/*/loaders/*.so ! -type d \
25 + RESULT=`/usr/bin/find /usr/lib/$DIR/gdk-pixbuf-2.0/*/loaders/*.so ! -type d \
26 -follow -print 2>/dev/null`
27 else
28 RESULT="no loader file"
29 @@ -104,6 +105,7 @@
30 if [ -n "$RESULT" ]; then
31 echo "updating/creating gdk pixbuf loader file"
32 /usr/bin/$DIR/gdk-pixbuf-query-loaders > /etc/$DIR/gtk-2.0/gdk-pixbuf.loaders
33 + /usr/bin/$DIR/gdk-pixbuf-query-loaders > /usr/lib/$DIR/gdk-pixbuf-2.0/2.10.0/loaders.cache
34 if [ $? -ne 0 ]; then
35 echo "gdk-pixbuf-query-loaders exited with an error while generating the installer file /etc/$DIR/gtk-2.0/gdk-pixbuf.loaders"
36 exit $SMF_EXIT_ERR_FATAL