[arch-commits] Commit in pari/repos/community-x86_64 (3 files)

Antonio Rojas arojas at archlinux.org
Thu Jun 24 14:45:24 UTC 2021


    Date: Thursday, June 24, 2021 @ 14:45:24
  Author: arojas
Revision: 967200

archrelease: copy trunk to community-x86_64

Added:
  pari/repos/community-x86_64/PKGBUILD
    (from rev 967199, pari/trunk/PKGBUILD)
Deleted:
  pari/repos/community-x86_64/PKGBUILD
  pari/repos/community-x86_64/pari-rnfdisc.patch

--------------------+
 PKGBUILD           |  117 ++++++++++++++++++++++++---------------------------
 pari-rnfdisc.patch |   19 --------
 2 files changed, 57 insertions(+), 79 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-24 14:45:11 UTC (rev 967199)
+++ PKGBUILD	2021-06-24 14:45:24 UTC (rev 967200)
@@ -1,60 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Contributor: Gaetan Bisson <bisson at archlinux.org>
-
-pkgname=pari
-pkgver=2.13.1
-pkgrel=2
-pkgdesc='Computer algebra system designed for fast computations in number theory'
-url='https://pari.math.u-bordeaux.fr/'
-license=(GPL)
-arch=(x86_64)
-depends=(gmp libx11)
-makedepends=(perl texlive-core chrpath)
-optdepends=('perl: gphelp, tex2mail'
-            'pari-elldata: J. Cremona elliptic curve database'
-            'pari-galdata: to compute Galois groups in degrees 8 through 11'
-            'pari-seadata: needed by ellap for large primes'
-            'pari-galpol: GALPOL database of polynomials defining Galois extensions of the rationals')
-source=("https://pari.math.u-bordeaux.fr/pub/pari/unix/$pkgname-$pkgver.tar.gz"{,.asc}
-         pari-rnfdisc.patch)
-sha256sums=('81ecf7d70ccdaae230165cff627c9ce2ec297b8f22f9f40742279d85f86dfcb1'
-            'SKIP'
-            '4ddd27fa348d5c00b9a668c1122461488ad719ad31a397ed9b49fb14f6599d94')
-validpgpkeys=('42028EA404A2E9D80AC453148F0E7C2B4522E387')
-
-prepare() {
-  cd $pkgname-$pkgver
-  
-  patch -p1 < ../pari-rnfdisc.patch # https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2284
-  sed -e 's|DLLDFLAGS  = \$DLLDFLAGS|DLLDFLAGS  = $DLLDFLAGS $LDFLAGS|' -i config/Makefile.SH # Honor system LDFLAGS
-}
-
-build() {
-  cd $pkgname-$pkgver
-
-  # Upstream Bill Allombert recommends linking gp statically against
-  # libpari.so with -flto to recover speed losses incurred when enabling
-  # pthread support. That's also what he now does for the Debian package.
-  export CFLAGS+=' -flto'
-
-  ./Configure \
-    --prefix=/usr \
-    --with-readline \
-    --mt=pthread \
-    --with-gmp
-  make all
-  make -C Olinux-x86_64 gp-sta
-}
-
-check() {
-  cd $pkgname-$pkgver
-  make bench
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  make DESTDIR="$pkgdir" -C Olinux-x86_64 install-bin-sta
-  ln -sf gp.1.gz "$pkgdir"/usr/share/man/man1/pari.1
-  chrpath -d "$pkgdir"/usr/bin/gp-*
-}

Copied: pari/repos/community-x86_64/PKGBUILD (from rev 967199, pari/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-06-24 14:45:24 UTC (rev 967200)
@@ -0,0 +1,57 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=pari
+pkgver=2.13.2
+pkgrel=1
+pkgdesc='Computer algebra system designed for fast computations in number theory'
+url='https://pari.math.u-bordeaux.fr/'
+license=(GPL)
+arch=(x86_64)
+depends=(gmp libx11)
+makedepends=(perl texlive-core chrpath)
+optdepends=('perl: gphelp, tex2mail'
+            'pari-elldata: J. Cremona elliptic curve database'
+            'pari-galdata: to compute Galois groups in degrees 8 through 11'
+            'pari-seadata: needed by ellap for large primes'
+            'pari-galpol: GALPOL database of polynomials defining Galois extensions of the rationals')
+checkdepends=(pari-elldata pari-galdata pari-seadata pari-galpol)
+source=(https://pari.math.u-bordeaux.fr/pub/pari/unix/$pkgname-$pkgver.tar.gz{,.asc})
+sha256sums=('1679985094a0b723d14f49aa891dbe5ec967aa4040050a2c50bd764ddb3eba24'
+            'SKIP')
+validpgpkeys=('42028EA404A2E9D80AC453148F0E7C2B4522E387')
+
+prepare() {  
+  cd $pkgname-$pkgver
+  sed -e 's|DLLDFLAGS  = \$DLLDFLAGS|DLLDFLAGS  = $DLLDFLAGS $LDFLAGS|' -i config/Makefile.SH # Honor system LDFLAGS
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  # Upstream Bill Allombert recommends linking gp statically against
+  # libpari.so with -flto to recover speed losses incurred when enabling
+  # pthread support. That's also what he now does for the Debian package.
+  export CFLAGS+=' -flto'
+
+  ./Configure \
+    --prefix=/usr \
+    --with-readline \
+    --mt=pthread \
+    --with-gmp
+  make all
+  make -C Olinux-x86_64 gp-sta
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make test-all
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" -C Olinux-x86_64 install-bin-sta
+  ln -sf gp.1.gz "$pkgdir"/usr/share/man/man1/pari.1
+  chrpath -d "$pkgdir"/usr/bin/gp-*
+}

Deleted: pari-rnfdisc.patch
===================================================================
--- pari-rnfdisc.patch	2021-06-24 14:45:11 UTC (rev 967199)
+++ pari-rnfdisc.patch	2021-06-24 14:45:24 UTC (rev 967200)
@@ -1,19 +0,0 @@
-From 3edb98db78dd49bb8b4137b46781a7cd570c2556 Mon Sep 17 00:00:00 2001
-From: Bill Allombert <Bill.Allombert at math.u-bordeaux.fr>
-Date: Sun, 28 Mar 2021 13:27:24 +0200
-Subject: [PATCH] rnfdisc_factored: remove spurious Q_primpart [#2284]
-
-diff --git a/src/basemath/base2.c b/src/basemath/base2.c
-index b2b63ada5..531f5c558 100644
---- a/src/basemath/base2.c
-+++ b/src/basemath/base2.c
-@@ -3582,7 +3582,7 @@ rnfdisc_factored(GEN nf, GEN pol, GEN *pd)
- 
-   nf = checknf(nf);
-   pol = rnfdisc_get_T(nf, pol, &lim);
--  disc = nf_to_scalar_or_basis(nf, nfX_disc(nf, Q_primpart(pol)));
-+  disc = nf_to_scalar_or_basis(nf, nfX_disc(nf, pol));
-   pol = nfX_to_monic(nf, pol, NULL);
-   fa = idealfactor_partial(nf, disc, lim);
-   P = gel(fa,1); l = lg(P);
-




More information about the arch-commits mailing list