]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rm_work.bbclass: use HOSTTOOLS 'rm' binary exclusively
authorLuis <luis.pinto.martins@gmail.com>
Sat, 24 Dec 2022 01:49:46 +0000 (01:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Dec 2022 18:37:59 +0000 (18:37 +0000)
commitedcd9ad333bc4e504594e8af83e8cb7007d2e35c
tree0508e4fdbaa404e39e6e2b7dfd4782f31f915940
parentdf9a2b69748d8a24c3390f812225231e9e9acb66
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: Luis Martins <luis.pinto.martins@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rm_work.bbclass