From ac9bdb162c877ee3c69aab946ee10df6ab373f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geyslan=20Greg=C3=B3rio?= Date: Tue, 21 May 2024 15:48:05 -0300 Subject: [PATCH] chore: temp fix for install libzstd on AMIs AMIs have to be updated and installations like this commented out. --- tests/e2e-install-deps.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/e2e-install-deps.sh b/tests/e2e-install-deps.sh index c361bd0a20ca..c68fce138c0e 100755 --- a/tests/e2e-install-deps.sh +++ b/tests/e2e-install-deps.sh @@ -264,6 +264,22 @@ remove_golang_os_packages() { apt-get --purge autoremove -y } +install_libzstd_os_packages() { + case $ID in + "ubuntu") + wait_for_apt_locks + apt-get install -y libzstd-dev + ;; + "almalinux") + yum install -y libzstd-devel + ;; + *) + echo "Unsupported OS: $ID" + exit 1 + ;; + esac +} + # Main logic. # Note: I left commented out the commands that would (re)install clang-14. This @@ -328,3 +344,6 @@ if [[ $ID == "almalinux" ]]; then remove_golang_usr_bin_files install_golang_from_github fi + +# for static builds libelf might require libzstd +install_libzstd_os_packages