]> code.ossystems Code Review - openembedded-core.git/commit
libtool: fixed parallel build related race
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Sun, 20 May 2012 17:54:37 +0000 (19:54 +0200)
committerScott Garman <scott.a.garman@intel.com>
Tue, 31 Jul 2012 22:07:23 +0000 (15:07 -0700)
commit15204a6cbcdbbb84e02da05b1fb15644fe7df332
tree4f15590ce932270837e6396b6807e67812d49dc9
parent3bff2398cd2d730111faa182d16356e189a36353
libtool: fixed parallel build related race

While building libtool, the libtool script itself will be regenerated
because OE modifies a dependency[1]. With -jX, this operation (-->
removal, creation of non-x file, 'chmod a+x') can happen at a time when
the script is going to be executed.  This can cause errors like:

| arm-linux-gnueabi-libtool: compile:  ccache arm-linux-gnueabi-gcc ...
| ...
| /bin/sh ./config.status libtool
| ...
| arm-linux-gnueabi-libtool: compile:  ccache arm-linux-gnueabi-gcc ...
| /bin/sh: ./arm-linux-gnueabi-libtool: Permission denied
| make[2]: *** [libltdl/libltdl_libltdl_la-lt__alloc.lo] Error 126

I am not sure whether the custom do_compile_prepend() is still needed.
For now only the issue above will be fixed by executing ./config.status
yet again.

[1] see 648290d5bf4d6ff50d3643bb7ad902dfc23aa702

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/libtool/libtool-2.4.2.inc