Github messages for voidlinux
 help / color / mirror / Atom feed
From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] pari: update to 2.13.0.
Date: Thu, 12 Nov 2020 00:31:00 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26306@inbox.vuxu.org> (raw)

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

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

https://github.com/sgn/void-packages pari-2.13
https://github.com/void-linux/void-packages/pull/26306

pari: update to 2.13.0.
@motorto @dkwo Please test.

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

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

From a5804eb76a441629dfaee2cf5d2ba99fd573b023 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Thu, 12 Nov 2020 06:20:25 +0700
Subject: [PATCH] pari: update to 2.13.0.

---
 srcpkgs/pari/template | 25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template
index 8e6ecc4c58d..fb789a8646d 100644
--- a/srcpkgs/pari/template
+++ b/srcpkgs/pari/template
@@ -1,6 +1,6 @@
 # Template file for 'pari'
 pkgname=pari
-version=2.11.4
+version=2.13.0
 revision=1
 build_style=configure
 build_helper=qemu
@@ -9,16 +9,31 @@ configure_args="--prefix=/usr"
 make_build_target=all
 make_check_target=test-all
 hostmakedepends="perl texlive"
-makedepends="gmp-devel libX11-devel readline-devel"
+makedepends="gmp-devel readline-devel $(vopt_if x11 libX11-devel)"
 short_desc="Fast computations library in number theory"
 maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
 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="bfc88fc4f7352f4840e6e352c72f0369cbea8a45403b1834a6269f3709970b1c"
+checksum=c811946de9d2c1ed0e97ff08e80d966f9a0b55848b7688406fab229e3948ba93
+
+build_options="x11"
+build_options_default="x11"
 
 post_patch() {
-	vsed -i -e 's/ulong/unsigned long/' config/has_sse2.c
+	local _date
+	# Reproducibility
+	_date=$(date +"%b %d %Y")
+	vsed -i -e "s/__DATE__/\"$_date\"/" src/language/paricfg.c
+
+	# sse2 is not available on all i686
+	# and it's available on all x86_64
+	if [ "${XBPS_TARGET_MACHINE%-musl}" != x86_64 ]; then
+		echo 'int main() { return 1; }' > config/has_sse2.c
+	else
+		echo 'int main() { return 0; }' > config/has_sse2.c
+	fi
+
 	cat <<-EOF >config/arch-osname
 	#!/bin/sh
 	echo "${XBPS_TARGET_MACHINE%-musl}-linux"
@@ -34,7 +49,7 @@ pre_configure() {
 
 pari-devel_package() {
 	short_desc+=" - development files"
-	depends="pari-${version}_${revision}"
+	depends="pari>=${version}_${revision}"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.so"

             reply	other threads:[~2020-11-11 23:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11 23:31 sgn [this message]
2020-11-12  9:26 ` motorto
2020-11-12 14:38 ` sgn
2020-11-12 16:07 ` motorto
2020-11-12 21:58 ` dkwo
2020-11-13  8:33 ` motorto
2020-11-13  8:34 ` motorto
2020-11-13 11:53 ` [PR PATCH] [Updated] " sgn
2020-11-14  2:32 ` [PR PATCH] [Merged]: " sgn

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26306@inbox.vuxu.org \
    --to=sgn@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).