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

Commit

Permalink
Merge tag '8.0.beta0' into t/22658/polyhedron_methods_using_the_polym…
Browse files Browse the repository at this point in the history
…ake_pexpect_interface

SageMath version 8.0.beta0
  • Loading branch information
Matthias Koeppe committed Apr 1, 2017
2 parents cd583e2 + 8725c63 commit 7bcc04c
Show file tree
Hide file tree
Showing 344 changed files with 6,651 additions and 4,144 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SageMath version 7.6, Release Date: 2017-03-25
SageMath version 8.0.beta0, Release Date: 2017-03-30
75 changes: 42 additions & 33 deletions build/bin/sage-spkg
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,33 @@ EOF

# error_msg(header, command)
# This is for printing an error message if something went wrong.
# The first argument is the header to print, the second argument should
# be some proposed command to run in the subshell, e.g. "make".
# The first argument is the header to print. If given, the second
# argument should be some proposed command to run in the subshell
# such as "make".
error_msg()
{
cat >&2 <<MESSAGE
************************************************************************
$1
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
explaining the problem and including the log file
$SAGE_LOGS/$PKG_NAME.log
Describe your computer, operating system, etc.
MESSAGE

if [ -n "$2" ]; then
cat >&2 <<MESSAGE
If you want to try to fix the problem yourself, *don't* just cd to
`pwd` and type '$2' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '`pwd`' && '$SAGE_ROOT/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
MESSAGE
fi

cat >&2 <<MESSAGE
************************************************************************
MESSAGE
}
Expand Down Expand Up @@ -145,8 +154,7 @@ fi
. sage-env

if [ $? -ne 0 ]; then
echo >&2 "Error setting environment variables by sourcing sage-env."
echo >&2 "possibly contact sage-devel (see http://groups.google.com/group/sage-devel)."
error_msg "Error setting environment variables by sourcing sage-env"
exit 1
fi

Expand All @@ -156,7 +164,7 @@ fi

mkdir -p "$SAGE_SPKG_INST"
if [ $? -ne 0 ]; then
echo >&2 "Error creating directory $SAGE_SPKG_INST."
error_msg "Error creating directory $SAGE_SPKG_INST"
exit 1
fi

Expand Down Expand Up @@ -348,7 +356,10 @@ fi
if [ ! -f "$PKG_SRC" ]; then
if [ -n "$PKG_NAME_UPSTREAM" ]; then
# This is the new-style package way of downloading the tarball
sage-download-file $PKG_NAME_UPSTREAM || exit $?
if ! sage-download-file "$PKG_NAME_UPSTREAM"; then
error_msg "Error downloading $PKG_NAME_UPSTREAM"
exit 1
fi
PKG_SRC="$SAGE_DISTFILES/$PKG_NAME_UPSTREAM"
else
# Handle all the legacy cruft. This branch can be deleted once
Expand All @@ -372,6 +383,7 @@ if [ ! -f "$PKG_SRC" ]; then
# like "foo" or "foo-1.2.3".
MIRROR=$(sage-download-file --print-fastest-mirror)/spkg
if [ $? -ne 0 ]; then
error_msg "Error downloading list of packages"
exit 1
fi
for repo in optional experimental huge; do
Expand All @@ -382,6 +394,7 @@ if [ ! -f "$PKG_SRC" ]; then
sage-download-file --quiet "$MIRROR/$repo/list" $repolist
if [ $? -ne 0 ]; then
rm -f $repolist
error_msg "Error downloading $MIRROR/$repo/list"
exit 1
fi

Expand Down Expand Up @@ -478,7 +491,7 @@ EOF
# 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."
error_msg "Error: no write access to packages directory $SAGE_PACKAGES"
exit 1
fi
cd "$SAGE_DISTFILES" || exit $?
Expand All @@ -491,6 +504,7 @@ EOF
if [ $? -ne 0 ]; then
# Delete failed download
rm -f "$PKG_TMP"
error_msg "Error downloading $PKG_URL"
exit 1
fi

