On Thu, Jul 10, 2025 at 12:03:14PM +0200, Kirill A. Korinsky wrote:
> On Mon, 23 Jun 2025 23:17:42 +0200,
> Kirill A. Korinsky <kir...@korins.ky> wrote:
> > 
> > [1  <text/plain; US-ASCII (7bit)>]
> > On Fri, 06 Jun 2025 13:00:25 +0200,
> > Kirill A. Korinsky <kir...@korins.ky> wrote:
> > > 
> > > [1  <text/plain; US-ASCII (7bit)>]
> > > On Fri, 06 Jun 2025 04:27:08 +0200,
> > > Dima Pasechnik <d...@sagemath.org> wrote:
> > > >
> > > > Normally distros (e.g. gentoo) would only include pari-seadata, but not
> > > > pari-seadata-big/small
> > > >
> > > > Indeed,  pari-data-small is covered by  pari-seadata
> > > > and  pari-seadata-big, and pari-seadata-big is considered an overkill
> > > > for most uses.
> > > >
> > > 
> > > I think that ship both seadata and seadata-big is good idea because -big 
> > > had
> > > quite a negligible impact: only seadata consumes 295M in 15598 files, and
> > > -big adds 100M data in 70 additional files.
> > > 
> > > and as Stuart suggested I had extract it in dedicated port.
> > > 
> > > So, here an inlinded diff to update math/pari to the last version and 
> > > attach
> > > tgz which contains a new port math/pari-data.
> > > 
> > > Ok for update and import?
> > >
> > 
> > I still think that update math/pari reuqired, as well import math/pari-data.

Sure, Pari-GP is an active project, they add new functionality, fix
bugs, port to new platforms, etc. By now, pari 2.15 is more or less obsolete, 
and 2.17 is the current
stable.

