pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/pari23



Module Name:    pkgsrc
Committed By:   prlw1
Date:           Fri Sep 26 20:24:35 UTC 2025

Modified Files:
        pkgsrc/math/pari23: Makefile buildlink3.mk distinfo
Added Files:
        pkgsrc/math/pari23/patches: patch-config_has__TIOCGWINSZ.c
            patch-config_has__dlopen.c patch-config_has__getrlimit.c
            patch-config_has__getrusage.c patch-config_has__opendir.c
            patch-config_has__readline.c patch-config_has__sigaction.c
            patch-config_has__strftime.c patch-config_has__times.c
            patch-config_has__vsnprintf.c patch-config_rl__version.c
            patch-src_basemath_gen3.c
            patch-src_functions_gp2c__internal__badtype
            patch-src_modules_elliptic.c

Log Message:
pari23:
- add some patches from the pari-2.3 branch
- fix build with gcc 14


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/math/pari23/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/math/pari23/buildlink3.mk
cvs rdiff -u -r1.6 -r1.7 pkgsrc/math/pari23/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/math/pari23/patches/patch-config_has__TIOCGWINSZ.c \
    pkgsrc/math/pari23/patches/patch-config_has__dlopen.c \
    pkgsrc/math/pari23/patches/patch-config_has__getrlimit.c \
    pkgsrc/math/pari23/patches/patch-config_has__getrusage.c \
    pkgsrc/math/pari23/patches/patch-config_has__opendir.c \
    pkgsrc/math/pari23/patches/patch-config_has__readline.c \
    pkgsrc/math/pari23/patches/patch-config_has__sigaction.c \
    pkgsrc/math/pari23/patches/patch-config_has__strftime.c \
    pkgsrc/math/pari23/patches/patch-config_has__times.c \
    pkgsrc/math/pari23/patches/patch-config_has__vsnprintf.c \
    pkgsrc/math/pari23/patches/patch-config_rl__version.c \
    pkgsrc/math/pari23/patches/patch-src_basemath_gen3.c \
    pkgsrc/math/pari23/patches/patch-src_functions_gp2c__internal__badtype \
    pkgsrc/math/pari23/patches/patch-src_modules_elliptic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/pari23/Makefile
diff -u pkgsrc/math/pari23/Makefile:1.18 pkgsrc/math/pari23/Makefile:1.19
--- pkgsrc/math/pari23/Makefile:1.18    Wed Jul  2 03:12:02 2025
+++ pkgsrc/math/pari23/Makefile Fri Sep 26 20:24:34 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2025/07/02 03:12:02 markd Exp $
+# $NetBSD: Makefile,v 1.19 2025/09/26 20:24:34 prlw1 Exp $
 
 DISTNAME=      pari-2.3.5
-PKGREVISION=   32
+PKGREVISION=   33
 CATEGORIES=    math
 MASTER_SITES=  http://pari.math.u-bordeaux.fr/pub/pari/OLD/2.3/
 

Index: pkgsrc/math/pari23/buildlink3.mk
diff -u pkgsrc/math/pari23/buildlink3.mk:1.2 pkgsrc/math/pari23/buildlink3.mk:1.3
--- pkgsrc/math/pari23/buildlink3.mk:1.2        Tue Jun 28 11:34:44 2022
+++ pkgsrc/math/pari23/buildlink3.mk    Fri Sep 26 20:24:34 2025
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2022/06/28 11:34:44 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2025/09/26 20:24:34 prlw1 Exp $
 
 BUILDLINK_TREE+=       pari
 
@@ -13,7 +13,7 @@ pkgbase := pari
 .include "../../mk/pkg-build-options.mk"
 
 PARI_LIB?=     pari
-.if !empty(PKG_BUILD_OPTIONS.pari:Mgmp)
+.if ${PKG_BUILD_OPTIONS.pari:Mgmp}
 PARI_LIB=      pari-gmp
 .  include "../../devel/gmp/buildlink3.mk"
 .endif

Index: pkgsrc/math/pari23/distinfo
diff -u pkgsrc/math/pari23/distinfo:1.6 pkgsrc/math/pari23/distinfo:1.7
--- pkgsrc/math/pari23/distinfo:1.6     Wed Jul  2 03:12:02 2025
+++ pkgsrc/math/pari23/distinfo Fri Sep 26 20:24:34 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2025/07/02 03:12:02 markd Exp $
+$NetBSD: distinfo,v 1.7 2025/09/26 20:24:34 prlw1 Exp $
 
 BLAKE2s (pari-2.3.5.tar.gz) = b09825efda6fb19ea0d6678cb50fa7c85815688bbf2f7669c50bb5602731961d
 SHA512 (pari-2.3.5.tar.gz) = 0e49e6310b4c76ef3370786a13aa8cbc5bb0b7dc84ec1665866d623e6284f45db8584eea759e8b5954dc9b5c8a3e866e77a377d18073ed33f11708a7e88a4cca
