From 715c34ba4e335193a701fe744a189937b229cf3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Tue, 11 Oct 2022 18:56:20 -0300 Subject: [PATCH] giac: update to 1.9.0.27. --- .../giac/patches/giac-pari-2.15-test.patch | 10 ++++++++++ srcpkgs/giac/patches/giac-pari-2.15.patch | 20 +++++++++++++++++++ srcpkgs/giac/template | 4 ++-- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/giac/patches/giac-pari-2.15-test.patch create mode 100644 srcpkgs/giac/patches/giac-pari-2.15.patch diff --git a/srcpkgs/giac/patches/giac-pari-2.15-test.patch b/srcpkgs/giac/patches/giac-pari-2.15-test.patch new file mode 100644 index 00000000000..1f1929571a4 --- /dev/null +++ b/srcpkgs/giac/patches/giac-pari-2.15-test.patch @@ -0,0 +1,10 @@ +Fix a failing test due to thread stack overflow + +--- a/check/chk_fhan4 2018-03-13 15:27:11.000000000 -0300 ++++ b/check/chk_fhan4 2022-10-14 18:51:12.604731890 -0300 +@@ -1,4 +1,5 @@ + #! /bin/sh + unset LANG ++export PARI_SIZE=2048000 + ../src/icas TP04-sol.cas > TP04.tst + diff TP04.tst TP04-sol.cas.out1 diff --git a/srcpkgs/giac/patches/giac-pari-2.15.patch b/srcpkgs/giac/patches/giac-pari-2.15.patch new file mode 100644 index 00000000000..be409be38f5 --- /dev/null +++ b/srcpkgs/giac/patches/giac-pari-2.15.patch @@ -0,0 +1,20 @@ +ANYARG patch + +diff --git a/src/pari.cc b/src/pari.cc +index 76ce8e1..50d08ab 100644 +--- a/src/pari.cc ++++ b/src/pari.cc +@@ -40,6 +40,13 @@ using namespace std; + + #ifdef HAVE_LIBPARI + ++// Anyarg disappeared from PARI 2.15.0 ++#ifdef __cplusplus ++# define ANYARG ... ++#else ++# define ANYARG ++#endif ++ + #ifdef HAVE_PTHREAD_H + #include + #endif diff --git a/srcpkgs/giac/template b/srcpkgs/giac/template index e892c8bf750..5dcdbeb1e84 100644 --- a/srcpkgs/giac/template +++ b/srcpkgs/giac/template @@ -1,6 +1,6 @@ # Template file for 'giac' pkgname=giac -version=1.9.0.7 +version=1.9.0.27 revision=1 wrksrc="giac-${version%.*}" build_style=gnu-configure @@ -14,7 +14,7 @@ license="GPL-3.0-or-later" homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html" changelog="https://www-fourier.ujf-grenoble.fr/~parisse/install_en#new" distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version%.*}-${version##*.}.tar.gz" -checksum=72016988b7180e9b630ecabecc60969213e7b61418c2598c91acbaec139fd740 +checksum=c5d222fbff5db2a0a560b4e106ce88dd13d109ecb21570a939b8b3b87521d5e0 # need more than 4*65536 stack, see try_parse() in gen.cc line 11812 LDFLAGS="-Wl,-z,stack-size=2097152"