| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
This is to match the behavior of luarocks.deps
|
| |
|
|
|
|
| |
This commit enables luarocks to be configured and build on OpenBSD.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* Do not set again variables that were set in config.unix
* Do not re-detect the Lua version after configure already did it
* Remove --luarocksconfdir, use --sysconfdir only
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Support using any interpreter name, even if it doesn't start with
'lua'.
|
|
|
|
|
|
| |
This change results in a default config that works in both LuaRocks 2 and 3.
We do not promise a compatible configuration format, but it's nice to avoid
unnecessary breakage if we can.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Verification of the Lua include path happens at LuaRocks runtime,
but we also perform it here just so that the user gets an early failure
if they try to install LuaRocks with the Lua interpreter package
but not the "development files" that many Linux distros ship separately.
We also include a --disable-incdir-check flag for specialized scenarios: if
you do not wish to use "luarocks build", (e.g. when only deploying binary
packages) you do not need lua.h installed. This flag skips the check for lua.h
in "configure".
|
|
|
|
|
|
|
|
|
|
| |
* Reworked configure script
* Now passes shellcheck
* New Makefile for Unix
* Simplified `make` and `make install` targets
* Simplified `make bootstrap` target
* New targets `make binary` and `make install-binary`
build and install an all-in-one binary of LuaRocks
|
| |
|
|
|
|
|
|
|
|
| |
Let's take the opportunity of a new major version to make an important cleanup: getting rid of the error-prone unversioned configuration files. This drops support for:
* Unversioned config.lua -> use config-5.x.lua
* Unversioned luarocks/site_config.lua -> it always generates luarocks/core/site_config_5_x.lua
* Unversioned lib/luarocks/rocks -> it always uses lib/luarocks/rocks-5.x
|
|
|
| |
Fixed wrong "interp" instead of "where" in the configure file
|
|
|
|
|
|
|
|
|
|
| |
This avoids in practice a problem that occurs in this scenario:
1. user installs Lua 5.1, gets lua and lua5.1 binaries
2. user installs LuaRocks, it detects and uses lua
3. user installs Lua 5.2, gets lua and lua5.2 binaries (lua is replaced)
4. user installs LuaRocks with --lua-version=5.2, it detects and uses lua
5. luarocks-5.1 now uses lua, which is Lua 5.2, rockspecs get passed the wrong value of $(LUA)
|
| |
|
|
|
|
|
| |
(e.g. allow it to find `lua5.1` when lua is 5.3 and only `--lua-version=5.1`
is given).
|
|
|
|
|
| |
Ravi has "Ravi 5.3" as _VERSION. Don't use _VERSION:sub(5) to get Lua
version, match " (5%.[123])$" instead.
|
| |
|
|
|
|
|
|
| |
which returns path to the program, not to the directory containing it.
That causes errors when configuring without --with-lua.
The fix is to apply 'dirname' if 'command -v' was a success.
|
|
|
| |
Seems like `command -v` is defined by POSIX and therefore should be compatible with all POSIX OSes.
|
|
|
| |
Look for executable path using system utility `which` instead of fragile regular expressions. See $447 for details. Also see discussion in [neovim](https://github.com/neovim/neovim/issues/3620#issuecomment-154757577) issues.
|
| |
|
|
|
|
|
|
| |
correct.
Closes #293.
|
| |
|
|
|
|
| |
Error messages were even already using it by accident!
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
HTTPS is set as default for uploading.
HTTP is still default for downloading to keep dependencies low and because the
HTTPS code is new; might be changed in the future.
See #273 and #240.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Should improve on behavior mentioned at
http://stackoverflow.com/questions/20321560/how-do-install-libraries-for-both-lua5-2-and-5-1-using-luarocks/20359102?noredirect=1#comment30696438_20359102
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Add --versioned-rocks-dir option to Unix installer, which makes it use paths such as /lib/luarocks/rocks-5.X, and /etc/luarocks/config-5.X.lua (where X is 1 or 2).
* Make configure script on Unix autodetect the presence of previous LuaRocks installations and adapt accordingly to avoid conflicts.
* Support luarocks.site_config_5_X for users who wish to run two versions from the same source tree (may be useful for LR development).
* Try to load config-5.X.lua from home directory before trying config.lua.
|