[OE-core] [PATCH 1/1] adwaita-icon-theme: workaround for do_populate_sysroot failure

Kang Kai Kai.Kang at windriver.com
Wed Aug 21 01:41:06 UTC 2019


On 2019/8/21 上午3:19, Alexander Kanavin wrote:
> On Tue, 20 Aug 2019 at 20:42, Ross Burton <ross.burton at intel.com 
> <mailto:ross.burton at intel.com>> wrote:
>
>     > It fails to run task do_populate_sysroot of adwaita-icon-theme
>     rarely:
>     >
>     > | DEBUG: Executing shell function sysroot_stage_all
>     > | cpio: ./icons/Adwaita/16x16/legacy/_inst.21134_: Cannot stat:
>     No such
>     >    file or directory
>     >
>     > In script ${S}/install-sh, temporary files _inst.* are created
>     and will be
>     > removed by shell builtin command trap when the script exits:
>     >
>     >      # Make a couple of temp file names in the proper directory.
>     >      dsttmp=${dstdirslash}_inst.$$_
>     >      rmtmp=${dstdirslash}_rm.$$_
>     >
>     >      # Trap to clean up those temp files at exit.
>     >      trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
>     >
>     > The temporary files should be deleted already after task
>     do_install. But
>     > somehow they are still exist until the gap between commands find and
>     > cpio in populate_sysroot function sysroot_stage_dir().
>
>     So does this only happen to adwaita-icon-theme?  Is it a bug in
>     install-sh, so impacts almost every automake-using package?  Or is
>     it a
>     bug in how adwaita-icon-theme is using install-sh?
>
>
> This might actually be caused by my glorious hack:
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-gnome/gnome/adwaita-icon-theme/0001-Run-installation-commands-as-shell-jobs.patch?h=master-next
>
> There is a 'wait' after every '&', so not sure what goes wrong here.

Hi Alex,

Thanks. I'll revert this commit locally. And if it is the root cause, 
I'll try to figure out what's going on here.

Kai


>
> Alex
>

-- 
Kai Kang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190821/61a3e0d0/attachment-0001.html>


More information about the Openembedded-core mailing list