Bug 36398 - make -j5 fails on first run
Summary: make -j5 fails on first run
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL: http://cgit.freedesktop.org/~smcv/tel...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2011-04-19 09:46 UTC by Andre Moreira Magalhaes
Modified: 2012-03-09 05:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Write intermediate files by writing a temporary file first (1.79 KB, patch)
2012-02-21 06:35 UTC, Simon McVittie
Details | Splinter Review
Codegen: write temporary files first, and rename them into place (10.96 KB, patch)
2012-02-21 06:35 UTC, Simon McVittie
Details | Splinter Review

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.