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

Commit f287c7f

Browse files
committed
Merge branch 'develop' into ticket/15601
2 parents b796e06 + 9db8c5c commit f287c7f

File tree

930 files changed

+35390
-70157
lines changed

Some content is hidden

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

930 files changed

+35390
-70157
lines changed

COPYING.txt

+18-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ cliquer GPLv2+
3838
conway_polynomials None (database)
3939
cvxopt GPLv2+
4040
cython Apache, version 2.0
41+
dateutil Simplified BSD
4142
docutils Modified BSD
4243
ecl LGPLv2+
4344
eclib GPLv2+
@@ -72,7 +73,7 @@ libm4rie GPLv2+
7273
libpng Custom, very similar to zlib
7374
linbox LGPLv2.1+
7475
lrcalc GPLv2+
75-
matplotlib Python License
76+
matplotlib Matplotlib License (BSD compatible, see below)
7677
maxima See below
7778
mercurial GPLv2+
7879
mpc LGPLv3+
@@ -88,12 +89,15 @@ pari GPLv2+
8889
patch GPLv2+
8990
pexpect Python License
9091
pil Similar to MIT and modified BSD (see below)
92+
pkgconf ISC License (equivalent to Simplified BSD)
93+
pkgconfig MIT License
9194
polybori GPLv2+
9295
polytopes_db None (database)
9396
ppl GPLv3+
9497
pycrypto Public domain & Python License
9598
pygments Modified BSD
9699
pynac GPLv2+
100+
pyparsing MIT License
97101
python Python License (see below)
98102
R GPLv2+
99103
ratpoints GPLv2+
@@ -111,6 +115,7 @@ scipy Modified BSD
111115
scons MIT License
112116
setuptools Python License
113117
singular GPLv2 or GPLv3 (see below)
118+
six MIT License
114119
sphinx Modified BSD
115120
sqlalchemy MIT License
116121
sqlite Public Domain (see below)
@@ -119,6 +124,7 @@ sympow Modified BSD
119124
sympy Modified BSD
120125
tachyon Modified BSD
121126
termcap GPLv2+
127+
tornado Apache License
122128
zlib Custom (Modified BSD)
123129
zn_poly GPLv2 or GPLv3 (no later versions, see below)
124130

@@ -1008,6 +1014,17 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10081014

10091015
================================================================================
10101016

