its-pointless
6 years ago
committed by
Leonid Plyushch
5 changed files with 36 additions and 17 deletions
@ -1,12 +1,15 @@ |
|||||
diff -uNr lua-5.3.4/src/loslib.c lua-5.3.4.mod/src/loslib.c
|
--- ./src/loslib.c.orig 2019-06-07 23:19:03.666887235 +0000
|
||||
--- lua-5.3.4/src/loslib.c 2016-07-18 20:58:58.000000000 +0300
|
+++ ./src/loslib.c 2019-06-07 23:19:47.295164822 +0000
|
||||
+++ lua-5.3.4.mod/src/loslib.c 2017-09-14 13:42:35.922862573 +0300
|
@@ -112,10 +112,10 @@
|
||||
@@ -115,7 +115,7 @@
|
|
||||
#define LUA_TMPNAMBUFSIZE 32 |
#include <unistd.h> |
||||
|
|
||||
|
-#define LUA_TMPNAMBUFSIZE 32
|
||||
|
+#define LUA_TMPNAMBUFSIZE 128
|
||||
|
|
||||
#if !defined(LUA_TMPNAMTEMPLATE) |
#if !defined(LUA_TMPNAMTEMPLATE) |
||||
-#define LUA_TMPNAMTEMPLATE "/tmp/lua_XXXXXX"
|
-#define LUA_TMPNAMTEMPLATE "/tmp/lua_XXXXXX"
|
||||
+#define LUA_TMPNAMTEMPLATE "@TERMUX_PREFIX@/tmp/lua_XXXXXX"
|
+#define LUA_TMPNAMTEMPLATE "@TERMUX_PREFIX@/tmp/lua_XXXXXX"
|
||||
#endif |
#endif |
||||
|
|
||||
#define lua_tmpnam(b,e) { \ |
#define lua_tmpnam(b,e,s) { \ |
||||
|
@ -0,0 +1,11 @@ |
|||||
|
--- ./GNUmakefile.orig 2019-06-07 23:32:53.163938603 +0000
|
||||
|
+++ ./GNUmakefile 2019-06-07 23:33:13.536058761 +0000
|
||||
|
@@ -52,7 +52,7 @@
|
||||
|
echo "unset LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4" >> luarocks |
||||
|
echo 'LUAROCKS_SYSCONFDIR="$(luarocksconfdir)" LUA_PATH="$(CURDIR)/src/?.lua;;" exec "$(LUA)" "$(CURDIR)/src/bin/luarocks" --project-tree="$(CURDIR)/lua_modules" "$$@"' >> luarocks |
||||
|
chmod +rx ./luarocks |
||||
|
- ./luarocks init
|
||||
|
+ ./luarocks init --lua-dir=$(PREFIX)
|
||||
|
cp $(builddir)/config-$(LUA_VERSION).lua .luarocks/config-$(LUA_VERSION).lua |
||||
|
|
||||
|
luarocks-admin: config.unix |
@ -1,11 +1,11 @@ |
|||||
--- ./src/luarocks/fs/lua.lua.orig 2019-03-10 15:14:28.333129223 +0100
|
--- ./src/luarocks/fs/lua.lua.orig 2019-06-07 22:33:12.441995154 +0000
|
||||
+++ ./src/luarocks/fs/lua.lua 2019-03-10 15:32:29.349788026 +0100
|
+++ ./src/luarocks/fs/lua.lua 2019-06-07 22:33:22.938066139 +0000
|
||||
@@ -961,7 +961,7 @@
|
@@ -259,7 +259,7 @@
|
||||
assert(type(name_pattern) == "string") |
end |
||||
name_pattern = dir.normalize(name_pattern) |
|
||||
|
|
||||
- return posix.mkdtemp((os.getenv("TMPDIR") or "/tmp") .. "/luarocks_" .. name_pattern:gsub("/", "_") .. "-XXXXXX")
|
function fs_lua.system_temp_dir() |
||||
+ return posix.mkdtemp((os.getenv("TMPDIR") or "@TERMUX_PREFIX@/tmp") .. "/luarocks_" .. name_pattern:gsub("/", "_") .. "-XXXXXX")
|
- return os.getenv("TMPDIR") or os.getenv("TEMP") or "/tmp"
|
||||
|
+ return os.getenv("TMPDIR") or os.getenv("TEMP") or "@TERMUX_PREFIX@/tmp"
|
||||
end |
end |
||||
|
|
||||
end -- if posix.mkdtemp |
--------------------------------------------------------------------- |
||||
|
Loading…
Reference in new issue