forced to use Lua5.1 (2012)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
luacheck (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Severity: minor, feature request
Steps to reproduce:
- apt install lua-check
- luacheck -v
Seen:
- lua-check depends on lua5.1, which forces system-wide change of `lua` to `lua5.1`
- even after using `update-
- Luacheck version 0.21.1 was 2017-09-10, two and a half years after Lua5.3 became the current version.
Expected:
- lua-check depends on lua-any (is it possible? is it feasible?)
Other info:
- luacheck must force the lua version to use, because lua(5.1|5.2|5.3) searches only versioned paths for libraries -- if the luacheck libraries are in the "5.1" paths, then the "5.3" interpreter won't see them.
Workaround: after installing package lua-check
- update-alternatives --install /usr/bin/lua lua-interpreter /usr/bin/lua5.3 130 --slave /usr/share/
- update-alternatives --install /usr/bin/luac lua-compiler /usr/bin/luac5.3 130 --slave /usr/share/
- mkdir -p /usr/local/
- ln -s /usr/share/
- perl -pi -e 's/env lua5.1/env lua5.3/' /usr/bin/luacheck
I acknowledge that this is not a "bug" per se; I don't know how else to make a change request.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: lua-check 0.21.1-1
ProcVersionSign
Uname: Linux 4.15.0-33-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Sep 8 00:08:51 2018
InstallationDate: Installed on 2016-06-05 (824 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitec
SourcePackage: luacheck
UpgradeStatus: Upgraded to bionic on 2018-04-27 (134 days ago)