[OpenWrt-Devel] [PATCH] lua: create "lua" symlink in staging dir

Rafał Miłecki zajec5 at gmail.com
Wed Jul 24 01:47:37 EDT 2019


From: Rafał Miłecki <rafal at milecki.pl>

Packages using host lua expect /bin/lua which has been recently renamed
to /bin/lua5.1. Create symlink for them.

This fixes e.g. following error with gluon:
/bin/sh: 1: openwrt/staging_dir/hostpkg/bin/lua: not found

Fixes: fe59b46ca7e0 ("lua: include version number in installed files")
Reported-by: Petr Štetiar <ynezz at true.cz>
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 package/utils/lua/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/utils/lua/Makefile b/package/utils/lua/Makefile
index c911c6a913..a399a837cf 100644
--- a/package/utils/lua/Makefile
+++ b/package/utils/lua/Makefile
@@ -133,6 +133,7 @@ define Host/Install
 	$(MAKE) -C $(HOST_BUILD_DIR) \
 		INSTALL_TOP="$(STAGING_DIR_HOSTPKG)" \
 		install
+	$(LN) lua5.1 $(STAGING_DIR_HOSTPKG)/bin/lua
 endef
 
 define Build/InstallDev
-- 
2.21.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list