[oe] coreutils-native race

Phil Blundell pb at reciva.com
Fri Aug 14 15:44:16 UTC 2009


On Fri, 2009-08-14 at 17:10 +0200, Uli Luckas wrote:
> What happens (once in a while) is that some build process uses commands from 
> coreutils-native while coreutils-native is being staged.
> Let's say the command is 'rm' - so coreutils-native stages 'rm' while another 
> build process trys to delete some file. This leads to "rm: text file busy" 
> because rm is still open for writing.
> 
> Has anyone seen this? And is there a known fix or workaround?

I guess the fix would be to make coreutils-native install its binaries
atomically (i.e. install them to ${STAGING_BINDIR}/rm.new and then mv
them into place) rather than installing them directly into their final
location.  Alternatively you could probably patch it to just not install
things like rm at all: if your host system doesn't have a functioning
"rm" then you're probably hosed anyway.

p.






More information about the Openembedded-devel mailing list