Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into ticket/16640
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Oct 30, 2014
2 parents 463eb63 + d990119 commit 711127f
Show file tree
Hide file tree
Showing 569 changed files with 24,214 additions and 13,531 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sage version 6.4.beta4, released 2014-09-27
Sage version 6.4.rc0, released 2014-10-30
27 changes: 14 additions & 13 deletions build/deps
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
# $SAGE_ROOT/build/Makefile by $SAGE_ROOT/build/install
###############################################################################

# Let e.g. SAGE_ROOT/build/install pass options to sage-spkg, i.e. currently
# "-f", to force rebuilding dependent packages during an upgrade (#9896).

# Do not put an explicit path for sage-spkg here, it will be found in $PATH.
SAGE_SPKG = sage-spkg $${SAGE_SPKG_OPTS}
SAGE_SPKG = sage-spkg -f
PIPE = $(SAGE_ROOT)/build/pipestatus

# Tell make not to look for files with these names:
Expand Down Expand Up @@ -46,7 +43,6 @@ all-sage: \
$(INST)/$(FLINTQS) \
$(INST)/$(FPLLL) \
$(INST)/$(FREETYPE) \
$(INST)/$(GENUS2REDUCTION) \
$(INST)/$(GAP) \
$(INST)/$(GD) \
$(INST)/$(GDMODULE) \
Expand Down Expand Up @@ -93,6 +89,7 @@ all-sage: \
$(INST)/$(PYNAC) \
$(INST)/$(PYPARSING) \
$(INST)/$(PYTHON) \
$(INST)/$(PYZMQ) \
$(INST)/$(RATPOINTS) \
$(INST)/$(R) \
$(INST)/$(RPY) \
Expand All @@ -114,6 +111,7 @@ all-sage: \
$(INST)/$(TACHYON) \
$(INST)/$(TORNADO) \
$(INST)/$(NCURSES) \
$(INST)/$(ZEROMQ) \
$(INST)/$(ZLIB) \
$(INST)/$(ZNPOLY) \
$(INST)/sage \
Expand Down Expand Up @@ -285,9 +283,6 @@ $(INST)/$(LINBOX): $(INST)/$(MPIR) $(INST)/$(NTL) $(INST)/$(GIVARO) \
$(INST)/$(IML): $(INST)/$(MPIR) $(INST)/$(GSL) $(INST)/$(ATLAS)
+$(PIPE) "$(SAGE_SPKG) $(IML) 2>&1" "tee -a $(SAGE_LOGS)/$(IML).log"

$(INST)/$(GENUS2REDUCTION): $(INST)/$(PARI)
+$(PIPE) "$(SAGE_SPKG) $(GENUS2REDUCTION) 2>&1" "tee -a $(SAGE_LOGS)/$(GENUS2REDUCTION).log"

$(INST)/$(PALP):
+$(PIPE) "$(SAGE_SPKG) $(PALP) 2>&1" "tee -a $(SAGE_LOGS)/$(PALP).log"

Expand All @@ -312,7 +307,7 @@ $(INST)/$(GAP): $(INST)/$(NCURSES) $(INST)/$(READLINE) $(INST)/$(MPIR)
$(INST)/$(LIBGAP): $(INST)/$(GAP)
+$(PIPE) "$(SAGE_SPKG) $(LIBGAP) 2>&1" "tee -a $(SAGE_LOGS)/$(LIBGAP).log"

$(INST)/$(IPYTHON): $(INST)/$(PYTHON)
$(INST)/$(IPYTHON): $(INST)/$(PYTHON) $(INST)/$(JINJA2) $(INST)/$(TORNADO) $(INST)/$(PYZMQ)
+$(PIPE) "$(SAGE_SPKG) $(IPYTHON) 2>&1" "tee -a $(SAGE_LOGS)/$(IPYTHON).log"

