Unusable in Trusty; upgrade to 1.3.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lua-json (Debian) |
Fix Released
|
Unknown
|
|||
lua-json (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned | ||
Utopic |
Won't Fix
|
High
|
Unassigned |
Bug Description
[Impact]
Currently lua-json is unusable in Trusty:
| scfc@toolsbeta-
| Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
| > require('json')
| /usr/share/
| stack traceback:
| [C]: ?
| /usr/share/
| /usr/share/
| /usr/share/
| /usr/share/
| [C]: in function 'require'
| /usr/share/
| [C]: in function 'require'
| stdin:1: in main chunk
| [C]: ?
| >
| scfc@toolsbeta-
| Desired=
| | Status=
| |/ Err?=(none)
| ||/ Name Version Architecture Description
| +++-===
| ii lua-json 1.3-1 all JSON decoder/encoder for Lua
| scfc@toolsbeta-
This is apparently the same issue as in https:/
[Test Case]
1. Install packages lua5.1 (or lua5.2) and lua-json.
2. Expected behaviour:
| scfc@toolsbeta-
| Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
| > require('json')
| > print(json.
| ["a","b","c"]
| > ^D
| scfc@toolsbeta-
[Regression Potential]
1. lua-json has no reverse dependencies, so an update will not affect other packages.
2. Lua only loads extensions on request. Applications not using "require('json')" will not attempt to read the files to be packaged by lua-json 1.3.2, so even a build error should not affect other Lua applications.
3. Lua applications using "require('json')" never worked in Trusty and will start working. In theory, a currently deployed system may rely on it failing.
description: | updated |
Changed in lua-json (Ubuntu): | |
status: | New → Invalid |
Changed in lua-json (Debian): | |
status: | Unknown → Fix Released |
Changed in lua-json (Ubuntu Utopic): | |
status: | Fix Committed → Won't Fix |
Changed in lua-json (Ubuntu): | |
status: | Invalid → Fix Released |
importance: | Undecided → High |
Changed in lua-json (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in lua-json (Ubuntu Utopic): | |
importance: | Undecided → High |
A backport from Utopic (1.3.1; "backportpackage -u ppa:scfc/ trusty- backports -s utopic -d trusty lua-json") doesn't work on Trusty either, suggesting that it may be broken on Utopic as well.
A backport from Vivid (1.3.2; "backportpackage -u ppa:scfc/ trusty- backports -s vivid -d trusty lua-json") works fine:
| scfc@toolsbeta- test-trusty: ~$ sudo dpkg -i lua-json_ 1.3.2-1~ ubuntu14. 04.1~ppa1_ all.deb 1.3.2-1~ ubuntu14. 04.1~ppa1_ all.deb ... 1~ubuntu14. 04.1~ppa1) over (1.3-1) ... 1~ubuntu14. 04.1~ppa1) ... test-trusty: ~$ lua encode( {'a', 'b', 'c'})) test-trusty: ~$
| (Reading database ... 38762 files and directories currently installed.)
| Preparing to unpack lua-json_
| Unpacking lua-json (1.3.2-
| Setting up lua-json (1.3.2-
| scfc@toolsbeta-
| Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
| > require('json')
| > print(json.
| ["a","b","c"]
| >
| scfc@toolsbeta-