From ebc1bce328171fed3edb709b1d53b6c093767d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 30 Sep 2023 12:50:53 -0300 Subject: [PATCH] giac: update to 1.9.0.67. --- srcpkgs/giac/patches/fix-chk_fhan0.patch | 15 --------------- srcpkgs/giac/patches/missing-const.patch | 11 +++++++++++ srcpkgs/giac/template | 4 ++-- 3 files changed, 13 insertions(+), 17 deletions(-) delete mode 100644 srcpkgs/giac/patches/fix-chk_fhan0.patch create mode 100644 srcpkgs/giac/patches/missing-const.patch diff --git a/srcpkgs/giac/patches/fix-chk_fhan0.patch b/srcpkgs/giac/patches/fix-chk_fhan0.patch deleted file mode 100644 index 6546fca90c681..0000000000000 --- a/srcpkgs/giac/patches/fix-chk_fhan0.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/check/TP00-sol.cas.out1 2023-05-24 04:52:40.000000000 -0300 -+++ b/check/TP00-sol.cas.out1 2023-09-18 16:20:51.417477469 -0300 -@@ -30,10 +30,10 @@ - 16*a^3+32*a^2*u+16*a^2*v+20*a*u^2+20*a*u*v+4*a*v^2+4*u^3+6*u^2*v+2*u*v^2, - 1, - 4.4*(x+0.49999995802767719425726646262389673108)*(x+0.50000004197233049305707985262184456402)*(x+0.80901699437494469055404981865454965242+0.58778525229247103432520509730405154890*I)*(x+0.80901699437494469055404981865454965242-0.58778525229247103432520509730405154890*I)*(x-0.30901699437494853421122297627742029997+0.95105651629515245315101034450709359529*I)*(x-0.30901699437494853421122297627742029997-0.95105651629515245315101034450709359529*I), --4.0*(x+0.49999999999999788328925430029686609811928022330782155585549767058946497075172)*(x+0.80901699437494742410229341718281905886015458990288143106772431135263023140945+0.58778525229247312916870595463907276859765243764314599107227248075727847416235*I)*(x+0.80901699437494742410229341718281905886015458990288143106772431135263023140945-0.58778525229247312916870595463907276859765243764314599107227248075727847416235*I)*(x-0.30901699437494742410229341718281905886015458990288143106772431135263023140945+0.95105651629515357211643933337938214340569863412575022244730564443015317008520*I)*(x-0.30901699437494742410229341718281905886015458990288143106772431135263023140945-0.95105651629515357211643933337938214340569863412575022244730564443015317008520*I)*(x+0.50000000000000423695020762139072415632649460476103935691753889574803974870605+0.31797400722558614463582272906881192689588258358870001378007305967449842289426e-15*I), -+4.0*(x+0.49999999999999788328925430029686609811928022330776429539642815014895119703600)*(x+0.80901699437494742410229341718281905886015458990288143106772431135263023140945+0.58778525229247312916870595463907276859765243764314599107227248075727847416235*I)*(x+0.80901699437494742410229341718281905886015458990288143106772431135263023140945-0.58778525229247312916870595463907276859765243764314599107227248075727847416235*I)*(x-0.30901699437494742410229341718281905886015458990288143106772431135263023140945+0.95105651629515357211643933337938214340569863412575022244730564443015317008520*I)*(x-0.30901699437494742410229341718281905886015458990288143106772431135263023140945-0.95105651629515357211643933337938214340569863412575022244730564443015317008520*I)*(x+0.50000000000000423695020762139072415632649460476116514103247668021485588860239+0.31797400722558614463582272906881240871924499768158244356057150473500445334981e-15*I), - 0, - (2*x+1)^2*(x^4+x^3+x^2+x+1), --4.0*(x+0.50000000000000423695020762139072415632649460476103935691753889574803974870605)*(x+0.49999999999999788328925430029686609811928022330782155585549767058946497075172)*(x^2-0.61803398874989484820458683436563811772030917980576286213544862270526046281890*x+1.0000000000000000000000000000000000000000000000000000000000000000000000000000)*(x^2+1.6180339887498948482045868343656381177203091798057628621354486227052604628189*x+1.0000000000000000000000000000000000000000000000000000000000000000000000000000), -+4.0*(x+0.50000000000000423695020762139072415632649460476116514103247668021485588860239)*(x+0.49999999999999788328925430029686609811928022330776429539642815014895119703600)*(x^2-0.61803398874989484820458683436563811772030917980576286213544862270526046281890*x+1.0000000000000000000000000000000000000000000000000000000000000000000000000000)*(x^2+1.6180339887498948482045868343656381177203091798057628621354486227052604628189*x+1.0000000000000000000000000000000000000000000000000000000000000000000000000000), - (2*x+1)^2*(x^4+x^3+x^2+x+1), - (X-1)*(X+1)*(X^2+1)*(X^2+(-sqrt(3))*X+1)*(X^2-X+1)*(X^2+X+1)*(X^2+sqrt(3)*X+1), - (X-1)*(X+1)*(X-I)*(X+((-I)*sqrt(3)-1)/2)*(X+((-I)*3+3*sqrt(3))/6)*(X+((-I)*sqrt(3)+1)/2)*(X+((-I)*3-3*sqrt(3))/6)*(X+(I*3-3*sqrt(3))/6)*(X+(I*sqrt(3)-1)/2)*(X+I)*(X+(I*sqrt(3)+1)/2)*(X+(I*3+3*sqrt(3))/6), diff --git a/srcpkgs/giac/patches/missing-const.patch b/srcpkgs/giac/patches/missing-const.patch new file mode 100644 index 0000000000000..c562f04ed3e4d --- /dev/null +++ b/srcpkgs/giac/patches/missing-const.patch @@ -0,0 +1,11 @@ +--- a/src/Graph.cc 2023-05-24 04:52:40.000000000 -0300 ++++ b/src/Graph.cc 2023-10-06 19:13:38.465374812 -0300 +@@ -138,7 +138,7 @@ + ++counter; + int bs=gr->size_border; + if (0 && (scale<=1 || scale>16)){ +- unsigned char *rows[bs]; ++ const unsigned char *rows[bs]; + for (int i=0; idata[i]; + } diff --git a/srcpkgs/giac/template b/srcpkgs/giac/template index 5279a82f47056..5f99a2172195d 100644 --- a/srcpkgs/giac/template +++ b/srcpkgs/giac/template @@ -1,6 +1,6 @@ # Template file for 'giac' pkgname=giac -version=1.9.0.59 +version=1.9.0.67 revision=1 build_style=gnu-configure configure_args="--disable-micropy --disable-quickjs" @@ -15,7 +15,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=c5b1ba93f42e758f46d541b28d9350f165eaf8c459bdea80f4a73a72d43c10de +checksum=ae4809ff467cba6592cfb6659d9dde758ef5745049e286c928dea7246f6b5f8e # need more than 4*65536 stack, see try_parse() in gen.cc line 11812 LDFLAGS="-Wl,-z,stack-size=2097152"