Unusable in Trusty; upgrade to 1.3.2
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | lua-json (Debian) |
Fix Released
|
Unknown
|
||
| | lua-json (Ubuntu) |
High
|
Unassigned | ||
| | Trusty |
High
|
Unassigned | ||
| | Utopic |
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.
| Tim Landscheidt (scfc) wrote : | #1 |
| description: | updated |
| Changed in lua-json (Ubuntu): | |
| status: | New → Invalid |
| Micah Gersten (micahg) wrote : | #2 |
I'm trying the upstream patch by itself quickly to see if it works.
| Changed in lua-json (Ubuntu Trusty): | |
| assignee: | nobody → Micah Gersten (micahg) |
| status: | New → In Progress |
| Micah Gersten (micahg) wrote : | #3 |
The upstream patch seems to work fine, uploaded as SRU, waiting for approval.
| Changed in lua-json (Ubuntu Trusty): | |
| assignee: | Micah Gersten (micahg) → nobody |
| status: | In Progress → Fix Committed |
| Micah Gersten (micahg) wrote : | #4 |
Utopic SRU uploaded as well
| Changed in lua-json (Ubuntu Utopic): | |
| status: | New → Fix Committed |
Hello Tim, or anyone else affected,
Accepted lua-json into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| tags: | added: verification-needed |
| Chris J Arges (arges) wrote : | #6 |
Hello Tim, or anyone else affected,
Accepted lua-json into utopic-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in lua-json (Debian): | |
| status: | Unknown → Fix Released |
| Tim Landscheidt (scfc) wrote : | #7 |
I tested lua-json 1.3-1ubuntu0.1 on Trusty with the small test script above (and our application to be sure).
With lua5.1, both worked correctly.
With lua5.2, the small test script failed with the error:
| scfc@toolsbeta-
| Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
| > require('json')
| > print(json.
| stdin:1: attempt to call field 'encode' (a nil value)
| stack traceback:
| stdin:1: in main chunk
| [C]: in ?
| >
| scfc@toolsbeta-
While our specific application uses lua5.1, I think it should be fixed for lua5.1 and lua5.2.
| tags: |
added: verification-failed removed: verification-needed |
| Micah Gersten (micahg) wrote : | #8 |
lua 5.2 compatibility (https:/
| Micah Gersten (micahg) wrote : | #9 |
Per discussion on IRC, uploaded 1.3.1 backport to trusty:
[10:39] <micahg> arges: would you have a moment to look at this please? (SRU question) https:/
[10:39] <ubot93> Launchpad bug 1443288 in lua-json (Ubuntu Utopic) "Unusable in Trusty; upgrade to 1.3.2" [Undecided,Fix committed]
[10:40] <arges> micahg: looking
[10:41] <arges> micahg: so the fix for lua 5.2 can't just be added to 1.3-1ubuntu0.1 as a patch easily?
[10:42] <micahg> I'm not sure if there's a smaller patch or not, but it seems the whole 1.3.1 release was for lua5.2 compatibility
[10:42] <arges> micahg: yea looks like it
[10:42] <micahg> so, it would seem that's important for the LTS
[10:43] <arges> micahg: so seems reasonable as the update is a bugfix-only update.
[10:44] <micahg> ok, so I'm ok to backport the utopic SRU then, it's 1.3.1 + the fix for the bug in question
[10:45] <arges> seems reasonable to me
[10:45] <micahg> ok, thanks
| Chris J Arges (arges) wrote : | #10 |
Hello Tim, or anyone else affected,
Accepted lua-json into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| tags: | removed: verification-failed |
| tags: | added: verification-needed |
| 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 |
| Mathew Hodson (mathew-hodson) wrote : | #11 |
This is fixed with lua-json 1.3.1-1ubuntu0.
$ lua
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> require('json')
> print(json.
["a","b"]
> ^C
$ apt list lua-json
Listing... Done
lua-json/
| tags: |
added: verification-done removed: verification-needed |
| Launchpad Janitor (janitor) wrote : | #12 |
This bug was fixed in the package lua-json - 1.3.1-1ubuntu0.
---------------
lua-json (1.3.1-
* No-change backport to trusty
lua-json (1.3.1-1ubuntu0.1) utopic; urgency=medium
* Add upstream patch to fix lpeg 0.12 compatibility (LP: #1443288)
- add debian/
- add debian/
lua-json (1.3.1-1) unstable; urgency=medium
* [3d18e710] Merge tag 'upstream/1.3.1'
Upstream version 1.3.1
-- Micah Gersten <email address hidden> Tue, 09 Jun 2015 10:46:02 -0500
| Changed in lua-json (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for lua-json has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
| Tim Landscheidt (scfc) wrote : | #14 |
Sorry for the late response and especially thanks to Micah and Mathew for creating and testing the fix!
I just wanted to confirm that 1.3.1-1ubuntu0.
Thanks again!


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-