From: ludo@gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 25425@debbugs.gnu.org
Subject: bug#25425: cannot express search path
Date: Thu, 12 Jan 2017 15:38:04 +0100 [thread overview]
Message-ID: <87bmvc2vjn.fsf@gnu.org> (raw)
In-Reply-To: <87r34879o1.fsf@elephly.net> (Ricardo Wurmus's message of "Thu, 12 Jan 2017 13:19:26 +0100")
Ricardo Wurmus <rekado@elephly.net> skribis:
> It seems that the “search-path-specification” cannot be used to include
> placeholders such as “?” as required by LUA_PATH and LUA_CPATH. The
> search paths in Lua are not directories and they are not actual file
> names.
Indeed.
> I suggest adding an optional “placeholder” field to
> “search-path-specification”, which would hold a string like “?/?.lua” in
> this case.
I think this should work:
(search-path-specification
(variable "LUA_PATH")
(separator ";")
(files '("share/lua/5.3"))
(file-pattern "\\.lua$")
(file-type 'regular))
See libxml2 for an example with similar requirements.
HTH!
Ludo’.
next prev parent reply other threads:[~2017-01-12 14:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 10:57 bug#25425: lua does not set search paths Ricardo Wurmus
2017-01-12 12:19 ` bug#25425: cannot express search path Ricardo Wurmus
2017-01-12 14:38 ` Ludovic Courtès [this message]
2017-01-12 14:46 ` Ricardo Wurmus
2017-01-22 21:56 ` Ludovic Courtès
2017-01-22 22:34 ` Ricardo Wurmus
2021-03-24 22:27 ` zimoun
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bmvc2vjn.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=25425@debbugs.gnu.org \
--cc=rekado@elephly.net \
/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/guix.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).