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

Commit 0e1162b

Browse files
author
Benjamin Hackl
committed
Merge tag '7.1.beta1' into symbolics/stieltjes-constants
Sage version 7.1.beta1
2 parents bdac71f + 2505dbc commit 0e1162b

File tree

674 files changed

+36884
-10998
lines changed

Some content is hidden

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

674 files changed

+36884
-10998
lines changed

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Sage version 7.0.beta3, released 2016-01-06
1+
Sage version 7.1.beta1, released 2016-01-28

build/pkgs/atlas/configuration.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ def close(self):
161161

162162
conf['generic_binary?'] = (os.environ.get('SAGE_FAT_BINARY', 'no') == 'yes')
163163

164+
conf['user'] = os.environ.get('ATLAS_CONFIGURE', '')
165+
164166
######################################################################
165167
### bit width
166168
######################################################################
@@ -253,9 +255,5 @@ def close(self):
253255
######################################################################
254256

255257
print("Configuration:")
256-
for key, value in conf.items():
257-
print(' '+str(key)+': '+str(value))
258-
259-
260-
261-
258+
for k in sorted(conf, key=str.lower):
259+
print(' {}: {}'.format(k, conf[k]))

build/pkgs/atlas/spkg-install

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ def configure(arch=None, isa_ext=None):
346346
isa_extension = sum(1 << ATLAS_ISAEXT.index(x) for x in isa_ext)
347347
cmd += ' -V '+str(isa_extension)
348348

349+
# Custom configure options
350+
if conf['user']:
351+
cmd += " " + conf['user']
352+
349353
rc = system_with_flush(cmd)
350354
make_check_enums()
351355
return rc

build/pkgs/cliquer/SPKG.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,4 @@ http://users.tkk.fi/pat/cliquer.html
1616
* None
1717

1818
== Patches ==
19-
* Makefile.patch: Patch the Makefile for Sage. Remove hardcoded
20-
compiler and linker flags, allow flags to be set from spkg-install.
21-
More importantly, we're building cliquer as a dynamic shared library,
22-
instead of a stand-alone program.
19+
* autotoolized - see https://github.com/dimpase/autocliquer

build/pkgs/cliquer/checksums.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tarball=cliquer-VERSION.tar.bz2
2-
sha1=8239530eb14c1273c32ffcf3b671dd3766084374
3-
md5=32b97b6689318b58d9c099e2c7769521
4-
cksum=3641271864
1+
tarball=cliquer-VERSION.tar.gz
2+
sha1=930ec79f64facb8ac4035a3e3702ed2b1dabd092
3+
md5=1d985e0bed876cc69aed43953a814a6a
4+
cksum=766312376
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.21.p2
1+
1.21.p3

build/pkgs/cliquer/patches/Makefile.patch

Lines changed: 0 additions & 46 deletions
This file was deleted.

build/pkgs/cliquer/spkg-check

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,18 @@
11
#!/usr/bin/env bash
22

3-
if [ "$SAGE_LOCAL" = "" ]; then
4-
echo "SAGE_LOCAL undefined ... exiting";
5-
echo "Maybe run 'sage -sh'?"
3+
if [ -z "$SAGE_LOCAL" ]; then
4+
echo >&2 "Error: SAGE_LOCAL undefined - exiting..."
5+
echo >&2 "Maybe run 'sage -sh'?"
66
exit 1
77
fi
88

9-
OPTIMIZATION_FLAGS="-O3 -funroll-loops -fomit-frame-pointer"
10-
# Work around a bug in gcc 4.6.0: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48774
11-
if [ "`testcc.sh $CC`" = GCC ] ; then
12-
if $CC -dumpversion 2>/dev/null |grep >/dev/null '^4\.6\.[01]' ; then
13-
echo "Warning: Working around bug in gcc 4.6.0"
14-
OPTIMIZATION_FLAGS="$OPTIMIZATION_FLAGS -fno-ivopts"
15-
fi
16-
fi
17-
18-
CFLAGS="$CFLAGS `testcflags.sh -g $OPTIMIZATION_FLAGS -fPIC -KPIC -Wall`"
19-
CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include"
20-
LDFLAGS="$LDFLAGS -L$SAGE_LOCAL/lib"
9+
cd src
2110

22-
# Compile for 64-bit if SAGE64 is set to 'yes'.
23-
# On 64-bit hardware, we don't need to set this variable to true. A
24-
# 64-bit cliquer library would be built on such platform.
25-
if [ "$SAGE64" = yes ]; then
26-
CFLAGS="$CFLAGS -m64 "
27-
LDFLAGS="$LDFLAGS -m64 "
11+
echo "Now building and running cliquer's test suite..."
12+
$MAKE check
13+
if [ $? -ne 0 ]; then
14+
echo >&2 "Error: The cliquer's test suite failed."
15+
exit 1
2816
fi
2917

30-
# Export everything
31-
export CFLAGS
32-
export CPPFLAGS
33-
export LDFLAGS
34-
35-
cd src && $MAKE test
18+
echo "The cliquer's test suite passed successfully."

