Bug#777237: Sagemath has special needs

2015-03-13 Thread Bill Allombert
On Fri, Mar 13, 2015 at 07:37:56PM +0100, Julien Puydt wrote: > Hi, > > Unfortunately, the sagemath devs have started packaging a snapshot > of pari 2.8 and use more non-2.7 features than just error > management, so there is no point anymore in trying to restore > compatibility :'-( Yes I know. T

Bug#777237: Sagemath has special needs

2015-03-13 Thread Julien Puydt
Hi, Le 12/03/2015 19:18, Bill Allombert a écrit : On Sun, Mar 08, 2015 at 04:09:55PM +0100, Julien Puydt wrote: Hi, Le 07/03/2015 22:48, Bill Allombert a écrit : On Sat, Mar 07, 2015 at 12:59:36PM +0100, Julien Puydt wrote: How does cb_pari_err_recover() work ? Their cb_pari_err_handle det

Bug#777237: Sagemath has special needs

2015-03-12 Thread Bill Allombert
On Sun, Mar 08, 2015 at 04:09:55PM +0100, Julien Puydt wrote: > Hi, > > Le 07/03/2015 22:48, Bill Allombert a écrit : > >On Sat, Mar 07, 2015 at 12:59:36PM +0100, Julien Puydt wrote: > >>>How does cb_pari_err_recover() work ? > >> > >>Their cb_pari_err_handle detects if it's a short stack problem

Bug#777237: Sagemath has special needs

2015-03-08 Thread Julien Puydt
Hi, Le 07/03/2015 22:48, Bill Allombert a écrit : On Sat, Mar 07, 2015 at 12:59:36PM +0100, Julien Puydt wrote: How does cb_pari_err_recover() work ? Their cb_pari_err_handle detects if it's a short stack problem (errnum == e_STACK), in which case it doubles the stack and doesn't throw an exc

Bug#777237: Sagemath has special needs

2015-03-07 Thread Bill Allombert
On Sat, Mar 07, 2015 at 12:59:36PM +0100, Julien Puydt wrote: > >How does cb_pari_err_recover() work ? > > Their cb_pari_err_handle detects if it's a short stack problem > (errnum == e_STACK), in which case it doubles the stack and doesn't > throw an exception. If it's another problem, it blocks e

Bug#777237: Sagemath has special needs

2015-03-07 Thread Julien Puydt
Hi, Le 06/03/2015 23:33, Bill Allombert a écrit : On Thu, Mar 05, 2015 at 05:46:13PM +0100, Julien Puydt wrote: cdef GEN E cdef long errnum cdef jmp_buf env iferr_env = &env if setjmp (iferr_env[0]) != 0: E = pari_err_last() errnum = E[1] _par

Bug#777237: Sagemath has special needs

2015-03-06 Thread Bill Allombert
On Thu, Mar 05, 2015 at 05:46:13PM +0100, Julien Puydt wrote: > cdef GEN E > cdef long errnum > cdef jmp_buf env > iferr_env = &env > if setjmp (iferr_env[0]) != 0: > E = pari_err_last() > errnum = E[1] > _pari_err_handle(E) > cb_pari_err_recover(

Bug#777237: Sagemath has special needs

2015-03-05 Thread Julien Puydt
Le 04/03/2015 23:55, Bill Allombert a écrit : On Wed, Mar 04, 2015 at 10:47:28PM +0100, Julien Puydt wrote: block that is put somewhere appropriate. *They* won't do anything, but *I* am trying to wrap my head between what they already have, and what they should have -- I must admit I'm quite

Bug#777237: Sagemath has special needs

2015-03-04 Thread Bill Allombert
On Wed, Mar 04, 2015 at 10:47:28PM +0100, Julien Puydt wrote: > >block that is put somewhere appropriate. > > *They* won't do anything, but *I* am trying to wrap my head between > what they already have, and what they should have -- I must admit > I'm quite unfamiliar with setjmp/longjmp. > Let

Bug#777237: Sagemath has special needs

2015-03-04 Thread Julien Puydt
Hi, Le 04/03/2015 19:54, Bill Allombert a écrit : On Wed, Mar 04, 2015 at 10:47:15AM +0100, Julien Puydt wrote: Hi, Le 04/03/2015 00:53, Bill Allombert a écrit : I expect they should do something like if (setjmp(&iferr_env)) { GEN E = pari_err_last(); char *s = GSTR(GENtoGENstr(E));

Bug#777237: Sagemath has special needs

2015-03-04 Thread Bill Allombert
On Wed, Mar 04, 2015 at 10:47:15AM +0100, Julien Puydt wrote: > Hi, > > Le 04/03/2015 00:53, Bill Allombert a écrit : > > > >I expect they should do something like > >if (setjmp(&iferr_env)) > >{ > > GEN E = pari_err_last(); > > char *s = GSTR(GENtoGENstr(E)); > > fprintf(stderr,s); > > ..

Bug#777237: Sagemath has special needs

2015-03-04 Thread Julien Puydt
Hi, Le 04/03/2015 00:53, Bill Allombert a écrit : I expect they should do something like if (setjmp(&iferr_env)) { GEN E = pari_err_last(); char *s = GSTR(GENtoGENstr(E)); fprintf(stderr,s); ... } before the point they are recovering using cb_pari_err_recover() at this time. I had

Bug#777237: Sagemath has special needs

2015-03-03 Thread Bill Allombert
On Wed, Feb 18, 2015 at 10:40:24AM +0100, Julien Puydt wrote: > >>- they also have backported patches to add cb_pari_err_handle from > >>upstream's repository (see end of this mail). > >> > >>Can we get those in debian too? > > > >This patch is breaking the ABI and API, thus this is not possible to

Bug#777237: Sagemath has special needs

2015-02-18 Thread Julien Puydt
Hi, Le 11/02/2015 21:44, Bill Allombert a écrit : On Fri, Feb 06, 2015 at 07:08:49PM +0100, Julien Puydt wrote: Package: pari-gp Version: 2.7.2-1 Severity: wishlist Hello Julien, While trying to use the debian package in sagemath, it turned out two things were lacking to make it work: - the

Bug#777237: Sagemath has special needs

2015-02-11 Thread Bill Allombert
On Fri, Feb 06, 2015 at 07:08:49PM +0100, Julien Puydt wrote: > Package: pari-gp > Version: 2.7.2-1 > Severity: wishlist Hello Julien, > While trying to use the debian package in sagemath, it turned out > two things were lacking to make it work: > - they use anal.h ; This is a private header fil

Bug#777237: Sagemath has special needs

2015-02-06 Thread Julien Puydt
Package: pari-gp Version: 2.7.2-1 Severity: wishlist While trying to use the debian package in sagemath, it turned out two things were lacking to make it work: - they use anal.h ; - they also have backported patches to add cb_pari_err_handle from upstream's repository (see end of this mail).