From 35af65401d01ce5e54bb68500b4ae9d89198a33d Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 9 May 2024 18:14:50 -0400 Subject: [PATCH] fix(luarocks) more general solution for archlinux too --- projects/luarocks.org/package.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/projects/luarocks.org/package.yml b/projects/luarocks.org/package.yml index 8ec19d20..7e397e33 100644 --- a/projects/luarocks.org/package.yml +++ b/projects/luarocks.org/package.yml @@ -73,12 +73,7 @@ test: gnu.org/gcc: '*' curl.se: '*' script: + - run: EXTRA_ARGS="RT_LIBDIR=$(dirname $(find /usr/lib -name librt.a | head -n1))" + if: linux - test "$(luarocks --version | awk 'NR==1 {print $NF}')" = "{{version.raw}}" - luarocks install busted $EXTRA_ARGS - env: - # some of lua components want this set to build, even though librt has been - # part of glibc since 2.35 - linux/aarch64: - EXTRA_ARGS: RT_LIBDIR=/usr/lib/aarch64-linux-gnu - linux/x86-64: - EXTRA_ARGS: RT_LIBDIR=/usr/lib/x86_64-linux-gnu