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

Commit 93af258

Browse files
author
Matthias Koeppe
committed
Merge branch 't/22658/polyhedron_methods_using_the_polymake_pexpect_interface' into t/22723/backend_polymake__work_around_polymake_bug_with_zero_inequalities_over_quadratic_extensions
2 parents 693d13d + d7d4234 commit 93af258

File tree

345 files changed

+6692
-4162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+6692
-4162
lines changed

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 7.6, Release Date: 2017-03-25
1+
SageMath version 8.0.beta0, Release Date: 2017-03-30

build/bin/sage-spkg

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -85,24 +85,33 @@ EOF
8585

8686
# error_msg(header, command)
8787
# This is for printing an error message if something went wrong.
88-
# The first argument is the header to print, the second argument should
89-
# be some proposed command to run in the subshell, e.g. "make".
88+
# The first argument is the header to print. If given, the second
89+
# argument should be some proposed command to run in the subshell
90+
# such as "make".
9091
error_msg()
9192
{
9293
cat >&2 <<MESSAGE
9394
************************************************************************
9495
$1
9596
************************************************************************
9697
Please email sage-devel (http://groups.google.com/group/sage-devel)
97-
explaining the problem and including the relevant part of the log file
98+
explaining the problem and including the log file
9899
$SAGE_LOGS/$PKG_NAME.log
99100
Describe your computer, operating system, etc.
101+
MESSAGE
102+
103+
if [ -n "$2" ]; then
104+
cat >&2 <<MESSAGE
100105
If you want to try to fix the problem yourself, *don't* just cd to
101106
`pwd` and type '$2' or whatever is appropriate.
102107
Instead, the following commands setup all environment variables
103108
correctly and load a subshell for you to debug the error:
104109
(cd '`pwd`' && '$SAGE_ROOT/sage' --sh)
105110
When you are done debugging, you can type "exit" to leave the subshell.
111+
MESSAGE
112+
fi
113+
114+
cat >&2 <<MESSAGE
106115
************************************************************************
107116
MESSAGE
108117
}
@@ -145,8 +154,7 @@ fi
145154
. sage-env
146155

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

@@ -156,7 +164,7 @@ fi
156164

157165
mkdir -p "$SAGE_SPKG_INST"
158166
if [ $? -ne 0 ]; then
159-
echo >&2 "Error creating directory $SAGE_SPKG_INST."
167+
error_msg "Error creating directory $SAGE_SPKG_INST"
160168
exit 1
161169
fi
162170

@@ -348,7 +356,10 @@ fi
348356
if [ ! -f "$PKG_SRC" ]; then
349357
if [ -n "$PKG_NAME_UPSTREAM" ]; then
350358
# This is the new-style package way of downloading the tarball
351-
sage-download-file $PKG_NAME_UPSTREAM || exit $?
359+
if ! sage-download-file "$PKG_NAME_UPSTREAM"; then
360+
error_msg "Error downloading $PKG_NAME_UPSTREAM"
361+
exit 1
362+
fi
352363
PKG_SRC="$SAGE_DISTFILES/$PKG_NAME_UPSTREAM"
353364
else
354365
# Handle all the legacy cruft. This branch can be deleted once
@@ -372,6 +383,7 @@ if [ ! -f "$PKG_SRC" ]; then
372383
# like "foo" or "foo-1.2.3".
373384
MIRROR=$(sage-download-file --print-fastest-mirror)/spkg
374385
if [ $? -ne 0 ]; then
386+
error_msg "Error downloading list of packages"
375387
exit 1
376388
fi
377389
for repo in optional experimental huge; do
@@ -382,6 +394,7 @@ if [ ! -f "$PKG_SRC" ]; then
382394
sage-download-file --quiet "$MIRROR/$repo/list" $repolist
383395
if [ $? -ne 0 ]; then
384396
rm -f $repolist
397+
error_msg "Error downloading $MIRROR/$repo/list"
385398
exit 1
386399
fi
387400

@@ -478,7 +491,7 @@ EOF
478491
# Trac #5852: check write permissions
479492
mkdir -p "$SAGE_DISTFILES"
480493
if [ ! -w "$SAGE_DISTFILES" ]; then
481-
echo >&2 "Error: no write access to packages directory $SAGE_PACKAGES."
494+
error_msg "Error: no write access to packages directory $SAGE_PACKAGES"
482495
exit 1
483496
fi
484497
cd "$SAGE_DISTFILES" || exit $?
@@ -491,6 +504,7 @@ EOF
491504
if [ $? -ne 0 ]; then
492505
# Delete failed download
493506
rm -f "$PKG_TMP"
507+
error_msg "Error downloading $PKG_URL"
494508
exit 1
495509
fi
496510

@@ -516,7 +530,7 @@ cd "$SAGE_ROOT" || exit $?
516530
if [ -n "$SAGE_SPKG_COPY_UPSTREAM" ]; then
517531
mkdir -p "$SAGE_SPKG_COPY_UPSTREAM" && cp -p "$PKG_SRC" "$SAGE_SPKG_COPY_UPSTREAM"
518532
if [ $? -ne 0 ]; then
519-
echo >&2 "Failed to copy upstream tarball to directory '$SAGE_SPKG_COPY_UPSTREAM'"
533+
error_msg "Error copying upstream tarball to directory '$SAGE_SPKG_COPY_UPSTREAM'"
520534
exit 1
521535
fi
522536
fi
@@ -532,7 +546,7 @@ if [ $INFO -ne 0 -a -z "$USE_LOCAL_SCRIPTS" ]; then
532546
cat "$PKG_SCRIPTS/SPKG.txt"
533547
sage-uncompress-spkg "$PKG_SRC" "$PKG_NAME/SPKG.txt"
534548
if [ $? -ne 0 ]; then
535-
echo >&2 "No file SPKG.txt in $PKG_NAME"
549+
error_msg "Error: no file SPKG.txt in $PKG_NAME"
536550
exit 1
537551
fi
538552
exit 0
@@ -544,21 +558,21 @@ fi
544558

545559
mkdir -p "$SAGE_BUILD_DIR"
546560
if [ $? -ne 0 ]; then
547-
echo >&2 "Error creating directory $SAGE_BUILD_DIR."
561+
error_msg "Error creating directory $SAGE_BUILD_DIR"
548562
exit 1
549563
fi
550564

551565
# Trac #5852: check write permissions
552566
if [ ! -w "$SAGE_BUILD_DIR" ]; then
553-
echo >&2 "Error: no write access to build directory $SAGE_BUILD_DIR."
567+
error_msg "Error: no write access to build directory $SAGE_BUILD_DIR"
554568
exit 1
555569
fi
556570
if [ ! -d "$SAGE_LOCAL" ]; then
557571
# If you just unpack Sage and run "sage -p <pkg>" then local does not yet exist
558572
mkdir "$SAGE_LOCAL"
559573
fi
560574
if [ ! -w "$SAGE_LOCAL" ]; then
561-
echo >&2 "Error: no write access to installation directory $SAGE_LOCAL."
575+
error_msg "Error: no write access to installation directory $SAGE_LOCAL"
562576
exit 1
563577
fi
564578

@@ -577,7 +591,7 @@ else
577591
echo "Moving old directory $PKG_NAME to $SAGE_BUILD_DIR/old..."
578592
mkdir -p old
579593
if [ $? -ne 0 ]; then
580-
echo >&2 "Error creating directory $SAGE_BUILD_DIR/old."
594+
error_msg "Error creating directory $SAGE_BUILD_DIR/old"
581595
exit 1
582596
fi
583597
rm -rf old/"$PKG_NAME"
@@ -586,7 +600,7 @@ else
586600
fi
587601

588602
if [ -e "$PKG_NAME" ]; then
589-
echo >&2 "Error (re)moving $PKG_NAME"
603+
error_msg "Error (re)moving $PKG_NAME"
590604
exit 1
591605
fi
592606

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

603617
sage-uncompress-spkg -d src "$PKG_SRC"
604618
if [ $? -ne 0 ]; then
605-
echo >&2 "Error: failed to extract $PKG_SRC"
619+
error_msg "Error: failed to extract $PKG_SRC"
606620
exit 1
607621
fi
608622
else
@@ -612,21 +626,24 @@ else
612626

613627
sage-uncompress-spkg "$PKG_SRC"
614628
if [ $? -ne 0 ]; then
615-
echo >&2 "Error: failed to extract $PKG_SRC"
629+
error_msg "Error: failed to extract $PKG_SRC"
616630
exit 1
617631
fi
618632

619633
cd "$PKG_NAME"
620634
if [ $? -ne 0 ]; then
621-
echo >&2 "Error: after extracting, the directory '$PKG_NAME' does not exist"
635+
error_msg "Error: after extracting, the directory '$PKG_NAME' does not exist"
622636
exit 1
623637
fi
624638
fi
625639

626640
echo "Finished extraction"
627641

628642
cd src
629-
sage-apply-patches || exit 1
643+
if ! sage-apply-patches; then
644+
error_msg "Error applying patches"
645+
exit 1
646+
fi
630647
cd ..
631648

632649
##################################################################
@@ -706,14 +723,6 @@ export rsync_proxy=$http_proxy
706723
##################################################################
707724
# Actually install
708725
##################################################################
709-
if [ -r spkg-build ]; then
710-
# Package has both spkg-build and spkg-install
711-
if [ ! -x spkg-build ]; then
712-
echo >&2 "WARNING: spkg-build is not executable, making it executable"
713-
chmod +x spkg-build
714-
fi
715-
fi
716-
717726
if [ ! -x spkg-install ]; then
718727
echo >&2 "WARNING: spkg-install is not executable, making it executable"
719728
chmod +x spkg-install
@@ -723,20 +732,20 @@ if [ -x spkg-build ]; then
723732
# Package has both spkg-build and spkg-install; execute the latter with SAGE_SUDO
724733
time ./spkg-build
725734
if [ $? -ne 0 ]; then
726-
error_msg "Error building package $PKG_NAME" "make"
727-
exit 1
735+
error_msg "Error building package $PKG_NAME" "make"
736+
exit 1
728737
fi
729738
time $SAGE_SUDO ./spkg-install
730739
if [ $? -ne 0 ]; then
731-
error_msg "Error installing package $PKG_NAME" "make"
732-
exit 1
740+
error_msg "Error installing package $PKG_NAME" "make"
741+
exit 1
733742
fi
734743
else
735744
# Package only has spkg-install
736745
time ./spkg-install
737746
if [ $? -ne 0 ]; then
738-
error_msg "Error installing package $PKG_NAME" "make"
739-
exit 1
747+
error_msg "Error installing package $PKG_NAME" "make"
748+
exit 1
740749
fi
741750
fi
742751

build/make/deps

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ toolchain-deps:
7878

7979
# Everything needed to start up Sage using "./sage". Of course, not
8080
# every part of Sage will work. It does not include Maxima for example.
81-
SAGERUNTIME = sagelib $(SCRIPTS) $(inst_ipython) $(inst_pexpect) $(inst_psutil)
81+
SAGERUNTIME = sagelib $(SCRIPTS) $(inst_ipython) $(inst_pexpect) \
82+
$(inst_psutil) $(inst_future)
83+
84+
sageruntime: all-toolchain
85+
$(MAKE) $(SAGERUNTIME)
8286

8387

8488
# Start Sage at least once to check that it works

build/pkgs/configure/checksums.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=7a84c43745334f9940826319b4799e3e7883ee17
3-
md5=e897b888529be545e40ddb697c778a89
4-
cksum=3005224762
2+
sha1=b7df014e2f3dc762a43a96a2e49553a301b6eb75
3+
md5=c8c2f7b67bc0a9784b30239c7b65ba17
4+
cksum=3421961180
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
212
1+
213

build/pkgs/curl/SPKG.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
= curl =
2+
3+
== Description ==
4+
5+
Multiprotocols data transfer library (and utility).
6+
7+
== License ==
8+
9+
"MIT style license" : see file "COPYING" at the root of the source
10+
tarball, explanations at https://curl.haxx.se/docs/copyright.html.
11+
12+
== Upstream Contact ==
13+
14+
According to the file README at the root of the tarball, contact is
15+
done by mailing https://curl.haxx.se/mail/
16+
17+
== Dependencies ==
18+
19+
None listed.
20+
21+
== Special Update/Build Instructions ==
22+
23+
None.

build/pkgs/curl/checksums.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tarball=curl-VERSION.tar.bz2
2+
sha1=ae4a14778ef9ac3aaeaa022243d6e26c0bf1362b
3+
md5=fb1f03a142236840c1a77c035fa4c542
4+
cksum=2520895893

build/pkgs/curl/dependencies

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# no dependencies
2+
3+
----------
4+
All lines of this file are ignored except the first.
5+
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.53.1

build/pkgs/curl/spkg-check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
cd src
4+
$MAKE check V=1

0 commit comments

Comments
 (0)