@@ -22,8 +22,22 @@ SHA1 (patch-ap) = 21a20b68b589f8be3036d1
 SHA1 (patch-config_endian.c) = dea6efdf6ae53673ca23f43645146e00bab977bb
 SHA1 (patch-config_get_fltk) = 2c2aa271fad5880a44b2df70a7143d2aea690ca0
 SHA1 (patch-config_gmp__version.c) = 7fd8c022f73020caae1ec8e9098acb2f8608a975
+SHA1 (patch-config_has__TIOCGWINSZ.c) = 6caa8946f6347171671ce6ebf30a30a31b309ae6
+SHA1 (patch-config_has__dlopen.c) = 9a933f49dce2da25e485cdf5f9cc3f809d7ce4f0
+SHA1 (patch-config_has__getrlimit.c) = f6e80a3aade95352a6ae44a0303d51e31dcecc46
+SHA1 (patch-config_has__getrusage.c) = fb2afb26d657c0e469ed181e6f7dc4e3fe30e0e6
+SHA1 (patch-config_has__opendir.c) = f9b91232fc61548f84e39b19c8b481ae29e278a3
+SHA1 (patch-config_has__readline.c) = 65b8b41973146b248a8d244fdc399ba04a63eb4d
+SHA1 (patch-config_has__sigaction.c) = 4986e60a383363a51d133c0c139918552384abc0
+SHA1 (patch-config_has__strftime.c) = 367213c8c428a9cb4a3460a16cdc4a72895d27ef
+SHA1 (patch-config_has__times.c) = 628e13de9c484d1007014f3029bd74a3b09b6554
+SHA1 (patch-config_has__vsnprintf.c) = f06a527d949b26e901a644dd1c8316fa1d2bedf1
+SHA1 (patch-config_rl__version.c) = 88047f02712ad236572530d33e7a3153a708892e
+SHA1 (patch-src_basemath_gen3.c) = a82616e41d2e9fde811f4b2c1695d65bb199e26f
 SHA1 (patch-src_desc_merge__822) = 8c4c317a21174d73d59b4fd9d5a3e155df141752
+SHA1 (patch-src_functions_gp2c__internal__badtype) = b3183f75f44b03bf6d8f762ae1a2047e58d49e60
 SHA1 (patch-src_headers_paridecl.h) = ee02e487807d8ed1c1a11268965ade76a2f80cf2
 SHA1 (patch-src_language_anal.c) = d0028a51e8ef14cae766cb881fcfce82cec0346f
 SHA1 (patch-src_language_es.c) = 27c286da66ce1a2fc6e5179cfb3f4e222984813d
+SHA1 (patch-src_modules_elliptic.c) = 0042c59b6aa4c223b792320378040d6882f75637
 SHA1 (patch-src_modules_mpqs.c) = 3dd164e5c686fd2eb8317569cf05906a4c527721

Added files:

