]> code.ossystems Code Review - openembedded-core.git/commit
telepathy-mission-control: do_compile failed (race issue)
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 23 Sep 2013 05:54:47 +0000 (05:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Sep 2013 10:48:04 +0000 (11:48 +0100)
commitb0f81f460cf96798d79d72da7a3246c321caf654
tree37c17bba20aa0198c2040532f418c7b72b7e68f7
parent9b7131e855293064e044cd79259eb350a14f319b
telepathy-mission-control: do_compile failed (race issue)

There might be an error when parallel build:

[snip]
Traceback (most recent call last):
  File "/path/to/tools/glib-gtypes-generator.py", line 304, in <module>
    GTypesGenerator(dom, argv[1], argv[2])()
  File "/path/to/tools/glib-gtypes-generator.py", line 295, in __call__
    file_set_contents(self.output + '.h', ''.join(self.header))
  File "/path/to/tools/libtpcodegen.py", line 42, in file_set_contents
    os.rename(filename + '.tmp', filename)
OSError: [Errno 2] No such file or directory
[snip]

This is a race issue, the _gen/gtypes.h and _gen/gtypes-body.h may
write(remove/rename) _gen/gtypes.tmp at the same time, then there would
be the error.

There was a similar bug in telepathy-glib which was already fixed, we use the
similar patch to fix it here.

[YOCTO #5184]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/telepathy/telepathy-mission-control/tmc-Makefile-fix-race.patch [new file with mode: 0644]
meta/recipes-connectivity/telepathy/telepathy-mission-control_5.15.0.bb