| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/
|
|
|
|
|
|
| |
RaptorJIT is a fork of LuaJIT, where jit.version = 'RaptorJIT 1.0.0'
this fix avoids a failure in find_lua_incdir()
luajitver and prefix .. "/include/luajit-" .. luajitver:match("^(%d+%.%d+)"),
--> attempt to concatenate a nil value
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This reduces the complexity of the interaction between
build-time configuration, run-time auto-detection, and overrides via
CLI flags. The LuaJIT version is now always auto-detected at run-time
based on the Lua interpreter currently configured, based on the values
of configuration options `variables.LUA_BINDIR` and `lua_interpreter`.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The Unix fork-free version relies on non-standard behaviors. It works
on Linux, but it took a while for it to work properly in macOS, and it
turns out that you can't really properly detect a directory in FreeBSD
using io.open() because it can actually open a directory. To avoid filling
in platform-specific tricks in luarocks/fs/unix.lua, which was never the
goal, it's better to move the fork-free operations to Linux and macOS
specific backends, and keep other Unices using the 'test' command.
|
|
|
| |
Fixes #1045.
|
|
|
|
| |
If the rock was packed with luarocks then the time in it is set to zeros
and this is not the case with the unix format can be removed when date given is added to zipwriter_open_new_file_in_zip
|
| |
|
|
|
|
|
|
|
| |
Thanks to @andyli for the report and pointer to the failing CI
build.
Fixes #104
|
|
|
|
|
|
|
|
|
|
| |
Implements suggestion by @FSMaxB:
> Add an additional flag to util.cleanup_path that specifies if the cleanup
> happens from the right or from the left. If append is true, clean up from the
> left, otherwise clean up from the right.
Fixes #763.
|
|
|
|
| |
Also, add some tests.
|
| |
|
| |
|
|
|
|
| |
Fixes #1005.
|
|
|
|
| |
Fixes #1021.
|
|
|
|
| |
Fixes #1022
|
|
|
|
|
|
|
|
|
|
| |
Make it more robust when detecting the Lua version when working inside a
project, and hopefully make the detection logic easier to track in the
code. Reorganized code so that the `detected` table becomes internal
to the `init_config` operation and only the regular `cfg` global table
is used after that.
Includes regression tests.
|
| |
|
|
|
|
| |
Includes a regression test.
|
|\ |
|
| | |
|
|/
|
|
|
|
| |
this avoids rpmbuild/check-rpaths erroring out like
ERROR 0010: file '/...../mysql.so' contains an empty rpath in [/usr/lib64/mysql:]
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #980.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prevent fs.move from failing with
```
File already exists: /usr/local/share/lua/5.1/luasec_0_6_2-ssl.lua
```
when overwriting a stale file. This should have already been handled,
but in case the manifest is out of sync for some reason this should
make the behavior more smooth.
|
|
|
|
| |
This should fix the Windows build.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Check that Lua settings are usable and regenarate ./lua wrapper when safe.
Should render --reset less necessary.
|
|
|
|
| |
Makes failure to search for manifest-5.4 cache for a full day.
|
| |
|
|
|
|
| |
refactor into a separate function
|
|
|
|
| |
Do not confuse the project ./lua wrapper with a valid interpreter.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Includes special config keys `lua_dir` and `lua_version`,
which are essentially persistent versions of --lua-dir
and --lua-version:
* `lua_dir` writes a number of LUA_* variables and
cfg.lua_interpreter in the current scope's config file.
* `lua_version` writes default-lua-version.lua to the
given scope.
Also deprecates the "flag" versions for various getters:
* `--lua-incdir`: use `luarocks config variables.LUA_INCDIR`
* `--lua-libdir`: use `luarocks config variables.LUA_LIBDIR`
* `--lua-ver`: use `luarocks config lua_version`
* `--system-config`: use `luarocks config config_files.system.file`
* `--user-config`: use `luarocks config config_files.user.file`
* `--rock-trees`: use `luarocks config rocks_trees`
|
| |
|
|
|
|
|
| |
When running as root, simply switch to use /var/cache/luarocks
as a cache.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Introduce cache_timeout config option (default 10 seconds)
* Do not re-check for the last-modified time of a file to
be downloaded for cfg.cache_timeout seconds
* Do not re-unzip if zip file was fetched from cache
|
| |
|
|
|
|
|
|
| |
The --verify options of build and make check the signature of
rockspec and src.rock files; the --sign option is meant to
be used alongside --pack-binary-rock.
|