summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <bremner@debian.org>2021-09-16 08:51:33 -0300
committerDavid Bremner <bremner@debian.org>2021-09-16 10:06:54 -0300
commit600a1133903eb2f7d3b7d954467dcee0b2d0277b (patch)
treeafe88ff9f3dac28d98c30dd973a200cde1857e80
parent6d69b1f31e32aa2ea21e88826a2c39358167ccf0 (diff)
proposed fix for #985459
In order to prevent packages installed by root within emacs from interfering with the installation process, set to package-user-dir to a directory that does not exist. Place that within /usr/lib/dh-elpa to minimize the chance that someone creates it.
-rwxr-xr-xhelper/install1
1 files changed, 1 insertions, 0 deletions
diff --git a/helper/install b/helper/install
index 1a2eb8a..e418c7e 100755
--- a/helper/install
+++ b/helper/install
@@ -51,6 +51,7 @@ echo install/${ELPA_DIR}: byte-compiling for ${FLAVOR}
(cd ${elc_dir}
set +e
${FLAVOR} --quick --batch -l package \
+ --eval "(setq package-user-dir \"/usr/lib/dh-elpa/nonexistent\")" \
--eval "(add-to-list 'package-directory-list \"$src_dir\")" \
-f package-initialize -f batch-byte-compile *.el > Install.log 2>&1
if test $? -ne 0