Ticket #8951: clear-ECL-from-tmp.patch

File clear-ECL-from-tmp.patch, 2.3 KB (added by drkirkby, 11 years ago)

Mercurial patch - removes tmp files, based on latest verison of ecl

  • SPKG.txt

    # HG changeset patch
    # User David Kirkby <david.kirkby@onetel.net>
    # Date 1273831882 25200
    # Node ID bc3813f72ca521a6afd3718487ffe0cfb27a373a
    # Parent  31d873ccfb186c82513a801c893e4391b6e78c08
    #8951 Clear /tmp/ECL* after building on Solaris + sort out minor SAGE64 issue.
    
    diff -r 31d873ccfb18 -r bc3813f72ca5 SPKG.txt
    a b  
    4545
    4646== Changelog ==
    4747
    48 === ecl-10.4.1 (William Stein, 28 April 2010) ===
     48=== ecl-10.4.1 (William Stein & David Kirkby, 14th May 2010) ===
    4949  * Upgrade to latest stable upstream release.
     50  * Remove /tmp/ECL* on Solaris.
     51  * Forces 64-bit if SAGE64 is set to 'yes' and not 'yes' or '1',
     52    as previous version.
     53  * No longer prints "Building a 32-bit version" if SAGE64 is not set to
     54    'yes' since some systems build 64-bit by default.
    5055
    5156=== ecl-10.2.1 (William Stein, 14 February 2010) ===
    5257  * Upgrade to latest stable upstream release.
  • spkg-install

    diff -r 31d873ccfb18 -r bc3813f72ca5 spkg-install
    a b  
    2222CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include"
    2323LDFLAGS="$LDFLAGS -L$SAGE_LOCAL/lib"
    2424
    25 # Compile for 64-bit if SAGE64 is set to 'yes' or '1'
    26 if [ "x$SAGE64" = "xyes" ] || [ "x$SAGE64" = "x1" ] ; then
     25# Compile for 64-bit if SAGE64 is set to 'yes'
     26if [ "x$SAGE64" = "xyes" ] ; then
    2727   echo "Building a 64-bit version of ECL"
    2828   CFLAGS="$CFLAGS -m64 "
    2929   CXXFLAGS="$CXXFLAGS -m64 "
     
    3232   # Some packages may need LDFLAGS and/or ABI set here.
    3333   LDFLAGS="$LDFLAGS -m64 "
    3434   ABI=64
    35 else
    36    echo "Building a 32-bit version of ECL"
    3735fi
    3836
    3937# If SAGE_DEBUG is set either unset (the default), or set to  'yes'
     
    170168   exit 1
    171169fi
    172170
     171# The following is a TEMPORARY hack, needed to ensure ECL has a higher
     172# probability of building on Solaris. There's a bug in ECL which means it
     173# makes an assumption about temporary files which is not correct (neither
     174# by POSIX standards or Solaris). This stops a build some times if
     175# multiple people use a Solaris machine as temporary files created by one user
     176# can't be removed by another.
     177
     178if [ "x$UNAME" = xSunOs ] ; then
     179  rm -f /tmp/ECL*
     180fi
     181
    173182# Remove old install of ecl, if any.
    174183rm -rf "$SAGE_LOCAL/lib/ecl-"*
    175184if [ $? -ne 0 ]; then