[arch-commits] Commit in sagemath/trunk (PKGBUILD cython-0.23.patch)

Antonio Rojas arojas at archlinux.org
Fri Aug 14 04:35:30 UTC 2015


    Date: Friday, August 14, 2015 @ 06:35:30
  Author: arojas
Revision: 138323

flint 2.5.2 rebuild, swith back to main cython2 package

Added:
  sagemath/trunk/cython-0.23.patch
Modified:
  sagemath/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   13 ++++++++-----
 cython-0.23.patch |   16 ++++++++++++++++
 2 files changed, 24 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-08-13 20:49:55 UTC (rev 138322)
+++ PKGBUILD	2015-08-14 04:35:30 UTC (rev 138323)
@@ -9,12 +9,12 @@
 
 pkgname=sagemath
 pkgver=6.8
-pkgrel=1
+pkgrel=2
 pkgdesc="Open Source Mathematics Software, free alternative to Magma, Maple, Mathematica, and Matlab"
 arch=(i686 x86_64)
 url="http://www.sagemath.org"
 license=(GPL)
-depends=(ipython2 ppl glpk mpfi palp polybori singular libcliquer maxima-ecl gfan sympow tachyon python2-rpy2
+depends=(ipython2 ppl mpfi palp polybori singular libcliquer maxima-ecl gfan sympow tachyon python2-rpy2
   python2-matplotlib python2-scipy python2-sympy python2-networkx libgap gap flintqs lcalc lrcalc
   eclib gmp-ecm zn_poly gd python2-cvxopt pynac linbox gsl rubiks pari-galdata pari-seadata-small planarity rankwidth
   sage-data-combinatorial_designs sage-data-elliptic_curves sage-data-graphs sage-data-polytopes_db sage-data-conway_polynomials)
@@ -25,7 +25,7 @@
   'modular_decomposition: modular decomposition of graphs'
   'lrs: Algorithms for linear reverse search used in game theory and for computing volume of polytopes' 'imagemagick: to show animations'
   'coxeter3: Coxeter groups implementation' 'cryptominisat: SAT solver' 'arb: floating-point ball arithmetic')
-makedepends=(cython2-devel boost ratpoints symmetrica fflas-ffpack python2-jinja coin-or-cbc
+makedepends=(cython2 boost ratpoints symmetrica fflas-ffpack python2-jinja coin-or-cbc
   mcqd coxeter3 cryptominisat arb modular_decomposition bliss-graphs) # libfes
 conflicts=(sage-mathematics)
 replaces=(sage-mathematics)
@@ -34,7 +34,7 @@
 # "http://www.sagemath.org/packages/upstream/pexpect/pexpect-2.0.tar.bz2" 
 "http://mirrors.mit.edu/sage/spkg/upstream/pexpect/pexpect-2.0.tar.bz2"
 'anal.h' 'package.patch' 'env.patch' 'paths.patch' 'clean.patch' 'skip-check.patch' 
-'pexpect-env.patch' 'pexpect-del.patch' 'disable-fes.patch')
+'pexpect-env.patch' 'pexpect-del.patch' 'disable-fes.patch' 'cython-0.23.patch')
 md5sums=('943780ef4460e38f28fefe95e3138981'
          'd9a3e113ed147dcee8f89962a8dccd43'
          'a906a180d198186a39820b0a2f9a9c63'
@@ -45,7 +45,8 @@
          '5947a420a0b1483f0cbc74c76895789b'
          'a83a3b1bc7fcb7cbf752a83a8311fc42'
          'f333939ea6c41377b66407c81016cee4'
-         '4eb23a3c7363258bc9ba764d6e5512ba')
+         '4eb23a3c7363258bc9ba764d6e5512ba'
+         '1b8dfa047115180aa0afbeaf19d97762')
 
 prepare(){
   cd sage-$pkgver
@@ -82,6 +83,8 @@
 #  patch -p0 -i "$srcdir"/fes02.patch
 # disable fes module, fails to compile
   patch -p0 -i ../disable-fes.patch
+# fix build with cython 0.23
+  patch -p1 -i "$srcdir"/cython-0.23.patch
 
 # use python2
   sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -e 's|exec python|exec python2|' -i src/bin/*

Added: cython-0.23.patch
===================================================================
--- cython-0.23.patch	                        (rev 0)
+++ cython-0.23.patch	2015-08-14 04:35:30 UTC (rev 138323)
@@ -0,0 +1,16 @@
+diff --git a/src/sage/libs/polybori/decl.pxd b/src/sage/libs/polybori/decl.pxd
+index b8fcc6e..6ec4bce 100644
+--- a/src/sage/libs/polybori/decl.pxd
++++ b/src/sage/libs/polybori/decl.pxd
+@@ -10,8 +10,8 @@ cdef extern from "sage/libs/polybori/pb_wrap.h":
+         pbdp_asc        "CTypes::dp_asc"
+         pbblock_dlex    "CTypes::block_dlex"
+         pbblock_dp_asc  "CTypes::block_dp_asc"
+-        pbdp            "17"
+-        pbblock_dp      "19"
++        pbdp            "static_cast<COrderEnums::ordercodes>(17)"
++        pbblock_dp      "static_cast<COrderEnums::ordercodes>(19)"
+ 
+     cdef enum comparecodes "CCompareEnums::comparecodes":
+         less_than               "CTypes::less_than"
+



More information about the arch-commits mailing list