build/pkgs/cliquer/spkg-install

Lines changed: 14 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,14 @@
11
#!/usr/bin/env bash
22

3-
OPTIMIZATION_FLAGS="-O3 -funroll-loops -fomit-frame-pointer"
4-
# Work around a bug in gcc 4.6.0: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48774
5-
if [ "`testcc.sh $CC`" = GCC ] ; then
6-
if $CC -dumpversion 2>/dev/null |grep >/dev/null '^4\.6\.[01]' ; then
7-
echo "Warning: Working around bug in gcc 4.6.0"
8-
OPTIMIZATION_FLAGS="$OPTIMIZATION_FLAGS -fno-ivopts"
9-
fi
10-
fi
11-
12-
CFLAGS="$CFLAGS `testcflags.sh -g $OPTIMIZATION_FLAGS -fPIC -KPIC -Wall`"
13-
CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include"
14-
15-
# Compile for 64-bit if SAGE64 is set to 'yes'.
16-
# On 64-bit hardware, we don't need to set this variable to true. A
17-
# 64-bit cliquer library would be built on such platform.
18-
if [ "$SAGE64" = yes ]; then
19-
echo "Building a 64-bit version of cliquer"
20-
CFLAGS="$CFLAGS -m64 "
21-
LDFLAGS="$LDFLAGS -m64 "
22-
fi
23-
24-
# Flags for building a dynamically linked shared object.
25-
if [ "$UNAME" = "Darwin" ]; then
26-
SAGESOFLAGS="-dynamiclib -single_module -flat_namespace -undefined dynamic_lookup"
27-
elif [ "$UNAME" = "SunOS" ]; then
28-
SAGESOFLAGS="-shared -Wl,-h,libcliquer.so -Wl,-ztext"
29-
else
30-
SAGESOFLAGS="-shared -Wl,-soname,libcliquer.so"
3+
if [ -z "$SAGE_LOCAL" ]; then
4+
echo >&2 "SAGE_LOCAL undefined - exiting..."
5+
echo >&2 "Maybe run 'sage -sh'?"
6+
exit 1
317
fi
328

33-
# Export everything
34-
export CFLAGS
35-
export CPPFLAGS
36-
export LDFLAGS
37-
export SAGESOFLAGS
38-
399
cd src
4010

11+
echo "Applying patches..."
4112
# Apply all patches
4213
for patch in ../patches/*.patch; do
4314
[ -r "$patch" ] || continue # Skip non-existing or non-readable patches
@@ -49,22 +20,16 @@ for patch in ../patches/*.patch; do
4920
fi
5021
done
5122

52-
$MAKE
23+
echo "Configuring..."
24+
./configure --prefix="$SAGE_LOCAL" --disable-static --libdir="$SAGE_LOCAL/lib"
5325
if [ $? -ne 0 ]; then
54-
echo >&2 "Failed to compile cliquer"
55-
exit 1
26+
echo >&2 "Error configuring cliquer"
27+
exit 1
5628
fi
5729

58-
rm -rf "$SAGE_LOCAL/include/cliquer/"
59-
mkdir -p "$SAGE_LOCAL/include/cliquer/"
60-
cp *.h "$SAGE_LOCAL/include/cliquer/"
61-
62-
if [ "$UNAME" = "Darwin" ]; then
63-
cp -f libcliquer.so "$SAGE_LOCAL/lib/libcliquer.dylib"
64-
install_name_tool -id "${SAGE_LOCAL}"/lib/libcliquer.dylib "${SAGE_LOCAL}"/lib/libcliquer.dylib
65-
elif [ "$UNAME" = "CYGWIN" ]; then
66-
cp -f libcliquer.so "$SAGE_LOCAL/lib/libcliquer.dll"
30+
echo "Building and installing ..."
31+
$MAKE install
32+
if [ $? -ne 0 ]; then
33+
echo >&2 "Error installing cliquer"
34+
exit 1
6735
fi
68-
69-
# Copy this in all cases, in any case it doesn't hurt.
70-
cp -f libcliquer.so "$SAGE_LOCAL/lib/libcliquer.so"

build/pkgs/cliquer/spkg-src

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
#
3+
# creates the tarball in the current dir, to be moved to ../../../upstream
4+
5+
#PATCHLEVEL=".p0"
6+
PATCHLEVEL=
7+
8+
rm -rf autocliquer/
9+
git clone https://github.com/dimpase/autocliquer.git
10+
cd autocliquer/
11+
12+
VERSION=`autoconf --trace='AC_INIT:$2'`
13+
autoreconf -fi
14+
automake --add-missing --copy
15+
./configure
16+
17+
rm -f cliquer-$VERSION.tar.gz
18+
make dist
19+
mv cliquer-$VERSION.tar.gz ../
20+
cd ..
21+
rm -rf autocliquer/
22+
23+

0 commit comments

Comments
 (0)