$(INST)/$(PEXPECT): $(INST)/$(PYTHON)
Expand Down Expand Up @@ -356,6 +351,9 @@ $(INST)/$(NETWORKX): $(INST)/$(PYTHON)
$(INST)/$(MPMATH): $(INST)/$(PYTHON)
+$(PIPE) "$(SAGE_SPKG) $(MPMATH) 2>&1" "tee -a $(SAGE_LOGS)/$(MPMATH).log"

$(INST)/$(ZEROMQ):
+$(PIPE) "$(SAGE_SPKG) $(ZEROMQ) 2>&1" "tee -a $(SAGE_LOGS)/$(ZEROMQ).log"

$(INST)/$(ZLIB):
+$(PIPE) "$(SAGE_SPKG) $(ZLIB) 2>&1" "tee -a $(SAGE_LOGS)/$(ZLIB).log"

Expand All @@ -377,14 +375,17 @@ $(INST)/$(DATEUTIL): $(INST)/$(PYTHON) $(INST)/$(SIX) $(INST)/$(SETUPTOOLS)
$(INST)/$(PYPARSING): $(INST)/$(PYTHON)
+$(PIPE) "$(SAGE_SPKG) $(PYPARSING) 2>&1" "tee -a $(SAGE_LOGS)/$(PYPARSING).log"

$(INST)/$(TORNADO): $(INST)/$(PYTHON)
$(INST)/$(PYZMQ): $(INST)/$(PYTHON) $(INST)/$(ZEROMQ) $(INST)/$(SETUPTOOLS)
+$(PIPE) "$(SAGE_SPKG) $(PYZMQ) 2>&1" "tee -a $(SAGE_LOGS)/$(PYZMQ).log"

$(INST)/$(TORNADO): $(INST)/$(PYTHON) $(INST)/$(SETUPTOOLS)
+$(PIPE) "$(SAGE_SPKG) $(TORNADO) 2>&1" "tee -a $(SAGE_LOGS)/$(TORNADO).log"

$(INST)/$(MATPLOTLIB): $(INST)/$(PYTHON) $(INST)/$(NUMPY) \
$(INST)/$(FREETYPE) $(INST)/$(LIBPNG) \
$(INST)/$(GDMODULE) $(INST)/$(DATEUTIL) \
$(INST)/$(PKGCONF) $(INST)/$(PYPARSING) \
$(INST)/$(SETUPTOOLS)
$(INST)/$(SETUPTOOLS) $(INST)/$(TORNADO) $(INST)/$(SIX)
+$(PIPE) "$(SAGE_SPKG) $(MATPLOTLIB) 2>&1" "tee -a $(SAGE_LOGS)/$(MATPLOTLIB).log"

