mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-23 04:05:55 -04:00
Add patch to workaround cython wrong defs (#961372)
This commit is contained in:
parent
ac9063d003
commit
173cd60d9a
2 changed files with 26 additions and 1 deletions
14
sagemath-rh_bz_961372.patch
Normal file
14
sagemath-rh_bz_961372.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff -up sage-5.9/spkg/build/sage-5.9/sage/ext/cdefs.pxi.orig sage-5.9/spkg/build/sage-5.9/sage/ext/cdefs.pxi
|
||||
--- sage-5.9/spkg/build/sage-5.9/sage/ext/cdefs.pxi.orig 2013-04-25 10:00:51.000000000 -0300
|
||||
+++ sage-5.9/spkg/build/sage-5.9/sage/ext/cdefs.pxi 2013-05-11 11:30:58.472438774 -0300
|
||||
@@ -7,6 +7,9 @@ include "python.pxi"
|
||||
from libc.stdio cimport *
|
||||
from libc.string cimport strlen, strcpy, memset, memcpy
|
||||
|
||||
-from libc.math cimport sqrt, frexp, ldexp
|
||||
+cdef extern from "math.h":
|
||||
+ cdef double sqrt "sqrt" (double)
|
||||
+ cdef double frexp "frexp" (double, int*)
|
||||
+ cdef double ldexp "ldexp" (double, int)
|
||||
|
||||
from sage.libs.gmp.all cimport *
|
Loading…
Add table
Add a link
Reference in a new issue