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

Commit

Permalink
Merge tag '6.9.beta0' into fsm/fourier_2
Browse files Browse the repository at this point in the history
Sage version 6.9.beta0 merged as FSMOldProcessOutput has been removed
in #16133.
  • Loading branch information
cheuberg committed Jul 30, 2015
2 parents f3a5065 + edb1b08 commit f50c239
Show file tree
Hide file tree
Showing 346 changed files with 17,744 additions and 6,573 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -15,8 +15,6 @@
/config.log
/config.status
/configure
/build/Makefile-auto
/build/Makefile-auto.in

###################
# Temporary Files #
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Expand Up @@ -11,12 +11,12 @@ default: all

build: all-build

# Defer unknown targets to build/Makefile
# Defer unknown targets to build/make/Makefile
%::
$(MAKE) configure logs
+cd build && ./pipestatus \
+cd build/make && ./pipestatus \
"./install '$@' 2>&1" \
"tee -a ../logs/install.log"
"tee -a ../../logs/install.log"

logs:
mkdir -p $@
Expand All @@ -42,7 +42,7 @@ misc-clean:
rm -rf tmp
rm -f aclocal.m4 config.log config.status confcache
rm -rf autom4te.cache
rm -f build/Makefile build/Makefile-auto
rm -f build/make/Makefile build/make/Makefile-auto
rm -f .BUILDSTART

bdist-clean: clean
Expand All @@ -56,7 +56,7 @@ distclean: build-clean
# Delete all auto-generated files which are distributed as part of the
# source tarball
bootstrap-clean:
rm -rf config configure build/Makefile-auto.in
rm -rf config configure build/make/Makefile-auto.in

# Remove absolutely everything which isn't part of the git repo
maintainer-clean: distclean bootstrap-clean
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
@@ -1 +1 @@
Sage version 6.8.beta8, released 2015-07-10
Sage version 6.9.beta0, released 2015-07-29
4 changes: 2 additions & 2 deletions bootstrap
Expand Up @@ -27,7 +27,7 @@ CONFVERSION=`cat $PKG/package-version.txt`