$(INST)/$(CDDLIB): $(INST)/$(MPIR)
Expand Down Expand Up @@ -414,10 +415,10 @@ $(INST)/$(R): $(INST)/$(ATLAS) $(INST)/$(ICONV) $(INST)/$(READLINE) $(INST)/$(PK
$(INST)/$(RPY): $(INST)/$(PYTHON) $(INST)/$(R)
+$(PIPE) "$(SAGE_SPKG) $(RPY) 2>&1" "tee -a $(SAGE_LOGS)/$(RPY).log"

$(INST)/$(SYMPY): $(INST)/$(PYTHON)
$(INST)/$(SYMPY): $(INST)/$(PYTHON) $(INST)/$(MPMATH)
+$(PIPE) "$(SAGE_SPKG) $(SYMPY) 2>&1" "tee -a $(SAGE_LOGS)/$(SYMPY).log"

$(INST)/$(CYTHON): $(INST)/$(PYTHON)
$(INST)/$(CYTHON): $(INST)/$(PYTHON) $(INST)/$(SETUPTOOLS)
+$(PIPE) "$(SAGE_SPKG) $(CYTHON) 2>&1" "tee -a $(SAGE_LOGS)/$(CYTHON).log"

$(INST)/$(FLINTQS): $(INST)/$(MPIR)
Expand Down
126 changes: 38 additions & 88 deletions build/install
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ EOF
exit 2
fi

if [ "$SAGE_UPGRADING" = yes ]; then
# We're doing an upgrade. Let build/Makefile call sage-spkg with
# "-f" to force rebuilding dependent packages, too:
export SAGE_SPKG_OPTS="-f"
fi

###############################################################################
# Create basic directories needed for Sage
###############################################################################
Expand All @@ -69,13 +63,13 @@ mkdir -p "$SAGE_SHARE"
# install GCC. The "real" $CC, $CXX,... variables for building Sage are
# set in sage-env.

if [ -z "$CC" ]; then
CC=gcc
if [ -z "$CXX" ]; then
CXX=g++
fi

if [ -z "$CXX" ]; then
if command -v g++ >/dev/null 2>/dev/null; then
CXX=g++
if [ -z "$CC" ]; then
if command -v gcc >/dev/null 2>/dev/null; then
CC=gcc
fi
fi

Expand All @@ -90,22 +84,16 @@ if [ -z "$FC" ]; then
fi

if [ -f "$SAGE_LOCAL/bin/gcc" ]; then
# GCC is already installed. Normally we don't need to re-install
# GCC, unless this is an upgrade. To disable unneeded rebuilding
# GCC is already installed. To disable unneeded rebuilding
# of GCC, we touch the installed file for GCC, such that it will
# really only be built if one of its dependencies has been upgraded.
if [ "$SAGE_UPGRADING" = yes ]; then
echo >&2 "We are upgrading Sage and GCC was installed before, it will get"
echo >&2 "re-installed if needed."
need_to_install_gcc=yes
for f in "$SAGE_SPKG_INST"/gcc-*; do
if [ -f "$f" ]; then
touch "$f"
fi
done
else
need_to_install_gcc=no
fi
echo >&2 "GCC was installed before, it will get re-installed if needed."
need_to_install_gcc=yes
for f in "$SAGE_SPKG_INST"/gcc-*; do
if [ -f "$f" ]; then
touch "$f"
fi
done
elif [ -n "$SAGE_INSTALL_GCC" ]; then
# Check the value of the environment variable SAGE_INSTALL_GCC
case "$SAGE_INSTALL_GCC" in
Expand All @@ -123,29 +111,29 @@ else
# SAGE_INSTALL_GCC is not set, install GCC when needed.
need_to_install_gcc=no

# Check whether $CC is some version of GCC. If it's a different
# Check whether $CXX is some version of GCC. If it's a different
# compiler, install GCC.
CCtype=`testcc.sh $CC`
if [ "$CCtype" != GCC ]; then
echo >&2 "Installing GCC because your '$CC' isn't GCC (GNU CC)."
CXXtype=`testcxx.sh $CXX`
if [ "$CXXtype" != GCC ]; then
echo >&2 "Installing GCC because your '$CXX' isn't GCC (GNU C++)."
need_to_install_gcc=yes
else
# $CC points to some version of GCC, find out which version.
GCCVERSION=`$CC -dumpversion`
# $CXX points to some version of GCC, find out which version.
GCCVERSION=`$CXX -dumpversion`
case $GCCVERSION in
[0-3].*|4.[0-3]|4.[0-3].*)
# Install our own GCC if the system-provided one is older than gcc-4.4.
# * gcc-4.2.4 compiles a slow IML:
# https://groups.google.com/forum/?fromgroups#!topic/sage-devel/Ux3t0dW2FSI
# * gcc-4.3 might have trouble building ATLAS:
# https://groups.google.com/forum/?fromgroups#!topic/sage-devel/KCeFqQ_w2FE
echo >&2 "Installing GCC because you have $CC version $GCCVERSION, which is quite old."
echo >&2 "Installing GCC because you have $CXX version $GCCVERSION, which is quite old."
need_to_install_gcc=yes;;
4.4*|4.5*)
# GCC 4.4.x and GCC 4.5.x fail to compile PARI/GP on ia64:
# * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46044
if [ x`uname -m` = xia64 ]; then
echo >&2 "Installing GCC because you have $CC version $GCCVERSION on ia64."
echo >&2 "Installing GCC because you have $CXX version $GCCVERSION on ia64."
echo >&2 "gcc <= 4.5 fails to compile PARI/GP on ia64."
need_to_install_gcc=yes
fi;;
Expand All @@ -154,14 +142,14 @@ else
# known to give trouble within Sage:
# * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48702
# * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48774
echo >&2 "Installing GCC because you have $CC version $GCCVERSION."
echo >&2 "Installing GCC because you have $CXX version $GCCVERSION."
echo >&2 "gcc-4.6.0 and gcc-4.6.1 have known bugs affecting Sage."
need_to_install_gcc=yes;;
4.6*)
# GCC 4.6.x doesn't compile ECL on Cygwin:
# * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52061
if uname | grep CYGWIN >/dev/null; then
echo >&2 "Installing GCC because you have $CC version $GCCVERSION on Cygwin."
echo >&2 "Installing GCC because you have $CXX version $GCCVERSION on Cygwin."
echo >&2 "gcc-4.6.x fails to compile ECL on Cygwin."
need_to_install_gcc=yes
fi;;
Expand All @@ -170,16 +158,16 @@ else
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48496
# This is fixed in GCC 4.7.1.
if [ x`uname -m` = xia64 ]; then
echo >&2 "Installing GCC because you have $CC version $GCCVERSION on ia64."
echo >&2 "Installing GCC because you have $CXX version $GCCVERSION on ia64."
echo >&2 "gcc-4.7.0 has a serious bug on ia64."
need_to_install_gcc=yes
fi;;
esac
fi

