mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: emacs: Do not retain reference to an extra glibc package.
This shaves ~18 MiB on the closure of ‘emacs’ and ‘emacs-no-x’. * gnu/packages/emacs.scm (emacs-no-x)[arguments]: In ‘patch-compilation-driver’, use ‘search-input-file’ instead of ‘this-package-input’. [inputs]: Remove ‘ld-wrapper’, ‘binutils’, and ‘libc-for-target’. Closes: guix/guix#5029 Fixes: guix/guix#5028 Change-Id: Ib71641cf37f8ae3590b0db97c14fcd45d21080f1 Signed-off-by: Cayetano Santos <csantosb@inventati.org>
This commit is contained in:
parent
f1005ad96c
commit
b9cf7580d2
1 changed files with 9 additions and 10 deletions
|
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2013-2017, 2019, 2021-2022 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2013-2017, 2019, 2021-2022, 2025 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
||||
;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>
|
||||
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Mark H Weaver <mhw@netris.org>
|
||||
|
|
@ -464,19 +464,22 @@ editor (console only)")
|
|||
(string-append (getenv "LIBRARY_PATH")
|
||||
":" libgccjit-libdir)))))
|
||||
(add-after 'unpack 'patch-compilation-driver
|
||||
(lambda _
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "lisp/emacs-lisp/comp.el"
|
||||
(("\\(defcustom native-comp-driver-options nil")
|
||||
(format
|
||||
#f "(defcustom native-comp-driver-options '(~@{~s~^ ~})"
|
||||
(string-append
|
||||
"-B" #$(this-package-input "binutils") "/bin/")
|
||||
"-B" (dirname (search-input-file inputs "/bin/nm")))
|
||||
(string-append
|
||||
"-B" #$(this-package-input "glibc") "/lib/")
|
||||
"-B" (dirname (search-input-file inputs "/lib/libc.so")))
|
||||
(string-append
|
||||
"-B" #$(this-package-input "libgccjit") "/lib/")
|
||||
"-B" (dirname (search-input-file inputs "/lib/libgccjit.so")))
|
||||
(string-append
|
||||
"-B" #$(this-package-input "libgccjit") "/lib/gcc/"))))))
|
||||
"-B" (string-append
|
||||
(dirname
|
||||
(search-input-file inputs "/lib/libgccjit.so"))
|
||||
"/gcc")))))))
|
||||
(add-after 'build 'build-trampolines
|
||||
(lambda* (#:key make-flags #:allow-other-keys)
|
||||
(apply invoke "make" "trampolines" make-flags)))
|
||||
|
|
@ -498,11 +501,7 @@ editor (console only)")
|
|||
(inputs
|
||||
(modify-inputs (package-inputs emacs-minimal)
|
||||
(prepend gnutls
|
||||
;; To "unshadow" ld-wrapper in native builds
|
||||
(make-ld-wrapper "ld-wrapper" #:binutils binutils)
|
||||
;; For native compilation
|
||||
binutils
|
||||
(libc-for-target)
|
||||
libgccjit
|
||||
|
||||
;; Avoid Emacs's limited movemail substitute that retrieves POP3
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue