lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thank you for all the responses. Unfortunately, I ended up porting all of my code to 'C' mainly because it was blocking a lot and I could not find ready made lua-lanes package and did not have time to attempt porting it.


On Mon, Nov 11, 2013 at 2:30 PM, Petr Štetiar <ynezz@true.cz> wrote:
Methos <methos.oldest@gmail.com> [2013-11-07 12:51:57]:

> Hopefully somebody has faced this problem before and can help me out.

I've fixed it for good with following commit:

        commit 42758f6afdb96011b8b7d4dea8c0c511e14aec2e
        Author: Petr Štetiar <ynezz@true.cz>
        Date:   Mon Sep 16 14:47:33 2013 +0200

            Lua: Do not use LNUM and opcode patches

            It's producing strange and hard to debug errors for example with 32bit CRC
            computation done in Lua. It doesn't bring noticeable speed-up either anyway so
            we rather keep Lua as vanilla as possible just to be on safe side. It makes
            the desktop(x86) tested scripts more portable also.

            Signed-off-by: Petr Štetiar <ynezz@true.cz>

         package/lua/Makefile                               |    3 +-
         .../010-lua-5.1.3-lnum-full-260308.patch           | 3806 --------------------
         package/lua/patches-host/011-lnum-use-double.patch |   11 -
         package/lua/patches-host/015-lnum-ppc-compat.patch |   13 -
         .../patches/010-lua-5.1.3-lnum-full-260308.patch   | 3736 -------------------
         package/lua/patches/011-lnum-use-double.patch      |   11 -
         package/lua/patches/015-lnum-ppc-compat.patch      |   11 -
         package/lua/patches/020-shared_liblua.patch        |    2 +-
         package/lua/patches/300-opcode_performance.patch   |  363 --
         9 files changed, 2 insertions(+), 7954 deletions(-)

so I've this in my Lua in OpenWrt now:

        ynezz@ntbk:/opt/devel/openwrt.git$ ls -al package/lua/patches/*
        -rw-rw-r-- 1 ynezz ynezz 4574 Oct 21 10:29 package/lua/patches/020-shared_liblua.patch
        -rw-rw-r-- 1 ynezz ynezz 2306 May  7  2012 package/lua/patches/030-archindependent-bytecode.patch
        -rw-rw-r-- 1 ynezz ynezz 1462 May  7  2012 package/lua/patches/100-no_readline.patch
        -rw-rw-r-- 1 ynezz ynezz  483 May  7  2012 package/lua/patches/200-lua-path.patch

-- ynezz