diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-06-22 14:47:41 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-06-28 09:25:59 +0200 |
commit | 6b161bb8d528663b78c2314d9f1e1c9217dacba2 (patch) | |
tree | 50dcd5996ff65bcd5da45c6a4215859c2e527701 /package/utils/lua5.3/patches-host/100-no_readline.patch | |
parent | fe59b46ca7e0716e030a5d7cb0da9b4b6a79a8f4 (diff) | |
download | upstream-6b161bb8d528663b78c2314d9f1e1c9217dacba2.tar.gz upstream-6b161bb8d528663b78c2314d9f1e1c9217dacba2.tar.bz2 upstream-6b161bb8d528663b78c2314d9f1e1c9217dacba2.zip |
lua5.3: package Lua 5.3 version
This package provides an interpreter and compiler for Lua 5.3.5. It has
been decided to use separated package due to a backward incompatibility
of Lua 5.2 and 5.3.
This package/version:
1) Does not include lnum patch as its author didn't decide to port it to
the new version.
2) Does not provide shared library as the old patch doesn't apply
anymore. It can be added later if needed.
3) Does not come with examples package as tests were dropped by upstream
developers.
That said there is definitely a room for improvement and any further
work is highly appreciated. It works however and can be safely pushed as
a basic/early package release.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/utils/lua5.3/patches-host/100-no_readline.patch')
-rw-r--r-- | package/utils/lua5.3/patches-host/100-no_readline.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/package/utils/lua5.3/patches-host/100-no_readline.patch b/package/utils/lua5.3/patches-host/100-no_readline.patch new file mode 100644 index 0000000000..bb014c57ba --- /dev/null +++ b/package/utils/lua5.3/patches-host/100-no_readline.patch @@ -0,0 +1,54 @@ +--- a/src/luaconf.h ++++ b/src/luaconf.h +@@ -61,14 +61,12 @@ + #if defined(LUA_USE_LINUX) + #define LUA_USE_POSIX + #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ +-#define LUA_USE_READLINE /* needs some extra libraries */ + #endif + + + #if defined(LUA_USE_MACOSX) + #define LUA_USE_POSIX + #define LUA_USE_DLOPEN /* MacOS does not need -ldl */ +-#define LUA_USE_READLINE /* needs an extra library: -lreadline */ + #endif + + +--- a/src/Makefile ++++ b/src/Makefile +@@ -23,6 +23,7 @@ MYCFLAGS= + MYLDFLAGS= + MYLIBS= + MYOBJS= ++# USE_READLINE=1 + + # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE ======= + +@@ -83,6 +84,7 @@ echo: + + # Convenience targets for popular platforms + ALL= all ++RFLAG=$(if $(USE_READLINE),-DLUA_USE_READLINE) + + none: + @echo "Please do 'make PLATFORM' where PLATFORM is one of these:" +@@ -102,15 +104,15 @@ c89: + + + freebsd: +- $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit" SYSLIBS="-Wl,-E -ledit" CC="cc" ++ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX $(RFLAG) -I/usr/include/edit" SYSLIBS="-Wl,-E -ledit" CC="cc" + + generic: $(ALL) + + linux: +- $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline" ++ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" $(RFLAG) SYSLIBS="-Wl,-E -ldl $(if $(USE_READLINE), -lreadline)" + + macosx: +- $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" ++ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" $(RFLAG) SYSLIBS="$(if $(USE_READLINE), -lreadline)" + + mingw: + $(MAKE) "LUA_A=lua53.dll" "LUA_T=lua.exe" \ |