Github messages for voidlinux
 help / color / mirror / Atom feed
From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Update pari optional packages
Date: Tue, 24 Aug 2021 01:03:16 +0200	[thread overview]
Message-ID: <20210823230316.8IU4su83H2wyEdF4PT3CQc299Qap_tQ1mKBZ9S3-HkE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32641@inbox.vuxu.org>

[-- 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"

  reply	other threads:[~2021-08-23 23:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-23  2:13 [PR PATCH] " tornaria
2021-08-23 23:03 ` tornaria [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210823230316.8IU4su83H2wyEdF4PT3CQc299Qap_tQ1mKBZ9S3-HkE@z \
    --to=tornaria@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).