unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
@ 2014-04-18 15:04 Nicolas Richard
  2014-04-19 15:11 ` Stephen Leake
  0 siblings, 1 reply; 11+ messages in thread
From: Nicolas Richard @ 2014-04-18 15:04 UTC (permalink / raw)
  To: 17292; +Cc: Stephen Leake

Hi,

I cloned the elpa git repo, ran "make externals" and "make", then got:

In toplevel form:
packages/ada-mode/ada-build.el:41:1:Error: Cannot open load file: aucun fichier ou dossier de ce type, wisi-compat-24.2
make[1]: *** [packages/ada-mode/ada-build.elc] Erreur 1
make[1] : on quitte le répertoire « /home/youngfrog/sources/elpa »
make: *** [all-in-place] Erreur 2


I applied the following patch, but probably this is not the right way
since the workaround clearly worked around something. I'm CC-ing Stephen
Leake who committed that code.

diff --git a/packages/wisi/wisi.el b/packages/wisi/wisi.el
index 62302b7..33b71e9 100755
--- a/packages/wisi/wisi.el
+++ b/packages/wisi/wisi.el
@@ -145,11 +145,9 @@
 (require 'cl-lib)
 (require 'wisi-parse)
 
-;; WORKAROUND: for some reason, this condition doesn't work in batch mode!
-;; (when (and (= emacs-major-version 24)
-;; 	   (= emacs-minor-version 2))
-  (require 'wisi-compat-24.2)
-;;)
+(when (and (= emacs-major-version 24)
+	   (= emacs-minor-version 2))
+  (require 'wisi-compat-24.2))
 
 ;;;; lexer
 

-- 
Nico.





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-18 15:04 bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el Nicolas Richard
@ 2014-04-19 15:11 ` Stephen Leake
  2014-04-19 19:41   ` Nicolas Richard
                     ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Stephen Leake @ 2014-04-19 15:11 UTC (permalink / raw)
  To: 17292; +Cc: Nicolas Richard

Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:

> I cloned the elpa git repo, ran "make externals" and "make", then got:

I get:

packages/ada-mode/ada-build.el:41:1:Error: Cannot open load file: wisi

> In toplevel form:
> packages/ada-mode/ada-build.el:41:1:Error: Cannot open load file:
> aucun fichier ou dossier de ce type, wisi-compat-24.2
> make[1]: *** [packages/ada-mode/ada-build.elc] Erreur 1
> make[1] : on quitte le répertoire « /home/youngfrog/sources/elpa »
> make: *** [all-in-place] Erreur 2

Apparently this make process does not take into account inter-package
dependencies; ada-mode depends on wisi, and both were upgraded this
morning.

Do you have an older version of 'wisi' installed in ~/.emacs.d/elpa/?
That would explain your symptom.

Is there any way to indicate to the make process that it must build wisi
first, and add it to the load path when building ada-mode?

-- 
-- Stephe





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-19 15:11 ` Stephen Leake
@ 2014-04-19 19:41   ` Nicolas Richard
  2014-04-19 20:13   ` Andreas Schwab
  2014-04-20  2:54   ` Dmitry Gutov
  2 siblings, 0 replies; 11+ messages in thread
From: Nicolas Richard @ 2014-04-19 19:41 UTC (permalink / raw)
  To: 17292-done; +Cc: Nicolas Richard, Stephen Leake

Stephen Leake <stephen_leake@stephe-leake.org> writes:
> Nicolas Richard <theonewiththeevillook@yahoo.fr> writes:
>
>> I cloned the elpa git repo, ran "make externals" and "make", then got:
>
> I get:
>
> packages/ada-mode/ada-build.el:41:1:Error: Cannot open load file: wisi

Perhaps I have mixed the error messages from my different tries ? Not
sure.

Anyway, the error I reported is because wisi-compat did not exist in my
tree (sorry I did not state that clearly). My HEAD was at 0c8e3a1. I
updated my tree and the file now exists so I guess the error has
disappeared. I just tried : indeed, I don't have the error anymore (my
HEAD is 1905244ada36189d940fdf7e40d3498ae8917fed). I'm thus closing this
bug.

>> In toplevel form:
>> packages/ada-mode/ada-build.el:41:1:Error: Cannot open load file:
>> aucun fichier ou dossier de ce type, wisi-compat-24.2
>> make[1]: *** [packages/ada-mode/ada-build.elc] Erreur 1
>> make[1] : on quitte le répertoire « /home/youngfrog/sources/elpa »
>> make: *** [all-in-place] Erreur 2
>
> Apparently this make process does not take into account inter-package
> dependencies; ada-mode depends on wisi, and both were upgraded this
> morning.

The upgrade fixed the problem for me. Thanks.

> Do you have an older version of 'wisi' installed in ~/.emacs.d/elpa/?
> That would explain your symptom.

I don't, and I have a local patch so that ~/.emacs.d/elpa is not used
(see bug#17291) so it should not have interfered.

> Is there any way to indicate to the make process that it must build wisi
> first, and add it to the load path when building ada-mode?

IIUC, it does not necessarily byte-compile wisi first, but since the
build process invokes (package-initialize), wisi should still be
available (uncompiled) at the moment ada-mode is byte-compiled.

-- 
Nico.





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-19 15:11 ` Stephen Leake
  2014-04-19 19:41   ` Nicolas Richard
@ 2014-04-19 20:13   ` Andreas Schwab
  2014-04-20  2:50     ` Stefan Monnier
  2014-04-20  2:54   ` Dmitry Gutov
  2 siblings, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2014-04-19 20:13 UTC (permalink / raw)
  To: Stephen Leake; +Cc: Nicolas Richard, 17292

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> Is there any way to indicate to the make process that it must build wisi
> first, and add it to the load path when building ada-mode?

