diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-29 01:18:19 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-29 01:42:18 +0100 |
commit | 86cdf1f59c4b111a76f379f84c2edd320a1705dc (patch) | |
tree | 16770a46574b7d030424c49e0dd57df6450c1c24 /main/luajit/module-paths.patch | |
parent | 7c65de4a63c4fb1193f961ded753831595412ae7 (diff) | |
download | aports-86cdf1f59c4b111a76f379f84c2edd320a1705dc.tar.bz2 aports-86cdf1f59c4b111a76f379f84c2edd320a1705dc.tar.xz |
main/luajit: add /usr/share/common to LUA_PATH
Diffstat (limited to 'main/luajit/module-paths.patch')
-rw-r--r-- | main/luajit/module-paths.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/luajit/module-paths.patch b/main/luajit/module-paths.patch new file mode 100644 index 0000000000..27e73675a1 --- /dev/null +++ b/main/luajit/module-paths.patch @@ -0,0 +1,25 @@ +Add /usr/share/common to LUA_PATH. We use this directory for Lua modules +that are compatible with Lua 5.1 and newer. + +--- a/src/luaconf.h ++++ b/src/luaconf.h +@@ -42,8 +42,10 @@ + #ifdef LUA_ROOT + #define LUA_JROOT LUA_ROOT + #define LUA_RLDIR LUA_ROOT "/share" LUA_LUADIR ++#define LUA_RLDIR2 LUA_ROOT "/share/common/" + #define LUA_RCDIR LUA_ROOT "/" LUA_MULTILIB LUA_LUADIR + #define LUA_RLPATH ";" LUA_RLDIR "?.lua;" LUA_RLDIR "?/init.lua" ++#define LUA_RLPATH2 ";" LUA_RLDIR2 "?.lua;" LUA_RLDIR2 "?/init.lua" + #define LUA_RCPATH ";" LUA_RCDIR "?.so" + #else + #define LUA_JROOT LUA_LROOT +@@ -58,7 +60,7 @@ + #define LUA_LCPATH1 ";" LUA_LCDIR "?.so" + #define LUA_LCPATH2 ";" LUA_LCDIR "loadall.so" + +-#define LUA_PATH_DEFAULT "./?.lua" LUA_JPATH LUA_LLPATH LUA_RLPATH ++#define LUA_PATH_DEFAULT "./?.lua" LUA_JPATH LUA_LLPATH LUA_RLPATH LUA_RLPATH2 + #define LUA_CPATH_DEFAULT "./?.so" LUA_LCPATH1 LUA_RCPATH LUA_LCPATH2 + #endif + |