unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17291: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d
@ 2014-04-18 14:53 Nicolas Richard
  2014-04-18 20:14 ` Barry OReilly
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Richard @ 2014-04-18 14:53 UTC (permalink / raw)
  To: 17291

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.





^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-24 21:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-18 14:53 bug#17291: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d Nicolas Richard
2014-04-18 20:14 ` Barry OReilly
2014-04-19 17:24   ` Stefan Monnier
2014-04-24 21:24     ` Barry OReilly

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).