diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-29 01:31:07 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-29 01:42:18 +0100 |
commit | 961c328693591e7ee0f64b2e40cc133a8390c03b (patch) | |
tree | 4877ef64a156c90c4f7cc7743dfedbb713f5dc32 /main/lua5.1/lua-5.1-module_paths.patch | |
parent | d7ae444687731d13a6eead839b1a958db2d69cf7 (diff) | |
download | aports-961c328693591e7ee0f64b2e40cc133a8390c03b.tar.bz2 aports-961c328693591e7ee0f64b2e40cc133a8390c03b.tar.xz |
main/lua5.1: add /usr/share/lua/common to LUA_PATH
Diffstat (limited to 'main/lua5.1/lua-5.1-module_paths.patch')
-rw-r--r-- | main/lua5.1/lua-5.1-module_paths.patch | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/main/lua5.1/lua-5.1-module_paths.patch b/main/lua5.1/lua-5.1-module_paths.patch index 29ac4c3bf4..e67d09f82a 100644 --- a/main/lua5.1/lua-5.1-module_paths.patch +++ b/main/lua5.1/lua-5.1-module_paths.patch @@ -1,27 +1,21 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## src_luaconf.h.dpatch by John V. Belmonte <jbelmonte@debian.org> -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Set Lua's default PATH and CPATH. - -@DPATCH@ -diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h ---- trunk~/src/luaconf.h 2006-02-10 12:44:06.000000000 -0500 -+++ trunk/src/luaconf.h 2006-02-17 21:32:55.000000000 -0500 -@@ -83,13 +83,17 @@ +--- a/src/luaconf.h ++++ b/src/luaconf.h +@@ -95,13 +94,19 @@ #else #define LUA_ROOT "/usr/local/" +#define LUA_ROOT2 "/usr/" #define LUA_LDIR LUA_ROOT "share/lua/5.1/" +#define LUA_LDIR2 LUA_ROOT2 "share/lua/5.1/" ++#define LUA_LDIR3 LUA_ROOT2 "share/lua/common/" #define LUA_CDIR LUA_ROOT "lib/lua/5.1/" +#define LUA_CDIR2 LUA_ROOT2 "lib/lua/5.1/" #define LUA_PATH_DEFAULT \ "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ - LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua" + LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \ -+ LUA_LDIR2"?.lua;" LUA_LDIR2"?/init.lua" ++ LUA_LDIR2"?.lua;" LUA_LDIR2"?/init.lua;" \ ++ LUA_LDIR3"?.lua;" LUA_LDIR3"?/init.lua" #define LUA_CPATH_DEFAULT \ - "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so" + "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so" |