[yocto] do_unpack: already exists and is not an empty directory

Tomasz Dziendzielski tomasz.dziendzielski at gmail.com
Tue Oct 30 02:51:06 PDT 2018


Hi,
in some recipes that fetches git repository and has S variable set to
"${WORKDIR}/git/foo" once per many builds we're having error:

fatal: destination path
'foobar/work/x86_64-linux/squashfs-tools-native/4.2-r2/git' already
exists and is not an empty directory.

It happens for squashfs-tools-native, vim-native (and maybe more of
them but we didn't find it yet).

I think this happens because of the race condition.

If the S = "${WORKDIR}/git/foo" and B=${S}, then during do_unpack in
parallel the ${B} directory is created and git repository is extracted
to the place where ${B} directory already exists.

Is this issue known?

Best regards,

Tomasz Dziendzielski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20181030/410582c1/attachment.html>


More information about the yocto mailing list