diff options
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.26.5.bb')
-rw-r--r-- | meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.26.5.bb | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.26.5.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.26.5.bb index 64f1450aeb..cc2ea50e57 100644 --- a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.26.5.bb +++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.26.5.bb | |||
@@ -20,9 +20,9 @@ SRC_URI = "http://ftp.acc.umu.se/pub/GNOME/sources/gdk-pixbuf/2.26/gdk-pixbuf-${ | |||
20 | SRC_URI[md5sum] = "339329e6d619ee3e1cb93979111b04c0" | 20 | SRC_URI[md5sum] = "339329e6d619ee3e1cb93979111b04c0" |
21 | SRC_URI[sha256sum] = "77696fd163bca95a130a1883dbd78d0ae4d782de2fc85a9a38556d13681f5c84" | 21 | SRC_URI[sha256sum] = "77696fd163bca95a130a1883dbd78d0ae4d782de2fc85a9a38556d13681f5c84" |
22 | 22 | ||
23 | PR = "r0" | 23 | PR = "r1" |
24 | 24 | ||
25 | inherit autotools pkgconfig gettext | 25 | inherit autotools pkgconfig gettext pixbufcache |
26 | 26 | ||
27 | LIBV = "2.10.0" | 27 | LIBV = "2.10.0" |
28 | 28 | ||
@@ -56,48 +56,6 @@ FILES_${PN}-dbg += " \ | |||
56 | ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/.debug/* \ | 56 | ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/.debug/* \ |
57 | " | 57 | " |
58 | 58 | ||
59 | postinst_pixbufloader () { | ||
60 | if [ "x$D" != "x" ]; then | ||
61 | # Update the target's pixbuf loader's cache. Since the native binary will | ||
62 | # throw an error if the shared objects do not belong to the same ELF class, | ||
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 | ||
65 | # loaders.cache. | ||
66 | gdk-pixbuf-query-loaders $(ls -d -1 $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.so |\ | ||
67 | sed -e "s:$D:$NATIVE_ROOT:g") > \ | ||
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 | ||
80 | |||
81 | sed -i -e "s:$NATIVE_ROOT:/:g" $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.cache | ||
82 | |||
83 | # remove the empty loaders.err | ||
84 | rm $D/${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.err | ||
85 | |||
86 | exit 0 | ||
87 | fi | ||
88 | |||
89 | # Update the pixbuf loaders in case they haven't been registered yet | ||
90 | GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders gdk-pixbuf-query-loaders --update-cache | ||
91 | |||
92 | if [ -x ${bindir}/gtk-update-icon-cache ] && [ -d ${datadir}/icons ]; then | ||
93 | for icondir in /usr/share/icons/*; do | ||
94 | if [ -d ${icondir} ]; then | ||
95 | gtk-update-icon-cache -t -q ${icondir} | ||
96 | fi | ||
97 | done | ||
98 | fi | ||
99 | } | ||
100 | |||
101 | PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*" | 59 | PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*" |
102 | PACKAGES_DYNAMIC_class-native = "" | 60 | PACKAGES_DYNAMIC_class-native = "" |
103 | 61 | ||
@@ -106,7 +64,7 @@ python populate_packages_prepend () { | |||
106 | 64 | ||
107 | loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders') | 65 | loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders') |
108 | 66 | ||
109 | do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s', postinst_pixbufloader) | 67 | d.setVar('PIXBUF_PACKAGES', ' '.join(do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s'))) |
110 | } | 68 | } |
111 | 69 | ||
112 | do_install_append_class-native() { | 70 | do_install_append_class-native() { |