Please try this patch:

diff --git a/GNUmakefile b/GNUmakefile
index 2b07767..d47cb43 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -133,7 +133,8 @@ elcs := $(call SET-diff, $(naive_elcs), $(patsubst %.el, %.elc, $(nbc_els)))
 	@$(EMACS) \
 	    --eval "(setq package-directory-list '(\"$(abspath packages)\"))" \
 	    --eval '(package-initialize)' \
-	    -L $(dir $@) -f batch-byte-compile $<
+	    $(patsubst %, -L %, $(filter-out %/cl-lib, $(pkgs))) \
+	    -f batch-byte-compile $<
 
 .PHONY: elcs
 elcs: $(elcs)

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-19 20:13   ` Andreas Schwab
@ 2014-04-20  2:50     ` Stefan Monnier
  2014-04-20  6:29       ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2014-04-20  2:50 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Nicolas Richard, 17292, Stephen Leake

> -	    -L $(dir $@) -f batch-byte-compile $<
> +	    $(patsubst %, -L %, $(filter-out %/cl-lib, $(pkgs))) \
> +	    -f batch-byte-compile $<
 
I'd rather not go there.


        Stefan





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-19 15:11 ` Stephen Leake
  2014-04-19 19:41   ` Nicolas Richard
  2014-04-19 20:13   ` Andreas Schwab
@ 2014-04-20  2:54   ` Dmitry Gutov
  2014-04-20 12:12     ` Stefan Monnier
  2 siblings, 1 reply; 11+ messages in thread
From: Dmitry Gutov @ 2014-04-20  2:54 UTC (permalink / raw)
  To: Stephen Leake; +Cc: Nicolas Richard, 17292

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> Is there any way to indicate to the make process that it must build wisi
> first, and add it to the load path when building ada-mode?

Is there a particular reason the build process byte-compiles packages?
They will be compiled upon installation anyway, right?





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-20  2:50     ` Stefan Monnier
@ 2014-04-20  6:29       ` Eli Zaretskii
  2014-04-20 12:10         ` Stefan Monnier
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2014-04-20  6:29 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: theonewiththeevillook, schwab, 17292, stephen_leake

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Date: Sat, 19 Apr 2014 22:50:10 -0400
> Cc: Nicolas Richard <theonewiththeevillook@yahoo.fr>, 17292@debbugs.gnu.org,
> 	Stephen Leake <stephen_leake@stephe-leake.org>
> 
> > -	    -L $(dir $@) -f batch-byte-compile $<
> > +	    $(patsubst %, -L %, $(filter-out %/cl-lib, $(pkgs))) \
> > +	    -f batch-byte-compile $<
>  
> I'd rather not go there.