1017+
matplotlib:
1018+
(from http://matplotlib.sourceforge.net/users/license.html)
1019+
1020+
Matplotlib only uses BSD compatible code, and its license is based on
1021+
the PSF license. See the Open Source Initiative licenses page for
1022+
details on individual licenses. Non-BSD compatible licenses (eg LGPL)
1023+
are acceptable in matplotlib toolkits. For a discussion of the
1024+
motivations behind the licencing choice, see Licenses.
1025+
1026+
================================================================================
1027+
10111028
maxima:
10121029
(from http://maxima.sourceforge.net/authorization-letter.html)
10131030

Makefile

+4-11
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ all: start doc # indirectly depends on build
1515
logs:
1616
mkdir -p $@
1717

18-
build: logs
19-
cd build && \
18+
build: logs configure
19+
+cd build && \
2020
"../$(PIPE)" \
2121
"env SAGE_PARALLEL_SPKG_BUILD='$(SAGE_PARALLEL_SPKG_BUILD)' ./install all 2>&1" \
2222
"tee -a ../logs/install.log"
@@ -152,16 +152,9 @@ ptestoptional: ptestall # just an alias
152152

153153
ptestoptionallong: ptestalllong # just an alias
154154

155-
bootstrap:
156-
$(MAKE) configure || \
157-
bash -c 'source src/bin/sage-env; sage-download-file $$SAGE_UPSTREAM/configure/configure-`cat build/pkgs/configure/package-version.txt`.tar.gz | tar zxmf -'
158-
159155
configure: configure.ac src/bin/sage-version.sh \
160156
m4/ax_c_check_flag.m4 m4/ax_gcc_option.m4 m4/ax_gcc_version.m4 m4/ax_gxx_option.m4 m4/ax_gxx_version.m4 m4/ax_prog_perl_version.m4
161-
test -d config || mkdir config
162-
aclocal -I m4
163-
automake --add-missing --copy build/Makefile-auto
164-
autoconf
157+
./bootstrap -d
165158

166159
install:
167160
echo "Experimental use only!"
@@ -182,7 +175,7 @@ install:
182175
"$(DESTDIR)"/bin/sage -c # Run sage-location
183176

184177

185-
.PHONY: all build build-serial start install micro_release bootstrap \
178+
.PHONY: all build build-serial start install micro_release \
186179
doc doc-html doc-html-jsmath doc-html-mathjax doc-pdf \
187180
doc-clean clean lib-clean bdist-clean distclean bootstrap-clean maintainer-clean \
188181
test check testoptional testall testlong testoptionallong testallong \

README.txt

+17-6
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,23 @@ Installation Guide:
7575
"Precise"), you need the dpkg-dev package.
7676

7777
OS X: Xcode. Make sure you have installed the most recent version
78-
of Xcode. For pre-Lion versions of OS X, you can download Xcode
79-
from http://developer.apple.com/downloads/. For OS X Lion, you can
80-
install it using the App Store. With Xcode 4.3 or later, you need
81-
to install the "Command Line Tools": from the File menu, choose
82-
"Preferences", then the "Downloads" tab, and then "Install" the
83-
Command Line Tools.
78+
of Xcode. With recent versions of OS X (OS X Lion or later), you
79+
can install Xcode for free from the App Store. For pre-Lion
80+
versions of OS X, you can download Xcode from
81+
http://developer.apple.com/downloads/.
82+
83+
With OS X, you also need to install the "command line tools". When
84+
using OS X Mavericks, after installing Xcode, run this command from
85+
a terminal window:
86+
87+
xcode-select --install
88+
89+
Then click "Install" in the pop-up window.
90+
91+
When using OS X Mountain Lion or earlier, you need to install the
92+
command line tools from Xcode: run Xcode; then from the File
93+
menu, choose "Preferences", then the "Downloads" tab, and then
94+
"Install" the Command Line Tools.
8495

8596
Other platforms: See detailed instructions below.
8697

VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Sage version 6.1.beta5, released 2014-01-15
1+
Sage version 6.2.beta5, released 2014-03-23

bootstrap

+82-28
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
# build/pkgs/configure/package-version.txt
1010
#
1111
# If optional argument -i is given, then automatically increment the
12-
# version number
12+
# version number.
13+
#
14+
# If optional argument -d is given and bootstrapping failed, instead
15+
# extract the files from a local configure tarball, downloading it if
16+
# needed. If -D is given, don't try to bootstrap and always extract or
17+
# donwload.
1318
########################################################################
1419

15-
set -e
16-
1720
# Either run this script from SAGE_ROOT or make sure that SAGE_ROOT
1821
# is set
1922
test -z "$SAGE_ROOT" || cd "$SAGE_ROOT"
@@ -23,17 +26,58 @@ MAKE="${MAKE:-make}"
2326
CONFVERSION=`cat $PKG/package-version.txt`
2427

2528
bootstrap () {
26-
# Start cleanly
27-
$MAKE bootstrap-clean
29+
aclocal -I m4 && \
30+
automake --add-missing --copy build/Makefile-auto && \
31+
autoconf
32+
33+
st=$?
34+
case $st in
35+
0) true;; # Success
36+
37+
63|127) # Autotools not installed or version too old
38+
if [ $DOWNLOAD = yes ]; then
39+
echo >&2 "Bootstrap failed, downloading required files instead."
40+
bootstrap-download || exit $?
41+
else
42+
if [ $st -eq 127 ]; then
43+
verb="install"
44+
else
45+
verb="upgrade"
46+
fi
47+
echo >&2 "Bootstrap failed. Either $verb autotools or run bootstrap with"
48+
echo >&2 "the -d option to download the auto-generated files instead."
49+
exit $st
50+
fi;;
2851

