all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#43475: feature/native-comp; add a site-lisp path to comp-eln-load-path
@ 2020-09-17 17:37 Tom Gillespie
  2020-09-18 19:09 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Gillespie @ 2020-09-17 17:37 UTC (permalink / raw)
  To: 43475, akrl; +Cc: ulm

Hi Andrea,
    Sorry for the delay getting this submitted. Here is a summary of the
discussion about how to handle the site-lisp equivalent for eln files. Best!
Tom

Use case. We need a default convention for where eln files compile from
files in /usr/share/emacs/site-lisp can be installed by a package manager.
For the record, https://github.com/gentoo/gentoo/pull/16962 was the start
of these discussions and the following devel thread is also relevant
https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg01036.html.

My suggestion to use /usr/share was incorrect as Ulrich points out since
/usr/share should never contain arch specific files. Thus, ${libdir}
is the right base.

Suggestions from the previous discussion are /usr/lib{,64}/emacs/site-eln and
/usr/lib{,64}/emacs/site-lisp/eln.

If we want to mirror the way native-lisp is used for the system files
then ${libdir}/emacs/site-lisp and ${libdir}/emacs/site-lisp/native-lisp
are two other options.

I'm not sure the intervening native-lisp folder is necessary,
especially given that
there is the additional folder that is present for each version, and
since the fact
that we are in ${libdir}/emacs automatically suggests that we are dealing with
native arch specific files. However, I suppose that there might be some future
case where something other than the native-lisp files would be included in
${libdir}/emacs, so separating the eln files in their own folder would
help. I have
no idea how likely that happening in the future is though.





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

* bug#43475: feature/native-comp; add a site-lisp path to comp-eln-load-path
  2020-09-17 17:37 bug#43475: feature/native-comp; add a site-lisp path to comp-eln-load-path Tom Gillespie
@ 2020-09-18 19:09 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-09-19 10:12   ` Ulrich Mueller
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-09-18 19:09 UTC (permalink / raw)
  To: Tom Gillespie; +Cc: 43475, ulm

Hi Tom,

thanks for raising this.

Tom Gillespie <tgbugs@gmail.com> writes:

> Hi Andrea,
>     Sorry for the delay getting this submitted. Here is a summary of the
> discussion about how to handle the site-lisp equivalent for eln files. Best!
> Tom
>
> Use case. We need a default convention for where eln files compile from
> files in /usr/share/emacs/site-lisp can be installed by a package manager.
> For the record, https://github.com/gentoo/gentoo/pull/16962 was the start
> of these discussions and the following devel thread is also relevant
> https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg01036.html.
>
> My suggestion to use /usr/share was incorrect as Ulrich points out since
> /usr/share should never contain arch specific files. Thus, ${libdir}
> is the right base.
>
> Suggestions from the previous discussion are /usr/lib{,64}/emacs/site-eln and
> /usr/lib{,64}/emacs/site-lisp/eln.
>
> If we want to mirror the way native-lisp is used for the system files
> then ${libdir}/emacs/site-lisp and ${libdir}/emacs/site-lisp/native-lisp
> are two other options.

I think ${libdir}/emacs/site-lisp/native-lisp would be probably more
future proof but I've no strong preference.

Ulrich what would be your suggestion for this?

Thanks

  Andrea





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

* bug#43475: feature/native-comp; add a site-lisp path to comp-eln-load-path
  2020-09-18 19:09 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2020-09-19 10:12   ` Ulrich Mueller
  2023-06-05  8:54     ` Andrea Corallo
  0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Mueller @ 2020-09-19 10:12 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: tgbugs, 43475

>>>>> On Fri, 18 Sep 2020, Andrea Corallo wrote:

> Tom Gillespie <tgbugs@gmail.com> writes:

>> Suggestions from the previous discussion are
>> /usr/lib{,64}/emacs/site-eln and /usr/lib{,64}/emacs/site-lisp/eln.
>> 
>> If we want to mirror the way native-lisp is used for the system files
>> then ${libdir}/emacs/site-lisp and ${libdir}/emacs/site-lisp/native-lisp
>> are two other options.

> I think ${libdir}/emacs/site-lisp/native-lisp would be probably more
> future proof but I've no strong preference.

> Ulrich what would be your suggestion for this?

I'd prefer the shorter path. I believe it's very unlikely that there
could be other files in future that would be both lisp and architecture
dependent, i.e. that would be installed in ${libdir}/emacs/site-lisp/
as well. In other words, the additional subdirectory level would be
totally redundant.

So, my suggestion would be either ${libdir}/emacs/site-lisp/ or
${libdir}/emacs/site-eln/ with a slight preference for the second.

(Note that Gentoo would create another subdirectory when installing an
add-on elisp package, so the path would be (for example)
${libdir}/emacs/site-eln/${package_name}/.)





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

* bug#43475: feature/native-comp; add a site-lisp path to comp-eln-load-path
  2020-09-19 10:12   ` Ulrich Mueller
@ 2023-06-05  8:54     ` Andrea Corallo
  0 siblings, 0 replies; 4+ messages in thread
From: Andrea Corallo @ 2023-06-05  8:54 UTC (permalink / raw)
  To: Ulrich Mueller; +Cc: tgbugs, 43475-done, Andrea Corallo

Ulrich Mueller <ulm@gentoo.org> writes:

>>>>>> On Fri, 18 Sep 2020, Andrea Corallo wrote:
>
>> Tom Gillespie <tgbugs@gmail.com> writes:
>
>>> Suggestions from the previous discussion are
>>> /usr/lib{,64}/emacs/site-eln and /usr/lib{,64}/emacs/site-lisp/eln.
>>> 
>>> If we want to mirror the way native-lisp is used for the system files
>>> then ${libdir}/emacs/site-lisp and ${libdir}/emacs/site-lisp/native-lisp
>>> are two other options.
>
>> I think ${libdir}/emacs/site-lisp/native-lisp would be probably more
>> future proof but I've no strong preference.
>
>> Ulrich what would be your suggestion for this?
>
> I'd prefer the shorter path. I believe it's very unlikely that there
> could be other files in future that would be both lisp and architecture
> dependent, i.e. that would be installed in ${libdir}/emacs/site-lisp/
> as well. In other words, the additional subdirectory level would be
> totally redundant.
>
> So, my suggestion would be either ${libdir}/emacs/site-lisp/ or
> ${libdir}/emacs/site-eln/ with a slight preference for the second.
>
> (Note that Gentoo would create another subdirectory when installing an
> add-on elisp package, so the path would be (for example)
> ${libdir}/emacs/site-eln/${package_name}/.)

Closing this very old bug still related to feature/native-comp as I
think ATM the interface we provide satisfies distro needs.  Happy to
reopen if more work is needed in this area.

Best Regards

  Andrea





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

end of thread, other threads:[~2023-06-05  8:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 17:37 bug#43475: feature/native-comp; add a site-lisp path to comp-eln-load-path Tom Gillespie
2020-09-18 19:09 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-09-19 10:12   ` Ulrich Mueller
2023-06-05  8:54     ` Andrea Corallo

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.