diff --git a/sagemath-cremona.patch b/sagemath-cremona.patch index aa1d484..321278f 100644 --- a/sagemath-cremona.patch +++ b/sagemath-cremona.patch @@ -34,3 +34,53 @@ diff -up src/sage/databases/cremona.py.orig src/sage/databases/cremona.py if name == 'cremona': mini = False elif name == 'cremona mini': +diff -up src/sage/libs/cremona/mat.pxd.orig src/sage/libs/cremona/mat.pxd +--- src/sage/libs/cremona/mat.pxd.orig 2015-02-16 17:15:10.000000000 -0700 ++++ src/sage/libs/cremona/mat.pxd 2015-07-26 07:34:43.000000000 -0600 +@@ -13,11 +13,13 @@ cdef extern from "eclib/homspace.h": + ctypedef struct mat "mat": + scalar* get_entries() # TODO: possibly not int -- + scalar sub(long,long) ++ # These became methods from eclib-20150228: ++ long nrows() ++ long ncols() ++ long rank() + +- long nrows(mat M) +- long ncols(mat M) + mat addscalar(mat M, scalar) +- long rank(mat M) ++ + + # Constructors + mat *new_mat "new mat" (mat m) +diff -up src/sage/libs/cremona/mat.pyx.orig src/sage/libs/cremona/mat.pyx +--- src/sage/libs/cremona/mat.pyx.orig 2015-02-16 17:15:10.000000000 -0700 ++++ src/sage/libs/cremona/mat.pyx 2015-09-25 15:16:01.212387267 -0600 +@@ -98,7 +98,7 @@ cdef class Matrix: + cdef long i, j + if self.M: + i, j = ij +- if 0