unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Zhu Zihao <all_but_last@163.com>
To: emacs-devel@gnu.org
Subject: Dedicated search path variable for architecture-dependant loadable file
Date: Fri, 15 Jan 2021 19:00:43 +0800	[thread overview]
Message-ID: <86h7niwjl0.fsf@163.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]

Hi, Emacs hackers!

Recently I'm working with a Emacs project that contains a dynamic module
written in Rust.

In order to use "require" to load the dynamic module in Lisp file. I
have to ensure the compiled library in the "load-path" variable. Usually
it was placed under the same directory of other Lisp files.

It's OK for me. But it's not an idiomatic way in distribution packaging.
For distrbution packaged Elisp packages, Lisp files usually placed at
<prefix>/share/emacs/site-lisp. In FHS spec
(https://www.pathname.com/fhs/pub/fhs-2.3.html), <prefix>/share should
only contains architecture-independant files, and obviously dynamic
library is not the case. They should be placed under <prefix>/lib.

My suggestion is add a new `native-load-path` Lisp variable and
`EMACSNATIVELOADPATH` environment variable to enable a dedicated search
path for native files.

Looking for your comments :)
-- 
Retrieve my PGP public key:

  gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F

Zihao

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 255 bytes --]

             reply	other threads:[~2021-01-15 11:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-15 11:00 Zhu Zihao [this message]
2021-01-15 11:34 ` Dedicated search path variable for architecture-dependant loadable file Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h7niwjl0.fsf@163.com \
    --to=all_but_last@163.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).