#9312: Fix GLPK spkg for SAGE64
---------------------------------+------------------------------------------
   Reporter:  rlm                |       Owner:  tbd       
       Type:  defect             |      Status:  new       
   Priority:  major              |   Milestone:  sage-4.4.4
  Component:  optional packages  |    Keywords:            
     Author:                     |    Upstream:  N/A       
   Reviewer:                     |      Merged:            
Work_issues:                     |  
---------------------------------+------------------------------------------

Comment(by drkirkby):

 I'm not in a position to check this quickly, as I need to go out soon. It
 needs a bit of work. But the spkg-install makes little sense to me.

  * There's no spkg-check to we are once again trusting things work.
  * I've no idea what all this 'make prefix' is about.
  * I've no idea why so many lines end in &&
  * Since MV, CP, etc are not universally used, it would seem better to
 just unset these, rather than try to add -f to them. It just seems to be
 overly complicating things.

 It would be better if the person that put it together looked over some
 other spkg-install files and the Sage Developers Guide.

 {{{
 if [ "$SAGE_LOCAL" = "" ]; then
    echo "SAGE_LOCAL undefined ... exiting";
    echo "Maybe run 'sage -sh'?"
    exit 1
 fi

 # The version of libtool in this glpk package requires that
 # RM/MV/CP if they are set include the -f option
 # See for example the discussion at:
 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523750

 : ${CP=cp}; CP="$CP -f"; export CP
 : ${MV=mv}; MV="$MV -f"; export MV
 : ${RM=rm}; RM="$RM -f"; export RM

 cd src &&
 LIBS=-ldl ./configure --prefix=$SAGE_LOCAL &&
 make prefix=$SAGE_LOCAL &&
 make install &&
 cd .. &&
 python setup.py install &&
 echo
 
"********************************************************************************"
 &&
 echo "" &&
 echo "    ATTENTION: YOU HAVE TO REBUILD THE SAGE LIBRARY TO GET THIS TO
 WORK" &&
 echo "    exit any running sage instances and call \"sage -b\"" &&
 echo "" &&
 echo
 
"********************************************************************************"
 }}}

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