From 563d11c9777fb2248efa816c0c7b6a65fa1fea18 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sun, 3 Apr 2022 13:15:44 +0200 Subject: [PATCH] Ports: Move luajit warning into `preconfigure` Otherwise this message will be printed during other `package.sh` actions such as `showproperty`. --- Ports/luajit/package.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ports/luajit/package.sh b/Ports/luajit/package.sh index c807f19e43..625dc4c2af 100755 --- a/Ports/luajit/package.sh +++ b/Ports/luajit/package.sh @@ -5,7 +5,10 @@ files="https://luajit.org/download/LuaJIT-${version}.tar.gz LuaJIT-${version}.ta auth_type=sha256 workdir="LuaJIT-${version}" -printf "\x1b[31m\x1b[5mATTENTION: \x1b[0m\x1b[31m\x1b[1mIf this fails, install either libc6-dev-i386 or libc6-dev-amd64\x1b[0m\n" +preconfigure() { + printf "\x1b[31m\x1b[5mATTENTION: \x1b[0m\x1b[31m\x1b[1mIf this fails, install either libc6-dev-i386 or libc6-dev-amd64\x1b[0m\n" +} + if [ ${SERENITY_ARCH} = "i686" ]; then M_FLAG=-m32 elif [ ${SERENITY_ARCH} = "x86_64" ]; then