# Check C++ and Fortran compilers.
if [ -z "$CXX" ]; then
echo >&2 "Installing GCC because a C++ compiler is missing."
# Check C, C++ and Fortran compilers.
if [ -z "$CC" ]; then
echo >&2 "Installing GCC because a C compiler is missing."
need_to_install_gcc=yes
fi

Expand All @@ -190,17 +178,17 @@ else
fi

# If we are not installing GCC: check that the assembler and linker
# used by $CC match $AS and $LD.
# used by $CXX match $AS and $LD.
# See http://trac.sagemath.org/sage_trac/ticket/14296
if [ $need_to_install_gcc != yes ]; then
if [ "$AS" != "" ]; then
CC_as=`$CC -print-file-name=as 2>/dev/null`
CC_as=`command -v $CC_as 2>/dev/null`
CXX_as=`$CXX -print-file-name=as 2>/dev/null`
CXX_as=`command -v $CXX_as 2>/dev/null`
cmd_AS=`command -v $AS`

if [ "$CC_as" != "" -a "$CC_as" != "$cmd_AS" ]; then
if [ "$CXX_as" != "" -a "$CXX_as" != "$cmd_AS" ]; then
echo >&2 "Error: Mismatch of assemblers between"
echo >&2 " * $CC using $CC_as"
echo >&2 " * $CXX using $CXX_as"
echo >&2 " * \$AS equal to $AS"
if [ "$SAGE_PORT" = "" ]; then
echo >&2 "Aborting, either change or unset AS or set SAGE_PORT=yes or set"
Expand All @@ -212,13 +200,13 @@ if [ $need_to_install_gcc != yes ]; then
fi
fi
if [ "$LD" != "" ]; then
CC_ld=`$CC -print-file-name=ld 2>/dev/null`
CC_ld=`command -v $CC_ld 2>/dev/null`
CXX_ld=`$CXX -print-file-name=ld 2>/dev/null`
CXX_ld=`command -v $CXX_ld 2>/dev/null`
cmd_LD=`command -v $LD`

if [ "$CC_ld" != "" -a "$CC_ld" != "$cmd_LD" ]; then
if [ "$CXX_ld" != "" -a "$CXX_ld" != "$cmd_LD" ]; then
echo >&2 "Error: Mismatch of linkers between"
echo >&2 " * $CC using $CC_ld"
echo >&2 " * $CXX using $CXX_ld"
echo >&2 " * \$LD equal to $LD"
if [ "$SAGE_PORT" = "" ]; then
echo >&2 "Aborting, either change or unset LD or set SAGE_PORT=yes or set"
Expand All @@ -231,45 +219,6 @@ if [ $need_to_install_gcc != yes ]; then
fi
fi

