From 6e3ba49a043c46bc39c28116796b345c256cc755 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 4 Jul 2019 13:44:35 -0700 Subject: [PATCH] luarocks: Change luarocks patch to point to lua5.1 The recent lua 5.3 addition broke this. Signed-off-by: Rosen Penev --- lang/luarocks/Makefile | 2 +- lang/luarocks/patches/01_dont_modify_bin_shebang.diff | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/luarocks/Makefile b/lang/luarocks/Makefile index 3428ef8381..683bb9e55b 100644 --- a/lang/luarocks/Makefile +++ b/lang/luarocks/Makefile @@ -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 diff --git a/lang/luarocks/patches/01_dont_modify_bin_shebang.diff b/lang/luarocks/patches/01_dont_modify_bin_shebang.diff index a1bad21515..69ab5c593c 100644 --- a/lang/luarocks/patches/01_dont_modify_bin_shebang.diff +++ b/lang/luarocks/patches/01_dont_modify_bin_shebang.diff @@ -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 ;\