Expand All @@ -516,7 +530,7 @@ cd "$SAGE_ROOT" || exit $?
if [ -n "$SAGE_SPKG_COPY_UPSTREAM" ]; then
mkdir -p "$SAGE_SPKG_COPY_UPSTREAM" && cp -p "$PKG_SRC" "$SAGE_SPKG_COPY_UPSTREAM"
if [ $? -ne 0 ]; then
echo >&2 "Failed to copy upstream tarball to directory '$SAGE_SPKG_COPY_UPSTREAM'"
error_msg "Error copying upstream tarball to directory '$SAGE_SPKG_COPY_UPSTREAM'"
exit 1
fi
fi
Expand All @@ -532,7 +546,7 @@ if [ $INFO -ne 0 -a -z "$USE_LOCAL_SCRIPTS" ]; then
cat "$PKG_SCRIPTS/SPKG.txt"
sage-uncompress-spkg "$PKG_SRC" "$PKG_NAME/SPKG.txt"
if [ $? -ne 0 ]; then
echo >&2 "No file SPKG.txt in $PKG_NAME"
error_msg "Error: no file SPKG.txt in $PKG_NAME"
exit 1
fi
exit 0
Expand All @@ -544,21 +558,21 @@ fi

mkdir -p "$SAGE_BUILD_DIR"
if [ $? -ne 0 ]; then
echo >&2 "Error creating directory $SAGE_BUILD_DIR."
error_msg "Error creating directory $SAGE_BUILD_DIR"
exit 1
fi

# Trac #5852: check write permissions
if [ ! -w "$SAGE_BUILD_DIR" ]; then
echo >&2 "Error: no write access to build directory $SAGE_BUILD_DIR."
error_msg "Error: no write access to build directory $SAGE_BUILD_DIR"
exit 1
fi
if [ ! -d "$SAGE_LOCAL" ]; then
# If you just unpack Sage and run "sage -p <pkg>" then local does not yet exist
mkdir "$SAGE_LOCAL"
fi
if [ ! -w "$SAGE_LOCAL" ]; then
echo >&2 "Error: no write access to installation directory $SAGE_LOCAL."
error_msg "Error: no write access to installation directory $SAGE_LOCAL"
exit 1
fi

Expand All @@ -577,7 +591,7 @@ else
echo "Moving old directory $PKG_NAME to $SAGE_BUILD_DIR/old..."
mkdir -p old
if [ $? -ne 0 ]; then
echo >&2 "Error creating directory $SAGE_BUILD_DIR/old."
error_msg "Error creating directory $SAGE_BUILD_DIR/old"
exit 1
fi
rm -rf old/"$PKG_NAME"
Expand All @@ -586,7 +600,7 @@ else
fi

if [ -e "$PKG_NAME" ]; then
echo >&2 "Error (re)moving $PKG_NAME"
error_msg "Error (re)moving $PKG_NAME"
exit 1
fi

Expand All @@ -602,7 +616,7 @@ if [ "$USE_LOCAL_SCRIPTS" = yes ]; then

sage-uncompress-spkg -d src "$PKG_SRC"
if [ $? -ne 0 ]; then
echo >&2 "Error: failed to extract $PKG_SRC"
error_msg "Error: failed to extract $PKG_SRC"
exit 1
fi
else
Expand All @@ -612,21 +626,24 @@ else

sage-uncompress-spkg "$PKG_SRC"
if [ $? -ne 0 ]; then
echo >&2 "Error: failed to extract $PKG_SRC"
error_msg "Error: failed to extract $PKG_SRC"
exit 1
fi

cd "$PKG_NAME"
if [ $? -ne 0 ]; then
echo >&2 "Error: after extracting, the directory '$PKG_NAME' does not exist"
error_msg "Error: after extracting, the directory '$PKG_NAME' does not exist"
exit 1
fi
fi

echo "Finished extraction"

cd src
sage-apply-patches || exit 1
if ! sage-apply-patches; then
error_msg "Error applying patches"
exit 1
fi
cd ..

##################################################################
Expand Down Expand Up @@ -706,14 +723,6 @@ export rsync_proxy=$http_proxy
##################################################################
# Actually install
##################################################################
if [ -r spkg-build ]; then
# Package has both spkg-build and spkg-install
if [ ! -x spkg-build ]; then
echo >&2 "WARNING: spkg-build is not executable, making it executable"
chmod +x spkg-build
fi
fi

if [ ! -x spkg-install ]; then
echo >&2 "WARNING: spkg-install is not executable, making it executable"
chmod +x spkg-install
Expand All @@ -723,20 +732,20 @@ if [ -x spkg-build ]; then
# Package has both spkg-build and spkg-install; execute the latter with SAGE_SUDO
time ./spkg-build
if [ $? -ne 0 ]; then
error_msg "Error building package $PKG_NAME" "make"
exit 1
error_msg "Error building package $PKG_NAME" "make"
exit 1
fi
time $SAGE_SUDO ./spkg-install
if [ $? -ne 0 ]; then
error_msg "Error installing package $PKG_NAME" "make"
exit 1
error_msg "Error installing package $PKG_NAME" "make"
exit 1
fi
else
# Package only has spkg-install
time ./spkg-install
if [ $? -ne 0 ]; then
error_msg "Error installing package $PKG_NAME" "make"
exit 1
error_msg "Error installing package $PKG_NAME" "make"
exit 1
fi
fi

