[pkg-lua-devel] Bug#1118655: lua-ldoc: depends on lua5.1 | lua5.3 | lua5.4, but only works if lua5.1 or lua5.2 is installed

Simon McVittie smcv at debian.org
Thu Oct 23 16:33:18 BST 2025


Package: lua-ldoc
Version: 1.5.0-2
Severity: serious
Justification: Policy 3.5
Tags: ftbfs
Control: affects -1 src:awesome
X-Debbugs-Cc: awesome at packages.debian.org, jbicha at ubuntu.com, dh-lua at packages.debian.org

If you install lua-ldoc together with lua5.3 (but not lua5.1), it 
installs successfully but does not work:

$ podman run --rm -it docker.io/debian:sid-slim
# apt update
# apt install lua-ldoc lua5.3
# ldoc --help
Error: no suitable Lua interpreter found
Error: supported versions are: 5.2 5.1

This appears to be causing src:awesome (which uses lua5.3) to FTBFS in 
Ubuntu (and possibly Debian too, I haven't checked), for example:
https://launchpadlibrarian.net/826360840/buildlog_ubuntu-resolute-amd64.awesome_4.3-8_BUILDING.txt.gz

The same would presumably happen for lua5.4.

Perhaps dh-lua needs a mechanism to parse scripts that run via lua-any, 
and generate a dependency that is limited to their supported versions, 
similar to the way dh-python recognises #!/usr/bin/python3.9 scripts and 
generates a dependency on python3.9 specifically?

    smcv



More information about the pkg-lua-devel mailing list