#12347: make install broken in Sage 4.8
------------------------+---------------------------------------------------
   Reporter:  zimmerma  |          Owner:  GeorgSWeber 
       Type:  defect    |         Status:  needs_review
   Priority:  major     |      Milestone:  sage-5.0    
  Component:  build     |       Keywords:              
Work_issues:            |       Upstream:  N/A         
   Reviewer:            |         Author:              
     Merged:            |   Dependencies:              
------------------------+---------------------------------------------------
Changes (by ppurka):

  * status:  new => needs_review


Comment:

 Ok. Here is a fix for the hard coding of the path. The simplest fix is to
 not do any hard coding at all!

 Please apply [attachment:trac_12347.patch] to `SAGE_ROOT` (the directory
 where the `Makefile` is present). If the review is positive then we should
 also remove `SAGE_ROOT/local/bin/sage-hardcode_sage_root` from the tree
 since it is no longer needed.

 I also ran into some problems with `cp`, in particular with this line in
 the `Makefile`:
 {{{
 cp -rpv * $(DESTDIR)/sage/
 }}}
 On the system that I tried this, cp actually errored out with error status
 2. The last few lines of the make output are as follows:
 {{{
 $ make DESTDIR="/tmp/sage-install" install

 .... tons of copying stuff ....

 `spkg/logs/matplotlib-1.0.1.p0.log' -> `/tmp/sage-
 install/sage/spkg/logs/matplotlib-1.0.1.p0.log'
 `spkg/logs/sqlite-3.7.5.p0.log' -> `/tmp/sage-
 install/sage/spkg/logs/sqlite-3.7.5.p0.log'
 `start.log' -> `/tmp/sage-install/sage/start.log'
 `tmp' -> `/tmp/sage-install/sage/tmp'
 make: *** [install] Error 1
 }}}
 I can not fathom why it errors out. As a workaround, I changed the `cp`
 command to include `-u` and the cp finishes fine after invoking the make
 command once again:
 {{{
 $ make DESTDIR="/tmp/sage-install" install
 echo "Experimental use only!"
 Experimental use only!
 if [ "/tmp/sage-install" = "" ]; then \
                 echo "Set DESTDIR"; \
                 exit 1; \
         fi
 mkdir -p /tmp/sage-install
 mkdir -p /tmp/sage-install/sage
 mkdir -p /tmp/sage-install/bin/
 cp -rpuv * /tmp/sage-install/sage/
 `Makefile' -> `/tmp/sage-install/sage/Makefile'
 cd /tmp/sage-install/bin; ln -sfn ../sage/sage ./sage; ./sage -c
 The Sage installation tree may have moved
 (from /home/punarbasu/Installations/sage-4.8 to /tmp/sage-install/sage).
 Changing various hardcoded paths...
 (Please wait at most a few minutes.)
 DO NOT INTERRUPT THIS.
 Done resetting paths.
 }}}

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