Why?  Once you require GNU Make, what's the reason not to use its
facilities?





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-20  6:29       ` Eli Zaretskii
@ 2014-04-20 12:10         ` Stefan Monnier
  2014-04-23  8:54           ` Andreas Schwab
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2014-04-20 12:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: theonewiththeevillook, schwab, 17292, stephen_leake

>> > -	    -L $(dir $@) -f batch-byte-compile $<
>> > +	    $(patsubst %, -L %, $(filter-out %/cl-lib, $(pkgs))) \
>> > +	    -f batch-byte-compile $<
>> I'd rather not go there.
> Why?  Once you require GNU Make, what's the reason not to use its
> facilities?

That's not the issue.  The issue is to redo by hand what
package-initialize already does for us.


        Stefan





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-20  2:54   ` Dmitry Gutov
@ 2014-04-20 12:12     ` Stefan Monnier
  0 siblings, 0 replies; 11+ messages in thread
From: Stefan Monnier @ 2014-04-20 12:12 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: Nicolas Richard, 17292, Stephen Leake

> Is there a particular reason the build process byte-compiles packages?
> They will be compiled upon installation anyway, right?

In this scenario, there will be no further "installation" step.


        Stefan





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-20 12:10         ` Stefan Monnier
@ 2014-04-23  8:54           ` Andreas Schwab
  2014-04-23  9:07             ` Nicolas Richard
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2014-04-23  8:54 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: theonewiththeevillook, 17292, stephen_leake

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

> That's not the issue.  The issue is to redo by hand what
> package-initialize already does for us.

If it did this bug wouldn't exist.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el
  2014-04-23  8:54           ` Andreas Schwab
@ 2014-04-23  9:07             ` Nicolas Richard
  0 siblings, 0 replies; 11+ messages in thread
From: Nicolas Richard @ 2014-04-23  9:07 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: theonewiththeevillook, 17292, stephen_leake

Andreas Schwab <schwab@linux-m68k.org> writes:

> Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>
>> That's not the issue.  The issue is to redo by hand what
>> package-initialize already does for us.
>
> If it did this bug wouldn't exist.

The bug I reported was fixed, as in : I don't have a problem anymore
since Stephen Leake updated ada-mode.

OTOH, Stephen reported a problem that he encountered while trying to
reproduce mine. My best guess is that this new problem is related to
#17291 (i.e. "make" in elpa uses the local ~/.emacs.d/elpa) because I
can't reproduce the problem he mentionned.

-- 
Nico.





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

end of thread, other threads:[~2014-04-23  9:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-18 15:04 bug#17292: 24.3.90; ELPA : "make" makes an error compiling ada-build.el Nicolas Richard
2014-04-19 15:11 ` Stephen Leake
2014-04-19 19:41   ` Nicolas Richard
2014-04-19 20:13   ` Andreas Schwab
2014-04-20  2:50     ` Stefan Monnier
2014-04-20  6:29       ` Eli Zaretskii
2014-04-20 12:10         ` Stefan Monnier
2014-04-23  8:54           ` Andreas Schwab
2014-04-23  9:07             ` Nicolas Richard
2014-04-20  2:54   ` Dmitry Gutov
2014-04-20 12:12     ` Stefan Monnier

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).