diff options
author | Tom Scogland <scogland1@llnl.gov> | 2022-05-09 21:54:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 06:54:38 +0200 |
commit | 7f1659786b32dd492b062347c6ca1538a8c71495 (patch) | |
tree | 18cac9fe5d3edd7716791ed4ccd8051bf9bb7498 /LICENSE-MIT | |
parent | b5da0d02bf7fd290a922e029cb9be8f2df8af7dc (diff) | |
download | spack-7f1659786b32dd492b062347c6ca1538a8c71495.tar.gz spack-7f1659786b32dd492b062347c6ca1538a8c71495.tar.bz2 spack-7f1659786b32dd492b062347c6ca1538a8c71495.tar.xz spack-7f1659786b32dd492b062347c6ca1538a8c71495.zip |
Add a Lua build-system (#28854)
Reworking lua to allow easier substitution of the base lua implementation.
Also adding in a maintained version of luajit and re-factoring the entire stack
to use a custom build-system to centralize functionality like environment
variable management and luarocks installation.
The `lua-lang` virtual is now versioned so that a package that requires
Lua 5.1 semantics can get any lua, but one that requires 5.2 will only
get upstream lua.
The luaposix package requires lua-bit32, but only when built with a
lua conforming to version 5.1. This adds the package, and the
dependencies, but exposed a problem with luarocks dependency
detection. Since we're installing each package in its own "tree" and
there's no environment variable to list extra trees, spack now
generates a luarocks config file that lists all the trees of all the
dependencies, and references it by setting `LUAROCKS_CONFIG`
in the build environment of every LuaPackage. This allows luarocks
to find the spack installed dependencies correctly rather than
trying (and failing) to download them.
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Co-authored-by: Tom Scogland <tscogland@llnl.gov>
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'LICENSE-MIT')
0 files changed, 0 insertions, 0 deletions