#10427: cloning is broken on Solaris
-----------------------------+----------------------------------------------
   Reporter:  jhpalmieri     |       Owner:  drkirkby        
       Type:  defect         |      Status:  new             
   Priority:  major          |   Milestone:  sage-4.6.1      
  Component:  solaris        |    Keywords:  Solaris ln posix
     Author:  John Palmieri  |    Upstream:  N/A             
   Reviewer:                 |      Merged:                  
Work_issues:                 |  
-----------------------------+----------------------------------------------
 On Solaris, cloning is broken.  This is because the command "ln"
 interprets its options differently on Solaris as compared to linux or OS
 X.  Suppose `OLD1` and `OLD2` are existing directories.  On linux or OS X:
 {{{
 $ ln -snf OLD-1 NEW
 $ ls -l
 ...  NEW@ -> OLD1
 ...  OLD1
 ...  OLD2
 $ ln -snf OLD2 NEW
 $ ls -l
 ...  NEW@ -> OLD2
 ...  OLD1
 ...  OLD2
 }}}
 On Solaris:
 {{{
 $ ln -snf OLD-1 NEW
 $ ls -l
 ...  NEW@ -> OLD1
 ...  OLD1
 ...  OLD2
 $ ln -snf OLD2 NEW
 $ ls -l
 ...  NEW@ -> OLD1
 ...  OLD1
 ...  OLD2
 }}}
 `NEW` still points to `OLD1`.  The second command creates a link
 ''inside'' `NEW` (which means, inside `OLD1`), linking to `OLD2`.

 This means that the line
 {{{
     ln -snf "sage-$1" sage
 }}}
 in sage-build doesn't do what we want it to on Solaris: unlink 'sage' and
 then relink it to "sage-$1".  I think we need to delete 'sage' first, so
 that's what the attached patch does.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10427>
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