From 2557ef6ff0ecca1106598b632c188b99ac978460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Fri, 8 Apr 2022 20:57:31 -0300 Subject: [PATCH] giac: update to 1.9.0.7. --- srcpkgs/giac/patches/fgamma.patch | 2 +- srcpkgs/giac/patches/micropy.patch | 18 ------------------ srcpkgs/giac/template | 10 ++++++++-- 3 files changed, 9 insertions(+), 21 deletions(-) delete mode 100644 srcpkgs/giac/patches/micropy.patch diff --git a/srcpkgs/giac/patches/fgamma.patch b/srcpkgs/giac/patches/fgamma.patch index 665803db13f..8cdc5fda88a 100644 --- a/srcpkgs/giac/patches/fgamma.patch +++ b/srcpkgs/giac/patches/fgamma.patch @@ -1,7 +1,7 @@ --- a/src/first.h 2017-09-22 20:44:12.000000000 +0200 +++ b/src/first.h 2017-11-14 15:26:53.529711489 +0100 @@ -503,7 +503,7 @@ - #if defined(__MINGW_H) || defined(VISUALC) // FIXME gamma, not used + #if defined(__MINGW_H) || defined(VISUALC) || defined(FXCG)// FIXME gamma, not used inline float fgamma(float f1){ return f1; } #else -inline float fgamma(float f1){ return gammaf(f1); } // or tgammaf(f1) on some versions of emscripten diff --git a/srcpkgs/giac/patches/micropy.patch b/srcpkgs/giac/patches/micropy.patch deleted file mode 100644 index 0e417a5a8ec..00000000000 --- a/srcpkgs/giac/patches/micropy.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/src/icas.cc 2021-03-02 04:52:40.000000000 -0300 -+++ b/src/icas.cc 2022-03-30 10:00:39.154056068 -0300 -@@ -1810,6 +1810,7 @@ - cerr << "// Setting tex log" << '\n'; - show_tex=true; - } -+#ifdef HAVE_LIBMICROPYTHON - if (getenv("GIAC_MICROPY")){ - cerr << "Micropython mode\n"; - python_compat(4 | python_compat(contextptr),contextptr); -@@ -1821,6 +1822,7 @@ - return 0; - } - } -+#endif - #ifdef HAVE_LIBREADLINE - if (ARGC==1){ - int taillemax=1000; diff --git a/srcpkgs/giac/template b/srcpkgs/giac/template index fbdadc31dde..e892c8bf750 100644 --- a/srcpkgs/giac/template +++ b/srcpkgs/giac/template @@ -1,6 +1,6 @@ # Template file for 'giac' pkgname=giac -version=1.7.0.53 +version=1.9.0.7 revision=1 wrksrc="giac-${version%.*}" build_style=gnu-configure @@ -14,11 +14,17 @@ 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=74e5f98f63147c0197e4ce309601ae745312761be61c1a99c8a6bab4862e4a9f +checksum=72016988b7180e9b630ecabecc60969213e7b61418c2598c91acbaec139fd740 # need more than 4*65536 stack, see try_parse() in gen.cc line 11812 LDFLAGS="-Wl,-z,stack-size=2097152" +post_extract() { + # remove a binary that works only for x86_64 host + # the binary will be rebuilt using host compiler + rm src/mkjs +} + post_install() { # remove duplicates rm -r ${DESTDIR}/usr/share/doc