<div dir="ltr"><div>Yes, this looks suspicious to me as well. If the tools are absent you need to investigate why they are absent; skipping the tools execution is just sweeping the problem under the carpet, not fixing it.</div><div><br></div><div>Alex<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 26 Jun 2019 at 04:15, ChenQi <<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Under which circumstances will the tools be absent?<br>
And why do you check the existence of files for some the the existence <br>
of directories for others?<br>
<br>
Best Regards,<br>
Chen Qi<br>
<br>
On 06/26/2019 06:13 AM, Sinan Kaya wrote:<br>
> do_rootfs: The postinstall intercept hook 'update_udev_hwdb'<br>
> do_rootfs: The postinstall intercept hook 'update_gio_module_cache' failed<br>
> do_rootfs: The postinstall intercept hook 'update_icon_cache' failed<br>
> do_rootfs: The postinstall intercept hook 'update_icon_cache' failed<br>
><br>
> Signed-off-by: Sinan Kaya <<a href="mailto:okaya@kernel.org" target="_blank">okaya@kernel.org</a>><br>
> ---<br>
> scripts/postinst-intercepts/update_font_cache | 6 ++++--<br>
> .../postinst-intercepts/update_gio_module_cache | 10 +++++++---<br>
> scripts/postinst-intercepts/update_icon_cache | 16 +++++++++-------<br>
> scripts/postinst-intercepts/update_pixbuf_cache | 5 ++++-<br>
> scripts/postinst-intercepts/update_udev_hwdb | 6 ++++--<br>
> 5 files changed, 28 insertions(+), 15 deletions(-)<br>
><br>
> diff --git a/scripts/postinst-intercepts/update_font_cache b/scripts/postinst-intercepts/update_font_cache<br>
> index 3053c7065f4..954acbb41b2 100644<br>
> --- a/scripts/postinst-intercepts/update_font_cache<br>
> +++ b/scripts/postinst-intercepts/update_font_cache<br>
> @@ -5,5 +5,7 @@<br>
> <br>
> set -e<br>
> <br>
> -PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E ${fontconfigcacheenv} $D${libexecdir}/${binprefix}fc-cache --sysroot=$D --system-only ${fontconfigcacheparams}<br>
> -chown -R root:root $D${fontconfigcachedir}<br>
> +if [ -f $D${libexecdir}/${binprefix}fc-cache ]; then<br>
> + PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E ${fontconfigcacheenv} $D${libexecdir}/${binprefix}fc-cache --sysroot=$D --system-only ${fontconfigcacheparams}<br>
> + chown -R root:root $D${fontconfigcachedir}<br>
> +fi<br>
> diff --git a/scripts/postinst-intercepts/update_gio_module_cache b/scripts/postinst-intercepts/update_gio_module_cache<br>
> index c87fa85db9e..e8483cb0bf5 100644<br>
> --- a/scripts/postinst-intercepts/update_gio_module_cache<br>
> +++ b/scripts/postinst-intercepts/update_gio_module_cache<br>
> @@ -5,7 +5,11 @@<br>
> <br>
> set -e<br>
> <br>
> -PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/<br>
> +if [ -f $D${libexecdir}/${binprefix}gio-querymodules ]; then<br>
> +<br>
> + PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/<br>
> +<br>
> + [ ! -e $D${libdir}/gio/modules/giomodule.cache ] ||<br>
> + chown root:root $D${libdir}/gio/modules/giomodule.cache<br>
> +fi<br>
> <br>
> -[ ! -e $D${libdir}/gio/modules/giomodule.cache ] ||<br>
> - chown root:root $D${libdir}/gio/modules/giomodule.cache<br>
> diff --git a/scripts/postinst-intercepts/update_icon_cache b/scripts/postinst-intercepts/update_icon_cache<br>
> index 212209a9daf..a67ff7ef970 100644<br>
> --- a/scripts/postinst-intercepts/update_icon_cache<br>
> +++ b/scripts/postinst-intercepts/update_icon_cache<br>
> @@ -5,12 +5,14 @@<br>
> <br>
> set -e<br>
> <br>
> -# update native pixbuf loaders<br>
> -$STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache<br>
> +if [ -d $STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0 ]; then<br>
> + # update native pixbuf loaders<br>
> + $STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache<br>
> <br>
> -for icondir in $D/usr/share/icons/*/ ; do<br>
> - if [ -d $icondir ] ; then<br>
> - gtk-update-icon-cache -fqt $icondir<br>
> - fi<br>
> -done<br>
> + for icondir in $D/usr/share/icons/*/ ; do<br>
> + if [ -d $icondir ] ; then<br>
> + gtk-update-icon-cache -fqt $icondir<br>
> + fi<br>
> + done<br>
> +fi<br>
> <br>
> diff --git a/scripts/postinst-intercepts/update_pixbuf_cache b/scripts/postinst-intercepts/update_pixbuf_cache<br>
> index ea12814474e..166422e5c37 100644<br>
> --- a/scripts/postinst-intercepts/update_pixbuf_cache<br>
> +++ b/scripts/postinst-intercepts/update_pixbuf_cache<br>
> @@ -8,6 +8,9 @@ set -e<br>
> export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders<br>
> export GDK_PIXBUF_FATAL_LOADER=1<br>
> <br>
> -PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \<br>
> +if [ -d $D${libdir}/gdk-pixbuf-2.0 ]; then<br>
> + PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders \<br>
> >$GDK_PIXBUF_MODULEDIR/../loaders.cache && \<br>
> sed -i -e "s:$D::g" $GDK_PIXBUF_MODULEDIR/../loaders.cache<br>
> +fi<br>
> +<br>
> diff --git a/scripts/postinst-intercepts/update_udev_hwdb b/scripts/postinst-intercepts/update_udev_hwdb<br>
> index c4fb2bffcbf..7b6e38338f3 100644<br>
> --- a/scripts/postinst-intercepts/update_udev_hwdb<br>
> +++ b/scripts/postinst-intercepts/update_udev_hwdb<br>
> @@ -5,5 +5,7 @@<br>
> <br>
> set -e<br>
> <br>
> -PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D<br>
> -chown root:root $D${sysconfdir}/udev/hwdb.bin<br>
> +if [ -d $D/lib/udev/hwdb.d ]; then<br>
> + PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D $D${libexecdir}/${binprefix}udevadm hwdb --update --root $D<br>
> + chown root:root $D${sysconfdir}/udev/hwdb.bin<br>
> +fi<br>
<br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>