From: Rafał Miłecki <ra...@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 <yn...@true.cz>
Signed-off-by: Rafał Miłecki <ra...@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@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to