summaryrefslogtreecommitdiff
path: root/dev-util/hermes/files/hermes-2.8-lua-shebang.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
commit6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch)
tree25413d1cb3a0cbfe36029db32398c0f333609215 /dev-util/hermes/files/hermes-2.8-lua-shebang.patch
parent9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff)
gentoo resync : 14.12.2020
Diffstat (limited to 'dev-util/hermes/files/hermes-2.8-lua-shebang.patch')
-rw-r--r--dev-util/hermes/files/hermes-2.8-lua-shebang.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-util/hermes/files/hermes-2.8-lua-shebang.patch b/dev-util/hermes/files/hermes-2.8-lua-shebang.patch
new file mode 100644
index 000000000000..67058f726d78
--- /dev/null
+++ b/dev-util/hermes/files/hermes-2.8-lua-shebang.patch
@@ -0,0 +1,23 @@
+diff --git a/lib/tool.lua b/lib/tool.lua
+index a9124f3..8c39911 100755
+--- a/lib/tool.lua
++++ b/lib/tool.lua
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env lua
++#!@LUA@
+
+ require("strict")
+ function tool()
+diff --git a/bin/lua_cmd b/bin/lua_cmd
+index fabc5d5..32c8e13 100755
+--- a/bin/lua_cmd
++++ b/bin/lua_cmd
+@@ -37,7 +37,7 @@ extra=
+ if [ "x$LUA_PATH" != x ]; then
+ extra=";$LUA_PATH"
+ else
+- extra=";`lua -e 'print(package.path)'`"
++ extra=";`@LUA@ -e 'print(package.path)'`"
+ fi
+
+ export LUA_PATH="$execLuaPath$extra"