pcpa pushed to sagemath (master). "Update to sagemath 6.5"
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri Apr 3 23:10:58 UTC 2015
>From baae9bd2a8e02dc1b8f13ec51c247849c19d0810 Mon Sep 17 00:00:00 2001
From: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date: Fri, 3 Apr 2015 20:10:52 -0300
Subject: Update to sagemath 6.5
diff --git a/.gitignore b/.gitignore
index 3c23a60..b25a4de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/sage-6.2.tar.gz
/sage-6.3.tar.gz
/sage-6.4.1.tar.gz
+/sage-6.5.tar.gz
diff --git a/sagemath-cbc.patch b/sagemath-cbc.patch
index da1ab8a..e2f5aa9 100644
--- a/sagemath-cbc.patch
+++ b/sagemath-cbc.patch
@@ -1,7 +1,7 @@
diff -up src/module_list.py.orig src/module_list.py
---- src/module_list.py.orig 2014-11-18 15:28:48.952130767 -0200
-+++ src/module_list.py 2014-11-18 15:28:57.040130873 -0200
-@@ -2168,7 +2168,7 @@ if (os.path.isfile(SAGE_INC + "/cplex.h"
+--- src/module_list.py.orig 2015-04-03 15:09:20.200406141 -0300
++++ src/module_list.py 2015-04-03 15:09:39.744406890 -0300
+@@ -2187,7 +2187,7 @@ if (os.path.isfile(SAGE_INC + "/cplex.h"
libraries = ["stdc++", "cplex"])
)
diff --git a/sagemath-cremona.patch b/sagemath-cremona.patch
index f230daa..aa1d484 100644
--- a/sagemath-cremona.patch
+++ b/sagemath-cremona.patch
@@ -1,7 +1,7 @@
diff -up src/sage/databases/cremona.py.orig src/sage/databases/cremona.py
---- src/sage/databases/cremona.py.orig 2014-11-18 15:26:03.247128579 -0200
-+++ src/sage/databases/cremona.py 2014-11-18 15:26:16.920128759 -0200
-@@ -819,14 +819,9 @@ class MiniCremonaDatabase(SQLDatabase):
+--- src/sage/databases/cremona.py.orig 2015-04-03 15:06:14.304399023 -0300
++++ src/sage/databases/cremona.py 2015-04-03 15:06:26.792399501 -0300
+@@ -820,14 +820,9 @@ class MiniCremonaDatabase(SQLDatabase):
if N < self.largest_conductor():
message = "There is no elliptic curve with label " + label \
+ " in the database"
@@ -17,7 +17,7 @@ diff -up src/sage/databases/cremona.py.orig src/sage/databases/cremona.py
raise ValueError(message)
ainvs = eval(c[0])
data = {'cremona_label': label,
-@@ -1669,10 +1664,12 @@ def CremonaDatabase(name=None,mini=None,
+@@ -1670,10 +1665,12 @@ def CremonaDatabase(name=None,mini=None,
if name is None and not set_global:
return _db
if set_global and name is None:
diff --git a/sagemath-cryptominisat.patch b/sagemath-cryptominisat.patch
index a5e9ffd..8c17113 100644
--- a/sagemath-cryptominisat.patch
+++ b/sagemath-cryptominisat.patch
@@ -1,7 +1,7 @@
diff -up src/module_list.py.orig src/module_list.py
---- src/module_list.py.orig 2014-11-18 15:30:01.952131730 -0200
-+++ src/module_list.py 2014-11-18 15:30:08.968131823 -0200
-@@ -2177,7 +2177,7 @@ if 1:
+--- src/module_list.py.orig 2015-04-03 15:11:09.304410319 -0300
++++ src/module_list.py 2015-04-03 15:11:18.304410664 -0300
+@@ -2196,7 +2196,7 @@ if 1:
)
diff --git a/sagemath-extensions.patch b/sagemath-extensions.patch
index c94f202..e7dc8f2 100644
--- a/sagemath-extensions.patch
+++ b/sagemath-extensions.patch
@@ -1,7 +1,7 @@
diff -up src/module_list.py.orig src/module_list.py
---- src/module_list.py.orig 2014-11-18 13:23:35.915031576 -0200
-+++ src/module_list.py 2014-11-18 13:23:46.515031716 -0200
-@@ -2126,7 +2126,8 @@ ext_modules = [
+--- src/module_list.py.orig 2015-04-03 14:55:11.184373629 -0300
++++ src/module_list.py 2015-04-03 14:55:20.536373988 -0300
+@@ -2145,7 +2145,8 @@ ext_modules = [
# These extensions are to be compiled only if the
# corresponding packages have been installed
diff --git a/sagemath-fes.patch b/sagemath-fes.patch
index 4d8c859..834d87c 100644
--- a/sagemath-fes.patch
+++ b/sagemath-fes.patch
@@ -1,7 +1,7 @@
diff -up src/module_list.py.orig src/module_list.py
---- src/module_list.py.orig 2014-11-18 15:29:30.360131313 -0200
-+++ src/module_list.py 2014-11-18 15:29:37.432131407 -0200
-@@ -2130,7 +2130,7 @@ ext_modules = [
+--- src/module_list.py.orig 2015-04-03 15:10:36.432409060 -0300
++++ src/module_list.py 2015-04-03 15:10:46.240409436 -0300
+@@ -2149,7 +2149,7 @@ ext_modules = [
def is_package_installed(name):
return False
diff --git a/sagemath-gap-hap.patch b/sagemath-gap-hap.patch
index 46540af..a84a960 100644
--- a/sagemath-gap-hap.patch
+++ b/sagemath-gap-hap.patch
@@ -1,7 +1,7 @@
diff -up src/sage/groups/perm_gps/permgroup.py.orig src/sage/groups/perm_gps/permgroup.py
---- src/sage/groups/perm_gps/permgroup.py.orig 2014-11-18 15:27:46.545129943 -0200
-+++ src/sage/groups/perm_gps/permgroup.py 2014-11-18 15:27:53.760130038 -0200
-@@ -180,8 +180,7 @@ def hap_decorator(f):
+--- src/sage/groups/perm_gps/permgroup.py.orig 2015-04-03 15:08:05.769403291 -0300
++++ src/sage/groups/perm_gps/permgroup.py 2015-04-03 15:08:15.296403656 -0300
+@@ -181,8 +181,7 @@ def hap_decorator(f):
"""
@wraps(f)
def wrapped(self, n, p=0):
@@ -11,7 +11,7 @@ diff -up src/sage/groups/perm_gps/permgroup.py.orig src/sage/groups/perm_gps/per
load_hap()
from sage.rings.arith import is_prime
if not (p == 0 or is_prime(p)):
-@@ -3979,8 +3978,7 @@ class PermutationGroup_generic(group.Gro
+@@ -3943,8 +3942,7 @@ class PermutationGroup_generic(group.Gro
- David Joyner and Graham Ellis
"""
diff --git a/sagemath-libgap.patch b/sagemath-libgap.patch
index ef8b937..c6f07a5 100644
--- a/sagemath-libgap.patch
+++ b/sagemath-libgap.patch
@@ -1,7 +1,7 @@
diff -up src/sage/libs/gap/util.pyx.orig src/sage/libs/gap/util.pyx
---- src/sage/libs/gap/util.pyx.orig 2014-02-07 12:44:48.769857619 -0200
-+++ src/sage/libs/gap/util.pyx 2014-02-07 12:45:27.743859112 -0200
-@@ -155,18 +155,9 @@ def gap_root():
+--- src/sage/libs/gap/util.pyx.orig 2015-04-03 15:10:03.911407815 -0300
++++ src/sage/libs/gap/util.pyx 2015-04-03 15:10:13.247408173 -0300
+@@ -153,18 +153,9 @@ def gap_root():
sage: from sage.libs.gap.util import gap_root
sage: gap_root() # random output
diff --git a/sagemath-lrcalc.patch b/sagemath-lrcalc.patch
index 640fd2d..16f6604 100644
--- a/sagemath-lrcalc.patch
+++ b/sagemath-lrcalc.patch
@@ -1,7 +1,7 @@
diff -up src/module_list.py.orig src/module_list.py
---- src/module_list.py.orig 2014-11-18 15:28:17.313130349 -0200
-+++ src/module_list.py 2014-11-18 15:28:24.520130444 -0200
-@@ -2210,7 +2210,7 @@ if UNAME[0] == "Darwin" and not UNAME[2]
+--- src/module_list.py.orig 2015-04-03 15:08:44.096404759 -0300
++++ src/module_list.py 2015-04-03 15:08:56.856405247 -0300
+@@ -2229,7 +2229,7 @@ if UNAME[0] == "Darwin" and not UNAME[2]
)
diff --git a/sagemath-lrslib.patch b/sagemath-lrslib.patch
index d7ad0ad..d2ee9df 100644
--- a/sagemath-lrslib.patch
+++ b/sagemath-lrslib.patch
@@ -1,7 +1,7 @@
diff -up src/sage/geometry/polyhedron/base.py.orig src/sage/geometry/polyhedron/base.py
---- src/sage/geometry/polyhedron/base.py.orig 2014-11-18 15:26:45.817129141 -0200
-+++ src/sage/geometry/polyhedron/base.py 2014-11-18 15:26:53.185129238 -0200
-@@ -3515,11 +3515,6 @@ class Polyhedron_base(Element):
+--- src/sage/geometry/polyhedron/base.py.orig 2015-04-03 15:06:44.704400187 -0300
++++ src/sage/geometry/polyhedron/base.py 2015-04-03 15:06:59.632400758 -0300
+@@ -3242,11 +3242,6 @@ class Polyhedron_base(Element):
David Avis's lrs program.
"""
diff --git a/sagemath-maxima.patch b/sagemath-maxima.patch
index 04af0ff..10cbe38 100644
--- a/sagemath-maxima.patch
+++ b/sagemath-maxima.patch
@@ -1,6 +1,6 @@
diff -up src/bin/sage-maxima.lisp.orig src/bin/sage-maxima.lisp
---- src/bin/sage-maxima.lisp.orig 2014-08-12 14:11:32.329958121 -0300
-+++ src/bin/sage-maxima.lisp 2014-08-12 14:11:38.922958374 -0300
+--- src/bin/sage-maxima.lisp.orig 2015-04-03 15:04:30.952395065 -0300
++++ src/bin/sage-maxima.lisp 2015-04-03 15:04:43.255395536 -0300
@@ -3,4 +3,8 @@
;(setf *general-display-prefix* "<sage-display>")
@@ -12,9 +12,9 @@ diff -up src/bin/sage-maxima.lisp.orig src/bin/sage-maxima.lisp
+ *standard-input* (open "/dev/stdin" :direction :input)
+ *standard-output* (open "/dev/stdout" :direction :output))
diff -up src/sage/interfaces/maxima.py.orig src/sage/interfaces/maxima.py
---- src/sage/interfaces/maxima.py.orig 2014-08-12 14:11:20.722957677 -0300
-+++ src/sage/interfaces/maxima.py 2014-08-12 14:11:38.923958374 -0300
-@@ -544,7 +544,7 @@ class Maxima(MaximaAbstract, Expect):
+--- src/sage/interfaces/maxima.py.orig 2015-04-03 15:04:24.152394805 -0300
++++ src/sage/interfaces/maxima.py 2015-04-03 15:04:43.256395536 -0300
+@@ -551,7 +551,7 @@ class Maxima(MaximaAbstract, Expect):
Expect.__init__(self,
name = 'maxima',
prompt = '\(\%i[0-9]+\) ',
@@ -23,7 +23,7 @@ diff -up src/sage/interfaces/maxima.py.orig src/sage/interfaces/maxima.py
maxread = 10000,
script_subdirectory = script_subdirectory,
restart_on_ctrlc = False,
-@@ -594,7 +594,8 @@ class Maxima(MaximaAbstract, Expect):
+@@ -601,7 +601,8 @@ class Maxima(MaximaAbstract, Expect):
# Remove limit on the max heapsize (since otherwise it defaults
# to 256MB with ECL).
diff --git a/sagemath-nauty.patch b/sagemath-nauty.patch
index c810d40..f0cb73a 100644
--- a/sagemath-nauty.patch
+++ b/sagemath-nauty.patch
@@ -1,7 +1,7 @@
diff -up src/sage/graphs/graph_generators.py.orig src/sage/graphs/graph_generators.py
---- src/sage/graphs/graph_generators.py.orig 2014-11-18 15:27:15.584129534 -0200
-+++ src/sage/graphs/graph_generators.py 2014-11-18 15:27:23.352129636 -0200
-@@ -833,7 +833,7 @@ class GraphGenerators():
+--- src/sage/graphs/graph_generators.py.orig 2015-04-03 15:07:35.008402113 -0300
++++ src/sage/graphs/graph_generators.py 2015-04-03 15:07:44.816402489 -0300
+@@ -827,7 +827,7 @@ class GraphGenerators():
"""
import subprocess
from sage.misc.package import is_package_installed
diff --git a/sagemath-parallel.patch b/sagemath-parallel.patch
new file mode 100644
index 0000000..9316a5a
--- /dev/null
+++ b/sagemath-parallel.patch
@@ -0,0 +1,15 @@
+diff -up src/module_list.py.orig src/module_list.py
+--- src/module_list.py.orig 2015-04-03 15:39:22.360475152 -0300
++++ src/module_list.py 2015-04-03 15:39:37.470475731 -0300
+@@ -2110,11 +2110,6 @@ ext_modules = [
+ Extension('sage.tests.interrupt',
+ sources = ['sage/tests/interrupt.pyx', 'sage/tests/c_lib.c']),
+
+- Extension('sage.tests.parallel',
+- sources = ['sage/tests/parallel.pyx'],
+- extra_compile_args=["-fopenmp"],
+- extra_link_args=["-fopenmp"]),
+-
+ Extension('sage.tests.stl_vector',
+ sources = ['sage/tests/stl_vector.pyx'],
+ libraries = ['gmp'],
diff --git a/sagemath-pari.patch b/sagemath-pari.patch
index 4ce8923..cc90ec6 100644
--- a/sagemath-pari.patch
+++ b/sagemath-pari.patch
@@ -1,6 +1,68 @@
+diff -up src/sage/libs/pari/decl.pxi.orig src/sage/libs/pari/decl.pxi
+--- src/sage/libs/pari/decl.pxi.orig 2015-04-03 17:09:59.840683372 -0300
++++ src/sage/libs/pari/decl.pxi 2015-04-03 17:10:10.876683795 -0300
+@@ -165,7 +165,6 @@ cdef extern from 'parisage.h':
+ extern int new_galois_format, precdl
+ # The "except 0" here is to ensure compatibility with
+ # _pari_err_handle() in handle_error.pyx
+- extern int (*cb_pari_err_handle)(GEN) except 0
+ extern int (*cb_pari_handle_exception)(long) except 0
+ extern void (*cb_pari_err_recover)(long)
+
+@@ -3757,6 +3756,3 @@ cdef extern from 'pari/paripriv.h':
+ unsigned long flags
+
+ extern gp_data* GP_DATA
+-
+-cdef extern from 'pari/anal.h':
+- char* closure_func_err()
+diff -up src/sage/libs/pari/handle_error.pyx.orig src/sage/libs/pari/handle_error.pyx
+--- src/sage/libs/pari/handle_error.pyx.orig 2015-04-03 17:09:59.842683372 -0300
++++ src/sage/libs/pari/handle_error.pyx 2015-04-03 17:10:10.876683795 -0300
+@@ -131,13 +131,13 @@ cdef void _pari_init_error_handling():
+ sage: pari('warning("test")')
+ *** user warning: test
+ """
+- global cb_pari_err_handle
++ global cb_pari_handle_exception
+ global cb_pari_err_recover
+- cb_pari_err_handle = _pari_err_handle
++ cb_pari_handle_exception = _pari_handle_exception
+ cb_pari_err_recover = _pari_err_recover
+
+
+-cdef int _pari_err_handle(GEN E) except 0:
++cdef int _pari_handle_exception(long errnum_unused) except 0:
+ """
+ Convert a PARI error into a Sage exception, unless the error was
+ a stack overflow, in which case we enlarge the stack.
+@@ -156,6 +156,7 @@ cdef int _pari_err_handle(GEN E) except
+ PariError: impossible inverse in gdiv: 0
+
+ """
++ cdef GEN E = pari_err_last()
+ cdef long errnum = E[1]
+ if errnum == e_STACK:
+ # PARI is out of memory. We double the size of the PARI stack
+@@ -165,15 +166,10 @@ cdef int _pari_err_handle(GEN E) except
+
+ sig_block()
+ cdef char* errstr
+- cdef char* s
+ try:
+ errstr = pari_err2str(E)
+ pari_error_string = errstr.decode('ascii')
+
+- s = closure_func_err()
+- if s is not NULL:
+- pari_error_string = s.decode('ascii') + ": " + pari_error_string
+-
+ raise PariError(errnum, pari_error_string, pari_instance.new_gen_noclear(E))
+ finally:
+ pari_free(errstr)
diff -up src/sage/libs/pari/pari_instance.pxd.orig src/sage/libs/pari/pari_instance.pxd
---- src/sage/libs/pari/pari_instance.pxd.orig 2014-11-18 15:25:03.591127791 -0200
-+++ src/sage/libs/pari/pari_instance.pxd 2014-11-18 15:25:18.999127995 -0200
+--- src/sage/libs/pari/pari_instance.pxd.orig 2015-04-03 17:09:59.834683372 -0300
++++ src/sage/libs/pari/pari_instance.pxd 2015-04-03 17:10:10.874683795 -0300
@@ -6,6 +6,10 @@ cimport cython
from sage.libs.pari.gen cimport gen
@@ -13,9 +75,9 @@ diff -up src/sage/libs/pari/pari_instance.pxd.orig src/sage/libs/pari/pari_insta
@cython.final
diff -up src/sage/libs/pari/pari_instance.pyx.orig src/sage/libs/pari/pari_instance.pyx
---- src/sage/libs/pari/pari_instance.pyx.orig 2014-11-18 15:25:16.287127959 -0200
-+++ src/sage/libs/pari/pari_instance.pyx 2014-11-18 15:25:19.000127995 -0200
-@@ -437,7 +437,12 @@ cdef class PariInstance(sage.structure.p
+--- src/sage/libs/pari/pari_instance.pyx.orig 2015-04-03 17:09:59.835683372 -0300
++++ src/sage/libs/pari/pari_instance.pyx 2015-04-03 17:10:10.874683795 -0300
+@@ -417,7 +417,12 @@ cdef class PariInstance(sage.structure.p
# The size here doesn't really matter, because we will allocate
# our own stack anyway. We ask PARI not to set up signal and
# error handlers.
@@ -28,3 +90,13 @@ diff -up src/sage/libs/pari/pari_instance.pyx.orig src/sage/libs/pari/pari_insta
_pari_init_error_handling()
+diff -up src/sage/libs/pari/handle_error.pxd.orig src/sage/libs/pari/handle_error.pxd
+--- src/sage/libs/pari/handle_error.pxd.orig 2015-04-03 17:14:16.506693201 -0300
++++ src/sage/libs/pari/handle_error.pxd 2015-04-03 17:14:44.287694265 -0300
+@@ -1,5 +1,5 @@
+ include 'sage/libs/pari/decl.pxi'
+
+ cdef void _pari_init_error_handling()
+-cdef int _pari_err_handle(GEN E) except 0
++cdef int _pari_handle_exception(long errnum_unused) except 0
+ cdef void _pari_err_recover(long errnum)
diff --git a/sagemath-png.patch b/sagemath-png.patch
index 2288e21..8c12d9c 100644
--- a/sagemath-png.patch
+++ b/sagemath-png.patch
@@ -1,7 +1,7 @@
diff -up src/module_list.py.orig src/module_list.py
---- src/module_list.py.orig 2014-11-18 15:23:33.184126598 -0200
-+++ src/module_list.py 2014-11-18 15:23:42.856126725 -0200
-@@ -1081,7 +1081,7 @@ ext_modules = [
+--- src/module_list.py.orig 2015-04-03 15:03:27.647392641 -0300
++++ src/module_list.py 2015-04-03 15:03:57.589393787 -0300
+@@ -1097,7 +1097,7 @@ ext_modules = [
Extension('sage.matrix.matrix_mod2_dense',
sources = ['sage/matrix/matrix_mod2_dense.pyx'],
@@ -10,7 +10,7 @@ diff -up src/module_list.py.orig src/module_list.py
extra_compile_args = m4ri_extra_compile_args,
depends = [SAGE_INC + "/png.h", SAGE_INC + "/m4ri/m4ri.h"]),
-@@ -1379,7 +1379,7 @@ ext_modules = [
+@@ -1398,7 +1398,7 @@ ext_modules = [
Extension('sage.modules.vector_mod2_dense',
sources = ['sage/modules/vector_mod2_dense.pyx'],
@@ -19,12 +19,12 @@ diff -up src/module_list.py.orig src/module_list.py
extra_compile_args = m4ri_extra_compile_args,
depends = [SAGE_INC + "/png.h", SAGE_INC + "/m4ri/m4ri.h"]),
-@@ -1893,7 +1893,7 @@ ext_modules = [
+@@ -1912,7 +1912,7 @@ ext_modules = [
Extension('sage.rings.polynomial.pbori',
sources = ['sage/rings/polynomial/pbori.pyx'],
libraries=['polybori-' + polybori_major_version,
-- 'polybori_groebner-' + polybori_major_version, 'm4ri', 'png12'],
-+ 'polybori_groebner-' + polybori_major_version, 'm4ri', 'png'],
+- 'polybori_groebner-' + polybori_major_version, 'm4ri', 'gd', 'png12'],
++ 'polybori_groebner-' + polybori_major_version, 'm4ri', 'gd', 'png'],
include_dirs = [SAGE_INC, "sage/libs/polybori"],
depends = [SAGE_INC + "/polybori/" + hd + ".h" for hd in ["polybori", "config"] ] + \
[SAGE_INC + '/m4ri/m4ri.h'],
diff --git a/sagemath-readonly.patch b/sagemath-readonly.patch
index cf6f0e0..3dcb992 100644
--- a/sagemath-readonly.patch
+++ b/sagemath-readonly.patch
@@ -1,7 +1,7 @@
diff -up src/sage/all.py.orig src/sage/all.py
---- src/sage/all.py.orig 2014-11-18 15:20:50.327124447 -0200
-+++ src/sage/all.py 2014-11-18 15:20:58.279124552 -0200
-@@ -307,11 +307,11 @@ def _write_started_file():
+--- src/sage/all.py.orig 2015-04-03 15:01:52.463388996 -0300
++++ src/sage/all.py 2015-04-03 15:02:06.559389536 -0300
+@@ -296,11 +296,11 @@ def _write_started_file():
Check that the file exists when Sage is running::
diff --git a/sagemath-rpmbuild.patch b/sagemath-rpmbuild.patch
index f3992e4..a74bafd 100644
--- a/sagemath-rpmbuild.patch
+++ b/sagemath-rpmbuild.patch
@@ -1,6 +1,6 @@
diff -up src/module_list.py.orig src/module_list.py
---- src/module_list.py.orig 2014-11-18 13:25:41.898033239 -0200
-+++ src/module_list.py 2014-11-18 13:27:10.616034410 -0200
+--- src/module_list.py.orig 2015-04-03 14:55:44.607374909 -0300
++++ src/module_list.py 2015-04-03 14:56:03.416375630 -0300
@@ -4,7 +4,7 @@ import os
from distutils.extension import Extension
from sage.env import SAGE_LOCAL
@@ -33,7 +33,7 @@ diff -up src/module_list.py.orig src/module_list.py
polybori_major_version = '0.8'
-@@ -730,7 +731,7 @@ ext_modules = [
+@@ -746,7 +747,7 @@ ext_modules = [
sources = ['sage/libs/lcalc/lcalc_Lfunction.pyx'],
libraries = ['m', 'ntl', 'mpfr', 'gmp', 'gmpxx',
'Lfunction'],
@@ -43,8 +43,8 @@ diff -up src/module_list.py.orig src/module_list.py
language = 'c++'),
diff -up src/setup.py.orig src/setup.py
---- src/setup.py.orig 2014-11-18 13:25:47.434033312 -0200
-+++ src/setup.py 2014-11-18 13:28:52.152035751 -0200
+--- src/setup.py.orig 2015-04-03 14:56:00.033375500 -0300
++++ src/setup.py 2015-04-03 14:56:03.416375630 -0300
@@ -36,11 +36,11 @@ except KeyError:
compile_result_dir = None
keep_going = False
diff --git a/sagemath-sagedoc.patch b/sagemath-sagedoc.patch
index ed775af..7e81c9b 100644
--- a/sagemath-sagedoc.patch
+++ b/sagemath-sagedoc.patch
@@ -1,6 +1,6 @@
diff -up src/doc/common/builder.py.orig src/doc/common/builder.py
---- src/doc/common/builder.py.orig 2014-11-18 13:30:43.238037217 -0200
-+++ src/doc/common/builder.py 2014-11-18 13:32:05.097038298 -0200
+--- src/doc/common/builder.py.orig 2015-04-03 14:56:53.775377558 -0300
++++ src/doc/common/builder.py 2015-04-03 14:56:58.208377728 -0300
@@ -32,7 +32,7 @@ from sage.env import SAGE_DOC, SAGE_SRC
# SAGE_DOC, LANGUAGES, SPHINXOPTS, PAPER, OMIT,
# PAPEROPTS, ALLSPHINXOPTS, NUM_THREADS, WEBSITESPHINXOPTS
@@ -11,8 +11,8 @@ diff -up src/doc/common/builder.py.orig src/doc/common/builder.py
diff -up src/doc/common/conf.py.orig src/doc/common/conf.py
---- src/doc/common/conf.py.orig 2014-11-18 13:30:43.248037218 -0200
-+++ src/doc/common/conf.py 2014-11-18 13:32:40.336038763 -0200
+--- src/doc/common/conf.py.orig 2015-04-03 14:56:53.777377558 -0300
++++ src/doc/common/conf.py 2015-04-03 14:56:58.208377728 -0300
@@ -1,5 +1,5 @@
import sys, os, sphinx
-from sage.env import SAGE_DOC
@@ -31,8 +31,8 @@ diff -up src/doc/common/conf.py.orig src/doc/common/conf.py
# It would be really nice if sphinx would copy the entire mathjax directory,
diff -up src/sage/doctest/control.py.orig src/sage/doctest/control.py
---- src/sage/doctest/control.py.orig 2014-11-18 13:30:43.259037218 -0200
-+++ src/sage/doctest/control.py 2014-11-18 13:33:27.185039382 -0200
+--- src/sage/doctest/control.py.orig 2015-04-03 14:56:32.065376727 -0300
++++ src/sage/doctest/control.py 2015-04-03 14:56:58.209377728 -0300
@@ -89,7 +89,6 @@ class DocTestDefaults(SageObject):
self.valgrind = False
self.massif = False
@@ -50,7 +50,7 @@ diff -up src/sage/doctest/control.py.orig src/sage/doctest/control.py
# Non-interactive debuggers: 48 hours
options.timeout = int(os.getenv('SAGE_TIMEOUT_VALGRIND', 48 * 60 * 60))
elif options.long:
-@@ -889,13 +888,8 @@ class DocTestController(SageObject):
+@@ -890,13 +889,8 @@ class DocTestController(SageObject):
elif opt.cachegrind:
toolname = "cachegrind"
flags = os.getenv("SAGE_CACHEGRIND_FLAGS", "")
@@ -64,7 +64,7 @@ diff -up src/sage/doctest/control.py.orig src/sage/doctest/control.py
if "%s" in flags:
flags %= toolname + ".%p" # replace %s with toolname
cmd += flags + sage_cmd
-@@ -955,10 +949,10 @@ class DocTestController(SageObject):
+@@ -956,10 +950,10 @@ class DocTestController(SageObject):
0
"""
opt = self.options
@@ -78,9 +78,9 @@ diff -up src/sage/doctest/control.py.orig src/sage/doctest/control.py
return self.run_val_gdb()
else:
diff -up src/sage/interfaces/singular.py.orig src/sage/interfaces/singular.py
---- src/sage/interfaces/singular.py.orig 2014-11-18 13:30:43.265037218 -0200
-+++ src/sage/interfaces/singular.py 2014-11-18 13:33:49.257039673 -0200
-@@ -2147,7 +2147,7 @@ def generate_docstring_dictionary():
+--- src/sage/interfaces/singular.py.orig 2015-04-03 14:56:32.066376727 -0300
++++ src/sage/interfaces/singular.py 2015-04-03 14:56:58.210377728 -0300
+@@ -2149,7 +2149,7 @@ def generate_docstring_dictionary():
nodes.clear()
node_names.clear()
diff --git a/sagemath-sagenb.patch b/sagemath-sagenb.patch
index 57d289b..0158b7d 100644
--- a/sagemath-sagenb.patch
+++ b/sagemath-sagenb.patch
@@ -1,6 +1,6 @@
-diff -up build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/flask_version/base.py.orig build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/flask_version/base.py
---- build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/flask_version/base.py.orig 2014-12-06 17:45:36.063723826 -0200
-+++ build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/flask_version/base.py 2014-12-06 17:49:09.074731983 -0200
+diff -up build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/flask_version/base.py.orig build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/flask_version/base.py
+--- build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/flask_version/base.py.orig 2015-04-03 14:57:55.335379915 -0300
++++ build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/flask_version/base.py 2015-04-03 14:59:22.805383265 -0300
@@ -4,8 +4,6 @@ from functools import partial
from flask import Flask, Module, url_for, render_template, request, session, redirect, g, make_response, current_app
from decorators import login_required, guest_or_login_required, with_lock
@@ -37,9 +37,9 @@ diff -up build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/flask_version/base.py.orig b
import mimetypes
mimetypes.add_type('text/plain','.jmol')
-diff -up build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/misc/misc.py.orig build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/misc/misc.py
---- build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/misc/misc.py.orig 2014-12-06 17:45:36.066723826 -0200
-+++ build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/misc/misc.py 2014-12-06 17:45:38.853723933 -0200
+diff -up build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/misc/misc.py.orig build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/misc/misc.py
+--- build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/misc/misc.py.orig 2015-04-03 14:58:07.335380375 -0300
++++ build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/misc/misc.py 2015-04-03 14:59:36.461383788 -0300
@@ -174,7 +174,8 @@ def pad_zeros(s, size=3):
SAGENB_ROOT = os.path.split(resource_filename(__name__, ''))[0]
@@ -50,10 +50,10 @@ diff -up build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/misc/misc.py.orig build/pkgs
if os.environ.has_key('DOT_SAGENB'):
DOT_SAGENB = os.environ['DOT_SAGENB']
-diff -up build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/notebook/cell.py.orig build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/notebook/cell.py
---- build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/notebook/cell.py.orig 2014-12-06 17:45:36.067723826 -0200
-+++ build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/notebook/cell.py 2014-12-06 17:45:38.854723933 -0200
-@@ -2338,8 +2338,8 @@ class Cell(Cell_generic):
+diff -up build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/notebook/cell.py.orig build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/notebook/cell.py
+--- build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/notebook/cell.py.orig 2015-04-03 14:58:19.246380831 -0300
++++ build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/notebook/cell.py 2015-04-03 15:00:09.605385057 -0300
+@@ -2340,8 +2340,8 @@ class Cell(Cell_generic):
with open(jmol_name, 'r') as f:
jmol_script = f.read()
jmol_script = jmol_script.replace(
@@ -64,9 +64,9 @@ diff -up build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/notebook/cell.py.orig build/
with open(jmol_name, 'w') as f:
f.write(jmol_script)
-diff -up build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/notebook/run_notebook.py.orig build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/notebook/run_notebook.py
---- build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/notebook/run_notebook.py.orig 2014-12-06 17:45:36.069723826 -0200
-+++ build/pkgs/sagenb/src/sagenb-0.11.1/sagenb/notebook/run_notebook.py 2014-12-06 17:45:38.854723933 -0200
+diff -up build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/notebook/run_notebook.py.orig build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/notebook/run_notebook.py
+--- build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/notebook/run_notebook.py.orig 2015-04-03 14:58:32.839381352 -0300
++++ build/pkgs/sagenb/src/sagenb-0.11.4/sagenb/notebook/run_notebook.py 2015-04-03 15:01:22.725387857 -0300
@@ -46,12 +46,14 @@ sagenb.notebook.misc.DIR = %(cwd)r #We s
# Flask #
#########
diff --git a/sagemath-scons.patch b/sagemath-scons.patch
index 01558fa..97f1bb3 100644
--- a/sagemath-scons.patch
+++ b/sagemath-scons.patch
@@ -1,6 +1,6 @@
diff -up src/c_lib/SConstruct.orig src/c_lib/SConstruct
---- src/c_lib/SConstruct.orig 2014-11-17 17:41:32.525922611 -0200
-+++ src/c_lib/SConstruct 2014-11-17 17:41:41.486922954 -0200
+--- src/c_lib/SConstruct.orig 2015-04-03 14:44:19.695348682 -0300
++++ src/c_lib/SConstruct 2015-04-03 14:44:30.359349090 -0300
@@ -126,8 +126,8 @@ env['PYV']=platform.python_version().rsp
# The SCons convenience function Split is the only strange thing
# to python programmers. It just makes a list by splitting on
@@ -10,7 +10,7 @@ diff -up src/c_lib/SConstruct.orig src/c_lib/SConstruct
+includes = ['@@includedir@@', '@@includedir@@/python$PYV/',
+ '@@includedir@@/NTL/', 'include']
cFiles = Split( "convert.c interrupt.c memory.c mpn_pylong.c mpz_pylong.c") + \
- Split( "mpz_longlong.c stdsage.c gmp_globals.c" )
+ Split( "mpz_longlong.c stdsage.c" )
cppFiles = Split( "ZZ_pylong.cpp ntl_wrap.cpp" )
@@ -136,9 +136,22 @@ incFiles = Split( "ccobject.h convert.h
Split( "interrupt.h memory.h mpn_pylong.h mpz_longlong.h" ) + \
diff --git a/sagemath-scripts.patch b/sagemath-scripts.patch
index 78d0cb0..6591d88 100644
--- a/sagemath-scripts.patch
+++ b/sagemath-scripts.patch
@@ -1,6 +1,6 @@
diff -up src/bin/sage.orig src/bin/sage
---- src/bin/sage.orig 2014-11-17 17:42:48.321925514 -0200
-+++ src/bin/sage 2014-11-17 17:55:52.524955544 -0200
+--- src/bin/sage.orig 2015-04-03 14:45:35.718351593 -0300
++++ src/bin/sage 2015-04-03 14:54:09.029371249 -0300
@@ -13,11 +13,9 @@ usage() {
echo " file.[sage|py|spyx] -- run given .sage, .py or .spyx file"
echo " -advanced -- list all command line options"
@@ -32,16 +32,18 @@ diff -up src/bin/sage.orig src/bin/sage
echo " -v, -version -- print the Sage version"
exit 0
}
-@@ -63,8 +56,6 @@ usage_advanced() {
+@@ -63,10 +56,7 @@ usage_advanced() {
echo " -preparse <file.sage> -- preparse file.sage and produce corresponding file.sage.py"
echo " -q -- quiet; start with no banner"
echo " -root -- print the Sage root directory"
- echo " -gthread, -qthread, -q4thread, -wthread, -pylab"
- echo " -- pass the option through to ipython"
echo " -v, -version -- print the Sage version"
+- echo " -git-branch -- print the current git branch"
echo
-@@ -75,8 +66,6 @@ usage_advanced() {
+ #### 1.......................26..................................................78
+@@ -76,8 +66,6 @@ usage_advanced() {
echo " 'default', 'sagenb', and 'ipython'). See the output"
echo " of sage --notebook --help for more details and"
echo " examples of how to pass optional arguments"
@@ -50,7 +52,7 @@ diff -up src/bin/sage.orig src/bin/sage
echo " -inotebook [...] -- start the *insecure* Sage notebook (deprecated)"
echo " -n, -notebook [...] -- start the default Sage notebook (options are the"
echo " same as for the notebook command in Sage). See the"
-@@ -94,13 +83,9 @@ usage_advanced() {
+@@ -95,13 +83,9 @@ usage_advanced() {
echo " -gp [...] -- run Sage's PARI/GP calculator with given arguments"
echo " -ipython [...] -- run Sage's IPython using the default environment (not"
echo " Sage), passing additional options to IPython"
@@ -64,7 +66,7 @@ diff -up src/bin/sage.orig src/bin/sage
echo " -maxima [...] -- run Sage's Maxima with given arguments"
echo " -mwrank [...] -- run Sage's mwrank with given arguments"
echo " -python [...] -- run the Python interpreter"
-@@ -114,74 +99,10 @@ usage_advanced() {
+@@ -115,44 +99,7 @@ usage_advanced() {
echo
#### 1.......................26..................................................78
#### |.....................--.|...................................................|
@@ -106,32 +108,19 @@ diff -up src/bin/sage.orig src/bin/sage
- echo " -- replace failing doctests with the actual output. With"
- echo " optional output_file: redirect there. With the --long"
- echo " option: include #long time tests."
-- echo " -startuptime [module] -- display how long each component of Sage takes to"
-- echo " start up; optionally specify a module to get more"
-- echo " details about that particular module"
-- echo " -t [options] <--all|files|dir>"
-- echo " -- test examples in .py, .pyx, .sage, .tex or .rst files"
-- echo " selected options:"
-- echo " --long - include lines with the phrase 'long time'"
-- echo " --verbose - print debugging output during the test"
-- echo " --optional - controls which optional tests are run"
-- echo " --randorder[=seed] - randomize order of tests"
++ echo "Testing the Sage library:"
+ echo " -startuptime [module] -- display how long each component of Sage takes to"
+ echo " start up; optionally specify a module to get more"
+ echo " details about that particular module"
+@@ -163,7 +110,6 @@ usage_advanced() {
+ echo " --verbose - print debugging output during the test"
+ echo " --optional - controls which optional tests are run"
+ echo " --randorder[=seed] - randomize order of tests"
- echo " --new - only test files modified since last commit"
-- echo " --initial - only show the first failure per block"
-- echo " --debug - drop into PDB after an unexpected error"
-- echo " --failed - only test files that failed last test"
-- echo " --sagenb - test all sagenb files"
-- echo " --help - show all testing options"
-- echo " --warn-long [timeout] - warning if doctest is slow"
-- echo " -tp <N> [...] -- like -t above, but tests in parallel using N threads"
-- echo " with 0 interpreted as a sensible default"
-- echo " -testall [options] -- test all source files, docs, and examples. options"
-- echo " like -t"
--
-- echo
-- #### 1.......................26..................................................78
-- #### |.....................--.|...................................................|
- echo "Documentation:"
+ echo " --initial - only show the first failure per block"
+ echo " --debug - drop into PDB after an unexpected error"
+ echo " --failed - only test files that failed last test"
+@@ -182,7 +128,6 @@ usage_advanced() {
echo " -coverage <files> -- give info about doctest coverage of files"
echo " -coverageall -- give summary info about doctest coverage of all"
echo " files in the Sage library"
@@ -139,13 +128,12 @@ diff -up src/bin/sage.orig src/bin/sage
echo " -search_src <string> -- search through all the Sage library code for string"
echo " -search_doc <string> -- search through the Sage documentation for string"
echo " -grep <string> -- same as -search_src"
-@@ -201,16 +122,6 @@ usage_advanced() {
+@@ -202,15 +147,6 @@ usage_advanced() {
echo
#### 1.......................26..................................................78
#### |.....................--.|...................................................|
- echo "Making Sage packages or distributions:"
- echo " -bdist VER -- build a binary distribution of Sage"
-- echo " -crap sage-ver.tar -- detect suspicious garbage in sage source tarball"
- echo " -pkg <dir> -- create Sage package dir.spkg from a given directory"
- echo " -pkg_nc <dir> -- as -pkg, but do not compress the package"
- echo " -sdist -- build a source distribution of Sage"
@@ -156,7 +144,7 @@ diff -up src/bin/sage.orig src/bin/sage
echo "Valgrind memory debugging:"
echo " -cachegrind -- run Sage using Valgrind's cachegrind tool. The log"
echo " files are named sage-cachegrind.PID can be found in"
-@@ -224,9 +135,6 @@ usage_advanced() {
+@@ -224,9 +160,6 @@ usage_advanced() {
echo " -memcheck -- run Sage using Valgrind's memcheck tool. The log"
echo " files are named sage-memcheck.PID can be found in"
echo " $DOT_SAGE"
@@ -166,7 +154,7 @@ diff -up src/bin/sage.orig src/bin/sage
echo " -valgrind -- this is an alias for -memcheck"
echo
echo "You can also use -- before a long option, e.g., 'sage --optional'."
-@@ -246,65 +154,14 @@ if [ "$1" = '--nodotsage' ]; then
+@@ -246,34 +179,6 @@ if [ "$1" = '--nodotsage' ]; then
exit $status
fi
@@ -198,19 +186,13 @@ diff -up src/bin/sage.orig src/bin/sage
-fi
-
-
--if [ $# -gt 0 ]; then
-- if [ "$1" = '-h' -o "$1" = '-?' -o "$1" = '-help' -o "$1" = '--help' ]; then
-- usage
-- fi
-- if [ "$1" = "-advanced" -o "$1" = "--advanced" ]; then
-- usage_advanced
-- fi
--fi
--
-
+ if [ $# -gt 0 ]; then
+ if [ "$1" = '-h' -o "$1" = '-?' -o "$1" = '-help' -o "$1" = '--help' ]; then
+ usage
+@@ -286,24 +191,11 @@ fi
# Prepare for running Sage, either interactively or non-interactively.
sage_setup() {
-- # Check that we're not in a source tarball which hasn't been built yet (#13561).
+ # Check that we're not in a source tarball which hasn't been built yet (#13561).
- if [ ! -d "$SAGE_LOCAL/lib/python/site-packages/sage" ]; then
- echo >&2 '************************************************************************'
- echo >&2 'It seems that you are attempting to run Sage from an unpacked source'
@@ -232,10 +214,11 @@ diff -up src/bin/sage.orig src/bin/sage
if [ ! -d "$IPYTHONDIR" ]; then
# make sure that $DOT_SAGE exists so that ipython will happily
# create its config directories there. If DOT_SAGE doesn't
-@@ -315,20 +172,6 @@ sage_setup() {
+@@ -313,21 +205,6 @@ sage_setup() {
+ sage-cleaner &>/dev/null &
}
-
+-
-# Check to see if the whole Sage install tree has moved. If so,
-# change various hardcoded paths. Skip this if we don't have write
-# access to $SAGE_LOCAL (e.g. when running as a different user) or
@@ -253,7 +236,7 @@ diff -up src/bin/sage.orig src/bin/sage
# Start an interactive Sage session, this function never returns.
interactive_sage() {
sage_setup
-@@ -390,7 +233,7 @@ fi
+@@ -389,7 +266,7 @@ fi
if [ "$1" = '-singular' -o "$1" = '--singular' ]; then
shift
@@ -262,10 +245,15 @@ diff -up src/bin/sage.orig src/bin/sage
fi
if [ "$1" = '-sqlite3' -o "$1" = '--sqlite3' ]; then
-@@ -423,11 +266,6 @@ if [ "$1" = '-kash' -o "$1" = '--kash' ]
- exec kash "$@"
+@@ -417,16 +294,6 @@ if [ "$1" = '-lisp' -o "$1" = '--lisp' ]
+ exec ecl "$@"
fi
+-if [ "$1" = '-kash' -o "$1" = '--kash' ]; then
+- shift
+- exec kash "$@"
+-fi
+-
-if [ "$1" = '-fixdoctests' -o "$1" = '--fixdoctests' ]; then
- shift
- exec sage-fixdoctests "$@"
@@ -274,15 +262,11 @@ diff -up src/bin/sage.orig src/bin/sage
if [ "$1" = '-maxima' -o "$1" = '--maxima' ]; then
shift
exec maxima "$@"
-@@ -448,15 +286,6 @@ if [ "$1" = '-scons' -o "$1" = '--scons'
+@@ -447,11 +314,6 @@ if [ "$1" = '-scons' -o "$1" = '--scons'
exec scons "$@"
fi
-if [ "$1" = '-pip' -o "$1" = '--pip' ]; then
-- if [ ! -x "$SAGE_LOCAL/bin/pip" ]; then
-- echo "Pip is not installed. Run \"sage -i pip\" to install it."
-- exit 1
-- fi
- shift
- exec pip "$@"
-fi
@@ -290,7 +274,24 @@ diff -up src/bin/sage.orig src/bin/sage
if [ "$1" = '-python' -o "$1" = '--python' ]; then
shift
exec python "$@"
-@@ -596,20 +425,6 @@ EOF
+@@ -467,16 +329,6 @@ if [ "$1" = '-ipython' -o "$1" = '--ipyt
+ exec ipython "$@"
+ fi
+
+-if [ "$1" = '-git' -o "$1" = '--git' ]; then
+- shift
+- exec git "$@"
+-fi
+-
+-if [ "$1" = '-git-branch' -o "$1" = '--git-branch' ]; then
+- shift
+- exec git --git-dir="$SAGE_ROOT"/.git rev-parse --abbrev-ref HEAD
+-fi
+-
+ if [ "$1" = '-sh' -o "$1" = '--sh' ]; then
+ # AUTHORS:
+ # - Carl Witty and William Stein: initial version
+@@ -596,20 +448,6 @@ EOF
fi
#####################################################################
@@ -311,19 +312,7 @@ diff -up src/bin/sage.orig src/bin/sage
# File conversion
#####################################################################
-@@ -624,23 +439,9 @@ if [ "$1" = '-rst2sws' -o "$1" = '--rst2
- fi
-
- #####################################################################
--# Crap
--#####################################################################
--
--if [ "$1" = "-crap" -o "$1" = "--crap" ]; then
-- shift
-- exec sage-crap $@
--fi
--
--#####################################################################
+@@ -627,11 +465,6 @@ fi
# Run Sage's versions of the standard Algebra/Geometry etc. software
#####################################################################
@@ -332,11 +321,11 @@ diff -up src/bin/sage.orig src/bin/sage
- sage-build "$@" || exit $?
-}
-
- if [[ "$1" =~ "--notebook="* || "$1" =~ "-n="* || "$1" =~ "-notebook="* ]]; then
+ if [[ "$1" =~ ^--notebook=.* || "$1" =~ ^-n=.* || "$1" =~ ^-notebook=.* ]] ; then
sage-cleaner &>/dev/null &
exec sage-notebook "$@"
-@@ -652,13 +453,6 @@ if [ "$1" = "-notebook" -o "$1" = '--not
- exec sage-notebook --notebook=default "$@"
+@@ -642,13 +475,6 @@ if [ "$1" = "-notebook" -o "$1" = '--not
+ exec sage-notebook "$@"
fi
-if [ "$1" = "-bn" -o "$1" = "--build-and-notebook" ]; then
@@ -349,7 +338,7 @@ diff -up src/bin/sage.orig src/bin/sage
if [ "$1" = "-inotebook" -o "$1" = '--inotebook' ]; then
shift
sage-cleaner &>/dev/null &
-@@ -677,40 +471,19 @@ if [ "$1" = '-grepdoc' -o "$1" = "--grep
+@@ -667,40 +493,19 @@ if [ "$1" = '-grepdoc' -o "$1" = "--grep
exit 0
fi
@@ -392,7 +381,7 @@ diff -up src/bin/sage.orig src/bin/sage
shift
exec sage-runtests -p "$@"
else
-@@ -719,10 +492,7 @@ if [ "$1" = '-t' -o "$1" = '-bt' -o "$1"
+@@ -709,16 +514,6 @@ if [ "$1" = '-t' -o "$1" = '-bt' -o "$1"
fi
fi
@@ -400,11 +389,16 @@ diff -up src/bin/sage.orig src/bin/sage
- if [ "$1" = '-btnew' ]; then
- build_sage
- fi
-+if [ "$1" = '-tnew' ]; then
+- shift
+- SAGE_BANNER="no"
+- sage_setup
+- exec sage-runtests --new "$@"
+-fi
+-
+ if [ "$1" = '-testall' -o "$1" = "--testall" ]; then
shift
SAGE_BANNER="no"
- sage_setup
-@@ -744,136 +514,6 @@ if [ "$1" = '-c' ]; then
+@@ -734,136 +529,6 @@ if [ "$1" = '-c' ]; then
exec sage-eval "$@"
fi
@@ -541,7 +535,7 @@ diff -up src/bin/sage.orig src/bin/sage
if [ "$1" = '-gdb' -o "$1" = "--gdb" ]; then
shift
sage_setup
-@@ -922,26 +562,10 @@ if [ "$1" = '-callgrind' -o "$1" = "--ca
+@@ -912,26 +577,10 @@ if [ "$1" = '-callgrind' -o "$1" = "--ca
exec sage-callgrind "$@"
fi
@@ -569,8 +563,8 @@ diff -up src/bin/sage.orig src/bin/sage
T=`echo "$1" | sed -e "s/.*\.//"`
if [ "$T" = "spkg" ]; then
diff -up src/bin/sage-runtests.orig src/bin/sage-runtests
---- src/bin/sage-runtests.orig 2014-11-17 17:43:03.195926083 -0200
-+++ src/bin/sage-runtests 2014-11-17 17:48:39.236938952 -0200
+--- src/bin/sage-runtests.orig 2015-04-03 14:45:48.439352080 -0300
++++ src/bin/sage-runtests 2015-04-03 14:54:20.773371699 -0300
@@ -54,10 +54,6 @@ if __name__ == "__main__":
help="run doctests using Valgrind's cachegrind tool. The log "
"files are named sage-cachegrind.PID and can be found in " +
@@ -583,8 +577,8 @@ diff -up src/bin/sage-runtests.orig src/bin/sage-runtests
parser.add_option("-f", "--failed", action="store_true", default=False,
help="doctest only those files that failed in the previous run")
diff -up src/bin/sage-valgrind.orig src/bin/sage-valgrind
---- src/bin/sage-valgrind.orig 2014-11-17 17:43:14.588926520 -0200
-+++ src/bin/sage-valgrind 2014-11-17 17:48:18.884938172 -0200
+--- src/bin/sage-valgrind.orig 2015-04-03 14:45:55.318352343 -0300
++++ src/bin/sage-valgrind 2015-04-03 14:54:41.525372494 -0300
@@ -1,16 +1,6 @@
#!/usr/bin/env bash
diff --git a/sagemath.spec b/sagemath.spec
index 4265de0..680b61c 100644
--- a/sagemath.spec
+++ b/sagemath.spec
@@ -20,11 +20,11 @@
%global conway_polynomials_pkg conway_polynomials-0.4
%global elliptic_curves_pkg elliptic_curves-0.7
%global flintqs_pkg flintqs-20070817
-%global graphs_pkg graphs-20120404
+%global graphs_pkg graphs-20130920
%global pexpect_pkg pexpect-2.0
%global polytopes_db_pkg polytopes_db-20120220
%global rubiks_pkg rubiks-20070912
-%global sagenb_pkg sagenb-0.11.1
+%global sagenb_pkg sagenb-0.11.4
%global sagetex_pkg sagetex-2.3.4
%global SAGE_ROOT %{_libdir}/sagemath
@@ -38,8 +38,8 @@
Name: sagemath
Group: Applications/Engineering
Summary: A free open-source mathematics software system
-Version: 6.4.1
-Release: 4%{?dist}
+Version: 6.5
+Release: 1%{?dist}
# The file ${SAGE_ROOT}/COPYING.txt is the upstream license breakdown file
# Additionally, every $files section has a comment with the license name
# before files with that license
@@ -142,6 +142,9 @@ Patch22: %{name}-sympy.patch
# Fix a name clash with NTL
Patch23: %{name}-ntl.patch
+# Temporary patch: http://trac.sagemath.org/ticket/17657
+Patch24: %{name}-parallel.patch
+
BuildRequires: 4ti2
BuildRequires: atlas-devel
BuildRequires: cddlib-tools
@@ -400,6 +403,16 @@ BuildArch: noarch
This package contains the documentation infrastructure for %{name}.
#------------------------------------------------------------------------
+%package doc-ca
+Summary: Catalan documentation files for %{name}
+Group: Documentation
+Requires: %{name}-doc = %{version}-%{release}
+BuildArch: noarch
+
+%description doc-ca
+This package contains the Catalan %{name} documentation.
+
+#------------------------------------------------------------------------
%package doc-de
Summary: German documentation files for %{name}
Group: Documentation
@@ -430,6 +443,16 @@ BuildArch: noarch
This package contains the French %{name} documentation.
#------------------------------------------------------------------------
+%package doc-hu
+Summary: Hungarian documentation files for %{name}
+Group: Documentation
+Requires: %{name}-doc = %{version}-%{release}
+BuildArch: noarch
+
+%description doc-hu
+This package contains the Hungarian %{name} documentation.
+
+#------------------------------------------------------------------------
%package doc-it
Summary: Italian documentation files for %{name}
Group: Documentation
@@ -590,6 +613,7 @@ popd
%patch5
%patch6
%patch7
+
%patch8
%patch9
%patch10
@@ -610,6 +634,7 @@ popd
%patch21
%patch22
%patch23
+%patch24
sed -e 's|@@SAGE_ROOT@@|%{SAGE_ROOT}|' \
-e 's|@@SAGE_DOC@@|%{SAGE_DOC}|' \
@@ -739,7 +764,7 @@ pushd src
ln -sf libcsage.so.0 %{buildroot}%{_libdir}/libcsage.so
# install documentation sources
rm -fr $SAGE_DOC/{common,en,fr}
- cp -far doc/{common,de,en,fr,pt,ru,tr} $SAGE_DOC
+ cp -far doc/{common,ca,de,en,fr,hu,it,pt,ru,tr} $SAGE_DOC
popd
#------------------------------------------------------------------------
@@ -1177,6 +1202,12 @@ exit 0
%dir %{SAGE_DOC}/output/html
#------------------------------------------------------------------------
+%files doc-ca
+# GPLv2+
+%{SAGE_DOC}/ca
+%{SAGE_DOC}/output/html/ca
+
+#------------------------------------------------------------------------
%files doc-de
# GPLv2+
%{SAGE_DOC}/de
@@ -1195,8 +1226,15 @@ exit 0
%{SAGE_DOC}/output/html/fr
#------------------------------------------------------------------------
+%files doc-hu
+# GPLv2+
+%{SAGE_DOC}/nu
+%{SAGE_DOC}/output/html/hu
+
+#------------------------------------------------------------------------
%files doc-it
# GPLv2+
+%{SAGE_DOC}/it
%{SAGE_DOC}/output/html/it
#------------------------------------------------------------------------
@@ -1304,6 +1342,11 @@ exit 0
########################################################################
%changelog
+* Fri Apr 3 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 6.5-1
+- Update to sagemath 6.5
+- Add new Catalan and Hungarian doc subpackages
+- Add customizations to not need a patched pari
+
* Sat Feb 7 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 6.4.1-4
- Rebuild with a functional jsmol interface (#1190356)
diff --git a/sources b/sources
index cd5f6e4..463aa5f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9e64f198f791577555344b9aaa6768a9 sage-6.4.1.tar.gz
+ec9195561ffa2bcbc02391ac5af4e7ed sage-6.5.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/sagemath.git/commit/?h=master&id=baae9bd2a8e02dc1b8f13ec51c247849c19d0810
More information about the scm-commits
mailing list