diff options
-rw-r--r-- | meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb index 2377d0eec1..33a43becaa 100644 --- a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb +++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb | |||
@@ -63,12 +63,26 @@ if [ "x$D" != "x" ]; then | |||
63 | # we trick the gdk-pixbuf-query-loaders into scanning the native shared | 63 | # we trick the gdk-pixbuf-query-loaders into scanning the native shared |
64 | # objects and then we remove the NATIVE_ROOT prefix from the paths in | 64 | # objects and then we remove the NATIVE_ROOT prefix from the paths in |
65 | # loaders.cache. | 65 | # loaders.cache. |
66 | gdk-pixbuf-query-loaders $(find $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders \ | 66 | gdk-pixbuf-query-loaders $(ls -d -1 $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.so |\ |
67 | -name *.so | sed -e "s:$D:$NATIVE_ROOT:g") > \ | 67 | sed -e "s:$D:$NATIVE_ROOT:g") > \ |
68 | $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.cache || exit 1 | 68 | $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \ |
69 | 2>$D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.err | ||
70 | |||
71 | # gdk-pixbuf-query-loaders always returns 0, so we need to check if loaders.err | ||
72 | # has anything in it | ||
73 | if [ -s $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.err ]; then | ||
74 | echo "${PN} postinstall scriptlet failed:" | ||
75 | cat $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.err | ||
76 | rm $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.err | ||
77 | # we've got errors, postpone postinstall for first boot | ||
78 | exit 1 | ||
79 | fi | ||
69 | 80 | ||
70 | sed -i -e "s:$NATIVE_ROOT:/:g" $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.cache | 81 | sed -i -e "s:$NATIVE_ROOT:/:g" $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.cache |
71 | 82 | ||
83 | # remove the empty loaders.err | ||
84 | rm $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.err | ||
85 | |||
72 | exit 0 | 86 | exit 0 |
73 | fi | 87 | fi |
74 | 88 | ||