nixpkgs/pkgs/applications/editors/emacs/clean-env.patch

17 lines
648 B
Diff
Raw Normal View History

Dump temacs in an empty environment to prevent -dev paths from ending
up in the dumped image.
2019-04-13 00:00:03 +01:00
diff --git a/src/Makefile.in b/src/Makefile.in
2020-08-11 12:41:31 +01:00
index fd05a45df5..13f529c253 100644
2019-04-13 00:00:03 +01:00
--- a/src/Makefile.in
+++ b/src/Makefile.in
2020-08-11 12:41:31 +01:00
@@ -570,7 +570,7 @@ emacs$(EXEEXT): temacs$(EXEEXT) \
lisp.mk $(etc)/DOC $(lisp) \
$(lispsource)/international/charprop.el ${charsets}
ifeq ($(DUMPING),unexec)
- LC_ALL=C $(RUN_TEMACS) -batch $(BUILD_DETAILS) -l loadup --temacs=dump
+ env -i LC_ALL=C $(RUN_TEMACS) -batch $(BUILD_DETAILS) -l loadup --temacs=dump
ifneq ($(PAXCTL_dumped),)
2020-08-11 12:41:31 +01:00
$(PAXCTL_dumped) emacs$(EXEEXT)
endif