Subject: bug#42909: closed (Re: bug#42909: feature/native-comp; comp.el: Pass comp-eln-load-path to child)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 18 Aug 2020 09:45:02 +0000

Your bug report

#42909: feature/native-comp; comp.el: Pass comp-eln-load-path to child

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
42909: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42909
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#42909: feature/native-comp; comp.el: Pass comp-eln-load-path to child
From: Andrea Corallo <[email-masked]>
To: Andrew Whatson <[email-masked]>
Cc: [email-masked]
Date: Tue, 18 Aug 2020 09:44:20 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Andrew Whatson <[email-masked]> writes:

> Hi Andrea,
>
> Yes, I've already done copyright assignment to the FSF for Emacs.
>
> Cheers

Great, I've added a ChangeLog and committed fc9b68636b at your name.

Closing it.

Thanks!

  Andrea

-- 
[email-masked]

Subject: feature/native-comp; comp.el: Pass comp-eln-load-path to child
From: Andrew Whatson <[email-masked]>
To: [email-masked]
Cc: Andrew Whatson <[email-masked]>
Date: Tue, 18 Aug 2020 12:19:21 +1000
List-Id: <debbugs-submit.debbugs.gnu.org>

The `comp-eln-load-path' must be passed to the child to ensure that .eln
files are written to the correct location.

Without this, when a custom `comp-eln-load-path' is used, Emacs will
crash with "Native elisp load failed: file does not exist".

---
 lisp/emacs-lisp/comp.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 85b5562f28..3176351b37 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -2580,6 +2580,7 @@ comp-run-async-workers
                             (setf comp-speed ,comp-speed
                                   comp-debug ,comp-debug
                                   comp-verbose ,comp-verbose
+                                  comp-eln-load-path ',comp-eln-load-path
                                   load-path ',load-path)
                             ,comp-async-env-modifier-form
                             (message "Compiling %s..." ,source-file)
-- 
2.28.0