On 20/08/2019 10:05, [email protected] wrote:
From: Kai Kang <[email protected]>

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?

Ross
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to