[oe] [meta-java][PATCH] gnumail: Fix race condition in makefile

Maxin B. John maxin.john at intel.com
Fri Dec 11 13:28:34 UTC 2015


Hi Erkka,

On Thu, Dec 10, 2015 at 10:45:45AM +0200, Erkka Kääriä wrote:
> Parallel make does not handle multiple javac invocations correctly, as javac
> compiles any uncompiled dependencies on its own. This leads to a race condition
> where make may see incomplete class files and incorrectly assume that the
> class files has already been compiled. This ultimately causes incomplete class
> files to be included in one of the jars, causing build failures later one when
> javac attempts to use such class file.
> 
> This issue is fixed by patching the makefile so that only one instance of javac
> is invoked, which compiles all the java files in one go.
> 
> Signed-off-by: Erkka Kääriä <erkka.kaaria at intel.com>
> ---
>  .../fix_makefile_race_condition.patch              | 129 +++++++++++++++++++++
>  recipes-core/classpathx/gnumail_1.1.2.bb           |   1 +

Pushed to master with the fix for encoding weirdness which caused some troubles.
Thanks for these fixes.

Best Regards,
Maxin



More information about the Openembedded-devel mailing list