From 5b91b677962340b9c0885d49050b643857eb1627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= Date: Wed, 4 Jul 2012 22:02:36 -0700 Subject: [PATCH] committed patches that were not committed. --- patches/lua-5.1.5-disable_lua50_compat.patch | 14 ++++++++++++ patches/lua-5.1.5-makefile_install_fix.patch | 23 ++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 patches/lua-5.1.5-disable_lua50_compat.patch create mode 100644 patches/lua-5.1.5-makefile_install_fix.patch diff --git a/patches/lua-5.1.5-disable_lua50_compat.patch b/patches/lua-5.1.5-disable_lua50_compat.patch new file mode 100644 index 0000000..494aa0e --- /dev/null +++ b/patches/lua-5.1.5-disable_lua50_compat.patch @@ -0,0 +1,14 @@ +--- lua-5.1.5/src/luaconf.h 2008-02-11 08:25:08.000000000 -0800 ++++ lua-5.1.5-patched/src/luaconf.h 2012-07-04 18:36:05.700067698 -0700 +@@ -757,6 +757,11 @@ + ** without modifying the main part of the file. + */ + ++#undef LUA_COMPAT_VARARG ++#undef LUA_COMPAT_MOD ++#undef LUA_COMPAT_LSTR ++#undef LUA_COMPAT_GFIND ++#undef LUA_COMPAT_OPENLIB + + + #endif diff --git a/patches/lua-5.1.5-makefile_install_fix.patch b/patches/lua-5.1.5-makefile_install_fix.patch new file mode 100644 index 0000000..570a8e0 --- /dev/null +++ b/patches/lua-5.1.5-makefile_install_fix.patch @@ -0,0 +1,23 @@ +--- lua-5.1.5/Makefile 2008-08-12 08:40:48.000000000 +0800 ++++ lua-5.1.5-patched/Makefile 2011-03-09 20:56:47.603422483 +0800 +@@ -22,14 +22,14 @@ + + # How to install. If your install program does not support "-p", then you + # may have to run ranlib on the installed liblua.a (do "make ranlib"). +-INSTALL= install -p +-INSTALL_EXEC= $(INSTALL) -m 0755 +-INSTALL_DATA= $(INSTALL) -m 0644 ++#INSTALL= install -p ++#INSTALL_EXEC= $(INSTALL) -m 0755 ++#INSTALL_DATA= $(INSTALL) -m 0644 + # + # If you don't have install you can use cp instead. +-# INSTALL= cp -p +-# INSTALL_EXEC= $(INSTALL) +-# INSTALL_DATA= $(INSTALL) ++INSTALL= cp -p ++INSTALL_EXEC= $(INSTALL) ++INSTALL_DATA= $(INSTALL) + + # Utilities. + MKDIR= mkdir -p