lua-5.1-module_paths.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. #! /bin/sh /usr/share/dpatch/dpatch-run
  2. ## src_luaconf.h.dpatch by John V. Belmonte <jbelmonte@debian.org>
  3. ##
  4. ## All lines beginning with `## DP:' are a description of the patch.
  5. ## DP: Set Lua's default PATH and CPATH.
  6. @DPATCH@
  7. diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h
  8. --- trunk~/src/luaconf.h 2006-02-10 12:44:06.000000000 -0500
  9. +++ trunk/src/luaconf.h 2006-02-17 21:32:55.000000000 -0500
  10. @@ -83,13 +83,17 @@
  11. #else
  12. #define LUA_ROOT "/usr/local/"
  13. +#define LUA_ROOT2 "/usr/"
  14. #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
  15. +#define LUA_LDIR2 LUA_ROOT2 "share/lua/5.1/"
  16. #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
  17. +#define LUA_CDIR2 LUA_ROOT2 "lib/lua/5.1/"
  18. #define LUA_PATH_DEFAULT \
  19. "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
  20. - LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
  21. + LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
  22. + LUA_LDIR2"?.lua;" LUA_LDIR2"?/init.lua"
  23. #define LUA_CPATH_DEFAULT \
  24. - "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
  25. + "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so"
  26. #endif