https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1442/steps/14/logs/stdio ca-certificates-20210119-r0 do_packagedata_setscene fails with: Exception: subprocess.CalledProcessError: Command 'cp -afl --preserve=xattr ./* /home/pokybuild/yocto-worker/oe-selftest/build/build-st-25595/tmp/pkgdata/qemux86-64' returned non-zero exit status 1. Subprocess output: cp: cannot create directory '/home/pokybuild/yocto-worker/oe-selftest/build/build-st-25595/tmp/pkgdata/qemux86-64/shlibs2': File exists
Reoccurrence https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/2109/steps/14/logs/stdio oe-selftest-fedora fedora33-ty-1
Related to https://bugzilla.yoctoproject.org/show_bug.cgi?id=13999
The copyhardlinktree() code copies directories first, then copies files in the command here that failed so it is as if something deleted the directory in parallel, then there were races over creation of it. That could be from manifest cleaning as per bug 13999.
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2b3ced714a2388f1dac43915e67fdd6c62892238