Bug 54016 - fix for "make -j" safety
Summary: fix for "make -j" safety
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: idle (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-24 16:25 UTC by Dan Winship
Modified: 2012-08-28 11:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
fix (1.18 KB, patch)
2012-08-24 16:25 UTC, Dan Winship
Details | Splinter Review

Description Dan Winship 2012-08-24 16:25:13 UTC
Created attachment 66073 [details] [review]
fix

run "make -j" enough times and eventually you'll hit:

Traceback (most recent call last):
  File "../tools/glib-ginterface-gen.py", line 840, in <module>
    end_headers, not_implemented_func, allow_havoc)()
  File "../tools/glib-ginterface-gen.py", line 766, in __call__
    file_set_contents(self.basename + '.h', '\n'.join(self.__header))
  File "/builddir/build/BUILD/telepathy-idle-0.1.12/tools/libtpcodegen.py", line 42, in file_set_contents
    os.rename(filename + '.tmp', filename)
OSError: [Errno 2] No such file or directory
make[2]: *** [_gen/svc.h] Error 1

for reasons unknown this happens more reliably on some architectures...
Comment 1 Jonny Lamb 2012-08-28 11:13:37 UTC
Merged to master, thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.