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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#17291: closed (24.3.90; Doing "make" in elpa branch uses the
 user's ~/.emacs.d)
Date: Thu, 24 Apr 2014 21:25:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 24 Apr 2014 17:24:56 -0400
with message-id <CAFM41H0Y5w2A36mb+7HPtXNCceqLfJwMU3G-gHA4W30xDGqQew <at> mail.gmail.com>
and subject line Re: bug#17291: 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d
has caused the debbugs.gnu.org bug report #17291,
regarding 24.3.90; Doing "make" in elpa branch uses the user's ~/.emacs.d
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
17291: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17291
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.


[Message part 3 (message/rfc822, inline)]
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.


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.