summaryrefslogtreecommitdiff
path: root/gnu/packages/lisp.scm
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2024-03-29 21:16:07 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2024-06-07 09:35:40 +0200
commitd03fcff19d02f7a1df49b3b675297b3bc97375dd (patch)
treeb9b53c732138a1b1ea566bc91fe502f0f5f5ca1d /gnu/packages/lisp.scm
parent1718d2ebd2352fd15ec9446f81fb01d41f3e705a (diff)
gnu: sbcl: Update to 2.4.5.
* gnu/packages/lisp.scm (sbcl): Update to 2.4.5. [source]: Remove obsolete patches. [inputs]: Add bash-minimal. [arguments]: Remove trailing booleans. * gnu/local.mk (dist_patch_DATA): Remove obsolete patches. * gnu/packages/patches/sbcl-fix-ppc64-build.patch: Remove file. * gnu/packages/patches/sbcl-fix-riscv-build.patch: Remove file. Change-Id: Id918ee31aec016b987b0831680847b502c88fb5c
Diffstat (limited to 'gnu/packages/lisp.scm')
-rw-r--r--gnu/packages/lisp.scm35
1 files changed, 14 insertions, 21 deletions
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 783e168dc85..40ae19660ef 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -444,17 +444,14 @@ an interpreter, a compiler, a debugger, and much more.")
444(define-public sbcl 444(define-public sbcl
445 (package 445 (package
446 (name "sbcl") 446 (name "sbcl")
447 (version "2.4.0") 447 (version "2.4.5")
448 (source 448 (source
449 (origin 449 (origin
450 (method url-fetch) 450 (method url-fetch)
451 (uri (string-append "mirror://sourceforge/sbcl/sbcl/" version "/sbcl-" 451 (uri (string-append "mirror://sourceforge/sbcl/sbcl/" version "/sbcl-"
452 version "-source.tar.bz2")) 452 version "-source.tar.bz2"))
453 (sha256 453 (sha256
454 (base32 "0xhpdnsg8idzxkn20iw8gd2rk470d7vc22vrp5clq9fj117vgn43")) 454 (base32 "1lbvb9rzlkl3h8s75i2js4dnmgxmvs41jxjb5dj0f603r688xxjd"))
455 ;; TODO: Remove these patches when updating to sbcl > 2.4.0.
456 (patches (search-patches "sbcl-fix-ppc64-build.patch"
457 "sbcl-fix-riscv-build.patch"))
458 (modules '((guix build utils))) 455 (modules '((guix build utils)))
459 (snippet 456 (snippet
460 '(begin 457 '(begin
@@ -497,7 +494,8 @@ an interpreter, a compiler, a debugger, and much more.")
497 (texlive-updmap.cfg (list texlive-texinfo)) 494 (texlive-updmap.cfg (list texlive-texinfo))
498 which)) 495 which))
499 (inputs 496 (inputs
500 (list gmp ; for sb-gmp 497 (list bash-minimal
498 gmp ; for sb-gmp
501 mpfr ; for sb-mpfr 499 mpfr ; for sb-mpfr
502 (list zstd "lib"))) 500 (list zstd "lib")))
503 (arguments 501 (arguments
@@ -532,8 +530,7 @@ an interpreter, a compiler, a debugger, and much more.")
532 cl-asdf 530 cl-asdf
533 "/share/common-lisp/source/asdf/asdf.lisp")) 531 "/share/common-lisp/source/asdf/asdf.lisp"))
534 (contrib-asdf "contrib/asdf/asdf.lisp")) 532 (contrib-asdf "contrib/asdf/asdf.lisp"))
535 (copy-file guix-asdf contrib-asdf)) 533 (copy-file guix-asdf contrib-asdf))))
536 #t))
537 (add-before 'build 'patch-unix-tool-paths 534 (add-before 'build 'patch-unix-tool-paths
538 (lambda* (#:key outputs inputs #:allow-other-keys) 535 (lambda* (#:key outputs inputs #:allow-other-keys)
539 (let ((out (assoc-ref outputs "out")) 536 (let ((out (assoc-ref outputs "out"))
@@ -579,17 +576,17 @@ an interpreter, a compiler, a debugger, and much more.")
579 (("\\(deftest pwent\\.[12]" all) 576 (("\\(deftest pwent\\.[12]" all)
580 (string-append "#+nil ;disabled by Guix\n" all)) 577 (string-append "#+nil ;disabled by Guix\n" all))
581 (("\\(deftest grent\\.[12]" all) 578 (("\\(deftest grent\\.[12]" all)
582 (string-append "#+nil ;disabled by Guix\n" all)))) 579 (string-append "#+nil ;disabled by Guix\n" all))))))
583 #t))
584 (add-before 'build 'fix-contrib-library-path 580 (add-before 'build 'fix-contrib-library-path
585 (lambda* (#:key inputs #:allow-other-keys) 581 (lambda* (#:key inputs #:allow-other-keys)
586 (let ((gmp (assoc-ref inputs "gmp")) 582 (let ((gmp (assoc-ref inputs "gmp"))
587 (mpfr (assoc-ref inputs "mpfr"))) 583 (mpfr (assoc-ref inputs "mpfr")))
588 (substitute* '("contrib/sb-gmp/gmp.lisp") 584 (substitute* '("contrib/sb-gmp/gmp.lisp")
589 (("\"libgmp\\.so") (string-append "\"" gmp "/lib/libgmp.so"))) 585 (("\"libgmp\\.so")
586 (string-append "\"" gmp "/lib/libgmp.so")))
590 (substitute* '("contrib/sb-mpfr/mpfr.lisp") 587 (substitute* '("contrib/sb-mpfr/mpfr.lisp")
591 (("\"libmpfr\\.so") (string-append "\"" mpfr "/lib/libmpfr.so")))) 588 (("\"libmpfr\\.so")
592 #t)) 589 (string-append "\"" mpfr "/lib/libmpfr.so"))))))
593 (replace 'build 590 (replace 'build
594 (lambda* (#:key outputs #:allow-other-keys) 591 (lambda* (#:key outputs #:allow-other-keys)
595 (setenv "CC" "gcc") 592 (setenv "CC" "gcc")
@@ -635,8 +632,7 @@ an interpreter, a compiler, a debugger, and much more.")
635 (lambda () 632 (lambda ()
636 (display 633 (display
637 (string-append "(sb-ext:set-sbcl-source-location \"" 634 (string-append "(sb-ext:set-sbcl-source-location \""
638 source-dir "\")") ))) 635 source-dir "\")") ))))))
639 #t)))
640 (add-after 'install 'remove-coreutils-references 636 (add-after 'install 'remove-coreutils-references
641 ;; They are only useful on non-Linux, non-SBCL. 637 ;; They are only useful on non-Linux, non-SBCL.
642 (lambda* (#:key outputs #:allow-other-keys) 638 (lambda* (#:key outputs #:allow-other-keys)
@@ -650,14 +646,12 @@ an interpreter, a compiler, a debugger, and much more.")
650 "(\"/usr/bin/env\"")) 646 "(\"/usr/bin/env\""))
651 (substitute* (string-append share-dir "contrib/asdf/uiop.lisp") 647 (substitute* (string-append share-dir "contrib/asdf/uiop.lisp")
652 (("\\(\".*/usr/bin/env\"") 648 (("\\(\".*/usr/bin/env\"")
653 "(\"/usr/bin/env\"")) 649 "(\"/usr/bin/env\"")))))
654 #t)))
655 (add-after 'install 'install-shared-library 650 (add-after 'install 'install-shared-library
656 (lambda* (#:key outputs #:allow-other-keys) 651 (lambda* (#:key outputs #:allow-other-keys)
657 (let* ((out (assoc-ref outputs "out")) 652 (let* ((out (assoc-ref outputs "out"))
658 (lib-dir (string-append out "/lib"))) 653 (lib-dir (string-append out "/lib")))
659 (install-file "src/runtime/libsbcl.so" lib-dir) 654 (install-file "src/runtime/libsbcl.so" lib-dir))))
660 #t)))
661 (add-after 'install 'install-doc 655 (add-after 'install 'install-doc
662 (lambda* (#:key outputs #:allow-other-keys) 656 (lambda* (#:key outputs #:allow-other-keys)
663 (let* ((out (assoc-ref outputs "out")) 657 (let* ((out (assoc-ref outputs "out"))
@@ -668,8 +662,7 @@ an interpreter, a compiler, a debugger, and much more.")
668 (mkdir-p new-doc/sbcl-dir) 662 (mkdir-p new-doc/sbcl-dir)
669 (copy-recursively (string-append old-doc-dir "/sbcl") 663 (copy-recursively (string-append old-doc-dir "/sbcl")
670 new-doc/sbcl-dir) 664 new-doc/sbcl-dir)
671 (delete-file-recursively old-doc-dir) 665 (delete-file-recursively old-doc-dir)))))
672 #t))))
673 ;; No 'check' target, though "make.sh" (build phase) runs tests. 666 ;; No 'check' target, though "make.sh" (build phase) runs tests.
674 #:tests? #f)) 667 #:tests? #f))
675 (native-search-paths 668 (native-search-paths