summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@raeburn.org>2017-03-09 01:15:53 -0500
committerKen Raeburn <raeburn@raeburn.org>2017-04-06 02:10:51 -0400
commitdd09e72ed6b1c6ba5c584e7aa32d98437d96326a (patch)
tree34beb020c16a361b6d37969fc223f6b9901dc9cf
parentd15719d36e8fab262e7803d9409326321b890941 (diff)
downloademacs-dd09e72ed6b1c6ba5c584e7aa32d98437d96326a.tar.gz
Allow a CANNOT_DUMP build to use exec-path during bootstrap.
During a bootstrap, loading rmail.el invokes movemail to determine its flavor, but call-process doesn't work if exec-path is nil. * lisp/loadup.el: Only clear exec-path if dumping.
-rw-r--r--lisp/loadup.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/loadup.el b/lisp/loadup.el
index 3d21be3611e..a3234e1d265 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -427,12 +427,6 @@ lost after dumping")))
(message "Pure-hashed: %d strings, %d vectors, %d conses, %d bytecodes, %d others"
strings vectors conses bytecodes others)))
-;; Prevent build-time PATH getting stored in the binary.
-;; Mainly cosmetic, but helpful for Guix. (Bug#20330)
-;; Do this here, rather than earlier, so that the above code
-;; can invoke Git commands and the like.
-(setq exec-path nil)
-
;; Avoid error if user loads some more libraries now and make sure the
;; hash-consing hash table is GC'd.
(setq purify-flag nil)
@@ -445,6 +439,11 @@ lost after dumping")))
(if (member (car (last command-line-args)) '("dump" "bootstrap"))
(progn
+ ;; Prevent build-time PATH getting stored in the binary.
+ ;; Mainly cosmetic, but helpful for Guix. (Bug#20330)
+ ;; Do this here, rather than earlier, so that the above code
+ ;; can invoke Git commands and the like.
+ (setq exec-path nil)
(message "Dumping under the name emacs")
(condition-case ()
(delete-file "emacs")