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

Commit 1124391

Browse files
committed
Merge branch 'u/jdemeyer/no-sage64' into u/embray/build/destdir-curl-gc
Conflicts: build/pkgs/gc/spkg-install
2 parents 85e9f9b + 905e4d4 commit 1124391

File tree

245 files changed

+5053
-2358
lines changed

Some content is hidden

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

245 files changed

+5053
-2358
lines changed

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 8.2.beta8, Release Date: 2018-03-10
1+
SageMath version 8.2.rc0, Release Date: 2018-03-28

build/bin/sage-spkg

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,26 @@ export https_proxy=$http_proxy
801801
export ftp_proxy=$http_proxy
802802
export rsync_proxy=$http_proxy
803803

804+
##################################################################
805+
# We need to run sage-rebase.sh for each package installed, but it
806+
# can be dangerous to do this while other packages are installing
807+
# so we need to use a lock to manage when rebase is allowed to
808+
# run. Because of this, if multiple sage-spkg runs are waiting on
809+
# the rebase lock, we can end up with multiple consecutive rebase
810+
# calls that are redundant, but I don't see an obvious way around
811+
# that. This also unfortunately slows down parallel builds since
812+
# all packages will eventually need to wait for this lock, but
813+
# again there's no simple way around that.
814+
##################################################################
815+
816+
if [ "$UNAME" = "CYGWIN" ]; then
817+
if [ ! -d "$SAGE_LOCAL/var/lock" ]; then
818+
mkdir -p "$SAGE_LOCAL/var/lock"
819+
fi
820+
exec 200>"$SAGE_LOCAL/var/lock/rebase.lock"
821+
sage-flock -s $lock_type 200
822+
fi
823+
804824
##################################################################
805825
# Actually install
806826
##################################################################
@@ -810,6 +830,13 @@ export rsync_proxy=$http_proxy
810830
# this in one place)
811831
export SAGE_DESTDIR="${SAGE_BUILD_DIR}/${PKG_NAME}/inst"
812832

833+
# The actual prefix where the installation will be staged. This is the
834+
# directory that you need to work in if you want to change the staged
835+
# installation tree (before final installation to $SAGE_LOCAL) at the
836+
# end of spkg-install.
837+
export SAGE_DESTDIR_LOCAL="${SAGE_DESTDIR}${SAGE_LOCAL}"
838+
839+
813840
if [ -f spkg-build ]; then
814841
# Package has both spkg-build and spkg-install; execute the latter with SAGE_SUDO
815842
time ./spkg-build
@@ -835,7 +862,7 @@ fi
835862
# case DESTDIR=$SAGE_DESTDIR installation was not used
836863
echo "Copying package files from temporary location $SAGE_DESTDIR to $SAGE_LOCAL"
837864
if [ -d "$SAGE_DESTDIR" ]; then
838-
PREFIX="${SAGE_DESTDIR}${SAGE_LOCAL%/}/"
865+
PREFIX="${SAGE_DESTDIR_LOCAL%/}/"
839866

