aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/emacs-exec-path.patch
blob: 884fa94a64d99b215b100b27eeade6fcdc9ee5af (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Do not capture the build-time value of $PATH in the 'emacs' executable
since this can noticeably increase the size of the closure of Emacs
with things like GCC being referenced.

--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -64,6 +64,11 @@
 			    (expand-file-name "textmodes" dir)
 			    (expand-file-name "vc" dir)))))
 
+;; Reset 'exec-path' so we don't capture the build-time $PATH in the
+;; 'emacs' executable.
+(setq-default exec-path nil)
+(setq exec-path nil)
+
 (if (eq t purify-flag)
     ;; Hash consing saved around 11% of pure space in my tests.
     (setq purify-flag (make-hash-table :test 'equal :size 70000)))
e139193e4d5bee9b'>gnu: cmake: Delete Emacs library....Oleg Pykhalov 2018-05-24Merge branch 'master' into core-updatesMark H Weaver 2018-05-22Revert "gnu: cmake: Delete Emacs library."...Mark H Weaver 2018-05-22gnu: cmake.scm: Add missing module....Oleg Pykhalov 2018-05-22gnu: Add emacs-cmake-mode....Oleg Pykhalov 2018-05-22gnu: cmake: Delete Emacs library....Oleg Pykhalov 2018-04-30gnu: cmake: Update to 3.11.1....Marius Bakke 2018-03-29gnu: cmake: Update to 3.11.0....Marius Bakke 2018-03-23gnu: cmake: Re-indent....Arun Isaac 2018-03-23gnu: cmake: Update to 3.10.2....Arun Isaac 2018-03-04gnu: Add cmake@3.11....Marius Bakke 2017-02-21gnu: cmake: Run tests in parallel....Marius Bakke 2017-02-21gnu: cmake: Remove bundled software....Marius Bakke 2017-02-21gnu: cmake: Update to 3.7.2....Marius Bakke 2016-10-07gnu: cmake: Build 'ccmake' binary....Efraim Flashner 2016-08-29gnu: cmake: Enable libarchive tests....Efraim Flashner 2016-08-16gnu: cmake: Update to 3.6.1....Efraim Flashner 2016-06-22gnu: cmake: Update to 3.5.2....Efraim Flashner 2016-06-22gnu: cmake: Use 'modify-phases'....Efraim Flashner 2016-06-22gnu: cmake: Disable checking for libarchive in tests....Efraim Flashner 2016-05-02Merge branch 'master' into core-updatesMathieu Lirzin 2016-04-14gnu: packages: Use 'search-patches' everywhere....Alex Kost 2016-03-17gnu: cmake: Update to 3.5.0....Efraim Flashner 2016-03-05gnu: cmake: Update to 3.4.3....Efraim Flashner 2016-01-05gnu: Read 'C_INCLUDE_PATH' instead of 'CPATH'....Ludovic Courtès 2015-11-13gnu: Adjust formatting as recommended by 'guix lint'....宋文武 2015-11-04gnu: cmake: Download over HTTPS....Ludovic Courtès 2015-10-17gnu: cmake: Update to 3.3.2....宋文武 2015-09-14gnu: cmake: Update to 3.3.1....宋文武