Skip to content
Commit 7ad7ba54 authored by Luis's avatar Luis Committed by Steve Sakoman
Browse files

rm_work.bbclass: use HOSTTOOLS 'rm' binary exclusively



The do_rm_work() task is using the first available 'rm' binary
available in PATH to remove files and folders.
However, depending on the PATH setup and RECIPE_SYSROOT_NATIVE
contents, the function can be using the 'rm' binary available
in RECIPE_SYSROOT_NATIVE, a folder that will get removed.
This causes a sporadic race-condition when trying to access the
'rm' binary of a folder already deleted.
Solve this by exclusively using the HOSTTOOLS 'rm' binary, as
this folder will not get removed.

Signed-off-by: default avatarLuis Martins <luis.pinto.martins@gmail.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit edcd9ad3)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent 19f6849b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment