1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/applications/editors/emacs/clean-env.patch

16 lines
487 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
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -535,7 +535,7 @@ ifeq ($(CANNOT_DUMP),yes)
ln -f temacs$(EXEEXT) $@
else
2019-04-13 00:00:03 +01:00
unset EMACS_HEAP_EXEC; \
2018-05-28 16:35:20 +01:00
- LC_ALL=C $(RUN_TEMACS) -batch $(BUILD_DETAILS) -l loadup dump
+ env -i LC_ALL=C $(RUN_TEMACS) -batch $(BUILD_DETAILS) -l loadup dump
ifneq ($(PAXCTL_dumped),)
$(PAXCTL_dumped) $@
endif