Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Update pari optional packages
@ 2021-08-23  2:13 tornaria
  2021-08-23 23:03 ` [PR PATCH] [Updated] " tornaria
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: tornaria @ 2021-08-23  2:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 996 bytes --]

There is a new pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages pari
https://github.com/void-linux/void-packages/pull/32641

Update pari optional packages
- update pari-elldata
- new pari package pari-nflistdata
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- keep the mtime from files in source
- compress files for installed-size savings
- drop depends of packages on pari, add checkdepends of pari to packages (cf #29159, #32614)
- add a much smaller subpkg seadata-small as in upstream
- add update file for all packages
- skip slow post-install hooks for pari-galpol (14681 data files)

I'm also considering adding packages `pari-elldata-small` and `pari-galpol-small` with small versions of the databases that should be good for testing and small computations.

A patch file from https://github.com/void-linux/void-packages/pull/32641.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pari-32641.patch --]
[-- Type: text/x-diff, Size: 15491 bytes --]

From d86c0de8bd886dabe230e486491916b371ecf1e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 13:02:49 -0300
Subject: [PATCH 1/7] pari-elldata: update to 20210301.

Also:
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- keep the mtime from files in source
- compress files (installed-size: 157M -> 57M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
---
 srcpkgs/pari-elldata/template | 23 +++++++++++++++--------
 srcpkgs/pari-elldata/update   |  3 +++
 2 files changed, 18 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/pari-elldata/update

diff --git a/srcpkgs/pari-elldata/template b/srcpkgs/pari-elldata/template
index 8bbe310b1e34..727a5120c48a 100644
--- a/srcpkgs/pari-elldata/template
+++ b/srcpkgs/pari-elldata/template
@@ -1,17 +1,24 @@
 # Template file for 'pari-elldata'
 pkgname=pari-elldata
-version=20190912
+version=20210301
 revision=1
 create_wrksrc=yes
-depends="pari"
 short_desc="PARI/GP version of J. E. Cremona Elliptic Curve Data"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz"
-checksum=c5757bbeba779fbf4c69718bccbe039fd98159bf2c8d13017284cf8b5a10ddc4
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=dd551e64932d4ab27b3f2b2d1da871c2353672fc1a74705c52e3c0de84bd0cf6
+
+# keep the mtime from files in source
+: ${XBPS_USE_BUILD_MTIME=no}
+
+do_build() {
+	# compressed data files work ok (install-size: 156M -> 57M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir usr/share/pari
- vcopy data/elldata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-elldata/update b/srcpkgs/pari-elldata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-elldata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 4b4411b78a9eb97523e89e0c20543deb71d3cad8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:10:27 -0300
Subject: [PATCH 2/7] pari-galdata: several improvements

- fix license
- change homepage
- rename distfiles to include version in name
- keep the mtime from files in source
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
---
 srcpkgs/pari-galdata/template | 18 ++++++++++--------
 srcpkgs/pari-galdata/update   |  5 +++++
 2 files changed, 15 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/pari-galdata/update

diff --git a/srcpkgs/pari-galdata/template b/srcpkgs/pari-galdata/template
index 63d930104b1a..a5ef15e6aef9 100644
--- a/srcpkgs/pari-galdata/template
+++ b/srcpkgs/pari-galdata/template
@@ -1,17 +1,19 @@
 # Template file for 'pari-galdata'
 pkgname=pari-galdata
 version=20080411
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI database needed to compute Galois group in degrees 8 through 11"
+short_desc="PARI/GP database needed to compute Galois group in degrees 8 through 11"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="https://pari.math.u-bordeaux.fr/"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=b7c1650099b24a20bdade47a85a928351c586287f0d4c73933313873e63290dd
 
+# keep the mtime from files in source
+: ${XBPS_USE_BUILD_MTIME=no}
+
 do_install() {
- vmkdir  usr/share/pari/galdata
- vcopy data/galdata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-galdata/update b/srcpkgs/pari-galdata/update
new file mode 100644
index 000000000000..c34e5c8bc800
--- /dev/null
+++ b/srcpkgs/pari-galdata/update
@@ -0,0 +1,5 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}
+# the current version 20080411 is reported as 2008-04-12 by website
+ignore=2008-04-12

From 7d02d74f49f16bdd2ab3c812afdf522eb5eccd2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:19:24 -0300
Subject: [PATCH 3/7] pari-galpol: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- keep the mtime from files in source
- compress files (installed-size: 80M -> 73M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- skip slow post-install hooks since pkg contains 14681 data files
- add update file
---
 srcpkgs/pari-galpol/template | 27 ++++++++++++++++++---------
 srcpkgs/pari-galpol/update   |  3 +++
 2 files changed, 21 insertions(+), 9 deletions(-)
 create mode 100644 srcpkgs/pari-galpol/update

diff --git a/srcpkgs/pari-galpol/template b/srcpkgs/pari-galpol/template
index a3c5a0882634..7f9b74fc436e 100644
--- a/srcpkgs/pari-galpol/template
+++ b/srcpkgs/pari-galpol/template
@@ -1,18 +1,27 @@
 # Template file for 'pari-galpol'
 pkgname=pari-galpol
 version=20180625
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI package of the GALPOL database of polynomials"
+short_desc="PARI/GP package of the GALPOL database of polynomials"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/galpol.tgz"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=562af28316ee335ee38c1172c2d5ecccb79f55c368fb9f2c6f40fc0f416bb01b
-nostrip=yes
+# skip slow post-install hooks for 14681 files: saves ~ 3m in install
+nostrip=yes                     # skip 06-strip-and-debug-pkgs
+ignore_elf_dirs=/usr/share/pari # skip 11-pkglint-elf-in-usrshare
+
+# keep the mtime from files in source
+: ${XBPS_USE_BUILD_MTIME=no}
+
+do_build() {
+	# compressed data files work ok (install-size: 80M -> 73M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/galpol usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-galpol/update b/srcpkgs/pari-galpol/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-galpol/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 7816f7b53de68d57fcece4052756c878452f3025 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:32:15 -0300
Subject: [PATCH 4/7] pari-seadata: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- keep the mtime from files in source
- compress files (installed-size: 40M -> 19M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add a much smaller subpkg seadata-small as in upstream
- add update file
---
 srcpkgs/pari-seadata-small    |  1 +
 srcpkgs/pari-seadata/template | 33 ++++++++++++++++++++++++++-------
 srcpkgs/pari-seadata/update   |  3 +++
 3 files changed, 30 insertions(+), 7 deletions(-)
 create mode 120000 srcpkgs/pari-seadata-small
 create mode 100644 srcpkgs/pari-seadata/update

diff --git a/srcpkgs/pari-seadata-small b/srcpkgs/pari-seadata-small
new file mode 120000
index 000000000000..319551467468
--- /dev/null
+++ b/srcpkgs/pari-seadata-small
@@ -0,0 +1 @@
+pari-seadata
\ No newline at end of file
diff --git a/srcpkgs/pari-seadata/template b/srcpkgs/pari-seadata/template
index 3c836eafc156..90fcddcb195e 100644
--- a/srcpkgs/pari-seadata/template
+++ b/srcpkgs/pari-seadata/template
@@ -1,17 +1,36 @@
 # Template file for 'pari-seadata'
 pkgname=pari-seadata
 version=20090618
-revision=3
+revision=4
 create_wrksrc=yes
-depends="pari"
+depends="pari-seadata-small"
 short_desc="PARI/GP package needed by ellap for large primes up to 750 bit"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/seadata.tgz"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=c9282a525ea3f92c1f9c6c69e37ac5a87b48fb9ccd943cfd7c881a3851195833
 
+# keep the mtime from files in source
+: ${XBPS_USE_BUILD_MTIME=no}
+
+do_build() {
+	# compressed data files work ok (install-size: 40M -> 19M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
 do_install() {
- vmkdir usr/share/pari/seadata
- vcopy data/seadata/sea* usr/share/pari/seadata
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-seadata-small_package() {
+	short_desc="PARI/GP package needed by ellap for primes up to 350 bit"
+	pkg_install() {
+		# much smaller version suitable for primes up to 350 bits.
+		# identical to seadata-small.tgz in pari packages
+		vmove usr/share/pari/seadata/sea2
+		vmove usr/share/pari/seadata/sea0.gz
+		vmove usr/share/pari/seadata/README
+	}
 }
diff --git a/srcpkgs/pari-seadata/update b/srcpkgs/pari-seadata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 6377470b89cd7f484ee10fc1140b9f14fd33b0cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:36:12 -0300
Subject: [PATCH 5/7] pari-seadata-big: several improvements

- fix license
- change homepage to https
- rename distfiles to include version in name
- keep the mtime from files in source
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
---
 srcpkgs/pari-seadata-big/template | 15 +++++++++------
 srcpkgs/pari-seadata-big/update   |  3 +++
 2 files changed, 12 insertions(+), 6 deletions(-)
 create mode 100644 srcpkgs/pari-seadata-big/update

diff --git a/srcpkgs/pari-seadata-big/template b/srcpkgs/pari-seadata-big/template
index 31aa207eae56..8586cceb9f86 100644
--- a/srcpkgs/pari-seadata-big/template
+++ b/srcpkgs/pari-seadata-big/template
@@ -3,15 +3,18 @@ pkgname=pari-seadata-big
 version=20170418
 revision=2
 create_wrksrc=yes
-depends="pari pari-seadata"
+depends="pari-seadata"
 short_desc="PARI/GP package needed by ellap for large primes up to 1100 bits"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/seadata-big.tar"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tar>${pkgname}-${version}.tar"
 checksum=7c4db2624808a5bbd2ba00f8b644a439f0508532efd680a247610fdd5822a5f2
 
+# keep the mtime from files in source
+: ${XBPS_USE_BUILD_MTIME=no}
+
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/seadata/sea*.gz usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-seadata-big/update b/srcpkgs/pari-seadata-big/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata-big/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 897f5d3ccbb2e39a97bad654657b0e0b27b322cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:57:33 -0300
Subject: [PATCH 6/7] New package: pari-nflistdata-20210527

---
 srcpkgs/pari-nflistdata/template | 24 ++++++++++++++++++++++++
 srcpkgs/pari-nflistdata/update   |  3 +++
 2 files changed, 27 insertions(+)
 create mode 100644 srcpkgs/pari-nflistdata/template
 create mode 100644 srcpkgs/pari-nflistdata/update

diff --git a/srcpkgs/pari-nflistdata/template b/srcpkgs/pari-nflistdata/template
new file mode 100644
index 000000000000..f229cd87cd58
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/template
@@ -0,0 +1,24 @@
+# Template file for 'pari-nflistdata'
+pkgname=pari-nflistdata
+version=20210527
+revision=1
+create_wrksrc=yes
+short_desc="PARI/GP database needed by nflist"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=a123b2a6776a6579108254f5dbe9fd720ddbc7e46456b45e90a69e92a73b0597
+
+# keep the mtime from files in source
+: ${XBPS_USE_BUILD_MTIME=no}
+
+do_build() {
+	# compressed data files work ok (install-size: 4.1M -> 2.9M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
+do_install() {
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
diff --git a/srcpkgs/pari-nflistdata/update b/srcpkgs/pari-nflistdata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 313cba31eae9b0939bd5d1498a1ce76421a21901 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 23:07:24 -0300
Subject: [PATCH 7/7] pari: add checkdepends to packages

---
 srcpkgs/pari/template | 1 +
 1 file changed, 1 insertion(+)

diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template
index 4f2a2cbef9b7..31a503abf045 100644
--- a/srcpkgs/pari/template
+++ b/srcpkgs/pari/template
@@ -11,6 +11,7 @@ make_check_target=statest-all
 make_install_target="install install-lib-sta install-lib-dyn"
 hostmakedepends="perl texlive"
 makedepends="gmp-devel readline-devel $(vopt_if x11 libX11-devel)"
+checkdepends="pari-elldata pari-galdata pari-galpol pari-seadata-small"
 short_desc="Fast computations library in number theory"
 maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
 license="GPL-2.0-or-later"

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
@ 2021-08-23 23:03 ` tornaria
  2021-08-23 23:04 ` tornaria
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-08-23 23:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages pari
https://github.com/void-linux/void-packages/pull/32641

Update pari optional packages
- update pari-elldata
- new pari package pari-nflistdata
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- keep the mtime from files in source
- compress files for installed-size savings
- drop depends of packages on pari, add checkdepends of pari to packages (cf #29159, #32614)
- add a much smaller subpkg seadata-small as in upstream
- add update file for all packages
- skip slow post-install hooks for pari-galpol (14681 data files)

I'm also considering adding packages `pari-elldata-small` and `pari-galpol-small` with small versions of the databases that should be good for testing and small computations.

A patch file from https://github.com/void-linux/void-packages/pull/32641.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pari-32641.patch --]
[-- Type: text/x-diff, Size: 14856 bytes --]

From af74c9b94ef3fe53369e8105e2b506aba854377c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 13:02:49 -0300
Subject: [PATCH 1/7] pari-elldata: update to 20210301.

Also:
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 157M -> 57M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
---
 srcpkgs/pari-elldata/template | 20 ++++++++++++--------
 srcpkgs/pari-elldata/update   |  3 +++
 2 files changed, 15 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/pari-elldata/update

diff --git a/srcpkgs/pari-elldata/template b/srcpkgs/pari-elldata/template
index 8bbe310b1e34..b8df53a8136a 100644
--- a/srcpkgs/pari-elldata/template
+++ b/srcpkgs/pari-elldata/template
@@ -1,17 +1,21 @@
 # Template file for 'pari-elldata'
 pkgname=pari-elldata
-version=20190912
+version=20210301
 revision=1
 create_wrksrc=yes
-depends="pari"
 short_desc="PARI/GP version of J. E. Cremona Elliptic Curve Data"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz"
-checksum=c5757bbeba779fbf4c69718bccbe039fd98159bf2c8d13017284cf8b5a10ddc4
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=dd551e64932d4ab27b3f2b2d1da871c2353672fc1a74705c52e3c0de84bd0cf6
+
+do_build() {
+	# compressed data files work ok (install-size: 156M -> 57M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir usr/share/pari
- vcopy data/elldata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-elldata/update b/srcpkgs/pari-elldata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-elldata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 0ccae9018ba7e88389e65ffefb98958cdc3361b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:10:27 -0300
Subject: [PATCH 2/7] pari-galdata: several improvements

- fix license
- change homepage
- rename distfiles to include version in name
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
---
 srcpkgs/pari-galdata/template | 15 +++++++--------
 srcpkgs/pari-galdata/update   |  5 +++++
 2 files changed, 12 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/pari-galdata/update

diff --git a/srcpkgs/pari-galdata/template b/srcpkgs/pari-galdata/template
index 63d930104b1a..f6c1d22e44fb 100644
--- a/srcpkgs/pari-galdata/template
+++ b/srcpkgs/pari-galdata/template
@@ -1,17 +1,16 @@
 # Template file for 'pari-galdata'
 pkgname=pari-galdata
 version=20080411
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI database needed to compute Galois group in degrees 8 through 11"
+short_desc="PARI/GP database needed to compute Galois group in degrees 8 through 11"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="https://pari.math.u-bordeaux.fr/"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=b7c1650099b24a20bdade47a85a928351c586287f0d4c73933313873e63290dd
 
 do_install() {
- vmkdir  usr/share/pari/galdata
- vcopy data/galdata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-galdata/update b/srcpkgs/pari-galdata/update
new file mode 100644
index 000000000000..c34e5c8bc800
--- /dev/null
+++ b/srcpkgs/pari-galdata/update
@@ -0,0 +1,5 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}
+# the current version 20080411 is reported as 2008-04-12 by website
+ignore=2008-04-12

From 58841e68b95088280f333841540fc2f77e88c045 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:19:24 -0300
Subject: [PATCH 3/7] pari-galpol: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 80M -> 73M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- skip slow post-install hooks since pkg contains 14681 data files
- add update file
---
 srcpkgs/pari-galpol/template | 24 +++++++++++++++---------
 srcpkgs/pari-galpol/update   |  3 +++
 2 files changed, 18 insertions(+), 9 deletions(-)
 create mode 100644 srcpkgs/pari-galpol/update

diff --git a/srcpkgs/pari-galpol/template b/srcpkgs/pari-galpol/template
index a3c5a0882634..5ed8adcc99d6 100644
--- a/srcpkgs/pari-galpol/template
+++ b/srcpkgs/pari-galpol/template
@@ -1,18 +1,24 @@
 # Template file for 'pari-galpol'
 pkgname=pari-galpol
 version=20180625
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI package of the GALPOL database of polynomials"
+short_desc="PARI/GP package of the GALPOL database of polynomials"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/galpol.tgz"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=562af28316ee335ee38c1172c2d5ecccb79f55c368fb9f2c6f40fc0f416bb01b
-nostrip=yes
+# skip slow post-install hooks for 14681 files: saves ~ 3m in install
+nostrip=yes                     # skip 06-strip-and-debug-pkgs
+ignore_elf_dirs=/usr/share/pari # skip 11-pkglint-elf-in-usrshare
+
+do_build() {
+	# compressed data files work ok (install-size: 80M -> 73M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/galpol usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-galpol/update b/srcpkgs/pari-galpol/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-galpol/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 3c83c299955a35956d957a0948857c06616ec5db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:32:15 -0300
Subject: [PATCH 4/7] pari-seadata: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 40M -> 19M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add a much smaller subpkg seadata-small as in upstream
- add update file
---
 srcpkgs/pari-seadata-small    |  1 +
 srcpkgs/pari-seadata/template | 30 +++++++++++++++++++++++-------
 srcpkgs/pari-seadata/update   |  3 +++
 3 files changed, 27 insertions(+), 7 deletions(-)
 create mode 120000 srcpkgs/pari-seadata-small
 create mode 100644 srcpkgs/pari-seadata/update

diff --git a/srcpkgs/pari-seadata-small b/srcpkgs/pari-seadata-small
new file mode 120000
index 000000000000..319551467468
--- /dev/null
+++ b/srcpkgs/pari-seadata-small
@@ -0,0 +1 @@
+pari-seadata
\ No newline at end of file
diff --git a/srcpkgs/pari-seadata/template b/srcpkgs/pari-seadata/template
index 3c836eafc156..15e7662a3d08 100644
--- a/srcpkgs/pari-seadata/template
+++ b/srcpkgs/pari-seadata/template
@@ -1,17 +1,33 @@
 # Template file for 'pari-seadata'
 pkgname=pari-seadata
 version=20090618
-revision=3
+revision=4
 create_wrksrc=yes
-depends="pari"
+depends="pari-seadata-small"
 short_desc="PARI/GP package needed by ellap for large primes up to 750 bit"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/seadata.tgz"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=c9282a525ea3f92c1f9c6c69e37ac5a87b48fb9ccd943cfd7c881a3851195833
 
+do_build() {
+	# compressed data files work ok (install-size: 40M -> 19M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
 do_install() {
- vmkdir usr/share/pari/seadata
- vcopy data/seadata/sea* usr/share/pari/seadata
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-seadata-small_package() {
+	short_desc="PARI/GP package needed by ellap for primes up to 350 bit"
+	pkg_install() {
+		# much smaller version suitable for primes up to 350 bits.
+		# identical to seadata-small.tgz in pari packages
+		vmove usr/share/pari/seadata/sea2
+		vmove usr/share/pari/seadata/sea0.gz
+		vmove usr/share/pari/seadata/README
+	}
 }
diff --git a/srcpkgs/pari-seadata/update b/srcpkgs/pari-seadata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From d09d76603973865d28c1833321bec6ed2dbd35c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:36:12 -0300
Subject: [PATCH 5/7] pari-seadata-big: several improvements

- fix license
- change homepage to https
- rename distfiles to include version in name
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
---
 srcpkgs/pari-seadata-big/template | 12 ++++++------
 srcpkgs/pari-seadata-big/update   |  3 +++
 2 files changed, 9 insertions(+), 6 deletions(-)
 create mode 100644 srcpkgs/pari-seadata-big/update

diff --git a/srcpkgs/pari-seadata-big/template b/srcpkgs/pari-seadata-big/template
index 31aa207eae56..529c414948d0 100644
--- a/srcpkgs/pari-seadata-big/template
+++ b/srcpkgs/pari-seadata-big/template
@@ -3,15 +3,15 @@ pkgname=pari-seadata-big
 version=20170418
 revision=2
 create_wrksrc=yes
-depends="pari pari-seadata"
+depends="pari-seadata"
 short_desc="PARI/GP package needed by ellap for large primes up to 1100 bits"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/seadata-big.tar"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tar>${pkgname}-${version}.tar"
 checksum=7c4db2624808a5bbd2ba00f8b644a439f0508532efd680a247610fdd5822a5f2
 
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/seadata/sea*.gz usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-seadata-big/update b/srcpkgs/pari-seadata-big/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata-big/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 4d8658c169600e3804307317165b42839f16bc9b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:57:33 -0300
Subject: [PATCH 6/7] New package: pari-nflistdata-20210527

---
 srcpkgs/pari-nflistdata/template | 21 +++++++++++++++++++++
 srcpkgs/pari-nflistdata/update   |  3 +++
 2 files changed, 24 insertions(+)
 create mode 100644 srcpkgs/pari-nflistdata/template
 create mode 100644 srcpkgs/pari-nflistdata/update

diff --git a/srcpkgs/pari-nflistdata/template b/srcpkgs/pari-nflistdata/template
new file mode 100644
index 000000000000..c6e66f228b98
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/template
@@ -0,0 +1,21 @@
+# Template file for 'pari-nflistdata'
+pkgname=pari-nflistdata
+version=20210527
+revision=1
+create_wrksrc=yes
+short_desc="PARI/GP database needed by nflist"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=a123b2a6776a6579108254f5dbe9fd720ddbc7e46456b45e90a69e92a73b0597
+
+do_build() {
+	# compressed data files work ok (install-size: 4.1M -> 2.9M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
+do_install() {
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
diff --git a/srcpkgs/pari-nflistdata/update b/srcpkgs/pari-nflistdata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 7b8d80c9b49d42205445869bca400bf738e4d6a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 23:07:24 -0300
Subject: [PATCH 7/7] pari: add checkdepends to packages

---
 srcpkgs/pari/template | 1 +
 1 file changed, 1 insertion(+)

diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template
index 4f2a2cbef9b7..31a503abf045 100644
--- a/srcpkgs/pari/template
+++ b/srcpkgs/pari/template
@@ -11,6 +11,7 @@ make_check_target=statest-all
 make_install_target="install install-lib-sta install-lib-dyn"
 hostmakedepends="perl texlive"
 makedepends="gmp-devel readline-devel $(vopt_if x11 libX11-devel)"
+checkdepends="pari-elldata pari-galdata pari-galpol pari-seadata-small"
 short_desc="Fast computations library in number theory"
 maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
 license="GPL-2.0-or-later"

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
  2021-08-23 23:03 ` [PR PATCH] [Updated] " tornaria
