From cbc5f9ab95141fbd31171ae8e0fea33d5bab28ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Tue, 10 Aug 2021 19:56:34 -0300 Subject: [PATCH] pari: update to 2.13.2. - enable pthreads build - switch gp binary to static link libpari; this offsets the slowdown due to pthreads - ship the static library, so external programs can static link --- common/shlibs | 2 +- srcpkgs/pari/template | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/common/shlibs b/common/shlibs index 278d2456072f..8045f19a3abf 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3980,7 +3980,7 @@ libopenaptx.so.0 libopenaptx-0.2.0_1 libsimavr.so.1 simavr-1.6_2 libsimavrparts.so.1 simavr-1.6_2 libsword-1.8.1.so libsword-1.8.1_6 -libpari-gmp.so.7 pari-2.13.0_1 +libpari-gmp-tls.so.7 pari-2.13.2_1 libtree-sitter.so.0 tree-sitter-0.19.0_1 libgtkdatabox.so.1 gtkdatabox3-1.0.0_1 libwayland-client++.so.0 libwaylandpp-0.2.8_1 diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template index 8e2a415913ba..aa7c1a53fabb 100644 --- a/srcpkgs/pari/template +++ b/srcpkgs/pari/template @@ -1,13 +1,14 @@ # Template file for 'pari' pkgname=pari -version=2.13.1 +version=2.13.2 revision=1 build_style=configure build_helper=qemu configure_script=./Configure -configure_args="--prefix=/usr" +configure_args="--prefix=/usr $(vopt_if pthreads --mt=pthread)" make_build_target=all make_check_target=test-all +make_install_target="install install-bin-sta install-lib-sta" hostmakedepends="perl texlive" makedepends="gmp-devel readline-devel $(vopt_if x11 libX11-devel)" short_desc="Fast computations library in number theory" @@ -15,10 +16,16 @@ maintainer="Đoàn Trần Công Danh " 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=81ecf7d70ccdaae230165cff627c9ce2ec297b8f22f9f40742279d85f86dfcb1 +checksum=1679985094a0b723d14f49aa891dbe5ec967aa4040050a2c50bd764ddb3eba24 -build_options="x11" -build_options_default="x11" +build_options="x11 pthreads" +build_options_default="x11 pthreads" +desc_option_pthreads="Enable support for pthreads" + +if [ "$build_option_pthreads" ] ; then + # reduce speed losses due to pthreads + CFLAGS=-flto +fi post_patch() { # sse2 is not available on all i686 @@ -50,6 +57,7 @@ pari-devel_package() { depends="pari>=${version}_${revision}" pkg_install() { vmove usr/include + vmove "usr/lib/*.a" vmove "usr/lib/*.so" } }