[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/18: gnu: sbcl-cluffer: Remove bash reference from the closure.
From: |
guix-commits |
Subject: |
14/18: gnu: sbcl-cluffer: Remove bash reference from the closure. |
Date: |
Fri, 8 Jul 2022 13:33:26 -0400 (EDT) |
ambrevar pushed a commit to branch master
in repository guix.
commit ced05db048ca60afe227acdcad9c794f231bf16d
Author: Pierre Neidhardt <mail@ambrevar.xyz>
AuthorDate: Thu Jul 7 13:56:16 2022 +0200
gnu: sbcl-cluffer: Remove bash reference from the closure.
* gnu/packages/lisp-xyz.scm (sbcl-cluffer)[arguments]: Unpatch shell
shebangs.
It's only needed to generate the documentation (which we should do at
build-time by the way).
This takes the closure size of cl-cluffer from 40 MiB down to 0 MiB.
---
gnu/packages/lisp-xyz.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 7c795ea4b9..1a8491a00f 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -11328,6 +11328,21 @@ sequences of objects.")
(build-system asdf-build-system/sbcl)
(inputs
(list sbcl-acclimation sbcl-clump))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'unpatch-shebangs
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; The documentation Makefile rely on shell scripts.
+ ;; TODO: Build it!
+ ;; In the mean time, remove the shabang as it adds bash to the
+ ;; closure.
+ (let* ((out (assoc-ref outputs "out"))
+ (build-aux (string-append
+ out "/share/")))
+ (substitute* (find-files build-aux)
+ (("^#!.*/bin/sh") "#!/bin/sh")
+ (("^#!.*/bin/bash") "#!/bin/bash"))))))))
(home-page "https://github.com/robert-strandh/cluffer")
(synopsis "Common Lisp library providing a protocol for text-editor
buffers")
(description "Cluffer is a library for representing the buffer of a text
- branch master updated (1051db2526 -> 114b40ed67), guix-commits, 2022/07/08
- 09/18: gnu: sbcl-uffi: Remove Make reference from closure., guix-commits, 2022/07/08
- 01/18: gnu: sbcl: Remove Coreutils reference from closure., guix-commits, 2022/07/08
- 05/18: gnu: sbcl-puri: Remove Make reference from closure., guix-commits, 2022/07/08
- 13/18: gnu: sbcl-cl-gopher: Remove sbcl-cl-gopher reference in cl-gopher, guix-commits, 2022/07/08
- 03/18: gnu: sbcl-ptester: Remove Make reference from closure., guix-commits, 2022/07/08
- 02/18: gnu: sbcl-rt: Remove Make reference from closure., guix-commits, 2022/07/08
- 08/18: gnu: sbcl-rss: Remove Make reference from closure., guix-commits, 2022/07/08
- 14/18: gnu: sbcl-cluffer: Remove bash reference from the closure.,
guix-commits <=
- 15/18: gnu: sbcl-trivial-clipboard: Replace xclip with xsel to reduce closure size., guix-commits, 2022/07/08
- 16/18: gnu: sbcl-osicat: Remove bash reference from the closure., guix-commits, 2022/07/08
- 06/18: gnu: sbcl-kmrcl: Remove Make reference from closure., guix-commits, 2022/07/08
- 07/18: gnu: sbcl-cl-base64: Remove Make reference from closure., guix-commits, 2022/07/08
- 12/18: gnu: sbcl-moptilities: Remove sbcl-moptilities reference in cl-moptilities., guix-commits, 2022/07/08
- 04/18: gnu: sbcl-xlunit: Remove Make reference from closure., guix-commits, 2022/07/08
- 18/18: gnu: cl-slime-swank: Store .fasl in the ASDF registry., guix-commits, 2022/07/08
- 10/18: gnu: sbcl-clsql: Remove Make reference from closure., guix-commits, 2022/07/08
- 11/18: gnu: sbcl-slime-swank: Remove gawk reference from closure., guix-commits, 2022/07/08
- 17/18: gnu: sbcl-dexador: Remove unneeded depedencies to reduce closure size., guix-commits, 2022/07/08