[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17291: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs
From: |
Nicolas Richard |
Subject: |
bug#17291: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d |
Date: |
Fri, 18 Apr 2014 16:53:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (gnu/linux) |
Hi,
I cloned the elpa repo, ran "make externals" and "make".
It showed me warnings like:
EMACS -f batch-byte-compile packages/ack/ack.el
Warning (emacs): Unable to activate package `use-package'.
Required package `bind-key-1.0' is unavailable
(the exact warning is irrelevant, it's a problem in my own installation)
The reason is that the actual command line (which is unfortunately not
shown on the screen) has -f package-initialize which looks for my own
~/.emacs.d. I suggest the following patch to fix the problem:
Modified GNUmakefile
diff --git a/GNUmakefile b/GNUmakefile
index 2b07767..f9deecf 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -131,7 +131,7 @@ elcs := $(call SET-diff, $(naive_elcs), $(patsubst %.el,
%.elc, $(nbc_els)))
%.elc: %.el
@echo 'EMACS -f batch-byte-compile $<'
@$(EMACS) \
- --eval "(setq package-directory-list '(\"$(abspath packages)\"))" \
+ --eval "(setq package-directory-list nil package-user-dir
\"$(abspath packages)\")" \
--eval '(package-initialize)' \
-L $(dir $@) -f batch-byte-compile $<
--
Nico.
- bug#17291: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d,
Nicolas Richard <=