@ 2021-08-23 23:04 ` tornaria
  2021-08-24 21:13 ` tornaria
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-08-23 23:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-904191567

Comment:
From #32638:
> > XBPS_USE_BUILD_MTIME=no
> 
> I don't think it's good style to poke at such bits. It's not xbps-src "API".

I removed it. No other changes.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
  2021-08-23 23:03 ` [PR PATCH] [Updated] " tornaria
  2021-08-23 23:04 ` tornaria
@ 2021-08-24 21:13 ` tornaria
  2021-08-25  7:41 ` dkwo
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-08-24 21:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-904980981

Comment:
> I'm also considering adding packages `pari-elldata-small` and `pari-galpol-small` with small versions of the databases that should be good for testing and small computations.

RFC on `*-small` packages: is it worth it?

What I propose is that for the larger databases (elldata, galpol, seadata) we have a small subset that is good for moderate sizes, and enough for testing. As an example:

 - pari-elldata: full database for conductors up to 500k is 57M installed size. A reasonable small subset is conductors up to 20k which would take 1.8M of installed size.
 - pari-galpol: full database for group orders up to 143 is 73M installed size. The subset for orders up to 64 would take 12M installed size.
 - pari-seadata: normal database for primes up to 750 bits is 19M. The small database for primes up to 350 bits would be 668K. In this case there's also a "-big" version for primes up to 1100 bits which takes about 120M installed size.

