<div class="gmail_quote">On Thu, Dec 2, 2010 at 23:06, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>The problem with this is that we automatically determine PETSC_ARCH in the course of configure, well</div><div>after we start logging. We do symlink it at the end.</div></blockquote></div><br><div>Yes, but the file gets truncated by the configure process that fires up afterward.  You could</div>
<div><br></div><div>create it as a temporary file in $PETSC_DIR (mktemp)</div><div>symlink configure.log to this temp file</div><div>wait until you know PETSC_ARCH</div><div>hardlink $PETSC_ARCH/conf/configure.log to the temp file</div>
<div>redirect the symlink to $PETSC_ARCH/conf/configure.log</div><div>remove the temp file</div><div><br></div><div>This process should be atomic and always have a usable state even with concurrent configures and unpredictable failures (though I suppose the help message should ask the user to send the real file instead of the symlink which could point elsewhere).</div>
<div><br></div><div>Jed</div>