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

* bug#17291: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Barry OReilly @ 2014-04-18 20:14 UTC (permalink / raw)
  To: theonewiththeevillook, 17291

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

> EMACS -f batch-byte-compile packages/ack/ack.el

> The reason is that the actual command line (which is unfortunately not
> shown on the screen)

I voiced a similar concern before, but Stefan didn't want to change
the output. Showing some but not all flags and arguments gives the
false impression of showing the precise Emacs invocation. I think it
ought to show the full invocation.

[-- Attachment #2: Type: text/html, Size: 456 bytes --]

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

* bug#17291: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d
  2014-04-18 20:14 ` Barry OReilly
@ 2014-04-19 17:24   ` Stefan Monnier
  2014-04-24 21:24     ` Barry OReilly
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2014-04-19 17:24 UTC (permalink / raw)
  To: Barry OReilly; +Cc: theonewiththeevillook, 17291

>> EMACS -f batch-byte-compile packages/ack/ack.el
>> The reason is that the actual command line (which is unfortunately not
>> shown on the screen)
> I voiced a similar concern before, but Stefan didn't want to change
> the output. Showing some but not all flags and arguments gives the
> false impression of showing the precise Emacs invocation. I think it
> ought to show the full invocation.

I'm indeed opposed to showing the whole command because it's too long,
making the output even harder to read (in the "normal" case where
you're looking for byte-compiler errors and warnings).

But it could be improved in 2 ways:
- change the current output so it give less the illusion of being
  a real command.
- provide some option to show the real command.

As for Nicolas's suggestion to "disable" ~/.emacs.d/elpa, I think it
makes sense, since we already use --batch which disables ~/.emacs.
So feel free to install his patch.


        Stefan





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

* bug#17291: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d
  2014-04-19 17:24   ` Stefan Monnier
@ 2014-04-24 21:24     ` Barry OReilly
  0 siblings, 0 replies; 4+ messages in thread
From: Barry OReilly @ 2014-04-24 21:24 UTC (permalink / raw)
  Cc: theonewiththeevillook, 17291-done

Applied Nicolas's patch, changed echo messages.





^ permalink raw reply	[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).