###############################################################################
# Create the sage_fortran script.
###############################################################################

# Don't use FC if we are installing GCC or have
# installed gfortran, as that can cause compatibility problems.
# We want to use the Fortran compiler that we build as part of GCC.
if [ "$need_to_install_gcc" = yes ] || [ -x "$SAGE_LOCAL/bin/gfortran" ]; then
unset FC
fi

# Write sage_fortran script.
cat >"$SAGE_LOCAL/bin/sage_fortran" <<EOF
#!/bin/sh
cat >&2 <<ENDOFWARNING
WARNING: The sage_fortran script is deprecated since Sage 5.11 and
might not be supported in future versions of Sage. You should update
your package to use the standard environment variable \\\$FC instead.
ENDOFWARNING
if [ "x\$FC" = x ]; then
# Default value determined in build/install
myFC='${FC:-gfortran}'
else
myFC="\$FC"
fi
# unset FC to avoid an infinite loop in the case that FC=sage_fortran.
unset FC
if [ "\$SAGE64" = yes ]; then
exec \$myFC -m64 -fPIC "\$@"
else
exec \$myFC -fPIC "\$@"
fi
EOF
chmod +x "$SAGE_LOCAL/bin/sage_fortran"

###############################################################################
# Create $SAGE_ROOT/build/Makefile starting from build/deps
Expand Down Expand Up @@ -343,7 +292,6 @@ GAP=`newest_version gap`
GCC=`newest_version gcc`
GD=`newest_version gd`
GDMODULE=`newest_version gdmodule`
GENUS2REDUCTION=`newest_version genus2reduction`
GFAN=`newest_version gfan`
GF2X=`newest_version gf2x`
GIT=`newest_version git`
Expand Down Expand Up @@ -390,6 +338,7 @@ PYGMENTS=`newest_version pygments`
PYNAC=`newest_version pynac`
PYPARSING=`newest_version pyparsing`
PYTHON=`newest_version python`
PYZMQ=`newest_version pyzmq`
R=`newest_version r`
RPY=`newest_version rpy2`
RATPOINTS=`newest_version ratpoints`
Expand All @@ -411,6 +360,7 @@ SYMPY=`newest_version sympy`
TACHYON=`newest_version tachyon`
TORNADO=`newest_version tornado`
NCURSES=`newest_version ncurses`
ZEROMQ=`newest_version zeromq`
ZLIB=`newest_version zlib`
ZNPOLY=`newest_version zn_poly`
Expand Down
6 changes: 0 additions & 6 deletions build/pkgs/atlas/SPKG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ Solaris, but should also work on OSX and Cygwin.
RHEL 5 and SLES 10 systems, work around -m64 issue on Itanium2,
and correctly detect number and speed of CPUs on a bunch of systems.
* patches/arm_hard_floats.patch: make sure soft floats are not enforced on ARM.
* patches/long_filenames.patch: fix for long filenames (>128 chars).
* patches/shell.patch: replace two instances of "test -e" by "test -f",
as the former is not portable (in particular for the Solaris shell).
* patches/Makefile.patch: fix clean target.
* patches/threads.patch: Avoid thread-related symbols
ATL_(Set|Reset|Free|Dec)AtomicCount symbols in single-threaded
library.
* patches/do_not_force_mutex.patch: always use assembly over mutex
since the mutex version fails to build a shared library. See #15045
for details.
Expand Down
6 changes: 3 additions & 3 deletions build/pkgs/atlas/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=atlas-VERSION.tar.bz2
sha1=ecacb1132efac76c7a018ec7212508d4a7e7ebcc
md5=5d69a191785de59f693b604599570650
cksum=2926672652
sha1=7d24b5f5213479bd55d997d03d187731be4013b6
md5=d9ca580b85e165a9870db6187542582e
cksum=1184071458
Loading

0 comments on commit 711127f

Please sign in to comment.