0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/luarocks/unix-tools.lua.patch
Aditya Alok 3a726d529e
upgpkg(main/luarocks): to 3.9.1
- Also use lua-5.1 as default as it will allow users to use packages like
  neovim and luajit without any special configuration.

Closes(supersedes) #12535

Signed-off-by: Aditya Alok <alok@termux.dev>
2022-11-01 12:46:13 +05:30

12 lines
619 B
Diff

--- ./src/luarocks/fs/unix/tools.lua.orig 2022-11-01 03:10:35.169749277 +0530
+++ ./src/luarocks/fs/unix/tools.lua 2022-11-01 03:11:27.189749257 +0530
@@ -263,7 +263,7 @@
assert(type(name_pattern) == "string")
name_pattern = dir.normalize(name_pattern)
- local template = (os.getenv("TMPDIR") or "/tmp") .. "/luarocks_" .. name_pattern:gsub("/", "_") .. "-XXXXXX"
+ local template = (os.getenv("TMPDIR") or "@TERMUX_PREFIX@/tmp") .. "/luarocks_" .. name_pattern:gsub("/", "_") .. "-XXXXXX"
local pipe = io.popen(vars.MKTEMP.." -d "..fs.Q(template))
local dirname = pipe:read("*l")
pipe:close()