summaryrefslogtreecommitdiff
path: root/pcr/libubox-lua-git/001-lua-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/libubox-lua-git/001-lua-version.patch')
-rw-r--r--pcr/libubox-lua-git/001-lua-version.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/pcr/libubox-lua-git/001-lua-version.patch b/pcr/libubox-lua-git/001-lua-version.patch
new file mode 100644
index 000000000..2cde4b36b
--- /dev/null
+++ b/pcr/libubox-lua-git/001-lua-version.patch
@@ -0,0 +1,11 @@
+--- a/lua/CMakeLists.txt
++++ b/lua/CMakeLists.txt
+@@ -24,7 +24,7 @@
+
+ IF(NOT LUAPATH)
+ EXECUTE_PROCESS(
+- COMMAND lua -e "for k in string.gmatch(package.cpath .. \";\", \"([^;]+)/..so;\") do if k:sub(1,1) == \"/\" then print(k) break end end"
++ COMMAND lua5.1 -e "for k in string.gmatch(package.cpath .. \";\", \"([^;]+)/..so;\") do if k:sub(1,1) == \"/\" then print(k) break end end"
+ OUTPUT_VARIABLE LUAPATH
+ RESULT_VARIABLE LUA_CHECK_RES
+ OUTPUT_STRIP_TRAILING_WHITESPACE