29-
# Generate auto-generated files
30-
$MAKE configure
52+
*) exit $st;; # Failure
53+
esac
3154
}
3255

56+
# Bootstrap by downloading the auto-generated files
57+
bootstrap-download () {
58+
source src/bin/sage-env
59+
60+
mkdir upstream 2>/dev/null
61+
if [ ! -f $CONFBALL ]; then
62+
sage-download-file $SAGE_UPSTREAM/configure/configure-$CONFVERSION.tar.gz >$CONFBALL
63+
if [ $? -ne 0 ]; then
64+
rm -f "$CONFBALL"
65+
echo >&2 "Error: downloading configure-$CONFVERSION.tar.gz failed"
66+
exit 1
67+
fi
68+
fi
69+
70+
# The "m" option to tar ensures that timestamps are set to the
71+
# current time, not taken from the tarball.
72+
# We need these files to be more recent than the input files
73+
# like configure.ac, otherwise "make" gets confused.
74+
tar xzmf $CONFBALL || exit $?
75+
}
3376

3477
save () {
78+
set -e
79+
3580
# Create configure tarball
36-
CONFBALL="upstream/configure-$CONFVERSION.tar.gz"
3781
echo "Creating $CONFBALL..."
3882
mkdir -p upstream
3983
tar zcf "$CONFBALL" configure config/* build/Makefile-auto.in
@@ -42,38 +86,48 @@ save () {
4286
echo "$CONFVERSION" >$PKG/package-version.txt
4387

4488
# Compute checksum
45-
src/bin/sage-fix-pkg-checksums "$CONFBALL"
89+
SAGE_ROOT=. src/bin/sage-fix-pkg-checksums "$CONFBALL"
4690
}
4791

4892

4993
usage () {
50-
echo >&2 "Usage: bootstrap [-i] [-s] [-h]"
94+
echo >&2 "Usage: $0 [-d|-D|-s] [-i] [-h]"
5195
}
5296

5397

5498
# Parse options
55-
SAVE=
56-
while getopts "sih" OPTION
99+
SAVE=no
100+
DOWNLOAD=no
101+
ALWAYSDOWNLOAD=no
102+
while getopts "Ddsih" OPTION
57103
do
58104
case "$OPTION" in
59-
s)
60-
SAVE=yes
61-
;;
62-
i)
63-
CONFVERSION=$(( CONFVERSION + 1 ))
64-
;;
65-
h)
66-
usage
67-
exit
68-
;;
69-
?)
70-
usage
71-
exit 2
72-
;;
105+
D) ALWAYSDOWNLOAD=yes; DOWNLOAD=yes;;
106+
d) DOWNLOAD=yes;;
107+
s) SAVE=yes;;
108+
i) CONFVERSION=$(( CONFVERSION + 1 ));;
109+
h) usage; exit 0;;
110+
?) usage; exit 2;;
73111
esac
74112
done
113+
CONFBALL="upstream/configure-$CONFVERSION.tar.gz"
114+
115+
if [ $DOWNLOAD$SAVE = yesyes ]; then
116+
echo >&2 "$0: refusing to download and save."
117+
usage
118+
exit 2
119+
fi
120+
121+
# Start cleanly (it's not a problem if this fails)
122+
$MAKE bootstrap-clean 2>/dev/null
123+
mkdir config 2>/dev/null
124+
125+
if [ $ALWAYSDOWNLOAD = yes ]; then
126+
bootstrap-download || exit $?
127+
else
128+
bootstrap
129+
fi
75130

76-
bootstrap
77-
if [ -n "$SAVE" ]; then
131+
if [ $SAVE = yes ]; then
78132
save
79133
fi

0 commit comments

Comments
 (0)