#18210: numerical bug in incomplete gamma function
-------------------------------------------------+-------------------------
       Reporter:  VivianePons                    |        Owner:
           Type:  defect                         |       Status:  new
       Priority:  major                          |    Milestone:  sage-6.7
      Component:  symbolics                      |   Resolution:
       Keywords:  sd67                           |    Merged in:
        Authors:                                 |    Reviewers:
Report Upstream:  Reported upstream. Developers  |  Work issues:
  acknowledge bug.                               |       Commit:
         Branch:                                 |     Stopgaps:
   Dependencies:                                 |
-------------------------------------------------+-------------------------

Comment (by buck):

 Procedure:

 {{{#!sh
 cd $PARI_ROOT
 TAG=$(git describe)
 git archive HEAD -o $TAG.tar.gz --prefix=$TAG/
 mv pari-2.8-2230-g450ce38.tar.gz $SAGE_ROOT/upstream/
 cd $SAGE_ROOT
 ./sage --fix-pkg-checksums
 ./sage -i -f -c pari
 }}}


 Changes to sage: (I had to touch up one of the patches to get it to
 apply.)

 {{{#!diff
 diff --git a/build/pkgs/pari/checksums.ini b/build/pkgs/pari/checksums.ini
 index c62c530..aabe08d 100644
 --- a/build/pkgs/pari/checksums.ini
 +++ b/build/pkgs/pari/checksums.ini
 @@ -1,4 +1,4 @@
  tarball=pari-VERSION.tar.gz
 -sha1=fa23e0c8b6e38a356048d19224dc9b9658d77724
 -md5=c753faaa4780de5ad8d461f0ffd70ecf
 diff --git a/build/pkgs/pari/checksums.ini b/build/pkgs/pari/checksums.ini
 index c62c530..aabe08d 100644
 --- a/build/pkgs/pari/checksums.ini
 +++ b/build/pkgs/pari/checksums.ini
 @@ -1,4 +1,4 @@
  tarball=pari-VERSION.tar.gz
 -sha1=fa23e0c8b6e38a356048d19224dc9b9658d77724
 -md5=c753faaa4780de5ad8d461f0ffd70ecf
 -cksum=1220765312
 +sha1=55299bfe042da491648897e830030083809d9967
 +md5=97738f8e92bba498f7dfd723c8e9d910
 +cksum=1221580104
 diff --git a/build/pkgs/pari/package-version.txt b/build/pkgs/pari
 /package-version.txt
 index 2b25bd1..5fdd71e 100644
 --- a/build/pkgs/pari/package-version.txt
 +++ b/build/pkgs/pari/package-version.txt
 @@ -1 +1 @@
 -2.8-1813-g6157df4.p0
 +2.8-2230-g450ce38
 diff --git a/build/pkgs/pari/patches/public_memory_functions.patch
 b/build/pkgs/pari/patches/public_memory_functions.patch
 index b3726d7..ee14fa4 100644
 --- a/build/pkgs/pari/patches/public_memory_functions.patch
 +++ b/build/pkgs/pari/patches/public_memory_functions.patch
 @@ -9,9 +9,9 @@ index 7067183..4ede6ed 100644
  +void *  pari_mainstack_malloc(size_t size);
  +void    pari_mainstack_mfree(void *s, size_t size);
  +void    pari_mainstack_free(struct pari_mainstack *st);
 - void    paristack_alloc(size_t rsize, size_t vsize);
   void    paristack_newrsize(ulong newsize);
   void    paristack_resize(ulong newsize);
 + void    paristack_setsize(size_t rsize, size_t vsize);
  diff --git a/src/language/init.c b/src/language/init.c
  index 7b5922d..2a578d7 100644
  --- a/src/language/init.c
 }}}

 I also had to install bison to get the build to run, which I hadn't
 installed before, but I *had* built pari before (I think!) so I believe
 that's a new build dependency there?

 Result: `Successfully installed pari-2.8-2230-g450ce38; The PARI self-
 tests all passed`

 The sage console fails to start however, with `ImportError:
 sage/local/lib/python2.7/site-packages/sage/libs/pari/gen.so: undefined
 symbol: gp_algcenter`

--
Ticket URL: <http://trac.sagemath.org/ticket/18210#comment:31>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to