Apache OpenOffice (AOO) Bugzilla – Issue 54766
$(shell ...) commands in parallel builds can be executed outside the expected order
Last modified: 2013-08-07 15:34:52 UTC
The currently used dmake 4.3 can run into problems when using the $(shell ...) command in parrallel builds. This example: mytarget : myfile (1) +echo something ; sleep 10 (2) +mkdir -p somedir (3) +echo foo $(shell +cp myfile somedir/ ) bar (4) Will most propably fail in a parallel build as for the current dmake line (3) will be scheduled after line (2), but the shell escape in line (4) will be executed immediately without waiting for the rest (so far) of the recipe lines to finish. In this example this means that "somedir" is still missing when cp tries to copy something into it.
I forgot to mention this issue is not really new, this problem is already mentioned along the lines of issue 53148 and hopefully fixed in CWS dmake43p01 but I wanted to have an issue with this problem in the summary.
Fixed in issue 53148
Verify together with issue 53148.
.