[pari] Update to 2.5.3

Paul Howarth pghmcfc at fedoraproject.org
Thu Oct 4 09:55:24 UTC 2012


commit 87fecc494c2a2a4eb88867afb708c134e3b10a8a
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Oct 4 10:54:18 2012 +0100

    Update to 2.5.3
    
    - New upstream release 2.5.3 (see CHANGES for details)
    - Further compiler warning fixes after discussion with upstream
    - Drop upstreamed parts of declaration-not-prototype patch

 pari-2.5.1-clobbered.patch                         |   36 ------------
 pari-2.5.2-clobbered.patch                         |   59 ++++++++++++++++++++
 ...h => pari-2.5.3-declaration-not-prototype.patch |   11 ----
 pari.spec                                          |   11 +++-
 sources                                            |    2 +-
 5 files changed, 68 insertions(+), 51 deletions(-)
---
diff --git a/pari-2.5.2-clobbered.patch b/pari-2.5.2-clobbered.patch
new file mode 100644
index 0000000..8a9e0ed
--- /dev/null
+++ b/pari-2.5.2-clobbered.patch
@@ -0,0 +1,59 @@
+--- src/basemath/bibli1.c
++++ src/basemath/bibli1.c
+@@ -2016,7 +2016,7 @@ sub_fudge(GEN x) {
+  * If (check != NULL) consider only vectors passing the check, and assumes
+  *   we only want the smallest possible vectors */
+ static GEN
+-smallvectors(GEN q, GEN BORNE, long maxnum, FP_chk_fun *CHECK)
++smallvectors(GEN q, GEN BORNE, const long maxnum, FP_chk_fun *CHECK)
+ {
+   long N = lg(q), n = N-1, i, j, k, s, stockmax, checkcnt = 1;
+   pari_sp av, av1, lim;
+@@ -2238,9 +2238,9 @@ END:
+  * If check is non-NULL keep x only if check(x).
+  * If a is a vector, assume a[1] is the LLL-reduced Cholesky form of q */
+ GEN
+-fincke_pohst(GEN a, GEN B0, long stockmax, long PREC, FP_chk_fun *CHECK)
++fincke_pohst(GEN a, GEN B0, const long stockmax, long PREC, FP_chk_fun *CHECK)
+ {
+-  pari_sp av = avma;
++  VOLATILE pari_sp av = avma;
+   VOLATILE long i,j,l;
+   VOLATILE GEN r,rinv,rinvtrans,u,v,res,z,vnorm,rperm,perm,uperm, bound = B0;
+ 
+--- src/gp/gp.c
++++ src/gp/gp.c
+@@ -1250,7 +1250,7 @@ static void
+ gp_initrc(pari_stack *p_A, char *path)
+ {
+   char *nexts,*s,*t;
+-  FILE *file = gprc_get(path);
++  FILE * VOLATILE file = gprc_get(path);
+   Buffer *b;
+   filtre_t F;
+   VOLATILE long c = 0;
+--- src/headers/parinf.h
++++ src/headers/parinf.h
+@@ -145,7 +145,7 @@ typedef struct {
+   GEN U; /* base change matrix from generators to bid.gen */
+ } zlog_S;
+ 
+-GEN fincke_pohst(GEN a,GEN BOUND,long stockmax,long PREC, FP_chk_fun *CHECK);
++GEN fincke_pohst(GEN a,GEN BOUND,const long stockmax,long PREC, FP_chk_fun *CHECK);
+ void remake_GM(GEN nf, nffp_t *F, long prec);
+ GEN nfbasic_to_nf(nfbasic_t *T, GEN ro, long prec);
+ 
+--- src/modules/stark.c
++++ src/modules/stark.c
+@@ -2740,9 +2740,10 @@ quadray_init(GEN *pD, GEN f, GEN *pbnf,
+ /* compute the polynomial over Q of the Hilbert class field of
+    Q(sqrt(D)) where D is a positive fundamental discriminant */
+ static GEN
+-quadhilbertreal(GEN D, long prec)
++quadhilbertreal(GEN D, long baseprec)
+ {
+   pari_sp av = avma;
++  VOLATILE long prec = baseprec;
+   long newprec;
+   GEN bnf;
+   VOLATILE GEN bnr, dtQ, data, nf, cyc, M;
diff --git a/pari-2.5.1-declaration-not-prototype.patch b/pari-2.5.3-declaration-not-prototype.patch
similarity index 88%
rename from pari-2.5.1-declaration-not-prototype.patch
rename to pari-2.5.3-declaration-not-prototype.patch
index 1f775c6..b084768 100644
--- a/pari-2.5.1-declaration-not-prototype.patch
+++ b/pari-2.5.3-declaration-not-prototype.patch
@@ -1,14 +1,3 @@
---- src/headers/paripriv.h
-+++ src/headers/paripriv.h
-@@ -252,7 +252,7 @@
- GEN  pari_compile_str(char *lex, int strict);
- 
- void pari_sigint(const char *s);
--pariFILE *pari_last_tmp_file();
-+pariFILE *pari_last_tmp_file(void);
- void* get_stack(double fraction, long min);
- void  init_graph(void);
- void  free_graph(void);
 --- src/language/eval.c
 +++ src/language/eval.c
 @@ -1079,11 +1079,11 @@
diff --git a/pari.spec b/pari.spec
index b273a1c..4b04073 100644
--- a/pari.spec
+++ b/pari.spec
@@ -1,5 +1,5 @@
 Name:           pari
-Version:        2.5.2
+Version:        2.5.3
 Release:        1%{?dist}
 Summary:        Number Theory-oriented Computer Algebra System
 Group:          System Environment/Libraries
@@ -11,8 +11,8 @@ Source1:        gp.desktop
 Patch0:         pari-2.5.1-xdgopen.patch
 Patch1:         pari-2.5.1-optflags.patch
 Patch10:        pari-2.5.1-missing-field-init.patch
-Patch11:        pari-2.5.1-declaration-not-prototype.patch
-Patch12:        pari-2.5.1-clobbered.patch
+Patch11:        pari-2.5.3-declaration-not-prototype.patch
+Patch12:        pari-2.5.2-clobbered.patch
 BuildRequires:  readline-devel
 BuildRequires:  gmp-devel
 BuildRequires:  tex(tex)
@@ -156,6 +156,11 @@ make test-all
 %{_libdir}/libpari.so
 
 %changelog
+* Thu Oct  4 2012 Paul Howarth <paul at city-fan.org> - 2.5.3-1
+- update to 2.5.3 (see CHANGES for details)
+- further compiler warning fixes after discussion with upstream
+- drop upstreamed parts of declaration-not-prototype patch
+
 * Mon Aug  6 2012 Paul Howarth <paul at city-fan.org> - 2.5.2-1
 - update to 2.5.2 (see CHANGES for details)
 - drop upstreamed gcc 4.7, bug#1264 and FSF address patches
diff --git a/sources b/sources
index 605debd..c38bdc4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b346e037d7a6c25017e34f6afdba43b5  pari-2.5.2.tar.gz
+ce4e09bb7225a63172cea9021d5d2704  pari-2.5.3.tar.gz


More information about the scm-commits mailing list