diff options
| author | Glenn Morris | 2022-01-12 09:37:39 -0800 |
|---|---|---|
| committer | Glenn Morris | 2022-01-12 09:37:39 -0800 |
| commit | 0cbc41322ef626b28e9cd90be970b2f2f5e86cd7 (patch) | |
| tree | 4799fa5c23602d99d19ba841c11b7b78bd25e211 | |
| parent | 745580a36dc284d322a8d266ed39f80af3231d51 (diff) | |
| download | emacs-0cbc41322ef626b28e9cd90be970b2f2f5e86cd7.tar.gz emacs-0cbc41322ef626b28e9cd90be970b2f2f5e86cd7.zip | |
Prefer unexport in Makefiles
* admin/grammars/Makefile.in, leim/Makefile.in:
* lisp/Makefile.in, test/Makefile.in:
Use unexport for EMACSLOADPATH.
| -rw-r--r-- | admin/grammars/Makefile.in | 4 | ||||
| -rw-r--r-- | leim/Makefile.in | 5 | ||||
| -rw-r--r-- | lisp/Makefile.in | 5 | ||||
| -rw-r--r-- | test/Makefile.in | 8 |
4 files changed, 9 insertions, 13 deletions
diff --git a/admin/grammars/Makefile.in b/admin/grammars/Makefile.in index 83ac2ef46ef..6f699430895 100644 --- a/admin/grammars/Makefile.in +++ b/admin/grammars/Makefile.in | |||
| @@ -31,10 +31,10 @@ top_builddir = @top_builddir@ | |||
| 31 | -include ${top_builddir}/src/verbose.mk | 31 | -include ${top_builddir}/src/verbose.mk |
| 32 | 32 | ||
| 33 | # Prevent any settings in the user environment causing problems. | 33 | # Prevent any settings in the user environment causing problems. |
| 34 | unexport EMACSDATA EMACSDOC EMACSPATH | 34 | unexport EMACSDATA EMACSDOC EMACSLOADPATH EMACSPATH |
| 35 | 35 | ||
| 36 | EMACS = ${top_builddir}/src/emacs | 36 | EMACS = ${top_builddir}/src/emacs |
| 37 | emacs = EMACSLOADPATH= "${EMACS}" -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' | 37 | emacs = "${EMACS}" -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' |
| 38 | 38 | ||
| 39 | make_bovine = ${emacs} -l semantic/bovine/grammar -f bovine-batch-make-parser | 39 | make_bovine = ${emacs} -l semantic/bovine/grammar -f bovine-batch-make-parser |
| 40 | make_wisent = ${emacs} -l semantic/wisent/grammar -f wisent-batch-make-parser | 40 | make_wisent = ${emacs} -l semantic/wisent/grammar -f wisent-batch-make-parser |
diff --git a/leim/Makefile.in b/leim/Makefile.in index a574a108454..2a477d868b3 100644 --- a/leim/Makefile.in +++ b/leim/Makefile.in | |||
| @@ -35,15 +35,14 @@ EXEEXT = @EXEEXT@ | |||
| 35 | -include ${top_builddir}/src/verbose.mk | 35 | -include ${top_builddir}/src/verbose.mk |
| 36 | 36 | ||
| 37 | # Prevent any settings in the user environment causing problems. | 37 | # Prevent any settings in the user environment causing problems. |
| 38 | unexport EMACSDATA EMACSDOC EMACSPATH | 38 | unexport EMACSDATA EMACSDOC EMACSLOADPATH EMACSPATH |
| 39 | 39 | ||
| 40 | # Which Emacs to use to convert TIT files to Emacs Lisp files, | 40 | # Which Emacs to use to convert TIT files to Emacs Lisp files, |
| 41 | # and generate the file leim-list.el. | 41 | # and generate the file leim-list.el. |
| 42 | EMACS = ../src/emacs${EXEEXT} | 42 | EMACS = ../src/emacs${EXEEXT} |
| 43 | 43 | ||
| 44 | # How to run Emacs. | 44 | # How to run Emacs. |
| 45 | # Prevent any setting of EMACSLOADPATH in user environment causing problems. | 45 | RUN_EMACS = '$(EMACS)' -batch --no-site-file --no-site-lisp |
| 46 | RUN_EMACS = EMACSLOADPATH= '$(EMACS)' -batch --no-site-file --no-site-lisp | ||
| 47 | 46 | ||
| 48 | MKDIR_P = @MKDIR_P@ | 47 | MKDIR_P = @MKDIR_P@ |
| 49 | 48 | ||
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index d29dec08a5e..3a72034463c 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -101,11 +101,10 @@ MAIN_FIRST = ./emacs-lisp/eieio.el ./emacs-lisp/eieio-base.el \ | |||
| 101 | ./cedet/semantic/db.el ./emacs-lisp/cconv.el | 101 | ./cedet/semantic/db.el ./emacs-lisp/cconv.el |
| 102 | 102 | ||
| 103 | # Prevent any settings in the user environment causing problems. | 103 | # Prevent any settings in the user environment causing problems. |
| 104 | unexport EMACSDATA EMACSDOC EMACSPATH | 104 | unexport EMACSDATA EMACSDOC EMACSLOADPATH EMACSPATH |
| 105 | 105 | ||
| 106 | # The actual Emacs command run in the targets below. | 106 | # The actual Emacs command run in the targets below. |
| 107 | # Prevent any setting of EMACSLOADPATH in user environment causing problems. | 107 | emacs = '$(EMACS)' $(EMACSOPT) |
| 108 | emacs = EMACSLOADPATH= '$(EMACS)' $(EMACSOPT) | ||
| 109 | 108 | ||
| 110 | ## Subdirectories, relative to builddir. | 109 | ## Subdirectories, relative to builddir. |
| 111 | SUBDIRS = $(sort $(shell find ${srcdir} -type d -print)) | 110 | SUBDIRS = $(sort $(shell find ${srcdir} -type d -print)) |
diff --git a/test/Makefile.in b/test/Makefile.in index d6ab7b244d2..9ad994e1101 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -75,7 +75,7 @@ EMACS_EXTRAOPT = | |||
| 75 | EMACSOPT = --no-init-file --no-site-file --no-site-lisp -L "$(SEPCHAR)$(srcdir)" $(elpa_opts) $(EMACS_EXTRAOPT) | 75 | EMACSOPT = --no-init-file --no-site-file --no-site-lisp -L "$(SEPCHAR)$(srcdir)" $(elpa_opts) $(EMACS_EXTRAOPT) |
| 76 | 76 | ||
| 77 | # Prevent any settings in the user environment causing problems. | 77 | # Prevent any settings in the user environment causing problems. |
| 78 | unexport EMACSDATA EMACSDOC EMACSPATH GREP_OPTIONS XDG_CONFIG_HOME | 78 | unexport EMACSDATA EMACSDOC EMACSLOADPATH EMACSPATH GREP_OPTIONS XDG_CONFIG_HOME |
| 79 | 79 | ||
| 80 | # To run tests under a debugger, set this to eg: "gdb --args". | 80 | # To run tests under a debugger, set this to eg: "gdb --args". |
| 81 | GDB = | 81 | GDB = |
| @@ -118,10 +118,8 @@ MODULES_EMACSOPT := | |||
| 118 | endif | 118 | endif |
| 119 | 119 | ||
| 120 | # The actual Emacs command run in the targets below. | 120 | # The actual Emacs command run in the targets below. |
| 121 | # Prevent any setting of EMACSLOADPATH in user environment causing problems, | 121 | # Prevent locales influencing the text of the errors we expect to receive. |
| 122 | # and prevent locals to influence the text of the errors we expect to receive. | 122 | emacs = LANG=C EMACS_TEST_DIRECTORY=$(abspath $(srcdir)) \ |
| 123 | emacs = LANG=C EMACSLOADPATH= \ | ||
| 124 | EMACS_TEST_DIRECTORY=$(abspath $(srcdir)) \ | ||
| 125 | $(GDB) $(TEST_TIMEOUT) "$(EMACS)" $(MODULES_EMACSOPT) $(EMACSOPT) | 123 | $(GDB) $(TEST_TIMEOUT) "$(EMACS)" $(MODULES_EMACSOPT) $(EMACSOPT) |
| 126 | 124 | ||
| 127 | # Set HOME to a nonexistent directory to prevent tests from accessing | 125 | # Set HOME to a nonexistent directory to prevent tests from accessing |