The `pari-seadata-small` is suggested by upstream and it's already in this PR. The other two are easy to do.

The complete installation of pari with small databases would shrink from ~175M to ~40M of installed size (right now this is ~300M, we already save ~125M just by installing gzipped files which pari reads fine).

All databases would be incremental, e.g. `pari-elldata-small` installs small subset, `pari-elldata` contains the rest and depends on `pari-elldata-small`, etc. so this makes no difference for existing installations.

@motorto @dkwo: what do you think?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (2 preceding siblings ...)
  2021-08-24 21:13 ` tornaria
@ 2021-08-25  7:41 ` dkwo
  2021-08-25  7:43 ` dkwo
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: dkwo @ 2021-08-25  7:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-905261648

Comment:
Seems like a good idea.
With the fix for checkdeps, does it run all tests now, including using the databases?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (3 preceding siblings ...)
  2021-08-25  7:41 ` dkwo
@ 2021-08-25  7:43 ` dkwo
  2021-08-26 15:58 ` [PR PATCH] [Updated] " tornaria
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: dkwo @ 2021-08-25  7:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-905262944

Comment:
In particular, I'm in for optimizations with small databases and gzipped files.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (4 preceding siblings ...)
  2021-08-25  7:43 ` dkwo
@ 2021-08-26 15:58 ` tornaria
  2021-08-26 16:00 ` tornaria
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-08-26 15:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages pari
https://github.com/void-linux/void-packages/pull/32641

Update pari optional packages
- update pari-elldata
- new pari package pari-nflistdata
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- ~keep the mtime from files in source~
- compress files for installed-size savings
- drop depends of packages on pari, add checkdepends of pari to packages (cf #29159, #32614)
- add a much smaller subpkg seadata-small as in upstream
- add update file for all packages
- skip slow post-install hooks for pari-galpol (14681 data files)

I'm also considering adding packages `pari-elldata-small` and `pari-galpol-small` with small versions of the databases that should be good for testing and small computations.

A patch file from https://github.com/void-linux/void-packages/pull/32641.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pari-32641.patch --]
[-- Type: text/x-diff, Size: 18206 bytes --]

From 37d79c977fa74153eedc83a0dfa1c09589b809eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 13:02:49 -0300
Subject: [PATCH 1/8] pari-elldata: update to 20210301.

Also:
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 157M -> 57M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- split a reasonable small subset as pari-elldata-small (1.8M vs 57M)
- add update file
---
 srcpkgs/pari-elldata-small    |  1 +
 srcpkgs/pari-elldata/template | 31 +++++++++++++++++++++++--------
 srcpkgs/pari-elldata/update   |  3 +++
 3 files changed, 27 insertions(+), 8 deletions(-)
 create mode 120000 srcpkgs/pari-elldata-small
 create mode 100644 srcpkgs/pari-elldata/update

diff --git a/srcpkgs/pari-elldata-small b/srcpkgs/pari-elldata-small
new file mode 120000
index 000000000000..b202971d614e
--- /dev/null
+++ b/srcpkgs/pari-elldata-small
@@ -0,0 +1 @@
+pari-elldata
\ No newline at end of file
diff --git a/srcpkgs/pari-elldata/template b/srcpkgs/pari-elldata/template
index 8bbe310b1e34..0ea3af9babdb 100644
--- a/srcpkgs/pari-elldata/template
+++ b/srcpkgs/pari-elldata/template
@@ -1,17 +1,32 @@
 # Template file for 'pari-elldata'
 pkgname=pari-elldata
-version=20190912
+version=20210301
 revision=1
 create_wrksrc=yes
-depends="pari"
+depends="pari-elldata-small"
 short_desc="PARI/GP version of J. E. Cremona Elliptic Curve Data"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz"
-checksum=c5757bbeba779fbf4c69718bccbe039fd98159bf2c8d13017284cf8b5a10ddc4
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=dd551e64932d4ab27b3f2b2d1da871c2353672fc1a74705c52e3c0de84bd0cf6
+
+do_build() {
+	# compressed data files work ok (install-size: 156M -> 57M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir usr/share/pari
- vcopy data/elldata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-elldata-small_package() {
+	short_desc+=" - conductors up to 20000"
+	pkg_install() {
+		# a reasonable small subset (1.8M)
+		vmove "usr/share/pari/elldata/ell?.gz"
+		vmove "usr/share/pari/elldata/ell1?.gz"
+		vmove usr/share/pari/elldata/README
+	}
 }
diff --git a/srcpkgs/pari-elldata/update b/srcpkgs/pari-elldata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-elldata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 80d2c2ac71a35b9a23837f646da831cf08a9bc04 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:10:27 -0300
Subject: [PATCH 2/8] pari-galdata: several improvements

- fix license
- change homepage
- rename distfiles to include version in name
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
---
 srcpkgs/pari-galdata/template | 15 +++++++--------
 srcpkgs/pari-galdata/update   |  5 +++++
 2 files changed, 12 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/pari-galdata/update

diff --git a/srcpkgs/pari-galdata/template b/srcpkgs/pari-galdata/template
index 63d930104b1a..f6c1d22e44fb 100644
--- a/srcpkgs/pari-galdata/template
+++ b/srcpkgs/pari-galdata/template
@@ -1,17 +1,16 @@
 # Template file for 'pari-galdata'
 pkgname=pari-galdata
 version=20080411
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI database needed to compute Galois group in degrees 8 through 11"
+short_desc="PARI/GP database needed to compute Galois group in degrees 8 through 11"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="https://pari.math.u-bordeaux.fr/"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=b7c1650099b24a20bdade47a85a928351c586287f0d4c73933313873e63290dd
 
 do_install() {
- vmkdir  usr/share/pari/galdata
- vcopy data/galdata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-galdata/update b/srcpkgs/pari-galdata/update
new file mode 100644
index 000000000000..c34e5c8bc800
--- /dev/null
+++ b/srcpkgs/pari-galdata/update
@@ -0,0 +1,5 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}
+# the current version 20080411 is reported as 2008-04-12 by website
+ignore=2008-04-12

From 7d68055fe59df034aa2649ce06b8a6a61eb8e5b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:19:24 -0300
Subject: [PATCH 3/8] pari-galpol: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 80M -> 73M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- skip slow post-install hooks since pkg contains 14681 data files
- split a small subset as pari-galpol-small (12M vs 73M)
- add update file
---
 srcpkgs/pari-galpol-small    |  1 +
 srcpkgs/pari-galpol/template | 38 +++++++++++++++++++++++++++---------
 srcpkgs/pari-galpol/update   |  3 +++
 3 files changed, 33 insertions(+), 9 deletions(-)
 create mode 120000 srcpkgs/pari-galpol-small
 create mode 100644 srcpkgs/pari-galpol/update

diff --git a/srcpkgs/pari-galpol-small b/srcpkgs/pari-galpol-small
new file mode 120000
index 000000000000..b4ab81425fe1
--- /dev/null
+++ b/srcpkgs/pari-galpol-small
@@ -0,0 +1 @@
+pari-galpol
\ No newline at end of file
diff --git a/srcpkgs/pari-galpol/template b/srcpkgs/pari-galpol/template
index a3c5a0882634..fda042d095db 100644
--- a/srcpkgs/pari-galpol/template
+++ b/srcpkgs/pari-galpol/template
@@ -1,18 +1,38 @@
 # Template file for 'pari-galpol'
 pkgname=pari-galpol
 version=20180625
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI package of the GALPOL database of polynomials"
+depends="pari-galpol-small"
+short_desc="PARI/GP package of the GALPOL database of polynomials"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/galpol.tgz"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=562af28316ee335ee38c1172c2d5ecccb79f55c368fb9f2c6f40fc0f416bb01b
-nostrip=yes
+# skip slow post-install hooks for 14681 files: saves ~ 3m in install
+nostrip=yes                     # skip 06-strip-and-debug-pkgs
+ignore_elf_dirs=/usr/share/pari # skip 11-pkglint-elf-in-usrshare
+
+do_build() {
+	# compressed data files work ok (install-size: 80M -> 73M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/galpol usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-galpol-small_package() {
+	short_desc+=" - groups of order up to 64"
+	nostrip=yes
+	ignore_elf_dirs=/usr/share/pari
+	pkg_install() {
+		# a subset enough for testing (12M)
+		vmove "usr/share/pari/galpol/?"
+		vmove "usr/share/pari/galpol/[1-5]?"
+		vmove "usr/share/pari/galpol/6[0-4]"
+		vmove usr/share/pari/galpol/README
+	}
 }
diff --git a/srcpkgs/pari-galpol/update b/srcpkgs/pari-galpol/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-galpol/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 2ce507731b08e1b8d312140295c3d13c8b62f480 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:32:15 -0300
Subject: [PATCH 4/8] pari-seadata: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 40M -> 19M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add a smaller subpkg pari-seadata-small as in upstream (668k vs 19M)
- add update file
---
 srcpkgs/pari-seadata-small    |  1 +
 srcpkgs/pari-seadata/template | 32 ++++++++++++++++++++++++--------
 srcpkgs/pari-seadata/update   |  3 +++
 3 files changed, 28 insertions(+), 8 deletions(-)
 create mode 120000 srcpkgs/pari-seadata-small
 create mode 100644 srcpkgs/pari-seadata/update

diff --git a/srcpkgs/pari-seadata-small b/srcpkgs/pari-seadata-small
new file mode 120000
index 000000000000..319551467468
--- /dev/null
+++ b/srcpkgs/pari-seadata-small
@@ -0,0 +1 @@
+pari-seadata
\ No newline at end of file
diff --git a/srcpkgs/pari-seadata/template b/srcpkgs/pari-seadata/template
index 3c836eafc156..e9aaf4b355cf 100644
--- a/srcpkgs/pari-seadata/template
+++ b/srcpkgs/pari-seadata/template
@@ -1,17 +1,33 @@
 # Template file for 'pari-seadata'
 pkgname=pari-seadata
 version=20090618
-revision=3
+revision=4
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI/GP package needed by ellap for large primes up to 750 bit"
+depends="pari-seadata-small"
+short_desc="PARI/GP package needed by ellap for large primes up to 750 bits"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/seadata.tgz"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=c9282a525ea3f92c1f9c6c69e37ac5a87b48fb9ccd943cfd7c881a3851195833
 
+do_build() {
+	# compressed data files work ok (install-size: 40M -> 19M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
 do_install() {
- vmkdir usr/share/pari/seadata
- vcopy data/seadata/sea* usr/share/pari/seadata
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-seadata-small_package() {
+	short_desc="PARI/GP package needed by ellap for large primes up to 350 bits"
+	pkg_install() {
+		# much smaller version suitable for primes up to 350 bits.
+		# identical to seadata-small.tgz in pari packages
+		vmove usr/share/pari/seadata/sea2
+		vmove usr/share/pari/seadata/sea0.gz
+		vmove usr/share/pari/seadata/README
+	}
 }
diff --git a/srcpkgs/pari-seadata/update b/srcpkgs/pari-seadata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 9b2020c1a860c6b355b7f08f93bf378b9b724d24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:36:12 -0300
Subject: [PATCH 5/8] pari-seadata-big: several improvements

- fix license
- change homepage to https
- rename distfiles to include version in name
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
---
 srcpkgs/pari-seadata-big/template | 14 +++++++-------
 srcpkgs/pari-seadata-big/update   |  3 +++
 2 files changed, 10 insertions(+), 7 deletions(-)
 create mode 100644 srcpkgs/pari-seadata-big/update

diff --git a/srcpkgs/pari-seadata-big/template b/srcpkgs/pari-seadata-big/template
index 31aa207eae56..2f2f24e428be 100644
--- a/srcpkgs/pari-seadata-big/template
+++ b/srcpkgs/pari-seadata-big/template
@@ -1,17 +1,17 @@
 # Template file for 'pari-seadata-big'
 pkgname=pari-seadata-big
 version=20170418
-revision=2
+revision=3
 create_wrksrc=yes
-depends="pari pari-seadata"
+depends="pari-seadata"
 short_desc="PARI/GP package needed by ellap for large primes up to 1100 bits"
 maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/seadata-big.tar"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tar>${pkgname}-${version}.tar"
 checksum=7c4db2624808a5bbd2ba00f8b644a439f0508532efd680a247610fdd5822a5f2
 
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/seadata/sea*.gz usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-seadata-big/update b/srcpkgs/pari-seadata-big/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata-big/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 1d23c18225bcd546df79460f52426521083de5a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:57:33 -0300
Subject: [PATCH 6/8] New package: pari-nflistdata-20210527

---
 srcpkgs/pari-nflistdata/template | 21 +++++++++++++++++++++
 srcpkgs/pari-nflistdata/update   |  3 +++
 2 files changed, 24 insertions(+)
 create mode 100644 srcpkgs/pari-nflistdata/template
 create mode 100644 srcpkgs/pari-nflistdata/update

diff --git a/srcpkgs/pari-nflistdata/template b/srcpkgs/pari-nflistdata/template
new file mode 100644
index 000000000000..c6e66f228b98
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/template
@@ -0,0 +1,21 @@
+# Template file for 'pari-nflistdata'
+pkgname=pari-nflistdata
+version=20210527
+revision=1
+create_wrksrc=yes
+short_desc="PARI/GP database needed by nflist"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=a123b2a6776a6579108254f5dbe9fd720ddbc7e46456b45e90a69e92a73b0597
+
+do_build() {
+	# compressed data files work ok (install-size: 4.1M -> 2.9M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
+do_install() {
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
diff --git a/srcpkgs/pari-nflistdata/update b/srcpkgs/pari-nflistdata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 07e3b57fbafc1f206d547da2d83325968714cb3c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Thu, 26 Aug 2021 10:44:42 -0300
Subject: [PATCH 7/8] New package: pari-nftables-20080929

---
 srcpkgs/pari-nftables/template | 21 +++++++++++++++++++++
 srcpkgs/pari-nftables/update   |  3 +++
 2 files changed, 24 insertions(+)
 create mode 100644 srcpkgs/pari-nftables/template
 create mode 100644 srcpkgs/pari-nftables/update

diff --git a/srcpkgs/pari-nftables/template b/srcpkgs/pari-nftables/template
new file mode 100644
index 000000000000..ba3b3ab166d2
--- /dev/null
+++ b/srcpkgs/pari-nftables/template
@@ -0,0 +1,21 @@
+# Template file for 'pari-nftables'
+pkgname=pari-nftables
+version=20080929
+revision=1
+create_wrksrc=yes
+short_desc="PARI/GP megrez number field tables"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=8dd3393ce6b3cfcf599f094f7b22bdffe17c3ba25deb912513d54676bd7cfe92
+
+do_build() {
+	# compressed data files work ok (install-size: 35M -> 8M)
+	find . -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
+do_install() {
+	vmkdir usr/share/pari
+	vcopy "*" usr/share/pari
+}
diff --git a/srcpkgs/pari-nftables/update b/srcpkgs/pari-nftables/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-nftables/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 51c88eb80edfa944b0029cef9e978c32cffce23b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 23:07:24 -0300
Subject: [PATCH 8/8] pari: add checkdepends to packages

---
 srcpkgs/pari/template | 1 +
 1 file changed, 1 insertion(+)

diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template
index 4f2a2cbef9b7..acdbd3958de7 100644
--- a/srcpkgs/pari/template
+++ b/srcpkgs/pari/template
@@ -11,6 +11,7 @@ make_check_target=statest-all
 make_install_target="install install-lib-sta install-lib-dyn"
 hostmakedepends="perl texlive"
 makedepends="gmp-devel readline-devel $(vopt_if x11 libX11-devel)"
+checkdepends="pari-elldata-small pari-galdata pari-galpol-small pari-seadata-small"
 short_desc="Fast computations library in number theory"
 maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
 license="GPL-2.0-or-later"

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (5 preceding siblings ...)
  2021-08-26 15:58 ` [PR PATCH] [Updated] " tornaria
