#14018: sage-location problem with symlinks
---------------------------------------------+------------------------------
       Reporter:  cnassau                    |         Owner:  tdb         
           Type:  enhancement                |        Status:  needs_review
       Priority:  minor                      |     Milestone:  sage-5.7    
      Component:  relocation                 |    Resolution:              
       Keywords:  relocation, symbolic link  |   Work issues:              
Report Upstream:  N/A                        |     Reviewers:              
        Authors:  Christian Nassau           |     Merged in:              
   Dependencies:                             |      Stopgaps:              
---------------------------------------------+------------------------------

Comment (by cnassau):

 Replying to [comment:6 leif]:
 > Well, I meant `/jehova` shouldn't be "resolved" to `//`.  The problem
 with `sage-location` is just a consequence of doing so.

 But `/jehova` ***does*** resolve to `/`, not `//`.
 It seems {{{pwd}}} is to blame here:
 {{{
 cn@jehova:/waste/cn/sage> pwd
 /waste/cn/sage
 cn@jehova:/waste/cn/sage> pwd -L
 /waste/cn/sage
 cn@jehova:/waste/cn/sage> pwd -P
 //waste/cn/sage-5.6
 }}}
 But maybe this is {{{HIS}}} way to let me know, that {{{HE}}} doesn't want
 to point to '/', either...

 I wonder why {{{./sage}}} uses the {{{-P}}} variant:
 {{{
 # Make SAGE_ROOT absolute
 SAGE_ROOT=`cd "$SAGE_ROOT" && pwd -P`
 if [ $? -ne 0 ]; then
     echo >&2 "$0: cannot determine SAGE_ROOT directory"
     exit 1
 fi
 }}}
 Probably this is normalizing the path somehow, which is probably a good
 thing and shouldn't be changed.

 The real question is if there is a problem with using 'os.path.samefile'
 in 'sage-location'. According to the python docs that function only works
 under unix but that probably covers all Sage supported platforms for the
 foreseeable future, doesn't it?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14018#comment:7>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to