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 16:24:12 +0000 (17:24 +0100)
commit060ee3fdf630235f0795fa695c372ddd505389ee
treed89290a655ab100591830b9ef55ec0f63499787a
parent635e31f027c1fdb9aa279619eb208be1702ef4e0
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]

(From OE-Core rev: b0f81f460cf96798d79d72da7a3246c321caf654)

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