#6945: [with spkg, needs review] Update readline to version 6.0
----------------------+-----------------------------------------------------
 Reporter:  drkirkby  |       Owner:  mabshoff                   
     Type:  defect    |      Status:  new                        
 Priority:  major     |   Milestone:  sage-4.1.2                 
Component:  packages  |    Keywords:                             
 Reviewer:            |      Author:  David Kirkby, William Stein
   Merged:            |  
----------------------+-----------------------------------------------------

Comment(by mvngu):

 I have been having trouble building Sage 4.1.2.alpha1 from scratch with
 readline 6.0 on openSUSE 11.1. The problem is due to the variable
 `OVERWRITE_READLINE` in `spkg-install`, which is set to true on openSUSE
 11.1. That variable was introduced when the version of readline that was
 shipped with Sage was 5.2, which matches the readline version on openSUSE
 11.1. When upgrading to readline 6.0, we no longer need that variable. I
 have commented out references to that variable in `spkg-install`:
 {{{
 # OVERWRITE_READLINE=false; export OVERWRITE_READLINE

 # First we check for OpenSUSE 11.1 since bash is linked dynamically with a
 # readline that breaks when we build Sage's readline, so we work around
 this
 # for now.

 if [ -f /etc/SuSE-release ]; then
     if [ `grep 11.1 /etc/SuSE-release > /dev/null; echo $?` -eq 0 ]; then
         echo "OpenSUSE 11.1 detected"
         if [ -d /usr/include/readline/ ]; then
             echo "The development version of libreadline is installed ->
 copying"
             if [ `uname -p` = "x86_64" ]; then
                 cp /lib64/libreadline.so.* $SAGE_LOCAL/lib
             else
                 cp /lib/libreadline.so.* $SAGE_LOCAL/lib
             fi
             cp -r /usr/include/readline  $SAGE_LOCAL/include
             exit 0
         else
             echo "No headers found, building library."
             # # This variable is only set to "true" on openSUSE 11.1.
             # OVERWRITE_READLINE="true"; export OVERWRITE_READLINE
         fi
     fi
 fi

 <SNIP>

 # # We only enter this block on openSUSE 11.1.
 # if [ $OVERWRITE_READLINE = "true" ]; then
 #   echo "Overwriting libreadline.so.6.0 with the system one."
 #   rm -f $SAGE_LOCAL/lib/libreadline.so.6.0
 #   if [ `uname -p` = "x86_64" ]; then
 #     cp /lib64/libreadline.so.* $SAGE_LOCAL/lib
 #   else
 #     cp /lib/libreadline.so.* $SAGE_LOCAL/lib
 #   fi
 # fi
 }}}
 An updated package with the above changes is up at

 
http://sage.math.washington.edu/home/mvngu/release/spkg/standard/readline-6.0.spkg

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