From 861689add2381964c07eb5fc60a982e03c3ec126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 12 Jan 2026 17:28:41 -0300 Subject: [PATCH] pari: update to 2.17.3. --- srcpkgs/pari/patches/fix-nproc.patch | 18 ------------------ srcpkgs/pari/template | 6 +++--- 2 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 srcpkgs/pari/patches/fix-nproc.patch diff --git a/srcpkgs/pari/patches/fix-nproc.patch b/srcpkgs/pari/patches/fix-nproc.patch deleted file mode 100644 index eba2b0849e82d2..00000000000000 --- a/srcpkgs/pari/patches/fix-nproc.patch +++ /dev/null @@ -1,18 +0,0 @@ -Prefer "number of online processors" since some cpus will overreport -the total number of cpus. - -See: https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2593#25 - ---- a/src/mt/pthread.c -+++ b/src/mt/pthread.c -@@ -139,7 +139,9 @@ void mt_broadcast(GEN code) {(void) code;} - void pari_mt_init(void) - { - pari_mt = NULL; --#ifdef _SC_NPROCESSORS_CONF -+#ifdef _SC_NPROCESSORS_ONLN -+ if (!pari_mt_nbthreads) pari_mt_nbthreads = sysconf(_SC_NPROCESSORS_ONLN); -+#elif _SC_NPROCESSORS_CONF - if (!pari_mt_nbthreads) pari_mt_nbthreads = sysconf(_SC_NPROCESSORS_CONF); - #elif defined(_WIN32) - if (!pari_mt_nbthreads) pari_mt_nbthreads = win32_nbthreads(); diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template index 1f97c1e433e9de..84d40489a5d95d 100644 --- a/srcpkgs/pari/template +++ b/srcpkgs/pari/template @@ -1,6 +1,6 @@ # Template file for 'pari' pkgname=pari -version=2.17.2 +version=2.17.3 revision=1 build_style=configure build_helper=qemu @@ -17,9 +17,9 @@ short_desc="Fast computations library in number theory" maintainer="Gonzalo TornarĂ­a " license="GPL-2.0-or-later" homepage="https://pari.math.u-bordeaux.fr" -changelog="https://pari.math.u-bordeaux.fr/cgi-bin/sgitweb.cgi?p=pari.git;a=blob_plain;f=CHANGES;hb=refs/heads/pari-${version%.*}" +changelog="https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi?p=pari.git;a=blob_plain;f=CHANGES;hb=refs/heads/pari-${version%.*}" distfiles="https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-${version}.tar.gz" -checksum=7d30578f5cf97b137a281f4548d131aafc0cde86bcfd10cc1e1bd72a81e65061 +checksum=8d9c4fcd584c468d27e0f23c36836587284452094c4b1c404c20c4b810462dcb build_options="x11 pthreads" build_options_default="x11 pthreads"