100-no_readline.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. diff -ur lua-luci-5.1.3/src/luaconf.h lua-luci-5.1.3-new/src/luaconf.h
  2. --- lua-luci-5.1.3/src/luaconf.h 2008-04-14 13:19:54.000000000 +0200
  3. +++ lua-luci-5.1.3-new/src/luaconf.h 2008-04-14 13:19:17.000000000 +0200
  4. @@ -38,7 +38,6 @@
  5. #if defined(LUA_USE_LINUX)
  6. #define LUA_USE_POSIX
  7. #define LUA_USE_DLOPEN /* needs an extra library: -ldl */
  8. -#define LUA_USE_READLINE /* needs some extra libraries */
  9. #endif
  10. #if defined(LUA_USE_MACOSX)
  11. Nur in lua-luci-5.1.3-new/src: luaconf.h.orig.
  12. diff -ur lua-luci-5.1.3/src/Makefile lua-luci-5.1.3-new/src/Makefile
  13. --- lua-luci-5.1.3/src/Makefile 2008-04-14 13:19:57.000000000 +0200
  14. +++ lua-luci-5.1.3-new/src/Makefile 2008-04-14 13:19:17.000000000 +0200
  15. @@ -17,6 +17,7 @@
  16. MYCFLAGS=
  17. MYLDFLAGS=
  18. MYLIBS=
  19. +# USE_READLINE=1
  20. # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
  21. @@ -86,7 +87,7 @@
  22. @echo "MYLIBS = $(MYLIBS)"
  23. # convenience targets for popular platforms
  24. -
  25. +RFLAG=$(if $(USE_READLINE),-DLUA_USE_READLINE)
  26. none:
  27. @echo "Please choose a platform:"
  28. @echo " $(PLATS)"
  29. @@ -101,16 +102,16 @@
  30. $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E"
  31. freebsd:
  32. - $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline"
  33. + $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX $(RFLAG)" MYLIBS="-Wl,-E$(if $(USE_READLINE), -lreadline)"
  34. generic:
  35. $(MAKE) all MYCFLAGS=
  36. linux:
  37. - $(MAKE) all MYCFLAGS+=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
  38. + $(MAKE) all MYCFLAGS+="-DLUA_USE_LINUX $(RFLAG)" MYLIBS="-Wl,-E -ldl $(if $(USE_READLINE), -lreadline -lhistory -lncurses)"
  39. macosx:
  40. - $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
  41. + $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX $(if $(USE_READLINE), MYLIBS="-lreadline")
  42. # use this on Mac OS X 10.3-
  43. # $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
  44. Nur in lua-luci-5.1.3-new/src: Makefile.orig.