Bug 36398

Summary: make -j5 fails on first run
Product: Telepathy Reporter: Andre Moreira Magalhaes <andrunko>
Component: tp-glibAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://cgit.freedesktop.org/~smcv/telepathy-glib/log?h=codegen-tmpfile
Whiteboard:
i915 platform: i915 features:
Attachments: Write intermediate files by writing a temporary file first
Codegen: write temporary files first, and rename them into place

Description Andre Moreira Magalhaes 2011-04-19 09:46:29 UTC
When running make -j5 for the first time I got:

IOErrorIOErrorIOErrorIOError: : : : [Errno 2] No such file or directory: '_gen/tp-spec-channel.xml'[Errno 2] No such file or directory: '_gen/tp-spec-account-manager.xml'[Errno 2] No such file or directory: '_gen/tp-spec-account.xml'[Errno 2] No such file or directory: '_gen/tp-spec-channel-dispatcher.xml'

Subsequent runs work fine though.
Comment 1 Simon McVittie 2012-02-21 06:35:09 UTC
Created attachment 57396 [details] [review]
Write intermediate files by writing a temporary file  first

Otherwise, we have a race condition: the file exists, so make can
proceed, but its contents are not right yet.
Comment 2 Simon McVittie 2012-02-21 06:35:27 UTC
Created attachment 57397 [details] [review]
Codegen: write temporary files first, and rename them  into place
Comment 3 Xavier Claessens 2012-03-09 05:37:27 UTC
+1
Comment 4 Simon McVittie 2012-03-09 05:51:37 UTC
0.17.5

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.