summaryrefslogtreecommitdiff
path: root/dev-lang/lua/files/lua-5.1-module_paths.patch
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-09-13 23:15:37 +0200
committerKarel Kočí <cynerd@email.cz>2018-09-13 23:15:37 +0200
commit0860c7fbcbf43fcfe7f8f89035b2732a9968c1e2 (patch)
tree695fe717795288adf719a01c576762523adbbac1 /dev-lang/lua/files/lua-5.1-module_paths.patch
parent3770083beb29850238ce1352e1a0042061de88c5 (diff)
downloadgentoo-personal-overlay-0860c7fbcbf43fcfe7f8f89035b2732a9968c1e2.tar.gz
gentoo-personal-overlay-0860c7fbcbf43fcfe7f8f89035b2732a9968c1e2.tar.bz2
gentoo-personal-overlay-0860c7fbcbf43fcfe7f8f89035b2732a9968c1e2.zip
Add fixed lua version
Diffstat (limited to 'dev-lang/lua/files/lua-5.1-module_paths.patch')
-rw-r--r--dev-lang/lua/files/lua-5.1-module_paths.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-lang/lua/files/lua-5.1-module_paths.patch b/dev-lang/lua/files/lua-5.1-module_paths.patch
new file mode 100644
index 0000000..29ac4c3
--- /dev/null
+++ b/dev-lang/lua/files/lua-5.1-module_paths.patch
@@ -0,0 +1,30 @@
+#! /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 @@
+
+ #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_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"
+ #define LUA_CPATH_DEFAULT \
+- "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
++ "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so"
+ #endif
+
+