summaryrefslogtreecommitdiff
path: root/libre/sagemath/pynac-0.7.1.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-26 13:52:32 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-26 13:52:32 -0300
commit581fe82ab4a2bd012556ce86996a4ed7d29bc3b2 (patch)
treed0f06822070a7fe8f2406694c1626e8534e4f859 /libre/sagemath/pynac-0.7.1.patch
parent279527517ae7e8c91f54ac2af7df1dd5ae1f5c58 (diff)
sagemath-7.4-11.parabola1: pynac 0.7.1 and libgap 4.8.6 rebuild
Diffstat (limited to 'libre/sagemath/pynac-0.7.1.patch')
-rw-r--r--libre/sagemath/pynac-0.7.1.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/libre/sagemath/pynac-0.7.1.patch b/libre/sagemath/pynac-0.7.1.patch
new file mode 100644
index 000000000..d0b1e2aee
--- /dev/null
+++ b/libre/sagemath/pynac-0.7.1.patch
@@ -0,0 +1,42 @@
+--- sage-7.4/src/sage/symbolic/constants_c.pyx.orig 2016-11-25 09:34:32.665044510 +0000
++++ sage-7.4/src/sage/symbolic/constants_c.pyx 2016-11-25 09:38:13.777888000 +0000
+@@ -60,6 +60,8 @@
+ self.pointer = <GConstant *>&g_Catalan
+ elif self._name == "euler_gamma":
+ self.pointer = <GConstant *>&g_Euler
++ elif self._name == "NaN":
++ self.pointer = <GConstant *>&g_NaN
+ else:
+ GConstant_construct(&self.object, name, texname, domain)
+ self.pointer = &self.object
+--- sage-7.4/src/sage/symbolic/ginac.pxd.orig 2016-11-25 09:34:06.145103155 +0000
++++ sage-7.4/src/sage/symbolic/ginac.pxd 2016-11-25 09:37:14.294686607 +0000
+@@ -216,6 +216,7 @@
+ GEx g_Pi "Pi"
+ GEx g_Catalan "Catalan"
+ GEx g_Euler "Euler"
++ GEx g_NaN "NaN"
+
+ GConstant* GConstant_construct(void *mem, char* name, char* texname, unsigned domain)
+ bint is_a_constant "is_a<constant>" (GEx e)
+@@ -293,13 +294,13 @@
+ void g_list_symbols "list_symbols" (GEx e, GExSet s)
+
+ # more is_a tests
+- bint is_a_add "is_a<add>" (GEx e)
+- bint is_a_mul "is_a<mul>" (GEx e)
+- bint is_a_power "is_a<power>" (GEx e)
+- bint is_a_fderivative "is_a<fderivative>" (GEx e)
+- bint is_a_function "is_a<function>" (GEx e)
+- bint is_exactly_a_function "is_exactly_a<function>" (GEx e)
+- bint is_a_ncmul "is_a<ncmul>" (GEx e)
++ bint is_a_add "is_a<GiNaC::add>" (GEx e)
++ bint is_a_mul "is_a<GiNaC::mul>" (GEx e)
++ bint is_a_power "is_a<GiNaC::power>" (GEx e)
++ bint is_a_fderivative "is_a<GiNaC::fderivative>" (GEx e)
++ bint is_a_function "is_a<GiNaC::function>" (GEx e)
++ bint is_exactly_a_function "is_exactly_a<GiNaC::function>" (GEx e)
++ bint is_a_ncmul "is_a<GiNaC::ncmul>" (GEx e)
+
+ # Arithmetic
+ int ginac_error()