bootstrap () {
aclocal -I m4 && \
automake --add-missing --copy build/Makefile-auto && \
automake --add-missing --copy build/make/Makefile-auto && \
autoconf

st=$?
Expand Down Expand Up @@ -75,7 +75,7 @@ save () {
# Create configure tarball
echo "Creating $CONFBALL..."
mkdir -p upstream
tar zcf "$CONFBALL" configure config/* build/Makefile-auto.in
tar zcf "$CONFBALL" configure config/* build/make/Makefile-auto.in

# Update version number
echo "$CONFVERSION" >$PKG/package-version.txt
Expand Down
3 changes: 2 additions & 1 deletion build/.gitignore
@@ -1 +1,2 @@
/Makefile
/.tox
/MANIFEST
28 changes: 28 additions & 0 deletions build/bin/sage-download-file
@@ -0,0 +1,28 @@
#!/usr/bin/env python

# USAGE:
#
# sage-download-file --print-fastest-mirror
#
# Print out the fastest mirror. All further arguments are ignored in
# that case.
#
# sage-download-file [--quiet] url-or-tarball [destination]
#
# The single mandatory argument can be a http:// url or a tarball
# filename. In the latter case, the tarball is downloaded from the
# mirror network and its checksum is verified.
#
# If the destination is not specified:
# * a url will be downloaded and the content written to stdout
# * a tarball will be saved under {SAGE_DISTFILES}

try:
import sage_bootstrap
except ImportError:
import os, sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
import sage_bootstrap

from sage_bootstrap.cmdline import SageDownloadFileApplication
SageDownloadFileApplication().run()
42 changes: 42 additions & 0 deletions build/bin/sage-package
@@ -0,0 +1,42 @@
#!/usr/bin/env python

# Script to manage third-party tarballs.
#
# Usage:
#
# * Print the configuration
#
# $ sage-package config
# Configuration:
# * log = info
# * interactive = True
#
# * Print a list of all available packages
#
# $ sage-package list | sort
# 4ti2
# arb
# atlas
# autotools
# [...]
# zn_poly
#
# * Find the package name given a tarball filename
#
# $ sage-package name pari-2.8-1564-gdeac36e.tar.gz
# pari
#
# * Find the tarball filename given a package name
#
# $ sage-package tarball pari
# pari-2.8-1564-gdeac36e.tar.gz

try:
import sage_bootstrap
except ImportError:
import os, sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
import sage_bootstrap

from sage_bootstrap.cmdline import SagePkgApplication
SagePkgApplication().run()
14 changes: 7 additions & 7 deletions src/bin/sage-spkg → build/bin/sage-spkg
Expand Up @@ -106,10 +106,10 @@ fi
# The following sets environment variables for building packages.
# Since this is sourced, it returns a non-zero value on errors rather
# than exiting. Using dot suggested by W. Cheung.
. "${0%spkg}env"
. sage-env

if [ $? -ne 0 ]; then
echo >&2 "Error setting environment variables by sourcing '$SAGE_ROOT/spkg/bin/sage-env';"
echo >&2 "Error setting environment variables by sourcing sage-env."
echo >&2 "possibly contact sage-devel (see http://groups.google.com/group/sage-devel)."
exit 1
fi
Expand Down Expand Up @@ -320,7 +320,7 @@ if [ ! -f "$PKG_SRC" ]; then
else
echo "Attempting to get on-line info for package $PKG_NAME"
fi

# Reduce everything to case 4: full URL.
if [ -n "$PKG_HAS_PATH" ]; then
PKG_URL="$PKG_SRC"
Expand Down Expand Up @@ -397,7 +397,7 @@ if [ ! -f "$PKG_SRC" ]; then
echo >&2 "Error: could not find a package matching $PKG_NAME on $MIRROR"
exit 1
fi

# Check a second time whether the package is already installed.
if [ $INFO -eq 0 -a $FORCE -eq 0 -a -f "$SAGE_SPKG_INST/$PKG_NAME" ]; then
echo "Package $PKG_NAME is already installed."
Expand All @@ -407,15 +407,15 @@ if [ ! -f "$PKG_SRC" ]; then
exit 0
fi
fi

# Trac #5852: check write permissions
mkdir -p "$SAGE_DISTFILES"
if [ ! -w "$SAGE_DISTFILES" ]; then
echo >&2 "Error: no write access to packages directory $SAGE_PACKAGES."
exit 1
fi
cd "$SAGE_DISTFILES" || exit $?

# Download to a temporary file (such that we don't end up with a
# corrupted .spkg file).
PKG_TMP="${PKG_URL##*/}.tmp"
Expand All @@ -426,7 +426,7 @@ if [ ! -f "$PKG_SRC" ]; then
rm -f "$PKG_TMP"
exit 1
fi

PKG_SRC="`pwd`/${PKG_URL##*/}"
mv -f "$PKG_TMP" "$PKG_SRC"
fi
Expand Down
3 changes: 3 additions & 0 deletions build/make/.gitignore
@@ -0,0 +1,3 @@
/Makefile
/Makefile-auto
/Makefile-auto.in
File renamed without changes.
22 changes: 11 additions & 11 deletions build/deps → build/make/deps
@@ -1,11 +1,11 @@
###############################################################################
# This file ($SAGE_ROOT/build/deps) will be copied into
# $SAGE_ROOT/build/Makefile by $SAGE_ROOT/build/install
# This file ($SAGE_ROOT/build/make/deps) will be copied into
# $SAGE_ROOT/build/make/Makefile by $SAGE_ROOT/build/make/install
###############################################################################

# Do not put an explicit path for sage-spkg here, it will be found in $PATH.
SAGE_SPKG = sage-spkg -f
PIPE = $(SAGE_ROOT)/build/pipestatus
PIPE = $(SAGE_ROOT)/build/make/pipestatus
STARTED = $(SAGE_LOCAL)/etc/sage-started.txt

# Tell make not to look for files with these names:
Expand Down Expand Up @@ -46,7 +46,7 @@ all-sage: \
$(EXTCODE) \
$(SCRIPTS)

# TOOLCHAIN consists of dependencies determined by build/install,
# TOOLCHAIN consists of dependencies determined by build/make/install,
# including for example the GCC package.
toolchain: $(TOOLCHAIN)

Expand Down Expand Up @@ -76,7 +76,7 @@ start: all-build
# We make this depend on all standard packages because running
# sage-starts runs sage-location, which should be run after installing
# any package.
$(STARTED): $(STANDARD_PACKES)
$(STARTED): $(STANDARD_PACKAGES)
"$(SAGE_LOCAL)/bin/sage-starts"


Expand All @@ -87,8 +87,8 @@ $(STARTED): $(STANDARD_PACKES)
###############################################################################
base: $(INST)/$(BZIP2) $(INST)/$(PATCH) $(INST)/$(PKGCONF)

$(INST)/prereq: ../configure
@cd ..; rm -f config.log; ln -s logs/pkgs/config.log config.log; \
$(INST)/prereq: ../../configure
@cd ../..; rm -f config.log; ln -s logs/pkgs/config.log config.log; \
./configure $$PREREQ_OPTIONS || ( \
if [ "x$$SAGE_PORT" = x ]; then \
echo "If you would like to try to build Sage anyway (to help porting),"; \
Expand Down Expand Up @@ -198,23 +198,23 @@ DOC_DEPENDENCIES = sagelib $(INST)/$(SPHINX) $(INST)/$(SAGENB) \
doc: doc-html

doc-html: $(DOC_DEPENDENCIES)
cd .. && $(PIPE) "./sage --docbuild --no-pdf-links all html $(SAGE_DOCBUILD_OPTS) 2>&1" "tee -a logs/dochtml.log"
cd ../.. && $(PIPE) "./sage --docbuild --no-pdf-links all html $(SAGE_DOCBUILD_OPTS) 2>&1" "tee -a logs/dochtml.log"

# 'doc-html-no-plot': build docs without building the graphics coming
# from the '.. plot' directive, in case you want to save a few
# megabytes of disk space. 'doc-clean' is a prerequisite because the
# presence of graphics is cached in src/doc/output.
doc-html-no-plot: doc-clean $(DOC_DEPENDENCIES)
cd .. && $(PIPE) "./sage --docbuild --no-pdf-links --no-plot all html $(SAGE_DOCBUILD_OPTS) 2>&1" "tee -a logs/dochtml.log"
cd ../.. && $(PIPE) "./sage --docbuild --no-pdf-links --no-plot all html $(SAGE_DOCBUILD_OPTS) 2>&1" "tee -a logs/dochtml.log"

doc-html-mathjax: $(DOC_DEPENDENCIES)
cd .. && $(PIPE) "./sage --docbuild --no-pdf-links all html -j $(SAGE_DOCBUILD_OPTS) 2>&1" "tee -a logs/dochtml.log"
cd ../.. && $(PIPE) "./sage --docbuild --no-pdf-links all html -j $(SAGE_DOCBUILD_OPTS) 2>&1" "tee -a logs/dochtml.log"

# Keep target 'doc-html-jsmath' for backwards compatibility.
doc-html-jsmath: doc-html-mathjax

doc-pdf: $(DOC_DEPENDENCIES)
cd .. && $(PIPE) "./sage --docbuild all pdf $(SAGE_DOCBUILD_OPTS) 2>&1" "tee -a logs/docpdf.log"
cd ../.. && $(PIPE) "./sage --docbuild all pdf $(SAGE_DOCBUILD_OPTS) 2>&1" "tee -a logs/docpdf.log"

doc-clean:
cd "$(SAGE_SRC)/doc" && $(MAKE) clean
Expand Down
22 changes: 11 additions & 11 deletions build/install → build/make/install
Expand Up @@ -4,8 +4,8 @@
# Set various environment variables
########################################################################

# Assume current directory is SAGE_ROOT/build
SAGE_ROOT=`cd .. && pwd -P`
# Assume current directory is SAGE_ROOT/build/make
SAGE_ROOT=`cd ../.. && pwd -P`
SAGE_SRC="$SAGE_ROOT/src"
SAGE_LOCAL="$SAGE_ROOT/local"
SAGE_SHARE="$SAGE_LOCAL/share"
Expand All @@ -18,7 +18,7 @@ if [ -z "${SAGE_ORIG_PATH_SET}" ]; then
SAGE_ORIG_PATH=$PATH && export SAGE_ORIG_PATH
SAGE_ORIG_PATH_SET=True && export SAGE_ORIG_PATH_SET
fi
PATH="$SAGE_SRC/bin:$SAGE_LOCAL/bin:$PATH"
PATH="$SAGE_ROOT/build/bin:$SAGE_SRC/bin:$SAGE_LOCAL/bin:$PATH"

PYTHONPATH="$SAGE_LOCAL"
export SAGE_ROOT SAGE_SRC SAGE_LOCAL SAGE_EXTCODE SAGE_LOGS SAGE_SPKG_INST SAGE_VERSION PATH PYTHONPATH
Expand Down Expand Up @@ -98,7 +98,7 @@ fi
###############################################################################

# Determine various compilers. These variables should not be exported,
# they are only used in this build/install script to determine whether to
# they are only used in this build/make/install script to determine whether to
# install GCC. The "real" $CC, $CXX,... variables for building Sage are
# set in sage-env.

Expand Down Expand Up @@ -248,7 +248,7 @@ fi


###############################################################################
# Create $SAGE_ROOT/build/Makefile starting from build/deps
# Create $SAGE_ROOT/build/make/Makefile starting from build/make/deps
###############################################################################

# Trac #15624: use file descriptor 5 since make uses 3 and 4
Expand All @@ -257,14 +257,14 @@ exec 5>Makefile
cat >&5 <<EOF
#==============================================================================
# This file has been automatically generated by
# $SAGE_ROOT/build/install
# $SAGE_ROOT/build/make/install
# You should not edit it by hand
#==============================================================================
EOF

# Use bash as shell for the Makefile (bash obviously exists, since
# this build/install script runs under bash).
# this build/make/install script runs under bash).
echo >&5 "SHELL = `command -v bash`"
echo >&5

Expand Down Expand Up @@ -411,18 +411,18 @@ for file in `find "$SAGE_SRC"/ext -type f`; do
done
echo >&5

# Copy build/deps
# Copy build/make/deps
cat >&5 <<EOF
#==============================================================================
# What follows now is a copy of
# $SAGE_ROOT/build/deps
# $SAGE_ROOT/build/make/deps
#==============================================================================
EOF

cat "$SAGE_ROOT/build/deps" >&5
# Copy build/deps
cat "$SAGE_ROOT/build/make/deps" >&5
# Copy build/make/deps

cat >&5 <<EOF
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions build/pkgs/arb/dependencies
@@ -0,0 +1,5 @@
$(INST)/$(SAGE_MP_LIBRARY) $(INST)/$(MPFR) $(INST)/$(FLINT)

----------
All lines of this file are ignored except the first.
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.
2 changes: 1 addition & 1 deletion build/pkgs/atlas/dependencies
Expand Up @@ -2,4 +2,4 @@

----------
All lines of this file are ignored except the first.
It is copied by SAGE_ROOT/build/install into SAGE_ROOT/build/Makefile.
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.
2 changes: 1 addition & 1 deletion build/pkgs/backports_ssl_match_hostname/dependencies
Expand Up @@ -2,4 +2,4 @@ $(INST)/$(PYTHON) $(INST)/$(SETUPTOOLS)

----------
All lines of this file are ignored except the first.
It is copied by SAGE_ROOT/build/install into SAGE_ROOT/build/Makefile.
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.
2 changes: 1 addition & 1 deletion build/pkgs/bzip2/dependencies
Expand Up @@ -2,4 +2,4 @@ $(INST)/$(PKGCONF)

----------
All lines of this file are ignored except the first.
It is copied by SAGE_ROOT/build/install into SAGE_ROOT/build/Makefile.
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.
2 changes: 1 addition & 1 deletion build/pkgs/ccache/dependencies
Expand Up @@ -2,4 +2,4 @@ $(INST)/$(ZLIB)

----------
All lines of this file are ignored except the first.
It is copied by SAGE_ROOT/build/install into SAGE_ROOT/build/Makefile.
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.
2 changes: 1 addition & 1 deletion build/pkgs/cddlib/dependencies
Expand Up @@ -2,4 +2,4 @@ $(INST)/$(SAGE_MP_LIBRARY)

----------
All lines of this file are ignored except the first.
It is copied by SAGE_ROOT/build/install into SAGE_ROOT/build/Makefile.
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.
2 changes: 1 addition & 1 deletion build/pkgs/certifi/dependencies
Expand Up @@ -2,4 +2,4 @@ $(INST)/$(PYTHON) $(INST)/$(SETUPTOOLS)

----------
All lines of this file are ignored except the first.
It is copied by SAGE_ROOT/build/install into SAGE_ROOT/build/Makefile.
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.

0 comments on commit f50c239

Please sign in to comment.