Skip to content

Commit

Permalink
Fix bpftool build, adding missing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
petrutlucian94 committed Nov 8, 2024
1 parent 8c027b8 commit 1eebc92
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 1.16.3/cilium/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ parts:
source-submodules:
- "libbpf"
build-packages:
- xz-utils
- libzstd-dev
- zlib1g-dev
- libelf-dev
- libiberty-dev
Expand All @@ -208,7 +210,12 @@ parts:
- EXTRA_CFLAGS: --static
- LLVM_CONFIG: "/usr/bin/llvm-config-17"
- LLVM_STRIP: "/usr/bin/llvm-strip-17"
override-build: |
# libelf requires zstd on Ubuntu 24.04, this hasn't been addressed
# in bpftool yet.
sed -i 's/-lelf/-lelf -lzstd/g' src/Makefile
OUTPUT=$CRAFT_PART_INSTALL make -C src -j "$(nproc)"
gops:
after: [build-deps]
plugin: go
Expand Down

0 comments on commit 1eebc92

Please sign in to comment.