Expand Down
6 changes: 5 additions & 1 deletion build/make/deps
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ toolchain-deps:

# Everything needed to start up Sage using "./sage". Of course, not
# every part of Sage will work. It does not include Maxima for example.
SAGERUNTIME = sagelib $(SCRIPTS) $(inst_ipython) $(inst_pexpect) $(inst_psutil)
SAGERUNTIME = sagelib $(SCRIPTS) $(inst_ipython) $(inst_pexpect) \
$(inst_psutil) $(inst_future)

sageruntime: all-toolchain
$(MAKE) $(SAGERUNTIME)


# Start Sage at least once to check that it works
Expand Down
6 changes: 3 additions & 3 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=configure-VERSION.tar.gz
sha1=7a84c43745334f9940826319b4799e3e7883ee17
md5=e897b888529be545e40ddb697c778a89
cksum=3005224762
sha1=b7df014e2f3dc762a43a96a2e49553a301b6eb75
md5=c8c2f7b67bc0a9784b30239c7b65ba17
cksum=3421961180
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
212
213
23 changes: 23 additions & 0 deletions build/pkgs/curl/SPKG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
= curl =

== Description ==

Multiprotocols data transfer library (and utility).

== License ==

"MIT style license" : see file "COPYING" at the root of the source
tarball, explanations at https://curl.haxx.se/docs/copyright.html.

== Upstream Contact ==

According to the file README at the root of the tarball, contact is
done by mailing https://curl.haxx.se/mail/

== Dependencies ==

None listed.

== Special Update/Build Instructions ==

None.
4 changes: 4 additions & 0 deletions build/pkgs/curl/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tarball=curl-VERSION.tar.bz2
sha1=ae4a14778ef9ac3aaeaa022243d6e26c0bf1362b
md5=fb1f03a142236840c1a77c035fa4c542
cksum=2520895893
5 changes: 5 additions & 0 deletions build/pkgs/curl/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# no dependencies

----------
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.
1 change: 1 addition & 0 deletions build/pkgs/curl/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.53.1
4 changes: 4 additions & 0 deletions build/pkgs/curl/spkg-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

cd src
$MAKE check V=1
42 changes: 42 additions & 0 deletions build/pkgs/curl/spkg-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash

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

cd src

if [ "$SAGE_FAT_BINARY" = yes ]; then
# Let's disable a bunch of stuff which might get linked.
# SSL/TLS still depends on the compilation environment.
CURL_CONFIGURE="--disable-ldap --disable-ldaps --disable-rtsp --disable-ares --disable-crypto-auth --without-libpsl --without-libmetalink --without-libssh2 --without-librtmp --without-libidn --without-nghttp2 --without-gssapi $CURL_CONFIGURE"
fi

if [ "$UNAME" = "Darwin" ]; then
if [ $MACOSX_VERSION -ge 16 ]; then
echo "OS X 10.$[$MACOSX_VERSION-4] Building with clang and --with-darwinssl."
CC=clang
CURL_CONFIGURE="--with-darwinssl $CURL_CONFIGURE"
fi
fi

./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib" \
$CURL_CONFIGURE
if [ $? -ne 0 ]; then
echo >&2 "Error configuring curl."
exit 1
fi

$MAKE V=1
if [ $? -ne 0 ]; then
echo >&2 "Error building curl."
exit 1
fi

$MAKE install V=1
if [ $? -ne 0 ]; then
echo >&2 "Error installing curl."
exit 1
fi
1 change: 1 addition & 0 deletions build/pkgs/curl/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard
2 changes: 1 addition & 1 deletion build/pkgs/cython/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.25.2
0.25.2.p0
12 changes: 12 additions & 0 deletions build/pkgs/cython/patches/cpdef_enums.pyx.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Fix Cython testsuite failure on 32-bit
From upstream commit: d92a718a26c9354fbf35f31a17de5c069865a447
See also: https://github.com/cython/cython/issues/1548

--- a/tests/run/cpdef_enums.pyx
+++ b/tests/run/cpdef_enums.pyx
@@ -93,4 +93,4 @@ def verify_resolution_GH1533():
3
"""
THREE = 100
- return PyxEnum.THREE
+ return int(PyxEnum.THREE)
Loading

0 comments on commit 7bcc04c

Please sign in to comment.