@ 2021-08-26 16:00 ` tornaria
  2021-09-04 14:55 ` motorto
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-08-26 16:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 279 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-906539481

Comment:
> With the fix for checkdeps, does it run all tests now, including using the databases?

Yes, all tests pass using the small databases.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (6 preceding siblings ...)
  2021-08-26 16:00 ` tornaria
@ 2021-09-04 14:55 ` motorto
  2021-09-04 16:08 ` tornaria
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: motorto @ 2021-09-04 14:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

New comment by motorto on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-912987279

Comment:
Sorry for not responding, wasn't using void as my distro. But I am back, if any help is needed  you can count with me.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (7 preceding siblings ...)
  2021-09-04 14:55 ` motorto
@ 2021-09-04 16:08 ` tornaria
  2021-09-04 17:33 ` motorto
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-09-04 16:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-912997909

Comment:
> Sorry for not responding, wasn't using void as my distro. But I am back, if any help is needed you can count with me.

@motorto: since 5 of these are your packages, can you review and approve (or suggest changes) so it can be merged?

Alternatively, if you are not using void and you want to orphan, I don''t mind adopting. I use pari for my work so I need it to be up to date, and I won't be leaving void any time soon.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (8 preceding siblings ...)
  2021-09-04 16:08 ` tornaria
@ 2021-09-04 17:33 ` motorto
  2021-09-04 19:14 ` [PR PATCH] [Updated] " tornaria
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: motorto @ 2021-09-04 17:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]

New comment by motorto on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-913010504

Comment:
I don't mind you adopting that packages since I am no longer in need of
using them, and since you are using them for work, you will update them
sooner than me (and fix issues that might arise, since I don't use the
package that often). So if you want to, feel free to do so.

On 21/09/04 09:08, Gonzalo Tornaría wrote:
> > Sorry for not responding, wasn't using void as my distro. But I am back, if any help is needed you can count with me.
> 
> @motorto: since 5 of these are your packages, can you review and approve (or suggest changes) so it can be merged?
> 
> Alternatively, if you are not using void and you want to orphan, I don''t mind adopting. I use pari for my work so I need it to be up to date, and I won't be leaving void any time soon.
> 
> -- 
> You are receiving this because you were mentioned.
> Reply to this email directly or view it on GitHub:
> https://github.com/void-linux/void-packages/pull/32641#issuecomment-912997909


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (9 preceding siblings ...)
  2021-09-04 17:33 ` motorto
