Bug#973351: cypari2 need an update for pari-2.13

Bill Allombert ballombe at debian.org
Thu Oct 29 10:30:07 GMT 2020


Source: cypari2
Version: 2.1.1-2
Severity: important
Tags: patch

Dear Debian Science Team,

cypari2 need an update to be compatible with 
pari 2.13.0 (in experimental) which will be uploded to sid soon.

The fix needed is simple however the doctests are very fragile
(they depend on unspecified behaviors) and need to be updated (for
example they depend on the documentation of some functions).

The patch does not attempt to deal with the doctests failure.

Cheers,
-- 
Bill. <ballombe at debian.org>

Imagine a large red swirl here. 
-------------- next part --------------
Index: cypari2-2.1.1/cypari2/gen.pyx
===================================================================
--- cypari2-2.1.1.orig/cypari2/gen.pyx
+++ cypari2-2.1.1/cypari2/gen.pyx
@@ -4109,7 +4109,7 @@ cdef class Gen(Gen_base):
         non-constant polynomial, or False if f is reducible or constant.
         """
         sig_on()
-        t = isirreducible(self.g)
+        t = polisirreducible(self.g)
         clear_stack()
         return t != 0
 
Index: cypari2-2.1.1/cypari2/paridecl.pxd
===================================================================
--- cypari2-2.1.1.orig/cypari2/paridecl.pxd
+++ cypari2-2.1.1/cypari2/paridecl.pxd
@@ -3850,7 +3850,7 @@ cdef extern from *:     # PARI headers a
     GEN     glcm0(GEN x, GEN y)
     GEN     gp_factor0(GEN x, GEN flag)
     GEN     idealfactorback(GEN nf, GEN L, GEN e, int red)
-    long    isirreducible(GEN x)
+    long    polisirreducible(GEN x)
     GEN     newtonpoly(GEN x, GEN p)
     GEN     nffactorback(GEN nf, GEN L, GEN e)
     GEN     nfrootsQ(GEN x)


More information about the debian-science-maintainers mailing list