[OE-core] [PATCH] systemd/pixbufcache/gio-module-cache/fontcache: fix build warning when using qemu usermode

Alexander Kanavin alexander.kanavin at linux.intel.com
Thu May 24 06:43:40 UTC 2018


On 05/24/2018 05:19 AM, changqing.li at windriver.com wrote:
> udev-hwdb/pixbufcache/gio-module-cache/fontcache uses qemu usermode by default,
> but some architecture such as Intel skylake does not support qemu usermode, this can
> lead to a build warning as below:
> warning: %post(udev-hwdb-1:234-r0.skylake_64) scriptlet failed, exit status
> "WARNING: The postinstall intercept hook 'update_pixbufcache' failed".
> "WARNING: The postinstall intercept hook 'update_gio_module_cache' failed".
> "WARNING: The postinstall intercept hook 'update_font_cache' failed".
> 
> Add a judgement of qemu usermode to fix the build warning.

Using 'exit 1' in postinst is now deprecated and will soon become a real 
failure. The better way is to make qemuwrapper-cross determine whether 
qemu usermode is supported, and print the warning only if it is 
supported and running qemu fails.

Alex



More information about the Openembedded-core mailing list