By the way - Pari-GP is a dependency of SageMath (https://sagemath.org),
among many others, of which the remaining to be ported tricky ones are
GAP (https://gap-system.org, it's a special-purpose CAS oriented towards group 
theory)
(a partial port was posted a number of years ago here),
and Singular (https://www.singular.uni-kl.de/, another special-purpose
CAS mostly for commutative algebra/algebraic geometry).

Singular and GAP both have tricky build system with internal dynamic 
libraries/loadable modules.
GAP can be built and mostly works on OpenBSD, with Singular I struggled
with an apparent need to refactor build scripts.

Sagemath is ported to FreeBSD, so the task isn't impossible.

Best,
Dima

> >
> 
> Anyone?
> 
> Index: Makefile
> ===================================================================
> RCS file: /home/cvs/ports/math/pari/Makefile,v
> diff -u -p -r1.26 Makefile
> --- Makefile  15 Apr 2024 11:38:53 -0000      1.26
> +++ Makefile  6 Jun 2025 09:45:01 -0000
> @@ -1,16 +1,17 @@
> -COMMENT=     number theory-oriented computer algebra system
> +COMMENT=             number theory-oriented computer algebra system
>  
> -V=           2.15.5
> -DISTNAME=    pari-$V
> -CATEGORIES=  math
> -REVISION=    1
> +V=                   2.17.2
> +DISTNAME=            pari-$V
> +CATEGORIES=          math
>  
> -SHARED_LIBS +=               pari-gmp                0.0     # 2.15.4
> +SHARED_LIBS +=               pari-gmp                1.0     # 2.17.2
>  
> -HOMEPAGE=    https://pari.math.u-bordeaux.fr/
> +DISTFILES=           ${DISTNAME}${EXTRACT_SUFX}
> +
> +HOMEPAGE=            https://pari.math.u-bordeaux.fr/
>  
>  # GPLv2+
> -PERMIT_PACKAGE=      Yes
> +PERMIT_PACKAGE=              Yes
>  
>  WANTLIB +=           X11 c gmp m readline
>  
> @@ -19,6 +20,8 @@ SITES=                      https://pari.math.u-bordeaux.fr
>  
>  BUILD_DEPENDS=               print/texlive/base
>  LIB_DEPENDS=         devel/gmp
> +
> +DPB_PROPERTIES=              parallel
>  
>  USE_GMAKE=           Yes
>  
> Index: distinfo
> ===================================================================
> RCS file: /home/cvs/ports/math/pari/distinfo,v
> diff -u -p -r1.7 distinfo
> --- distinfo  25 Feb 2024 17:00:25 -0000      1.7
> +++ distinfo  6 Jun 2025 09:45:37 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (pari-2.15.5.tar.gz) = Dv3adRXZ2VT2MyTDSzTFYOYPc6gcOSSnEmCizJHV+YE=
> -SIZE (pari-2.15.5.tar.gz) = 5186798
> +SHA256 (pari-2.17.2.tar.gz) = fTBXj1z5exN6KB9FSNExqvwM3oa8/RDMHhvXKoHmUGE=
> +SIZE (pari-2.17.2.tar.gz) = 5326642
> Index: patches/patch-config_Makefile_SH
> ===================================================================
> RCS file: /home/cvs/ports/math/pari/patches/patch-config_Makefile_SH,v
> diff -u -p -r1.1 patch-config_Makefile_SH
> --- patches/patch-config_Makefile_SH  3 Sep 2023 14:19:51 -0000       1.1
> +++ patches/patch-config_Makefile_SH  29 May 2025 16:11:06 -0000
> @@ -1,7 +1,7 @@
>  Index: config/Makefile.SH
>  --- config/Makefile.SH.orig
>  +++ config/Makefile.SH
> -@@ -515,8 +515,6 @@ install-lib-dyn-base:
> +@@ -507,8 +507,6 @@ install-lib-dyn-base:
>   install-lib-dyn-link: install-lib-dyn-base
>       -if test "\$(LIBPARI_DYN)" != "\$(LIBDIR)/\$(LIBPARI_SO)"; then \
>             \$(LN) \$(LIBPARI_DYN) \$(LIBDIR)/\$(LIBPARI_SO); fi
> Index: patches/patch-config_get_cc
> ===================================================================
> RCS file: /home/cvs/ports/math/pari/patches/patch-config_get_cc,v
> diff -u -p -r1.3 patch-config_get_cc
> --- patches/patch-config_get_cc       3 Sep 2023 14:19:51 -0000       1.3
> +++ patches/patch-config_get_cc       29 May 2025 16:11:06 -0000
> @@ -9,6 +9,6 @@ Index: config/get_cc
>     ASMINLINE=yes
>  -  OPTFLAGS="$OPTFLAGS $warn"
>  +  OPTFLAGS="$CFLAGS $warn"
> -   cmd="$CC $CFLAGS $extraflag -ffp-contract=off -o $exe gnu.c"
> +   cmd="$CC $CFLAGS $extraflag -fno-strict-aliasing -o $exe gnu.c"
>     . log_cmd
>     if test -s $exe; then
> Index: patches/patch-doc_gphelp_in
> ===================================================================
> RCS file: /home/cvs/ports/math/pari/patches/patch-doc_gphelp_in,v
> diff -u -p -r1.4 patch-doc_gphelp_in
> --- patches/patch-doc_gphelp_in       15 Apr 2024 11:38:53 -0000      1.4
> +++ patches/patch-doc_gphelp_in       29 May 2025 16:11:06 -0000
> @@ -3,7 +3,7 @@ Fix path so gphelp will work.
>  Index: doc/gphelp.in
>  --- doc/gphelp.in.orig
>  +++ doc/gphelp.in
> -@@ -134,7 +134,7 @@ sub get_docdir {
> +@@ -136,7 +136,7 @@ sub get_docdir {
>         $d =~ s,doc/\.\./doc,doc,;
>       }
>     }
> Index: pkg/PLIST
> ===================================================================
> RCS file: /home/cvs/ports/math/pari/pkg/PLIST,v
> diff -u -p -r1.5 PLIST
> --- pkg/PLIST 3 Sep 2023 14:19:51 -0000       1.5
> +++ pkg/PLIST 6 Jun 2025 10:04:07 -0000
> @@ -1,5 +1,5 @@
>  bin/gp
> -@bin bin/gp-2.15
> +@bin bin/gp-2.17
>  bin/gphelp
>  bin/tex2mail
>  include/pari/
> @@ -21,12 +21,11 @@ include/pari/paripriv.h
>  include/pari/paristio.h
>  include/pari/parisys.h
>  include/pari/paritune.h
> -@comment lib/libpari.a
>  @lib lib/libpari-gmp.so.${LIBpari-gmp_VERSION}
>  @so lib/libpari.so
>  lib/pari/
>  lib/pari/pari.cfg
> -@man man/man1/gp-2.15.1
> +@man man/man1/gp-2.17.1
>  @man man/man1/gp.1
>  @man man/man1/gphelp.1
>  @man man/man1/pari.1
> 
> 
> -- 
> wbr, Kirill


Reply via email to