From 6adf7451cff19b48dd75762e9242becb8a51e247 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 5 Apr 2008 15:12:02 +0000 Subject: * Added own custom version of Lua * Updated Lua to produce architecture-independent bytecode * Updated Lua to load bytecode from different endianess * Updated Lua to use optimized integer arithmetic for CPUs without an FPU * Updated haserl-lua to fit to optimized Lua version (hopefully this should fix: "bad header in precompiled chunk" on some platforms) * Luci core will now be bytecompiled and stripped by default to save disk space and CPU time --- contrib/package/haserl-lua/patches/200-bytecode-header-luci | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 contrib/package/haserl-lua/patches/200-bytecode-header-luci (limited to 'contrib/package/haserl-lua/patches/200-bytecode-header-luci') diff --git a/contrib/package/haserl-lua/patches/200-bytecode-header-luci b/contrib/package/haserl-lua/patches/200-bytecode-header-luci new file mode 100644 index 0000000000..c93fe7ae66 --- /dev/null +++ b/contrib/package/haserl-lua/patches/200-bytecode-header-luci @@ -0,0 +1,12 @@ +diff -ur haserl-0.9.23.orig/src/haserl_lualib.inc haserl-0.9.23/src/haserl_lualib.inc +--- haserl-0.9.23.orig/src/haserl_lualib.inc 2008-04-05 16:40:35.000000000 +0200 ++++ haserl-0.9.23/src/haserl_lualib.inc 2008-04-05 16:41:37.000000000 +0200 +@@ -1,7 +1,7 @@ + /* This file was automatically generated from haserl_lualib.lua. DO NOT EDIT */ + + static const unsigned char haserl_lualib[] = { +- 27, 76,117, 97, 81, 0, 1, 4, 4, 4, 8, 0, 19, 0, 0, 0, ++ 27, 76,117, 97, 81, 0, 1, 4, 4, 4, 8, 4, 19, 0, 0, 0, + 64,104, 97,115,101,114,108, 95,108,117, 97,108,105, 98, 46,108, + 117, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 16, + 0, 0, 0, 10, 0, 0, 0, 74, 0, 0, 0,138, 0, 0, 0,135, -- cgit v1.2.3