GNU bug report logs - #17291
24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d

Previous Next

Package: emacs;

Reported by: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>

Date: Fri, 18 Apr 2014 14:54:02 UTC

Severity: normal

Found in version 24.3.90

Done: Barry OReilly <gundaetiapo <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17291 in the body.
You can then email your comments to 17291 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17291; Package emacs. (Fri, 18 Apr 2014 14:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicolas Richard <theonewiththeevillook <at> yahoo.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 18 Apr 2014 14:54:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d
Date: Fri, 18 Apr 2014 16:53:02 +0200
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17291; Package emacs. (Fri, 18 Apr 2014 20:15:03 GMT) Full text and rfc822 format available.

Message #8 received at 17291 <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
To: theonewiththeevillook <at> yahoo.fr, 17291 <at> debbugs.gnu.org
Subject: bug#17291: 24.3.90;
 Doing "make" in elpa branch uses the user's ~/.emacs.d
Date: Fri, 18 Apr 2014 16:14:48 -0400
[Message part 1 (text/plain, inline)]
> 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.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17291; Package emacs. (Wed, 23 Apr 2014 03:01:02 GMT) Full text and rfc822 format available.

Message #11 received at 17291 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: theonewiththeevillook <at> yahoo.fr, 17291 <at> debbugs.gnu.org
Subject: Re: bug#17291: 24.3.90;
 Doing "make" in elpa branch uses the user's ~/.emacs.d
Date: Sat, 19 Apr 2014 13:24:00 -0400
>> 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




Reply sent to Barry OReilly <gundaetiapo <at> gmail.com>:
You have taken responsibility. (Thu, 24 Apr 2014 21:25:01 GMT) Full text and rfc822 format available.

Notification sent to Nicolas Richard <theonewiththeevillook <at> yahoo.fr>:
bug acknowledged by developer. (Thu, 24 Apr 2014 21:25:02 GMT) Full text and rfc822 format available.

Message #16 received at 17291-done <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: theonewiththeevillook <at> yahoo.fr, 17291-done <at> debbugs.gnu.org
Subject: Re: bug#17291: 24.3.90;
 Doing "make" in elpa branch uses the user's ~/.emacs.d
Date: Thu, 24 Apr 2014 17:24:56 -0400
Applied Nicolas's patch, changed echo messages.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 May 2014 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 29 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.