From 4f447332d7b0da47db01895d7af11250edc3937b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geyslan=20Greg=C3=B3rio?= Date: Wed, 22 May 2024 17:58:49 -0300 Subject: [PATCH] fix(build): add libzstd-dev as required dependency libzstd may be a dependency on libelf, which is a dependency on libbpf. --- .github/actions/build-dependencies/action.yaml | 2 +- builder/prepare-ubuntu.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/build-dependencies/action.yaml b/.github/actions/build-dependencies/action.yaml index 8cf58bb0..f255f60b 100644 --- a/.github/actions/build-dependencies/action.yaml +++ b/.github/actions/build-dependencies/action.yaml @@ -20,7 +20,7 @@ runs: sudo apt-get install --yes pkgconf sudo apt-get install --yes llvm-12 clang-12 sudo apt-get install --yes clang-format-12 - sudo apt-get install --yes zlib1g-dev libelf-dev + sudo apt-get install --yes libelf-dev libzstd-dev zlib1g-dev for tool in "clang" "llc" "llvm-strip" "clang-format" do sudo rm -f /usr/bin/$tool diff --git a/builder/prepare-ubuntu.sh b/builder/prepare-ubuntu.sh index dc0cc41c..c132b220 100755 --- a/builder/prepare-ubuntu.sh +++ b/builder/prepare-ubuntu.sh @@ -82,7 +82,7 @@ install_pkgs \ llvm-"${CLANG_VERSION}" clang-"${CLANG_VERSION}" clang-format-"${CLANG_VERSION}" \ linux-headers-generic \ linux-tools-generic linux-tools-"$(uname -r)" \ - zlib1g-dev libelf-dev libbpf-dev + libbpf-dev libelf-dev libzstd-dev zlib1g-dev setup_go setup_clang