spack/etc/spack/defaults
Tom Scogland 7f1659786b
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>
2022-05-10 06:54:38 +02:00
..
cray defaults/cray: use modules.yaml from defaults/linux (#23932) 2021-05-26 20:16:13 +00:00
darwin Add fuse virtual dependency, new macfuse package (#23904) 2021-05-27 23:21:11 +02:00
linux apply default linux prefix inspections to all module sets (#24151) 2021-06-04 21:37:20 -06:00
windows Expand external find for Windows (#27588) 2022-03-17 09:01:01 -07:00
bootstrap.yaml Add support for Python 3.10 (#29581) 2022-04-13 14:32:23 -07:00
concretizer.yaml ASP-based solver: allow configuring target selection (#29835) 2022-04-25 17:19:51 -07:00
config.yaml config: add a new concretizer config section 2022-02-16 10:17:18 -08:00
mirrors.yaml Use AWS CloudFront for source mirror (#23978) 2021-05-28 00:18:30 -07:00
modules.yaml Deprecate top-level module config (#28659) 2022-04-08 19:00:35 +00:00
packages.yaml Add a Lua build-system (#28854) 2022-05-10 06:54:38 +02:00
repos.yaml Add "default" configuration scope. 2016-07-19 17:10:17 -07:00