* bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH
[not found] <355245563.6748106.1638289266076.ref@mail.yahoo.com>
@ 2021-11-30 16:21 ` Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-30 16:31 ` Andrea Corallo
2021-12-01 1:34 ` Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 2 replies; 6+ messages in thread
From: Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-11-30 16:21 UTC (permalink / raw)
To: 52199
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
Hi,
It seems native-comp-async always store the *.eln files in to the ~/.emacs.d/eln-cache/.
We can switch the EMACSNATIVELOADPATH values to the head of native-comp-eln-load-path,
then the *.eln will be stored in EMACSNATIVELOADPATH.
This patch try to enable custom the eln cache directory.
$ export EMACSNATIVELOADPATH=/tmp/eln-cache
$ emacs
B.R.
Lin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-startup.el-normal-top-level.patch --]
[-- Type: text/x-patch, Size: 1209 bytes --]
From 13a71a3eed3412e78297f8f9deb34a40bb355c95 Mon Sep 17 00:00:00 2001
From: Lin Sun <lin.sun@zoom.us>
Date: Tue, 30 Nov 2021 16:01:18 +0000
Subject: [PATCH] * lisp/startup.el (normal-top-level):
Custom native-comp eln cache with EMACSNATIVELOADPATH.
---
lisp/startup.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/startup.el b/lisp/startup.el
index 505d7b8..999bab0 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -539,13 +539,13 @@ normal-top-level
(when (featurep 'native-compile)
;; Form `native-comp-eln-load-path'.
+ (push (expand-file-name "eln-cache/" user-emacs-directory)
+ native-comp-eln-load-path)
(let ((path-env (getenv "EMACSNATIVELOADPATH")))
(when path-env
(dolist (path (split-string path-env path-separator))
(unless (string= "" path)
(push path native-comp-eln-load-path)))))
- (push (expand-file-name "eln-cache/" user-emacs-directory)
- native-comp-eln-load-path)
;; When $HOME is set to '/nonexistent' means we are running the
;; testsuite, add a temporary folder in front to produce there
;; new compilations.
--
2.7.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH
2021-11-30 16:21 ` bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-11-30 16:31 ` Andrea Corallo
2021-11-30 17:22 ` Eli Zaretskii
2021-12-01 1:34 ` Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 1 reply; 6+ messages in thread
From: Andrea Corallo @ 2021-11-30 16:31 UTC (permalink / raw)
To: 52199; +Cc: Sun Lin
Sun Lin via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:
> Hi,
Hi
> It seems native-comp-async always store the *.eln files in to the ~/.emacs.d/eln-cache/.
More preciselly under: (expand-file-name "eln-cache/" user-emacs-directory)
> We can switch the EMACSNATIVELOADPATH values to the head of native-comp-eln-load-path,
> then the *.eln will be stored in EMACSNATIVELOADPATH.
Could you elaborate why would you want to do this?
BR
Andrea
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH
2021-11-30 16:31 ` Andrea Corallo
@ 2021-11-30 17:22 ` Eli Zaretskii
2021-12-15 21:09 ` Stefan Kangas
0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2021-11-30 17:22 UTC (permalink / raw)
To: Andrea Corallo; +Cc: sunlin7, 52199
> From: Andrea Corallo <akrl@sdf.org>
> Date: Tue, 30 Nov 2021 16:31:55 +0000
> Cc: Sun Lin <sunlin7@yahoo.com>
>
> > It seems native-comp-async always store the *.eln files in to the ~/.emacs.d/eln-cache/.
>
> More preciselly under: (expand-file-name "eln-cache/" user-emacs-directory)
>
> > We can switch the EMACSNATIVELOADPATH values to the head of native-comp-eln-load-path,
> > then the *.eln will be stored in EMACSNATIVELOADPATH.
>
> Could you elaborate why would you want to do this?
Yes, please. because I'm not sure we want to support that. In
general, EMACSNATIVELOADPATH is for "system" *.eln files, and only the
eln-cache directory is where the user-compiled *.eln files should
live.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH
2021-11-30 16:21 ` bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-30 16:31 ` Andrea Corallo
@ 2021-12-01 1:34 ` Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-01 3:35 ` Eli Zaretskii
1 sibling, 1 reply; 6+ messages in thread
From: Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-01 1:34 UTC (permalink / raw)
To: 52199@debbugs.gnu.org, Eli Zaretskii, akrl@sdf.org
> From: Andrea Corallo <akrl <at> sdf.org>
> Could you elaborate why would you want to do this?
I want custom the eln-cache path to be lib/emacs/28.0.60/native-lisp/.
>general, EMACSNATIVELOADPATH is for "system" *.eln files, and only the
eln-cache directory is where the user-compiled *.eln files should
Got your point, and I can workaround the request in my scenario.
Please help close this issue.
Thank you all.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH
2021-12-01 1:34 ` Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-01 3:35 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2021-12-01 3:35 UTC (permalink / raw)
To: Sun Lin; +Cc: 52199, akrl
> Date: Wed, 1 Dec 2021 01:34:58 +0000 (UTC)
> From: Sun Lin <sunlin7@yahoo.com>
>
> > From: Andrea Corallo <akrl <at> sdf.org>
>
> > Could you elaborate why would you want to do this?
>
> I want custom the eln-cache path to be lib/emacs/28.0.60/native-lisp/.
Why is that?
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH
2021-11-30 17:22 ` Eli Zaretskii
@ 2021-12-15 21:09 ` Stefan Kangas
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Kangas @ 2021-12-15 21:09 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 52199-done, sunlin7, Andrea Corallo
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Andrea Corallo <akrl@sdf.org>
>> Date: Tue, 30 Nov 2021 16:31:55 +0000
>> Cc: Sun Lin <sunlin7@yahoo.com>
>>
>> > It seems native-comp-async always store the *.eln files in to the ~/.emacs.d/eln-cache/.
>>
>> More preciselly under: (expand-file-name "eln-cache/" user-emacs-directory)
>>
>> > We can switch the EMACSNATIVELOADPATH values to the head of native-comp-eln-load-path,
>> > then the *.eln will be stored in EMACSNATIVELOADPATH.
>>
>> Could you elaborate why would you want to do this?
>
> Yes, please. because I'm not sure we want to support that. In
> general, EMACSNATIVELOADPATH is for "system" *.eln files, and only the
> eln-cache directory is where the user-compiled *.eln files should
> live.
More information was requested, but none was given within 2 weeks, so
I'm closing this bug. If this is still an issue, please reply to this
email (use "Reply to all" in your email client) and we can reopen the
bug report.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-12-15 21:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <355245563.6748106.1638289266076.ref@mail.yahoo.com>
2021-11-30 16:21 ` bug#52199: [PATH] 28.0.60; custom native-comp eln cache with EMACSNATIVELOADPATH Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-30 16:31 ` Andrea Corallo
2021-11-30 17:22 ` Eli Zaretskii
2021-12-15 21:09 ` Stefan Kangas
2021-12-01 1:34 ` Sun Lin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-01 3:35 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.