summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-02-21 17:25:29 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-02-21 17:25:29 -0300
commitde616ec6d89e901706d72b1ee96eb77d3c6079d2 (patch)
tree0d71130234aaa6cfcc32c9192b88589b166eac39
parentcb0c90d32c4268aa5adf0b43561d32c2536f423e (diff)
downloadabslibre-de616ec6d89e901706d72b1ee96eb77d3c6079d2.tar.gz
abslibre-de616ec6d89e901706d72b1ee96eb77d3c6079d2.tar.bz2
abslibre-de616ec6d89e901706d72b1ee96eb77d3c6079d2.zip
sagemath-7.5.1-7.parabola1: singular 4.1.0.p2 rebuild
-rw-r--r--libre/sagemath/PKGBUILD11
-rw-r--r--libre/sagemath/sagemath-singular-4.1.0.p2.patch33
2 files changed, 40 insertions, 4 deletions
diff --git a/libre/sagemath/PKGBUILD b/libre/sagemath/PKGBUILD
index 1d033814d..e5841661f 100644
--- a/libre/sagemath/PKGBUILD
+++ b/libre/sagemath/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 212057 2017-02-12 18:09:25Z arojas $
+# $Id: PKGBUILD 213281 2017-02-21 09:01:02Z arojas $
# Maintainer (Arch): Evgeniy Alekseev <arcanis.arch at gmail dot com>
# Maintainer (Arch): Antonio Rojas <arojas@archlinux.org>
# Contributor (Arch): Daniel Wallace <danielwallace at gtmanfred dot com>
@@ -11,7 +11,7 @@
pkgname=sagemath
pkgver=7.5.1
-pkgrel=6.parabola1
+pkgrel=7.parabola1
pkgdesc="Free Mathematics Software, free software replacement of Magma, Maple, Mathematica, and Matlab, without nonfree nauty support"
arch=(i686 x86_64 armv7h)
url="http://www.sagemath.org"
@@ -40,7 +40,7 @@ provides=(sage-mathematics)
source=("$pkgname-$pkgver.tar.gz::https://github.com/sagemath/sage/archive/$pkgver.tar.gz"
env.patch skip-check.patch cython-sys-path.patch is-package-installed.patch package.patch
jupyter-path.patch test-optional.patch ecm-7.patch increase-rtol.patch sagemath-gslcblas.patch r-no-readline.patch
- sagemath-no-anal.h.patch sagemath-planarity3.patch fes02.patch)
+ sagemath-no-anal.h.patch sagemath-planarity3.patch fes02.patch sagemath-singular-4.1.0.p2.patch)
sha256sums=('3cd9af3e3bfd7f5cc966b7c36168d04b9a1213aa9a7af3286b5d53d40e7653e3'
'9dba04ff13626a7b6c338a8b18a6c27d343f68a547a218533cf773af3dae6635'
'b02b3d2d5620ca20f96adb62b6fef05e4676c0a60983310a1450fdf3d923cb04'
@@ -55,7 +55,8 @@ sha256sums=('3cd9af3e3bfd7f5cc966b7c36168d04b9a1213aa9a7af3286b5d53d40e7653e3'
'ef9f401fa84fe1772af9efee6816643534f2896da4c23b809937b19771bdfbbf'
'8126c92a5fc15738c4f7982aadb5a4033230fc2d5da05af9133a96ad1181419e'
'a1c562ebe4538d672404ca3ac2e954a3c955afeb7463f7b4fe6eaa6fa74fe5c7'
- 'a39da083c038ada797ffc5bedc9ba47455a3f77057d42f86484ae877ef9172ea')
+ 'a39da083c038ada797ffc5bedc9ba47455a3f77057d42f86484ae877ef9172ea'
+ 'e1912afec58b834fac3b9161c2d5a1794bb618126c6bd7a4be85c834231360e7')
prepare(){
cd sage-$pkgver
@@ -83,6 +84,8 @@ prepare(){
patch -p1 -i ../r-no-readline.patch
# fix build with planarity 3 (Debian)
patch -p2 -i ../sagemath-planarity3.patch
+# fix build with Singular 4.1.0-p2
+ patch -p0 -i ../sagemath-singular-4.1.0.p2.patch
# Upstream patches
# fix build against libfes 0.2 http://trac.sagemath.org/ticket/15209
diff --git a/libre/sagemath/sagemath-singular-4.1.0.p2.patch b/libre/sagemath/sagemath-singular-4.1.0.p2.patch
new file mode 100644
index 000000000..b1a74a091
--- /dev/null
+++ b/libre/sagemath/sagemath-singular-4.1.0.p2.patch
@@ -0,0 +1,33 @@
+--- src/sage/libs/singular/decl.pxd.orig 2017-02-21 07:58:27.088118954 +0000
++++ src/sage/libs/singular/decl.pxd 2017-02-21 07:59:01.794846500 +0000
+@@ -484,8 +484,8 @@
+
+ ring *rDefault(int char , int nvars, char **names)
+ ring *rDefault(const n_Procs_s* cf, int nvars, char **names)
+- ring *rDefault(int ch , int nvars, char **names,int ord_size, int *ord, int *block0, int *block1, int **wvhdl)
+- ring *rDefault(const n_Procs_s* cf, int nvars, char **names,int ord_size, int *ord, int *block0, int *block1, int **wvhdl)
++ ring *rDefault(int ch , int nvars, char **names,int ord_size, rRingOrder_t *ord, int *block0, int *block1, int **wvhdl)
++ ring *rDefault(const n_Procs_s* cf, int nvars, char **names,int ord_size, rRingOrder_t *ord, int *block0, int *block1, int **wvhdl)
+
+
+
+--- src/sage/libs/singular/ring.pyx.orig 2017-02-21 07:24:23.197906897 +0000
++++ src/sage/libs/singular/ring.pyx 2017-02-21 07:29:23.731763098 +0000
+@@ -21,7 +21,7 @@
+ from sage.libs.singular.decl cimport number, poly, ring, currRing
+ from sage.libs.singular.decl cimport rChangeCurrRing, rCopy0, rComplete, rDelete, idInit
+ from sage.libs.singular.decl cimport omAlloc0, omStrDup, omAlloc, omAlloc0Bin, sip_sring_bin, rnumber_bin
+-from sage.libs.singular.decl cimport ringorder_dp, ringorder_Dp, ringorder_lp, ringorder_rp, ringorder_ds, ringorder_Ds, ringorder_ls, ringorder_M, ringorder_C, ringorder_wp, ringorder_Wp, ringorder_ws, ringorder_Ws, ringorder_a
++from sage.libs.singular.decl cimport ringorder_dp, ringorder_Dp, ringorder_lp, ringorder_rp, ringorder_ds, ringorder_Ds, ringorder_ls, ringorder_M, ringorder_C, ringorder_wp, ringorder_Wp, ringorder_ws, ringorder_Ws, ringorder_a, rRingOrder_t
+ from sage.libs.singular.decl cimport p_Copy, prCopyR
+ from sage.libs.singular.decl cimport n_unknown, n_Zp, n_Q, n_R, n_GF, n_long_R, n_algExt,n_transExt,n_long_C, n_Z, n_Zn, n_Znm, n_Z2m, n_CF
+ from sage.libs.singular.decl cimport n_coeffType, cfInitCharProc
+@@ -165,7 +165,7 @@
+ ## q q : GF(q=p^n) *names TRUE (todo)
+
+ _wvhdl = <int **>omAlloc0((nblcks + 2) * sizeof(int *))
+- _order = <int *>omAlloc0((nblcks + 2) * sizeof(int))
++ _order = <rRingOrder_t *>omAlloc0((nblcks + 2) * sizeof(int))
+ _block0 = <int *>omAlloc0((nblcks + 2) * sizeof(int))
+ _block1 = <int *>omAlloc0((nblcks + 2) * sizeof(int))
+