Date: Thursday, May 4, 2023 @ 10:40:48
Author: arojas
Revision: 1458752
archrelease: copy trunk to community-staging-x86_64
Added:
giac/repos/community-staging-x86_64/
giac/repos/community-staging-x86_64/PKGBUILD
(from rev 1458751, giac/trunk/PKGBUILD)
giac/repos/community-staging-x86_64/format-security.patch
(from rev 1458751, giac/trunk/format-security.patch)
-----------------------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
format-security.patch | 12 ++++++++++++
2 files changed, 48 insertions(+)
Copied: giac/repos/community-staging-x86_64/PKGBUILD (from rev 1458751,
giac/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-05-04 10:40:48 UTC (rev 1458752)
@@ -0,0 +1,36 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+pkgname=giac
+_pkgver=1.9.0-47
+pkgver=${_pkgver//-/.}
+pkgrel=2
+pkgdesc='A free computer algebra system'
+arch=(x86_64)
+url='http://www-fourier.ujf-grenoble.fr/~parisse/giac.html'
+license=(GPL3)
+depends=(fltk mpfi gsl pari ntl lapack curl glpk libao gmp-ecm libsamplerate)
+makedepends=(python libjpeg texlive-core texlive-science hevea nauty)
+optdepends=('perl: for pgiac')
+replaces=(libgiac xcas)
+provides=(libgiac xcas)
+source=(http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${pkgname}_$_pkgver.tar.gz
+ format-security.patch)
+sha256sums=('b1bf8d9cc775add96c5f05008e2bfc95658bd73aebb4bdc5c2610cf3cd89d3a6'
+ '04288944e408807a15aa502e1215087870d8921229c9f9890d862d3c9de337cd')
+
+prepare() {
+ cd $pkgname-${pkgver%.*}
+ patch -p1 < ../format-security.patch # Fix -Werror=format-security errors
+}
+
+build() {
+ cd $pkgname-${pkgver%.*}
+ CXXFLAGS+=" -Wp,-U_GLIBCXX_ASSERTIONS" # Fix crashes
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd $pkgbase-${pkgver%.*}
+ make DESTDIR="$pkgdir" install
+}
Copied: giac/repos/community-staging-x86_64/format-security.patch (from rev
1458751, giac/trunk/format-security.patch)
===================================================================
--- community-staging-x86_64/format-security.patch
(rev 0)
+++ community-staging-x86_64/format-security.patch 2023-05-04 10:40:48 UTC
(rev 1458752)
@@ -0,0 +1,12 @@
+diff -ru giac-1.9.0.orig/src/Graph.cc giac-1.9.0/src/Graph.cc
+--- giac-1.9.0.orig/src/Graph.cc 2022-11-04 19:00:52.059786792 +0100
++++ giac-1.9.0/src/Graph.cc 2022-11-04 19:05:34.765503717 +0100
+@@ -5640,7 +5640,7 @@
+ }
+
+ bool inputdouble(const char * msg,double & d,GIAC_CONTEXT){
+- const char * ch=fl_input(msg,print_DOUBLE_(d).c_str());
++ const char * ch=fl_input("%s",msg,print_DOUBLE_(d).c_str());
+ if (!ch) return false;
+ gen g(ch,contextptr);
+ g=evalf_double(g,1,contextptr);