#20821: OpenWrt Lua patches break standard Lua runtime compatibility
----------------------+--------------------------------
 Reporter:  alex@…    |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  packages  |    Version:  Chaos Calmer 15.05
 Keywords:            |
----------------------+--------------------------------
 I was trying to get luarocks working.  With some help from #lua channel on
 freenode (and other places), I was able to deduce that one of the OpenWrt
 patches for Lua breaks it.

 OpenWrt Lua:

 {{{#!bash
 # lua -e 'mt={__lt=print}; print(setmetatable({}, mt) < setmetatable({},
 mt))'
 lua: (command line):1: attempt to compare two table values
 stack traceback:
         (command line):1: in main chunk
         [C]: ?
 }}}

 Normal Lua:

 {{{#!bash
 $ lua -e 'mt={__lt=print}; print(setmetatable({}, mt) < setmetatable({},
 mt))'
 table: 0x60c270 table: 0x60c430
 false
 }}}
 The patch which might be causing it is '010-lua-5.1.3-lnum-
 full-260308.patch'.

 I removed a number of those patches (as well as applying various other
 fixes) and was able to get luarocks to work finally.  Still, this
 particular problem lies in the base OpenWrt Lua runtime, not with
 luarocks.  Language related stuff in OpenWrt Lua runtime should not differ
 from standard Lua runtime otherwise bad things will happen.

 You can reproduce this problem by using 15.05 release x86 image and the
 above code.

--
Ticket URL: <https://dev.openwrt.org/ticket/20821>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to