[pkg-lua-devel] Bug#1088842: fails to initialize under lua-lpeg v1.1 - due to lpeg.version change
Asbjørn Sloth Tønnesen
asbjorn at asbjorn.st
Sun Dec 1 22:12:34 GMT 2024
Package: lua-json
Version: 1.3.4-2
Severity: important
X-Debbugs-Cc: pkg-lua-devel at lists.alioth.debian.org
lua-lpeg was recently upgraded to v1.1, which broke lua-json in sid,
since lpeg.version is now a string, not a function.
Filing against lua-json, as this is already fixed upstream.
https://github.com/harningt/luajson/issues/47
$ nl -ba /usr/share/lua/5.3/json/decode/util.lua | head -97 | tail -3
95 -- Parse the lpeg version skipping patch-values
96 -- LPEG <= 0.7 have no version value... so 0.7 is value
97 local DecimalLpegVersion = lpeg.version and
tonumber(lpeg.version():match("^(%d+%.%d+)")) or 0.7
lua: /usr/share/lua/5.3/json/decode/util.lua:97: attempt to call a string value (field 'version')
stack traceback:
/usr/share/lua/5.3/json/decode/util.lua:97: in main chunk
[C]: in function 'require'
/usr/share/lua/5.3/json/decode.lua:12: in main chunk
[C]: in function 'require'
/usr/share/lua/5.3/json.lua:5: in main chunk
[C]: in function 'require'
[... snip local paths ...]
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'stable-updates'), (500, 'stable-security'), (10, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.1 (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages lua-json depends on:
ii lua-lpeg 1.1.0-1
lua-json recommends no packages.
lua-json suggests no packages.
-- no debconf information
More information about the pkg-lua-devel
mailing list