Public bug reported:
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-alternatives` to revert system back to using
lua5.3, luacheck -v reports "Luacheck: 0.21.1 \ Lua: Lua 5.1"
- 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/man/man1/lua.1.gz lua-manual
/usr/share/man/man1/lua5.3.1.gz
- update-alternatives --install /usr/bin/luac lua-compiler /usr/bin/luac5.3
130 --slave /usr/share/man/man1/luac.1.gz lua-compiler-manual
/usr/share/man/man1/luac5.3.1.gz
- mkdir -p /usr/local/share/lua/5.3
- ln -s /usr/share/lua/5.1/luacheck /usr/local/share/lua/5.3/luacheck
- 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
ProcVersionSignature: Ubuntu 4.15.0-33.36-generic 4.15.18
Uname: Linux 4.15.0-33-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
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)
PackageArchitecture: all
SourcePackage: luacheck
UpgradeStatus: Upgraded to bionic on 2018-04-27 (134 days ago)
** Affects: luacheck (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1791399
Title:
forced to use Lua5.1 (2012)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/luacheck/+bug/1791399/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs