I just created a new .spkg for ECL, as it has been updated to 9.8.3
(I'll post it once I have tested it). In the spkg-install there was a
bit of code to copy a patch

#!/usr/bin/env bash

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

set -e

# Copy a file src/cmp/sysfun.lsp (taken from CVS) which caused problems
# with elliptic_e and elliptic_eu on Solaris (SPARC), but was in fact
# implemented on all platforms.
cp -p patches/sysfun.lsp src/src/cmp/

Since the patch was no longer needed, I removed the patches directory,
and decided to test how well the set -e works. Sure enough, this exits
when 'cp' failes to find the patch it needs.

ecl-9.8.3/.hg/undo.branch
ecl-9.8.3/.hg/dirstate
Finished extraction
****************************************************
Host system
uname -a:
SunOS smudge 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-1000
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.4.1/configure
--prefix=/usr/local/gcc-4.4.1-sun-linker/ --with-as=/usr/ccs/bin/as
--without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld
--enable-languages=c,c++,fortran
--with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib
--with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib
CC=/usr/sfw/bin/gcc CXX=/usr/sfw/bin/g++ LDFLAGS='-R /usr/local/lib -L
/usr/local/lib'
Thread model: posix
gcc version 4.4.1 (GCC)
****************************************************
cp: cannot access patches/sysfun.lsp

real    0m0.022s
user    0m0.007s
sys     0m0.015s
sage: An error occurred while installing ecl-9.8.3

It's certainly worth using this.

Dave

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to