void-packages/srcpkgs/maxima/patches/maxima-sbcl-with-gmp.patch
Gonzalo Tornaría 3370c5ebd1 maxima: fix #34849 and #34861
- patch maxima-sbcl so it uses gmp for arithmetic (closes #34849)
   also add libgmp to shlib_requires since it won't be detected
 - remove `nopie=yes` to fix #34861, replace by `nopie_files`
 - remove `nostrip=yes`, replace by `nostrip_files`
 - add checks for #34849 and #34861
 - run testsuite only for full check (not in CI)
 - some html and info files are shipped with source: do not rebuild
2022-01-11 16:55:28 +01:00

20 lines
544 B
Diff

Patch maxima initialization for sbcl so it uses gmp for arithmetic
--- a/src/init-cl.lisp 2021-05-15 20:20:53.000000000 -0300
+++ b/src/init-cl.lisp 2022-01-04 17:45:03.838273626 -0300
@@ -574,8 +574,13 @@
(delete-file file)))))
*temp-files-list*))
+#+sbcl
+(eval-when (:compile-toplevel :load-toplevel :execute)
+ (require 'sb-gmp))
+
(defun cl-user::run ()
"Run Maxima in its own package."
+ #+sbcl (sb-gmp:install-gmp-funs)
(in-package :maxima)
(initialize-runtime-globals)
(let ((input-stream *standard-input*)