aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2022-10-07 21:42:17 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-10-07 21:54:50 +0200
commit00ef6c18d5c6b22874221e9be74f3ba0641c0034 (patch)
tree47c18b42bbc8586e944241539f3cc231adcb21d4 /gnu/packages/patches
parent0169aee33e154c1fa8b299c7f126f3e94a8dc9a4 (diff)
downloadguix-00ef6c18d5c6b22874221e9be74f3ba0641c0034.tar.gz
guix-00ef6c18d5c6b22874221e9be74f3ba0641c0034.zip
gnu: giac: Fix build.
* gnu/packages/algebra.scm (giac)[source]<origin>: Add a patch to fix build issue with Pari-GP 2.15. [arguments]<#:phase>: Skip another test. * gnu/packages/patches/giac-pari-gp-anyarg.patch: New file. * gnu/local.mk: Register it. This fixes <https://issues.guix.gnu.org/58274>.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r--gnu/packages/patches/giac-pari-gp-anyarg.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/patches/giac-pari-gp-anyarg.patch b/gnu/packages/patches/giac-pari-gp-anyarg.patch
new file mode 100644
index 0000000000..0441f6bcf9
--- /dev/null
+++ b/gnu/packages/patches/giac-pari-gp-anyarg.patch
@@ -0,0 +1,28 @@
+From 041d16b521d8231e5b441015f08bb386f9d2a51c Mon Sep 17 00:00:00 2001
+From: Vincent Delecroix <20100.delecroix@gmail.com*>
+Date: Thu, 15 Sep 2022 12:11:01 +0200
+Subject: ANYARG giac 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 <pthread.h>
+ #endif
+
+--
+cgit v1.0-1-gd88e
+