Index: pkgsrc/math/pari23/patches/patch-config_has__TIOCGWINSZ.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__TIOCGWINSZ.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__TIOCGWINSZ.c   Fri Sep 26 20:24:34 2025
@@ -0,0 +1,12 @@
+$NetBSD: patch-config_has__TIOCGWINSZ.c,v 1.1 2025/09/26 20:24:34 prlw1 Exp $
+
+main() returns int
+
+--- config/has_TIOCGWINSZ.c.orig       2008-03-31 11:43:59.000000000 +0000
++++ config/has_TIOCGWINSZ.c
+@@ -2,4 +2,4 @@
+ #include <sys/types.h>
+ #include <sys/termios.h>
+ #include <sys/ioctl.h>
+-main() { int x = TIOCGWINSZ; }
++int main() { int x = TIOCGWINSZ; }
Index: pkgsrc/math/pari23/patches/patch-config_has__dlopen.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__dlopen.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__dlopen.c       Fri Sep 26 20:24:34 2025
@@ -0,0 +1,11 @@
+$NetBSD: patch-config_has__dlopen.c,v 1.1 2025/09/26 20:24:34 prlw1 Exp $
+
+main() returns int
+
+--- config/has_dlopen.c.orig   2008-03-31 11:43:59.000000000 +0000
++++ config/has_dlopen.c
+@@ -1,3 +1,3 @@
+ #include <stdio.h>
+ #include <dlfcn.h>
+-main() {dlopen("a",RTLD_LAZY);}
++int main() {dlopen("a",RTLD_LAZY);}
Index: pkgsrc/math/pari23/patches/patch-config_has__getrlimit.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__getrlimit.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__getrlimit.c    Fri Sep 26 20:24:34 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-config_has__getrlimit.c,v 1.1 2025/09/26 20:24:34 prlw1 Exp $
+
+main() returns int
+
+--- config/has_getrlimit.c.orig        2008-03-31 11:43:59.000000000 +0000
++++ config/has_getrlimit.c
+@@ -1,7 +1,7 @@
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
+-main() {
++int main() {
+   struct rlimit rip;
+   getrlimit(RLIMIT_STACK, &rip);
+   setrlimit(RLIMIT_STACK, &rip);
Index: pkgsrc/math/pari23/patches/patch-config_has__getrusage.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__getrusage.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__getrusage.c    Fri Sep 26 20:24:35 2025
@@ -0,0 +1,12 @@
+$NetBSD: patch-config_has__getrusage.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+main() returns int
+
+--- config/has_getrusage.c.orig        2008-03-31 11:43:59.000000000 +0000
++++ config/has_getrusage.c
+@@ -4,4 +4,4 @@
+ #include <sys/time.h>
+ #include <sys/resource.h>
+ #include <unistd.h>
+-main(){ struct rusage a; printf("%d",getrusage(0,&a));}
++int main(){ struct rusage a; printf("%d",getrusage(0,&a));}
Index: pkgsrc/math/pari23/patches/patch-config_has__opendir.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__opendir.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__opendir.c      Fri Sep 26 20:24:35 2025
@@ -0,0 +1,11 @@
+$NetBSD: patch-config_has__opendir.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+main() returns int
+
+--- config/has_opendir.c.orig  2008-03-31 11:43:59.000000000 +0000
++++ config/has_opendir.c
+@@ -1,3 +1,3 @@
+ #include <sys/types.h>
+ #include <dirent.h>
+-main() { DIR *d = opendir("."); }
++int main() { DIR *d = opendir("."); }
Index: pkgsrc/math/pari23/patches/patch-config_has__readline.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__readline.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__readline.c     Fri Sep 26 20:24:35 2025
@@ -0,0 +1,12 @@
+$NetBSD: patch-config_has__readline.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+main() returns int
+
+--- config/has_readline.c.orig 2008-03-31 11:43:59.000000000 +0000
++++ config/has_readline.c
+@@ -3,4 +3,4 @@
+ #else
+ #  include <readline/readline.h>
+ #endif
+-main() { char *s = readline("?"); }
++int main() { char *s = readline("?"); }
Index: pkgsrc/math/pari23/patches/patch-config_has__sigaction.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__sigaction.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__sigaction.c    Fri Sep 26 20:24:35 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-config_has__sigaction.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+main() returns int
+
+--- config/has_sigaction.c.orig        2008-03-31 11:43:59.000000000 +0000
++++ config/has_sigaction.c
+@@ -1,5 +1,5 @@
+ #include <signal.h>
+-main()
++int main()
+ {
+   struct sigaction sa, oldsa;
+ 
Index: pkgsrc/math/pari23/patches/patch-config_has__strftime.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__strftime.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__strftime.c     Fri Sep 26 20:24:35 2025
@@ -0,0 +1,10 @@
+$NetBSD: patch-config_has__strftime.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+main() returns int
+
+--- config/has_strftime.c.orig 2008-03-31 11:43:59.000000000 +0000
++++ config/has_strftime.c
+@@ -1,2 +1,2 @@
+ #include <time.h>
+-main(){ struct tm *x; strftime("",1,"",x);}
++int main(){ struct tm *x; strftime("",1,"",x);}
Index: pkgsrc/math/pari23/patches/patch-config_has__times.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__times.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__times.c        Fri Sep 26 20:24:35 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-config_has__times.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+main() returns int
+
+--- config/has_times.c.orig    2008-03-31 11:43:59.000000000 +0000
++++ config/has_times.c
+@@ -1,7 +1,7 @@
+ #include <stdio.h>
+ #include <sys/times.h>
+ #include <unistd.h>
+-main(){
++int main(){
+   struct tms t;
+   printf("%d%d", times(&t),
+ #ifdef _SC_CLK_TCK
Index: pkgsrc/math/pari23/patches/patch-config_has__vsnprintf.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_has__vsnprintf.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_has__vsnprintf.c    Fri Sep 26 20:24:35 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-config_has__vsnprintf.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+main() returns int
+
+--- config/has_vsnprintf.c.orig        2008-03-31 11:43:59.000000000 +0000
++++ config/has_vsnprintf.c
+@@ -1,7 +1,7 @@
+ #include <stdio.h>
+ #include <stdarg.h>
+ 
+-main() {}
++int main() {}
+ int f(int i,...) { char s[1]; va_list ap; va_start(ap,i);
+   vsnprintf(s,1,"",ap); return 0;
+ }
Index: pkgsrc/math/pari23/patches/patch-config_rl__version.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-config_rl__version.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-config_rl__version.c       Fri Sep 26 20:24:35 2025
@@ -0,0 +1,12 @@
+$NetBSD: patch-config_rl__version.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+main() returns int
+
+--- config/rl_version.c.orig   2008-03-31 11:43:59.000000000 +0000
++++ config/rl_version.c
+@@ -9,4 +9,4 @@
+ extern char *rl_library_version; /* Might be mismatched header, try anyway! */
+ #endif
+ 
+-main(){ printf("%s", rl_library_version); }
++int main(){ printf("%s", rl_library_version); }
Index: pkgsrc/math/pari23/patches/patch-src_basemath_gen3.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-src_basemath_gen3.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-src_basemath_gen3.c        Fri Sep 26 20:24:35 2025
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_basemath_gen3.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+commit a0a089fd44e252c5ec535dd17b73f297f2e18ecd
+Author: Bill Allombert <Bill.Allombert%math.u-bordeaux1.fr@localhost>
+Date:   Wed Mar 17 10:55:35 2010 +0000
+
+    precision(0.E100) returned an invalid object.                     [F164]
+
+--- src/basemath/gen3.c.orig   2009-09-24 09:47:52.000000000 +0000
++++ src/basemath/gen3.c
+@@ -199,7 +199,7 @@ GEN
+ ggprecision(GEN x)
+ {
+   long a = gprecision(x);
+-  return utoipos(a ? prec2ndec(a): VERYBIGINT);
++  return utoi(a ? prec2ndec(a): VERYBIGINT);
+ }
+ 
+ GEN
Index: pkgsrc/math/pari23/patches/patch-src_functions_gp2c__internal__badtype
diff -u /dev/null pkgsrc/math/pari23/patches/patch-src_functions_gp2c__internal__badtype:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-src_functions_gp2c__internal__badtype      Fri Sep 26 20:24:35 2025
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_functions_gp2c__internal__badtype,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+commit 2a14f488c5e063600c28c418949bb0dcf21aae20
+Author: Bill Allombert <Bill.Allombert%math.u-bordeaux1.fr@localhost>
+Date:   Thu Nov 11 13:44:40 2010 +0000
+
+    3- [gp2c]: foo(x:mp)=... did not work. [2.4.4-F16]
+
+--- src/functions/gp2c_internal/_badtype.orig  2008-03-31 11:43:59.000000000 +0000
++++ src/functions/gp2c_internal/_badtype
+@@ -4,7 +4,7 @@ Help: Code to check types. If not void, 
+ Description: 
+  (int):bool:parens              typ($1) != t_INT
+  (real):bool:parens             typ($1) != t_REAL
+- (mp):negbool                   is_intreal($1)
++ (mp):negbool                   is_intreal_t(typ($1))
+  (vec):negbool                  is_matvec_t(typ($1))
+  (vecsmall):bool:parens         typ($1) != t_VECSMALL
+  (pol):bool:parens              typ($1) != t_POL
Index: pkgsrc/math/pari23/patches/patch-src_modules_elliptic.c
diff -u /dev/null pkgsrc/math/pari23/patches/patch-src_modules_elliptic.c:1.1
--- /dev/null   Fri Sep 26 20:24:35 2025
+++ pkgsrc/math/pari23/patches/patch-src_modules_elliptic.c     Fri Sep 26 20:24:35 2025
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_modules_elliptic.c,v 1.1 2025/09/26 20:24:35 prlw1 Exp $
+
+commit 81140065318d3ea4171a69c4df0b9a2618d2559c
+Author: Karim Belabas <Karim.Belabas%math.u-bordeaux1.fr@localhost>
+Date:   Mon Nov 29 07:25:40 2010 +0000
+
+    e=ellinit([0,-2675/8,0,118125/16,62015625/16])
+    p=[21625/64,-1332375/512
+    ellheight(e,p) -> expo overflow due to divrs being called with a t_INT argument
+
+
+--- src/modules/elliptic.c.orig        2010-02-03 15:04:11.000000000 +0000
++++ src/modules/elliptic.c
+@@ -3419,7 +3419,8 @@ ellheight0(GEN e, GEN a, long flag, long
+       if (n >= 3*n2) { u = n2; v = 3; } else { u = n; v = 8; }
+     }
+     /* z -= u log(p) / v */
+-    z = gadd(z, divrs(mulsr(-u, glog(p,prec)), v));
++    if (u)
++      z = gadd(z, divrs(mulsr(-u, glog(p,prec)), v));
+   }
+   return gerepileupto(av, gmul2n(z, 1));
+ }



Home | Main Index | Thread Index | Old Index