840867
rm -f "$PREFIX"lib/*.la
841868
if [ $? -ne 0 ]; then
@@ -872,9 +899,14 @@ if [ -d "$SAGE_DESTDIR" ]; then
872899
fi
873900

874901
if [ "$UNAME" = "CYGWIN" ]; then
902+
# Drop our sage-spkg's shared lock, and try to call sage-rebase.sh
903+
# under an exclusive lock
904+
sage-flock -u 200
905+
875906
# Rebase after installing each package--in case any packages load this
876907
# package at build time we need to ensure during the build that no binaries
877908
# have conflicting address spaces
909+
echo "Waiting for rebase lock"
878910
sage-flock -x "$SAGE_LOCAL/var/lock/rebase.lock" \
879911
sage-rebase.sh "$SAGE_LOCAL" 2>/dev/null
880912
fi

build/make/Makefile.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,15 @@ $(INST)/.dummy:
125125
#
126126
# $(inst_python2) $(inst_cython) $(inst_pari) | $(inst_pip)
127127
#
128+
# If some value in the dependencies list is not a package name (e.g. it is
129+
# the name of some arbitrary file, or it is the '|' symbol) then it is just
130+
# used verbatim.
131+
#
128132
# Positional arguments:
129133
# $(1): package name
130134
pkg_deps = \
131135
$(foreach dep,$(deps_$(1)),\
132-
$(if $(findstring |,$(dep)),|,$$(inst_$(dep))))
136+
$(if $(value inst_$(dep)),$$(inst_$(dep)),$(dep)))
133137

134138
# ============================= normal packages ==============================
135139
# Generate build rules for 'normal' packages; this template is used to generate

build/pkgs/atlas/configuration.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,8 @@ def close(self):
169169

170170
conf['bits'] = platform.architecture()[0]
171171

172-
if os.environ.get('SAGE64', 'no') == 'yes':
173-
assert conf['bits'] == '64bit', 'SAGE64=yes on a 32-bit system!'
174-
conf['64bit?'] = True
175-
else:
176-
conf['64bit?'] = (conf['bits'] == '64bit')
177-
178-
conf['32bit?'] = not conf['64bit?']
172+
conf['64bit?'] = (conf['bits'] == '64bit')
173+
conf['32bit?'] = (conf['bits'] != '64bit')
179174

180175

181176
######################################################################

build/pkgs/bzip2/spkg-install

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
if [ "x$CFLAG64" = x ]; then
2-
CFLAG64=-m64
3-
fi
4-
5-
if [ "x$SAGE64" = xyes ]; then
6-
echo "Building a 64-bit version of bzip2"
7-
CFLAGS="$CFLAG64 $CFLAGS"
8-
fi
9-
10-
export CFLAGS="-O2 -g $CFLAGS"
11-
121
cd src/src
132

143
# Autotoolify bzip2

build/pkgs/cddlib/spkg-install

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
# Normally for a 64-bit build, the -m64 option is added to
2-
# gcc, but other compilers will not accept that, so
3-
# allow it to be configured as something different if need
4-
# be.
5-
6-
if [ -z $CFLAG64 ] ; then
7-
CFLAG64=-m64
8-
fi
9-
10-
if [ "x$SAGE64" = xyes ]; then
11-
echo "64 bit build of cddlib"
12-
CFLAGS="$CFLAGS $CFLAG64"; export CFLAGS
13-
fi
141
export CPPFLAGS="-I$SAGE_LOCAL/include $CPPFLAGS"
152

163
cd src

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=da31bee34bb5f75c85af4af3479783c061a357a2
3-
md5=310a850d0a886892a777570bca9333f9
4-
cksum=3849795753
2+
sha1=ff196b4e199d9c2416a8237be639a0c51cfe4981
3+
md5=370515e0f9f514249680f78c029e4583
4+
cksum=2628178955
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
256
1+
257

build/pkgs/cvxopt/spkg-check

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,6 @@ fi
66

77
CUR=`pwd`
88

9-
# Let the user set an environment variable CFLAG64 to
10-
# indicate the C compiler flag for 64-bit builds. By
11-
# default this will be -m64. IBM's compiler on AIX
12-
# and HP's on HP-UX do NOT use -m64.
13-
14-
if [ -z "$CFLAG64" ] ; then
15-
CFLAG64=-m64
16-
fi
17-
18-
# There is no C++ code in cvxopt, so no need to do likewise
19-
# with CXXFLAG64.
20-
21-
if [ "x$SAGE64" = xyes ]; then
22-
echo "Testing a 64-bit version of the cvxopt"
23-
CFLAGS="$CFLAGS $CFLAG64"
24-
CPPFLAGS="$CPPFLAGS $CFLAG64" ; export CPPFLAGS
25-
LDFLAGS="$LDFLAGS $CFLAG64" ; export LDFLAGS
26-
CC="$CC $CFLAG64" ; export CC
27-
fi
28-
299
if [ "x$SAGE_DEBUG" = xyes ] ; then
3010
CFLAGS="$CFLAGS -g -O0" # No optimisation, aids debugging.
3111
else

build/pkgs/cvxopt/spkg-install

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ fi
66

77
cd src
88

9-
# Normally for a 64-bit build the -m64 option is added to
10-
# gcc, but other compilers will not accept that, so
11-
# allow it to be configured as something different if need
12-
# be.
13-
14-
if [ -z $CFLAG64 ] ; then
15-
CFLAG64=-m64
16-
fi
17-
18-
if [ "x$SAGE64" = xyes ]; then
19-
echo "Building a 64 bit version of cvxopt"
20-
CFLAGS="$CFLAGS $CFLAG64"; export CFLAGS
21-
CC="$CC $CFLAG64" ; export CC
22-
fi
23-
249
# Ensure FreeBSD build finds new, local math.h and complex.h
2510
if [ "$UNAME" = FreeBSD ]; then
2611
export CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include"

0 commit comments

Comments
 (0)