The package doesn't set up a lua-interpreter alternative and thus doesn't seamlessly provide lua cli

Bug #1707212 reported by Bojan Markovic
50
This bug affects 11 people
Affects Status Importance Assigned to Milestone
lua5.3 (Debian)
Fix Released
Unknown
lua5.3 (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 17.04 Zesty amb64
lua5.3: 5.3.3-1

Installing other versions of the lua5.x interpreters (i.e. providers for the lua virtual packages) installs alternatives for the lua-interpreter.

Installing lua5.3 package does not provide alternative for lua-interpreter but one must manually symlink /usr/bin/lu(a|ac) to /usr/bin/lu(a|ac)5.3.

Note that there is an open question on Askubuntu for earlier version of Ubuntu:

https://askubuntu.com/questions/850317/installing-lua5-2-vs-lua5-3-on-ubuntu-16-10

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lua5.3 (Ubuntu):
status: New → Confirmed
Revision history for this message
Matt Day (fjarlq) wrote :

This is still an issue on 18.04 Bionic.

Workaround:

sudo update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 10
sudo update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 10

Revision history for this message
Matt Day (fjarlq) wrote :

Improved workaround so that it's compatible with the alternatives configured by the older lua packages, like lua5.2:

sudo 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

sudo 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

Matt Day (fjarlq)
tags: added: bitesize lua packaging
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I just acme by by accident, but wanted to update that this is fixed in 5.3.3-1 which means >=Bionic

Changed in lua5.3 (Ubuntu):
status: Confirmed → Fix Released
Changed in lua5.3 (Debian):
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lua5.3 (Ubuntu Xenial):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.