From patchwork Fri Aug 3 20:19:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4/5] gtk-icon-cache: call postinst scriplet at do_rootfs time Date: Fri, 03 Aug 2012 20:19:39 -0000 From: Laurentiu Palcu X-Patchwork-Id: 33763 Message-Id: To: openembedded-core@lists.openembedded.org This will improve first boot time because building the icon cache is done on host, with more processing power than the target. Signed-off-by: Laurentiu Palcu --- meta/classes/gtk-icon-cache.bbclass | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index 01fb2f3..2d82c54 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass @@ -1,18 +1,12 @@ FILES_${PN} += "${datadir}/icons/hicolor" -DEPENDS += "${@['hicolor-icon-theme', '']['${BPN}' == 'hicolor-icon-theme']}" +DEPENDS += "${@['hicolor-icon-theme', '']['${BPN}' == 'hicolor-icon-theme']} gtk+-native" -# This could run on the host as icon cache files are architecture independent, -# but there is no gtk-update-icon-cache built natively. gtk_icon_cache_postinst() { -if [ "x$D" != "x" ]; then - exit 1 -fi - # Update the pixbuf loaders in case they haven't been registered yet GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/2.10.0/loaders gdk-pixbuf-query-loaders --update-cache -for icondir in /usr/share/icons/* ; do +for icondir in $D/usr/share/icons/* ; do if [ -d $icondir ] ; then gtk-update-icon-cache -fqt $icondir fi