Ticket #14556: trac_14556_maxima.patch

File trac_14556_maxima.patch, 1.6 KB (added by Snark, 9 years ago)

Patch to the maxima spkg

  • SPKG.txt

    # HG changeset patch
    # User Julien Puydt <julien.puydt@laposte.net>
    # Date 1368281192 -7200
    # Node ID 8401f00511b74a8e44e3b75caa78d58b78f61b38
    # Parent  7d5772521fb2a3e2484689a4f1c22479f7f074af
    Remove now useless hack for maxima and readline (#14556)
    
    diff -r 7d5772521fb2 -r 8401f00511b7 SPKG.txt
    a b  
    4040
    4141== Changelog ==
    4242
     43=== maxima-5.29.1.p2 (Julien Puydt, 11 May 2013) ===
     44 * #14556: don't create the maxima-noreadline script, which is now useless
     45   (it dated back to when sage was using clisp instead of ecl)
     46
    4347=== maxima-5.29.1.p1 (Jean-Pierre Flori, Dima Pasechnik, 29 December 2012) ===
    4448 * #13364: update Maxima to version 5.29.1.
    4549 * added the patch from Maxima bug tracker (bug 2520) to avoid
  • spkg-install

    diff -r 7d5772521fb2 -r 8401f00511b7 spkg-install
    a b  
    7171check_error "Failed to install Maxima."
    7272
    7373
    74 echo
    75 echo "Creating wrapper script with disabled readline..."
    76 cat >"$SAGE_LOCAL"/bin/maxima-noreadline <<-"EOF"
    77         #!/usr/bin/env bash
    78         if [[ -z "$SAGE_LOCAL" ]]; then
    79             echo >&2 "Error: This script has to be run from within the Sage environment,"
    80             echo >&2 "       for example from a Sage subshell."
    81             exit 1
    82         fi
    83         SAGE_CLISP_DISABLE_READLINE_HACK="yes"
    84         export SAGE_CLISP_DISABLE_READLINE_HACK
    85         exec "$SAGE_LOCAL"/bin/maxima "$@"
    86 EOF
    87 chmod 755 "$SAGE_LOCAL"/bin/maxima-noreadline
    88 
    8974if [[ -f "$DOT_SAGE/maxima_commandlist_cache.sobj" ]]; then
    9075    echo
    9176    echo "Deleting Maxima commandlist cache."