From a4e5c6201e662676179d7fb68571bb1a2ec57d6e Mon Sep 17 00:00:00 2001 From: Daniel Lemos Date: Tue, 15 Mar 2022 13:30:11 -0300 Subject: [PATCH] Ports: Make lua depends and build with readline --- Ports/lua/package.sh | 1 + Ports/lua/patches/lua.patch | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Ports/lua/package.sh b/Ports/lua/package.sh index 164104211e..3dc3eed5c9 100755 --- a/Ports/lua/package.sh +++ b/Ports/lua/package.sh @@ -2,6 +2,7 @@ port=lua version=5.3.6 files="http://www.lua.org/ftp/lua-${version}.tar.gz lua-${version}.tar.gz fc5fd69bb8736323f026672b1b7235da613d7177e72558893a0bdcd320466d60" +depends=("readline") auth_type=sha256 makeopts=("-Csrc/" "-j$(nproc)" "serenity" "CC=${CC}" "AR=${AR}" "RANLIB=${RANLIB}" ) installopts=("INSTALL_TOP=${SERENITY_INSTALL_ROOT}/usr/local") diff --git a/Ports/lua/patches/lua.patch b/Ports/lua/patches/lua.patch index 28348203f6..1a57a7cbcb 100644 --- a/Ports/lua/patches/lua.patch +++ b/Ports/lua/patches/lua.patch @@ -26,8 +26,8 @@ diff -Naur lua-5.3.6/src/Makefile lua-5.3.6.serenity/src/Makefile + $(MAKE) $(ALL) \ + CC="$(CC) -std=gnu99" \ + AR="$(AR) rcu" \ -+ SYSCFLAGS="-DLUA_USE_DLOPEN" \ -+ SYSLIBS="-ldl" ++ SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE" \ ++ SYSLIBS="-ldl -lreadline" + # list targets that do not create files (but not all makes understand .PHONY) .PHONY: all $(PLATS) default o a clean depend echo none