#4949: Optionally build spkgs in $SAGE_BUILD_TMPDIR
-------------------------------------------------------------+--------------
   Reporter:  mabshoff                                       |          Owner:  
mabshoff     
       Type:  enhancement                                    |         Status:  
needs_info   
   Priority:  minor                                          |      Milestone:  
sage-5.0     
  Component:  build                                          |       Keywords:  
sd32         
Work_issues:                                                 |       Upstream:  
N/A          
   Reviewer:  Mariah Lenox, Leif Leonhardy, Maarten Derickx  |         Author:  
John Palmieri
     Merged:                                                 |   Dependencies:  
             
-------------------------------------------------------------+--------------

Comment(by drkirkby):

 Replying to [comment:42 jhpalmieri]:
 > Replying to [comment:41 jdemeyer]:
 > > I ask you again: why???
 >
 > It feels cleaner to me: if I set `$SAGE_BUILD_TMPDIR=/tmp`, then rather
 than producing many subdirectories of `tmp`, everything will live in
 `/tmp/build`.  It's easier to clean up by hand, and `make clean` is easier
 to implement this way; otherwise, I suppose it would have to delete
 `/tmp/atlas-3.8.4.p1/`, `/tmp/blas-...`, etc.  Or `make clean` could not
 modify SAGE_BUILD_TMPDIR at all, but the Make manual suggests that `make
 clean` (and `make distclean`) should "Also delete files in other
 directories if they are created by this makefile."

 John,

 how do you avoid a possible race condition if two or more instances of
 Sage (or some other program), want to use /tmp/build? Perhaps /tmp/$user-
 sage-$SageVersion.$$ might be better. Someone can then find their own
 Sage-related files easily (for example

 {{{
 rm -rf /tmp/drkirkby-sage-4.5.6*
 }}}
 without risk of their being any race condition.


 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4949#comment:47>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to