Browse Source

luarocks: Change luarocks patch to point to lua5.1

The recent lua 5.3 addition broke this.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
6e3ba49a04
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lang/luarocks/Makefile
  2. +1
    -1
      lang/luarocks/patches/01_dont_modify_bin_shebang.diff

+ 1
- 1
lang/luarocks/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luarocks
PKG_VERSION:=2.2.2
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_MIRROR_HASH:=e4cf874c9bce34a5accd41daaf51a3213763b8b6f7f658ca4d13a70a7ddb1c0c


+ 1
- 1
lang/luarocks/patches/01_dont_modify_bin_shebang.diff View File

@ -6,7 +6,7 @@ diff -rupN luarocks/Makefile luarocks.new/Makefile
do \
sed "1d" src/bin/$$f > src/bin/$$f.bak ;\
- echo "#!$(LUA_BINDIR)/lua$(LUA_SUFFIX)" > src/bin/$$f ;\
+ echo "#!/usr/bin/env lua" > src/bin/$$f ;\
+ echo "#!/usr/bin/env lua5.1" > src/bin/$$f ;\
echo "package.path = [[$(LUADIR)/?.lua;]]..package.path" | sed "s,//,/,g" >> src/bin/$$f ;\
cat src/bin/$$f.bak >> src/bin/$$f ;\
chmod +x src/bin/$$f ;\


Loading…
Cancel
Save