liblua: fix path in LUA_TMPNAMETEMPLATE

This commit is contained in:
Leonid Pliushch 2017-09-14 13:43:48 +03:00 committed by Fredrik Fornwall
parent 301c579b14
commit e70b9bf777
2 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://www.lua.org/
TERMUX_PKG_DESCRIPTION="Shared library for the Lua interpreter"
TERMUX_PKG_VERSION=5.3.4
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://www.lua.org/ftp/lua-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=f681aa518233bc407e23acf0f5887c884f17436f000d453b2491a9f11a52400c
TERMUX_PKG_EXTRA_MAKE_ARGS=linux

View File

@ -0,0 +1,12 @@
diff -uNr lua-5.3.4/src/loslib.c lua-5.3.4.mod/src/loslib.c
--- lua-5.3.4/src/loslib.c 2016-07-18 20:58:58.000000000 +0300
+++ lua-5.3.4.mod/src/loslib.c 2017-09-14 13:42:35.922862573 +0300
@@ -115,7 +115,7 @@
#define LUA_TMPNAMBUFSIZE 32
#if !defined(LUA_TMPNAMTEMPLATE)
-#define LUA_TMPNAMTEMPLATE "/tmp/lua_XXXXXX"
+#define LUA_TMPNAMTEMPLATE "@TERMUX_PREFIX@/tmp/lua_XXXXXX"
#endif
#define lua_tmpnam(b,e) { \