Linux: luarocks make on apt installed lua5.5#16
Open
cclauss wants to merge 1 commit into
Open
Conversation
cclauss
force-pushed
the
ubuntu_apt_install_lua5.5
branch
30 times, most recently
from
July 12, 2026 11:42
4dc6c6e to
e778fcf
Compare
cclauss
force-pushed
the
ubuntu_apt_install_lua5.5
branch
11 times, most recently
from
July 12, 2026 12:58
e96290e to
76b4260
Compare
cclauss
force-pushed
the
ubuntu_apt_install_lua5.5
branch
from
July 12, 2026 13:02
76b4260 to
595bf16
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
apt-get install luarocksinstalls v3.8.0, which is too old for Lua 5.5.Let's try to patch it to support:
luarocks --lua-version=5.5 --local makeTypo in the apt installed
lua5.5.pcfileversion=5.5.#define LUA_VERSION_RELEASE LUAI_TOSTR(LUA_VERSION_RELEASE_N)I will try to report this to Ubuntu maintainers...
%
export PCDIR=$(pkgconf lua5.5 --variable pcfiledir)%
diff $PCDIR/lua5.4.pc $PCDIR/lua5.5.pcCan you spot the typo below?
Fix the typo
Effects on luarocks
This causes
luarocks --lua-version=5.5 configto not create aLUA_INCDIRvariable even if the typo has been fixed beforeapt-get install luarocks!Steps to reproduce
%
docker run -it ubuntu:26.04%
docker run -it debian:trixie# Does not yet have lua5.5%
docker run -it debian:forky# Does ;-)https://salsa.debian.org/lua-team/lua-5-5/-/commit/a407d9fb1d11431b020fab83e861361c6b3ae446#note_780460