| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
compat53 is vendored since #1757 as it is required to run luarocks with lua 5.1 or 5.2.
However, this introduced some issues as the GNUmakefile install rule places these in the same place where `luarocks install compat53` would install them. This means you get conflicts if you install the actual package:
```
Warning: /.../prefix/share/lua/5.1/compat53/init.lua is not tracked by this installation of LuaRocks. Moving it to /.../prefix/share/lua/5.1/compat53/init.lua~
Warning: /.../prefix/share/lua/5.1/compat53/module.lua is not tracked by this installation of LuaRocks. Moving it to /.../prefix/share/lua/5.1/compat53/module.lua~
Warning: /.../prefix/share/lua/5.1/compat53/file_mt.lua is not tracked by this installation of LuaRocks. Moving it to /.../prefix/share/lua/5.1/compat53/file_mt.lua~
```
It is also not ideal for linux package maintainers to include a vendored package, see: https://github.com/luarocks/luarocks/pull/1757#issuecomment-3409873412.
To solve these issues, this patchset makes the following changes:
- GNUmakefile now places the compat53 files under `luarocks/vendor/compat53` (which is added internally to the luarocks script's `package.path`). This way a user's installation of compat53 does not interfere at all with luarocks one.
- Added `--with-system-compat53` option to configure script for external packaging systems.
- Fixed install.bat's logic for deciding whether to vendor compat53, as the current script includes it for every version.
install.bat already places luarocks sources outside of LUAPATH, so that part can stay as is.
I've also inverted the version check to avoid the need for future patches like: #1850.
|
| | |
|
| |
|
|
| |
Co-authored-by: luau-project <luau.project@gmail.com>
|
| |
|
|
|
| |
Support Lua 5.4 and 5.5,
see https://github.com/luarocks/luarocks/pull/1832
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
On an msys2 install of mingw, make is installed as `mingw32-make`.
If `cmake` is installed, that takes priority over `mingw32-make` when
matching the pattern `*make*.exe`.
This patch changes the pattern to be `*-make*.exe` instead to avoid this
bug.
|
| |
|
|
| |
The order here was swapped in #1701 to fix mingw builds (see #1700), but this broke MSVC installations which need to link against the .lib, which defines the dll imports.
|
| | |
|
| |
|
|
| |
Closes #1671.
|
| |
|
|
|
| |
LUA_LIBNAME is not used by LuaRocks anymore. LUALIB is the library
name override on Windows.
|
| |
|
|
|
|
|
|
|
|
| |
Prevent LuaRocks itself from using installed modules and blocking their files from removal.
This is not an issue on luarocks.exe because its own copy of lfs is statically linked.
We need to eventually switch to using that always, but for now this is a workable
solution.
Fixes #1428.
|
| |
|
|
|
|
|
|
| |
This should be more flexible than hardcoding a value that
may become incorrect once people reconfigure their LuaRocks
to point to another Lua distribution, especially on Windows.
Fixes #905.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Reverts 04513372d7d5859ea865252095c3b5ce0762228f
Fixes #1232.
Fixes #1233.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
`get_visual_studio_directory_from_vswhere`
|
| | |
|
| |
|
|
| |
Fixes #903.
|
| |
|
|
|
|
|
|
| |
Implements versions of exists, is_file, is_dir for POSIX and Windows
using io.open only, based on the semantics of their error codes
on these platforms.
Drops the dependency on TEST.EXE on Windows.
|
| | |
|
| | |
|
| |
|
|
|
| |
Detect operating system and architecture without forking subprocesses,
doing `file`-like detection reading data from well-known system
executables.
|
| | |
|
| | |
|
| | |
|
| |
|
| |
Update the Windows installer to better handle gcc toolchain in different environments
|
| |
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |\ |
|
| | |\ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Isolate all modules used by luarocks.loader in a
luarocks.core.* namespace. Core modules can only require
other core modules, and they only use require() at the
top-level chunk. In other words, after luarocks.loader
is setup, package.path can be altered at will and it
should not affect the ability of luarocks.loader to run,
and the luarocks.loader modules should not interfere
with modules loaded later.
This was motivated by @robooo's GSoC work on porting
the LuaRocks test suite to Lua using Busted. Busted itself
runs using luarocks.loader, and we need to ensure that
the modules loaded by the tests do not conflict with
the ones used by luarocks.loader.
A circular dependency between luarocks.manif and
luarocks.search was removed by creating a separate
luarocks.manif.writer module.
Also, luarocks-admin commands were moved to a
luarocks.admin.* namespace.
|
| | |_|/
|/| | |
|
| | |/
|/|
| |
| |
| | |
Ravi has "Ravi 5.3" as _VERSION. Don't use _VERSION:sub(5) to get Lua
version, match " (5%.[123])$" instead.
|
| | | |
|
| | |
| |
| |
| |
| | |
Generate list of names when needed instead of pregenerating
a list of 5.1 and then changing it when LUA_VERSION is different.
|
| | |
| |
| |
| |
| | |
check_flags() already ensures that if bundled Lua is
being installed LUA_VERSION is 5.1.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
Move gathering of potential lua directories into
a separate function, call it only when needed.
|
| | |
| |
| |
| |
| | |
One side effect should be that LUA_INCDIR does not have
trailing backslash when inferred.
|
| | |
| |
| |
| | |
One side effect should be that inferred LIB_DIR has no trailing backslash.
|
| | |
| |
| |
| |
| |
| | |
Replace repeating code with loops. The only side effect should
be that LUA_BINDIR now does not have trailing backslash when
it's inferred.
|
| |/
|
|
|
| |
with that on Unix. This was detected during the port of
the new testsuite to Windows by @robooo.
|