[ccache] HOWTO Use CCache + NFS + distributed builds

2007-03-29 Thread John Coiner
on host B, that the second open() will reflect all modifications and attributes from the close(). Since Make does open() when checking timestamps, and the dummy file is close()d when it's created, the binary will always relink after the object is recompiled. Good luck. John

[ccache] patch: fix NFS issues

2007-03-27 Thread John Coiner
This is a more elegant fix for NFS issues. It applies to ccache-2.4. Unlike my previous patch, it doesn't create lock files, thereby avoiding any issues with stale lock files. - John diff -u /home/jcoiner/ccache-2.4/ccache.c ccache-2.4_nfs_fix/ccache.c --- /home/jcoiner/ccache-2.4/ccache.c

[ccache] patch: workaround for NFS issues

2007-03-24 Thread John Coiner
is a stateless protocol, the server immediately forgets that the original A ever existed. When process Y comes back requesting the next chunk of the original A, it is gone. This patch prevents overwriting an object that's already in the cache. It seems to work, YMMV. - John diff -u ccache-2.4

[ccache] patch: workaround for NFS issues

2007-03-24 Thread John Coiner
have not seen a failure in 15 trials. So it might actually work. - John --- ccache-2.4/ccache.c 2004-09-13 06:38:30.0 -0400 +++ ccache-2.4-fix/ccache.c 2007-03-24 10:40:46.0 -0500 @@ -157,6 +157,7 @@ char *tmp_stdout, *tmp_stderr, *tmp_hashname; struct stat