@ 2021-09-04 19:14 ` tornaria
  2021-09-04 19:24 ` tornaria
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-09-04 19:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages pari
https://github.com/void-linux/void-packages/pull/32641

Update pari optional packages
- update pari-elldata
- new pari package pari-nflistdata
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- ~keep the mtime from files in source~
- compress files for installed-size savings
- drop depends of packages on pari, add checkdepends of pari to packages (cf #29159, #32614)
- add a much smaller subpkg seadata-small as in upstream
- add update file for all packages
- skip slow post-install hooks for pari-galpol (14681 data files)

I'm also considering adding packages `pari-elldata-small` and `pari-galpol-small` with small versions of the databases that should be good for testing and small computations.

A patch file from https://github.com/void-linux/void-packages/pull/32641.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pari-32641.patch --]
[-- Type: text/x-diff, Size: 18702 bytes --]

From 1b75402d26fe9b57c48d7e2b430bac54bcc49037 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 13:02:49 -0300
Subject: [PATCH 1/8] pari-elldata: update to 20210301.

Also:
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 157M -> 57M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- split a reasonable small subset as pari-elldata-small (1.8M vs 57M)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-elldata-small    |  1 +
 srcpkgs/pari-elldata/template | 33 ++++++++++++++++++++++++---------
 srcpkgs/pari-elldata/update   |  3 +++
 3 files changed, 28 insertions(+), 9 deletions(-)
 create mode 120000 srcpkgs/pari-elldata-small
 create mode 100644 srcpkgs/pari-elldata/update

diff --git a/srcpkgs/pari-elldata-small b/srcpkgs/pari-elldata-small
new file mode 120000
index 000000000000..b202971d614e
--- /dev/null
+++ b/srcpkgs/pari-elldata-small
@@ -0,0 +1 @@
+pari-elldata
\ No newline at end of file
diff --git a/srcpkgs/pari-elldata/template b/srcpkgs/pari-elldata/template
index 8bbe310b1e34..12e0d21dc7e8 100644
--- a/srcpkgs/pari-elldata/template
+++ b/srcpkgs/pari-elldata/template
@@ -1,17 +1,32 @@
 # Template file for 'pari-elldata'
 pkgname=pari-elldata
-version=20190912
+version=20210301
 revision=1
 create_wrksrc=yes
-depends="pari"
+depends="pari-elldata-small"
 short_desc="PARI/GP version of J. E. Cremona Elliptic Curve Data"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz"
-checksum=c5757bbeba779fbf4c69718bccbe039fd98159bf2c8d13017284cf8b5a10ddc4
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=dd551e64932d4ab27b3f2b2d1da871c2353672fc1a74705c52e3c0de84bd0cf6
+
+do_build() {
+	# compressed data files work ok (install-size: 156M -> 57M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir usr/share/pari
- vcopy data/elldata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-elldata-small_package() {
+	short_desc+=" - conductors up to 20000"
+	pkg_install() {
+		# a reasonable small subset (1.8M)
+		vmove "usr/share/pari/elldata/ell?.gz"
+		vmove "usr/share/pari/elldata/ell1?.gz"
+		vmove usr/share/pari/elldata/README
+	}
 }
diff --git a/srcpkgs/pari-elldata/update b/srcpkgs/pari-elldata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-elldata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From e896c1c02e8f69b9b55314ec45c532e992707e71 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:10:27 -0300
Subject: [PATCH 2/8] pari-galdata: several improvements

- fix license
- change homepage
- rename distfiles to include version in name
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-galdata/template | 17 ++++++++---------
 srcpkgs/pari-galdata/update   |  5 +++++
 2 files changed, 13 insertions(+), 9 deletions(-)
 create mode 100644 srcpkgs/pari-galdata/update

diff --git a/srcpkgs/pari-galdata/template b/srcpkgs/pari-galdata/template
index 63d930104b1a..fc76df875e31 100644
--- a/srcpkgs/pari-galdata/template
+++ b/srcpkgs/pari-galdata/template
@@ -1,17 +1,16 @@
 # Template file for 'pari-galdata'
 pkgname=pari-galdata
 version=20080411
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI database needed to compute Galois group in degrees 8 through 11"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="https://pari.math.u-bordeaux.fr/"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz"
+short_desc="PARI/GP database needed to compute Galois group in degrees 8 through 11"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=b7c1650099b24a20bdade47a85a928351c586287f0d4c73933313873e63290dd
 
 do_install() {
- vmkdir  usr/share/pari/galdata
- vcopy data/galdata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-galdata/update b/srcpkgs/pari-galdata/update
new file mode 100644
index 000000000000..c34e5c8bc800
--- /dev/null
+++ b/srcpkgs/pari-galdata/update
@@ -0,0 +1,5 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}
+# the current version 20080411 is reported as 2008-04-12 by website
+ignore=2008-04-12

From 542394fe4243a33637fd3d0d268721d3538c7318 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:19:24 -0300
Subject: [PATCH 3/8] pari-galpol: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 80M -> 73M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- skip slow post-install hooks since pkg contains 14681 data files
- split a small subset as pari-galpol-small (12M vs 73M)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-galpol-small    |  1 +
 srcpkgs/pari-galpol/template | 40 +++++++++++++++++++++++++++---------
 srcpkgs/pari-galpol/update   |  3 +++
 3 files changed, 34 insertions(+), 10 deletions(-)
 create mode 120000 srcpkgs/pari-galpol-small
 create mode 100644 srcpkgs/pari-galpol/update

diff --git a/srcpkgs/pari-galpol-small b/srcpkgs/pari-galpol-small
new file mode 120000
index 000000000000..b4ab81425fe1
--- /dev/null
+++ b/srcpkgs/pari-galpol-small
@@ -0,0 +1 @@
+pari-galpol
\ No newline at end of file
diff --git a/srcpkgs/pari-galpol/template b/srcpkgs/pari-galpol/template
index a3c5a0882634..8cbb5d684ca9 100644
--- a/srcpkgs/pari-galpol/template
+++ b/srcpkgs/pari-galpol/template
@@ -1,18 +1,38 @@
 # Template file for 'pari-galpol'
 pkgname=pari-galpol
 version=20180625
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI package of the GALPOL database of polynomials"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/galpol.tgz"
+depends="pari-galpol-small"
+short_desc="PARI/GP package of the GALPOL database of polynomials"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=562af28316ee335ee38c1172c2d5ecccb79f55c368fb9f2c6f40fc0f416bb01b
-nostrip=yes
+# skip slow post-install hooks for 14681 files: saves ~ 3m in install
+nostrip=yes                     # skip 06-strip-and-debug-pkgs
+ignore_elf_dirs=/usr/share/pari # skip 11-pkglint-elf-in-usrshare
+
+do_build() {
+	# compressed data files work ok (install-size: 80M -> 73M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/galpol usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-galpol-small_package() {
+	short_desc+=" - groups of order up to 64"
+	nostrip=yes
+	ignore_elf_dirs=/usr/share/pari
+	pkg_install() {
+		# a subset enough for testing (12M)
+		vmove "usr/share/pari/galpol/?"
+		vmove "usr/share/pari/galpol/[1-5]?"
+		vmove "usr/share/pari/galpol/6[0-4]"
+		vmove usr/share/pari/galpol/README
+	}
 }
diff --git a/srcpkgs/pari-galpol/update b/srcpkgs/pari-galpol/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-galpol/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 6bae545bfb43246c0c1b3b0c558fb7b4ea01643e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:32:15 -0300
Subject: [PATCH 4/8] pari-seadata: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 40M -> 19M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add a smaller subpkg pari-seadata-small as in upstream (668k vs 19M)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-seadata-small    |  1 +
 srcpkgs/pari-seadata/template | 34 +++++++++++++++++++++++++---------
 srcpkgs/pari-seadata/update   |  3 +++
 3 files changed, 29 insertions(+), 9 deletions(-)
 create mode 120000 srcpkgs/pari-seadata-small
 create mode 100644 srcpkgs/pari-seadata/update

diff --git a/srcpkgs/pari-seadata-small b/srcpkgs/pari-seadata-small
new file mode 120000
index 000000000000..319551467468
--- /dev/null
+++ b/srcpkgs/pari-seadata-small
@@ -0,0 +1 @@
+pari-seadata
\ No newline at end of file
diff --git a/srcpkgs/pari-seadata/template b/srcpkgs/pari-seadata/template
index 3c836eafc156..e0221e5fd7b0 100644
--- a/srcpkgs/pari-seadata/template
+++ b/srcpkgs/pari-seadata/template
@@ -1,17 +1,33 @@
 # Template file for 'pari-seadata'
 pkgname=pari-seadata
 version=20090618
-revision=3
+revision=4
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI/GP package needed by ellap for large primes up to 750 bit"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/seadata.tgz"
+depends="pari-seadata-small"
+short_desc="PARI/GP package needed by ellap for large primes up to 750 bits"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=c9282a525ea3f92c1f9c6c69e37ac5a87b48fb9ccd943cfd7c881a3851195833
 
+do_build() {
+	# compressed data files work ok (install-size: 40M -> 19M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
 do_install() {
- vmkdir usr/share/pari/seadata
- vcopy data/seadata/sea* usr/share/pari/seadata
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-seadata-small_package() {
+	short_desc="PARI/GP package needed by ellap for large primes up to 350 bits"
+	pkg_install() {
+		# much smaller version suitable for primes up to 350 bits.
+		# identical to seadata-small.tgz in pari packages (668k)
+		vmove usr/share/pari/seadata/sea2
+		vmove usr/share/pari/seadata/sea0.gz
+		vmove usr/share/pari/seadata/README
+	}
 }
diff --git a/srcpkgs/pari-seadata/update b/srcpkgs/pari-seadata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 023e19aa169a5d646217d2d98bac299050dae284 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:36:12 -0300
Subject: [PATCH 5/8] pari-seadata-big: several improvements

- fix license
- change homepage to https
- rename distfiles to include version in name
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-seadata-big/template | 16 ++++++++--------
 srcpkgs/pari-seadata-big/update   |  3 +++
 2 files changed, 11 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/pari-seadata-big/update

diff --git a/srcpkgs/pari-seadata-big/template b/srcpkgs/pari-seadata-big/template
index 31aa207eae56..706320194597 100644
--- a/srcpkgs/pari-seadata-big/template
+++ b/srcpkgs/pari-seadata-big/template
@@ -1,17 +1,17 @@
 # Template file for 'pari-seadata-big'
 pkgname=pari-seadata-big
 version=20170418
-revision=2
+revision=3
 create_wrksrc=yes
-depends="pari pari-seadata"
+depends="pari-seadata"
 short_desc="PARI/GP package needed by ellap for large primes up to 1100 bits"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/seadata-big.tar"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tar>${pkgname}-${version}.tar"
 checksum=7c4db2624808a5bbd2ba00f8b644a439f0508532efd680a247610fdd5822a5f2
 
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/seadata/sea*.gz usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-seadata-big/update b/srcpkgs/pari-seadata-big/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata-big/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 80736b470b515a0b0aeeacc550b823867036a339 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:57:33 -0300
Subject: [PATCH 6/8] New package: pari-nflistdata-20210527

---
 srcpkgs/pari-nflistdata/template | 21 +++++++++++++++++++++
 srcpkgs/pari-nflistdata/update   |  3 +++
 2 files changed, 24 insertions(+)
 create mode 100644 srcpkgs/pari-nflistdata/template
 create mode 100644 srcpkgs/pari-nflistdata/update

diff --git a/srcpkgs/pari-nflistdata/template b/srcpkgs/pari-nflistdata/template
new file mode 100644
index 000000000000..c6e66f228b98
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/template
@@ -0,0 +1,21 @@
+# Template file for 'pari-nflistdata'
+pkgname=pari-nflistdata
+version=20210527
+revision=1
+create_wrksrc=yes
+short_desc="PARI/GP database needed by nflist"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=a123b2a6776a6579108254f5dbe9fd720ddbc7e46456b45e90a69e92a73b0597
+
+do_build() {
+	# compressed data files work ok (install-size: 4.1M -> 2.9M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
+do_install() {
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
diff --git a/srcpkgs/pari-nflistdata/update b/srcpkgs/pari-nflistdata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 088a174020b495e99d372ff0ad231267e931a7b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Thu, 26 Aug 2021 10:44:42 -0300
Subject: [PATCH 7/8] New package: pari-nftables-20080929

---
 srcpkgs/pari-nftables/template | 21 +++++++++++++++++++++
 srcpkgs/pari-nftables/update   |  3 +++
 2 files changed, 24 insertions(+)
 create mode 100644 srcpkgs/pari-nftables/template
 create mode 100644 srcpkgs/pari-nftables/update

diff --git a/srcpkgs/pari-nftables/template b/srcpkgs/pari-nftables/template
new file mode 100644
index 000000000000..ba3b3ab166d2
--- /dev/null
+++ b/srcpkgs/pari-nftables/template
@@ -0,0 +1,21 @@
+# Template file for 'pari-nftables'
+pkgname=pari-nftables
+version=20080929
+revision=1
+create_wrksrc=yes
+short_desc="PARI/GP megrez number field tables"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=8dd3393ce6b3cfcf599f094f7b22bdffe17c3ba25deb912513d54676bd7cfe92
+
+do_build() {
+	# compressed data files work ok (install-size: 35M -> 8M)
+	find . -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
+do_install() {
+	vmkdir usr/share/pari
+	vcopy "*" usr/share/pari
+}
diff --git a/srcpkgs/pari-nftables/update b/srcpkgs/pari-nftables/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-nftables/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From a2dd3ac6e47e460853da4c22c09743a2fca19790 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 23:07:24 -0300
Subject: [PATCH 8/8] pari: add checkdepends to packages

---
 srcpkgs/pari/template | 1 +
 1 file changed, 1 insertion(+)

diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template
index 4f2a2cbef9b7..acdbd3958de7 100644
--- a/srcpkgs/pari/template
+++ b/srcpkgs/pari/template
@@ -11,6 +11,7 @@ make_check_target=statest-all
 make_install_target="install install-lib-sta install-lib-dyn"
 hostmakedepends="perl texlive"
 makedepends="gmp-devel readline-devel $(vopt_if x11 libX11-devel)"
+checkdepends="pari-elldata-small pari-galdata pari-galpol-small pari-seadata-small"
 short_desc="Fast computations library in number theory"
 maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
 license="GPL-2.0-or-later"

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (10 preceding siblings ...)
  2021-09-04 19:14 ` [PR PATCH] [Updated] " tornaria
@ 2021-09-04 19:24 ` tornaria
  2021-09-06  9:32 ` dkwo
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-09-04 19:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-913026703

Comment:
Force-push to a2dd3ac: change of maintainer agreed by motorto. No other changes.

IMO ready to merge.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (11 preceding siblings ...)
  2021-09-04 19:24 ` tornaria
@ 2021-09-06  9:32 ` dkwo
  2021-10-27  2:09 ` [PR PATCH] [Updated] " tornaria
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: dkwo @ 2021-09-06  9:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

New comment by dkwo on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-913499373

Comment:
LGTM

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Updated] Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (12 preceding siblings ...)
  2021-09-06  9:32 ` dkwo
@ 2021-10-27  2:09 ` tornaria
  2021-10-27  2:12 ` tornaria
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-10-27  2:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages pari
https://github.com/void-linux/void-packages/pull/32641

Update pari optional packages
- update pari-elldata
- new pari package pari-nflistdata
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- ~keep the mtime from files in source~
- compress files for installed-size savings
- drop depends of packages on pari, add checkdepends of pari to packages (cf #29159, #32614)
- add a much smaller subpkg seadata-small as in upstream
- add update file for all packages
- skip slow post-install hooks for pari-galpol (14681 data files)

I'm also considering adding packages `pari-elldata-small` and `pari-galpol-small` with small versions of the databases that should be good for testing and small computations.

A patch file from https://github.com/void-linux/void-packages/pull/32641.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pari-32641.patch --]
[-- Type: text/x-diff, Size: 19760 bytes --]

From 69e3b39f6c9bcc084a75b2c554672b9f0b66e5b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Tue, 26 Oct 2021 23:02:49 -0300
Subject: [PATCH 1/9] pari: update to 2.13.3.

---
 srcpkgs/pari/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template
index 4f2a2cbef9b7..0fbfb340d4c9 100644
--- a/srcpkgs/pari/template
+++ b/srcpkgs/pari/template
@@ -1,6 +1,6 @@
 # Template file for 'pari'
 pkgname=pari
-version=2.13.2
+version=2.13.3
 revision=1
 build_style=configure
 build_helper=qemu
@@ -16,7 +16,7 @@ maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
 license="GPL-2.0-or-later"
 homepage="https://pari.math.u-bordeaux.fr"
 distfiles="https://pari.math.u-bordeaux.fr/pub/pari/unix/${pkgname}-${version}.tar.gz"
-checksum=1679985094a0b723d14f49aa891dbe5ec967aa4040050a2c50bd764ddb3eba24
+checksum=ccba7f1606c6854f1443637bb57ad0958d41c7f4753f8ae8459f1d64c267a1ca
 
 build_options="x11 pthreads"
 build_options_default="x11 pthreads"

From 4a9dd29cd7717375c9b60eebc05d2639d6628f0a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 13:02:49 -0300
Subject: [PATCH 2/9] pari-elldata: update to 20210301.

Also:
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 157M -> 57M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- split a reasonable small subset as pari-elldata-small (1.8M vs 57M)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-elldata-small    |  1 +
 srcpkgs/pari-elldata/template | 33 ++++++++++++++++++++++++---------
 srcpkgs/pari-elldata/update   |  3 +++
 3 files changed, 28 insertions(+), 9 deletions(-)
 create mode 120000 srcpkgs/pari-elldata-small
 create mode 100644 srcpkgs/pari-elldata/update

diff --git a/srcpkgs/pari-elldata-small b/srcpkgs/pari-elldata-small
new file mode 120000
index 000000000000..b202971d614e
--- /dev/null
+++ b/srcpkgs/pari-elldata-small
@@ -0,0 +1 @@
+pari-elldata
\ No newline at end of file
diff --git a/srcpkgs/pari-elldata/template b/srcpkgs/pari-elldata/template
index 8bbe310b1e34..12e0d21dc7e8 100644
--- a/srcpkgs/pari-elldata/template
+++ b/srcpkgs/pari-elldata/template
@@ -1,17 +1,32 @@
 # Template file for 'pari-elldata'
 pkgname=pari-elldata
-version=20190912
+version=20210301
 revision=1
 create_wrksrc=yes
-depends="pari"
+depends="pari-elldata-small"
 short_desc="PARI/GP version of J. E. Cremona Elliptic Curve Data"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz"
-checksum=c5757bbeba779fbf4c69718bccbe039fd98159bf2c8d13017284cf8b5a10ddc4
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=dd551e64932d4ab27b3f2b2d1da871c2353672fc1a74705c52e3c0de84bd0cf6
+
+do_build() {
+	# compressed data files work ok (install-size: 156M -> 57M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir usr/share/pari
- vcopy data/elldata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-elldata-small_package() {
+	short_desc+=" - conductors up to 20000"
+	pkg_install() {
+		# a reasonable small subset (1.8M)
+		vmove "usr/share/pari/elldata/ell?.gz"
+		vmove "usr/share/pari/elldata/ell1?.gz"
+		vmove usr/share/pari/elldata/README
+	}
 }
diff --git a/srcpkgs/pari-elldata/update b/srcpkgs/pari-elldata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-elldata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 0f88afd2e13b572f9bf0883e95650e3d8d51f718 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:10:27 -0300
Subject: [PATCH 3/9] pari-galdata: several improvements

- fix license
- change homepage
- rename distfiles to include version in name
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-galdata/template | 17 ++++++++---------
 srcpkgs/pari-galdata/update   |  5 +++++
 2 files changed, 13 insertions(+), 9 deletions(-)
 create mode 100644 srcpkgs/pari-galdata/update

diff --git a/srcpkgs/pari-galdata/template b/srcpkgs/pari-galdata/template
index 63d930104b1a..fc76df875e31 100644
--- a/srcpkgs/pari-galdata/template
+++ b/srcpkgs/pari-galdata/template
@@ -1,17 +1,16 @@
 # Template file for 'pari-galdata'
 pkgname=pari-galdata
 version=20080411
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI database needed to compute Galois group in degrees 8 through 11"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="https://pari.math.u-bordeaux.fr/"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz"
+short_desc="PARI/GP database needed to compute Galois group in degrees 8 through 11"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=b7c1650099b24a20bdade47a85a928351c586287f0d4c73933313873e63290dd
 
 do_install() {
- vmkdir  usr/share/pari/galdata
- vcopy data/galdata usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-galdata/update b/srcpkgs/pari-galdata/update
new file mode 100644
index 000000000000..c34e5c8bc800
--- /dev/null
+++ b/srcpkgs/pari-galdata/update
@@ -0,0 +1,5 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}
+# the current version 20080411 is reported as 2008-04-12 by website
+ignore=2008-04-12

From 6dce6152b81d74dde6c30dd3dafd3d46d68e68ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:19:24 -0300
Subject: [PATCH 4/9] pari-galpol: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 80M -> 73M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- skip slow post-install hooks since pkg contains 14681 data files
- split a small subset as pari-galpol-small (12M vs 73M)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-galpol-small    |  1 +
 srcpkgs/pari-galpol/template | 40 +++++++++++++++++++++++++++---------
 srcpkgs/pari-galpol/update   |  3 +++
 3 files changed, 34 insertions(+), 10 deletions(-)
 create mode 120000 srcpkgs/pari-galpol-small
 create mode 100644 srcpkgs/pari-galpol/update

diff --git a/srcpkgs/pari-galpol-small b/srcpkgs/pari-galpol-small
new file mode 120000
index 000000000000..b4ab81425fe1
--- /dev/null
+++ b/srcpkgs/pari-galpol-small
@@ -0,0 +1 @@
+pari-galpol
\ No newline at end of file
diff --git a/srcpkgs/pari-galpol/template b/srcpkgs/pari-galpol/template
index a3c5a0882634..8cbb5d684ca9 100644
--- a/srcpkgs/pari-galpol/template
+++ b/srcpkgs/pari-galpol/template
@@ -1,18 +1,38 @@
 # Template file for 'pari-galpol'
 pkgname=pari-galpol
 version=20180625
-revision=1
+revision=2
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI package of the GALPOL database of polynomials"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/galpol.tgz"
+depends="pari-galpol-small"
+short_desc="PARI/GP package of the GALPOL database of polynomials"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=562af28316ee335ee38c1172c2d5ecccb79f55c368fb9f2c6f40fc0f416bb01b
-nostrip=yes
+# skip slow post-install hooks for 14681 files: saves ~ 3m in install
+nostrip=yes                     # skip 06-strip-and-debug-pkgs
+ignore_elf_dirs=/usr/share/pari # skip 11-pkglint-elf-in-usrshare
+
+do_build() {
+	# compressed data files work ok (install-size: 80M -> 73M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
 
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/galpol usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-galpol-small_package() {
+	short_desc+=" - groups of order up to 64"
+	nostrip=yes
+	ignore_elf_dirs=/usr/share/pari
+	pkg_install() {
+		# a subset enough for testing (12M)
+		vmove "usr/share/pari/galpol/?"
+		vmove "usr/share/pari/galpol/[1-5]?"
+		vmove "usr/share/pari/galpol/6[0-4]"
+		vmove usr/share/pari/galpol/README
+	}
 }
diff --git a/srcpkgs/pari-galpol/update b/srcpkgs/pari-galpol/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-galpol/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 20b4a97becfe9ece650cef0e098402f919be7836 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:32:15 -0300
Subject: [PATCH 5/9] pari-seadata: several improvements

- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 40M -> 19M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add a smaller subpkg pari-seadata-small as in upstream (668k vs 19M)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-seadata-small    |  1 +
 srcpkgs/pari-seadata/template | 34 +++++++++++++++++++++++++---------
 srcpkgs/pari-seadata/update   |  3 +++
 3 files changed, 29 insertions(+), 9 deletions(-)
 create mode 120000 srcpkgs/pari-seadata-small
 create mode 100644 srcpkgs/pari-seadata/update

diff --git a/srcpkgs/pari-seadata-small b/srcpkgs/pari-seadata-small
new file mode 120000
index 000000000000..319551467468
--- /dev/null
+++ b/srcpkgs/pari-seadata-small
@@ -0,0 +1 @@
+pari-seadata
\ No newline at end of file
diff --git a/srcpkgs/pari-seadata/template b/srcpkgs/pari-seadata/template
index 3c836eafc156..e0221e5fd7b0 100644
--- a/srcpkgs/pari-seadata/template
+++ b/srcpkgs/pari-seadata/template
@@ -1,17 +1,33 @@
 # Template file for 'pari-seadata'
 pkgname=pari-seadata
 version=20090618
-revision=3
+revision=4
 create_wrksrc=yes
-depends="pari"
-short_desc="PARI/GP package needed by ellap for large primes up to 750 bit"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/seadata.tgz"
+depends="pari-seadata-small"
+short_desc="PARI/GP package needed by ellap for large primes up to 750 bits"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
 checksum=c9282a525ea3f92c1f9c6c69e37ac5a87b48fb9ccd943cfd7c881a3851195833
 
+do_build() {
+	# compressed data files work ok (install-size: 40M -> 19M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
 do_install() {
- vmkdir usr/share/pari/seadata
- vcopy data/seadata/sea* usr/share/pari/seadata
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
+
+pari-seadata-small_package() {
+	short_desc="PARI/GP package needed by ellap for large primes up to 350 bits"
+	pkg_install() {
+		# much smaller version suitable for primes up to 350 bits.
+		# identical to seadata-small.tgz in pari packages (668k)
+		vmove usr/share/pari/seadata/sea2
+		vmove usr/share/pari/seadata/sea0.gz
+		vmove usr/share/pari/seadata/README
+	}
 }
diff --git a/srcpkgs/pari-seadata/update b/srcpkgs/pari-seadata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 6bee255869a607e94f166af4f826f1ea82b13e6e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:36:12 -0300
Subject: [PATCH 6/9] pari-seadata-big: several improvements

- fix license
- change homepage to https
- rename distfiles to include version in name
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add update file
- change of maintainer agreed by motorto
---
 srcpkgs/pari-seadata-big/template | 16 ++++++++--------
 srcpkgs/pari-seadata-big/update   |  3 +++
 2 files changed, 11 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/pari-seadata-big/update

diff --git a/srcpkgs/pari-seadata-big/template b/srcpkgs/pari-seadata-big/template
index 31aa207eae56..706320194597 100644
--- a/srcpkgs/pari-seadata-big/template
+++ b/srcpkgs/pari-seadata-big/template
@@ -1,17 +1,17 @@
 # Template file for 'pari-seadata-big'
 pkgname=pari-seadata-big
 version=20170418
-revision=2
+revision=3
 create_wrksrc=yes
-depends="pari pari-seadata"
+depends="pari-seadata"
 short_desc="PARI/GP package needed by ellap for large primes up to 1100 bits"
-maintainer="André Cerqueira <acerqueira021@gmail.com>"
-license="GPL-3.0-or-later"
-homepage="http://pari.math.u-bordeaux.fr/packages.html"
-distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/seadata-big.tar"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tar>${pkgname}-${version}.tar"
 checksum=7c4db2624808a5bbd2ba00f8b644a439f0508532efd680a247610fdd5822a5f2
 
 do_install() {
- vmkdir  usr/share/pari
- vcopy data/seadata/sea*.gz usr/share/pari
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
 }
diff --git a/srcpkgs/pari-seadata-big/update b/srcpkgs/pari-seadata-big/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-seadata-big/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From 9f47947f2847392b7cc2758fa6971f4a0639d3a1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 18:57:33 -0300
Subject: [PATCH 7/9] New package: pari-nflistdata-20210527

---
 srcpkgs/pari-nflistdata/template | 21 +++++++++++++++++++++
 srcpkgs/pari-nflistdata/update   |  3 +++
 2 files changed, 24 insertions(+)
 create mode 100644 srcpkgs/pari-nflistdata/template
 create mode 100644 srcpkgs/pari-nflistdata/update

diff --git a/srcpkgs/pari-nflistdata/template b/srcpkgs/pari-nflistdata/template
new file mode 100644
index 000000000000..c6e66f228b98
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/template
@@ -0,0 +1,21 @@
+# Template file for 'pari-nflistdata'
+pkgname=pari-nflistdata
+version=20210527
+revision=1
+create_wrksrc=yes
+short_desc="PARI/GP database needed by nflist"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=a123b2a6776a6579108254f5dbe9fd720ddbc7e46456b45e90a69e92a73b0597
+
+do_build() {
+	# compressed data files work ok (install-size: 4.1M -> 2.9M)
+	find data -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
+do_install() {
+	vmkdir usr/share/pari
+	vcopy "data/*" usr/share/pari
+}
diff --git a/srcpkgs/pari-nflistdata/update b/srcpkgs/pari-nflistdata/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-nflistdata/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From bb1d374e8db8c4d0c1923a21ccd78ec7421acfed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Thu, 26 Aug 2021 10:44:42 -0300
Subject: [PATCH 8/9] New package: pari-nftables-20080929

---
 srcpkgs/pari-nftables/template | 21 +++++++++++++++++++++
 srcpkgs/pari-nftables/update   |  3 +++
 2 files changed, 24 insertions(+)
 create mode 100644 srcpkgs/pari-nftables/template
 create mode 100644 srcpkgs/pari-nftables/update

diff --git a/srcpkgs/pari-nftables/template b/srcpkgs/pari-nftables/template
new file mode 100644
index 000000000000..ba3b3ab166d2
--- /dev/null
+++ b/srcpkgs/pari-nftables/template
@@ -0,0 +1,21 @@
+# Template file for 'pari-nftables'
+pkgname=pari-nftables
+version=20080929
+revision=1
+create_wrksrc=yes
+short_desc="PARI/GP megrez number field tables"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pari.math.u-bordeaux.fr/packages.html"
+distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
+checksum=8dd3393ce6b3cfcf599f094f7b22bdffe17c3ba25deb912513d54676bd7cfe92
+
+do_build() {
+	# compressed data files work ok (install-size: 35M -> 8M)
+	find . -type f -size +4k -print0 | xargs -0 gzip -9
+}
+
+do_install() {
+	vmkdir usr/share/pari
+	vcopy "*" usr/share/pari
+}
diff --git a/srcpkgs/pari-nftables/update b/srcpkgs/pari-nftables/update
new file mode 100644
index 000000000000..bea0b3258ee5
--- /dev/null
+++ b/srcpkgs/pari-nftables/update
@@ -0,0 +1,3 @@
+site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
+pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
+version=${version:0:4}.${version:4:2}.${version:6:2}

From d956904b18769a82cbe5b031c86e691fbf2f38c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 22 Aug 2021 23:07:24 -0300
Subject: [PATCH 9/9] pari: add checkdepends to packages

---
 srcpkgs/pari/template | 1 +
 1 file changed, 1 insertion(+)

diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template
index 0fbfb340d4c9..9543739472ac 100644
--- a/srcpkgs/pari/template
+++ b/srcpkgs/pari/template
@@ -11,6 +11,7 @@ make_check_target=statest-all
 make_install_target="install install-lib-sta install-lib-dyn"
 hostmakedepends="perl texlive"
 makedepends="gmp-devel readline-devel $(vopt_if x11 libX11-devel)"
+checkdepends="pari-elldata-small pari-galdata pari-galpol-small pari-seadata-small"
 short_desc="Fast computations library in number theory"
 maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
 license="GPL-2.0-or-later"

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (13 preceding siblings ...)
  2021-10-27  2:09 ` [PR PATCH] [Updated] " tornaria
@ 2021-10-27  2:12 ` tornaria
  2021-10-30 20:10 ` tornaria
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-10-27  2:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-952476263

Comment:
Rebased on top of latest pari update (#33777).

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (14 preceding siblings ...)
  2021-10-27  2:12 ` tornaria
@ 2021-10-30 20:10 ` tornaria
  2021-10-30 20:17 ` ericonr
  2021-11-09 16:00 ` [PR PATCH] [Merged]: " leahneukirchen
  17 siblings, 0 replies; 19+ messages in thread
From: tornaria @ 2021-10-30 20:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-955586377

Comment:
@ericonr: thanks for merging #29997.  What about this one next? It's an itch I have, since I use pari-gp a lot (literally daily, for my work).

I know this includes several changes, but there are 6 different optional data packages and all templates follow the same structure. Each change is documented in the respective commit as a bullet list.

Besides `pari-elldata` update and adding two new packages (always with the same template structure), the only thing that changes in the installed files is that datafiles are compressed when it makes sense (for files larger than 4k) saving a lot of installed-size.  For large packages a `<PKG>-small` package is split out which contains a reasonable minimal portion of the database (e.g. enough to pass tests) but installing `<PKG>` after this is equivalent to installing `<PKG>` before this.

Note that @dkwo and @motorto already reviewed this PR and gave :+1: above. Nothing changed here since then other than rebasing for pari updates.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (15 preceding siblings ...)
  2021-10-30 20:10 ` tornaria
@ 2021-10-30 20:17 ` ericonr
  2021-11-09 16:00 ` [PR PATCH] [Merged]: " leahneukirchen
  17 siblings, 0 replies; 19+ messages in thread
From: ericonr @ 2021-10-30 20:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 241 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/32641#issuecomment-955587154

Comment:
I am interested in merging more, but this will wait a bit. Am done with reviewing packages today :P 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PR PATCH] [Merged]: Update pari optional packages
  2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
                   ` (16 preceding siblings ...)
  2021-10-30 20:17 ` ericonr
@ 2021-11-09 16:00 ` leahneukirchen
  17 siblings, 0 replies; 19+ messages in thread
From: leahneukirchen @ 2021-11-09 16:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

There's a merged pull request on the void-packages repository

Update pari optional packages
https://github.com/void-linux/void-packages/pull/32641

Description:
- update pari-elldata
- new pari package pari-nflistdata
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- ~keep the mtime from files in source~
- compress files for installed-size savings
- drop depends of packages on pari, add checkdepends of pari to packages (cf #29159, #32614)
- add a much smaller subpkg seadata-small as in upstream
- add update file for all packages
- skip slow post-install hooks for pari-galpol (14681 data files)

I'm also considering adding packages `pari-elldata-small` and `pari-galpol-small` with small versions of the databases that should be good for testing and small computations.

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2021-11-09 16:00 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23  2:13 [PR PATCH] Update pari optional packages tornaria
2021-08-23 23:03 ` [PR PATCH] [Updated] " tornaria
2021-08-23 23:04 ` tornaria
2021-08-24 21:13 ` tornaria
2021-08-25  7:41 ` dkwo
2021-08-25  7:43 ` dkwo
2021-08-26 15:58 ` [PR PATCH] [Updated] " tornaria
2021-08-26 16:00 ` tornaria
2021-09-04 14:55 ` motorto
2021-09-04 16:08 ` tornaria
2021-09-04 17:33 ` motorto
2021-09-04 19:14 ` [PR PATCH] [Updated] " tornaria
2021-09-04 19:24 ` tornaria
2021-09-06  9:32 ` dkwo
2021-10-27  2:09 ` [PR PATCH] [Updated] " tornaria
2021-10-27  2:12 ` tornaria
2021-10-30 20:10 ` tornaria
2021-10-30 20:17 ` ericonr
2021-11-09 16:00 ` [PR PATCH] [Merged]: " leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).