File tree Expand file tree Collapse file tree 4 files changed +46
-8
lines changed Expand file tree Collapse file tree 4 files changed +46
-8
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,12 @@ dependencies:
115
115
- path : hack/install-libbpf.sh
116
116
match : VERSION
117
117
118
+ - name : libelf
119
+ version : 0.193
120
+ refPaths :
121
+ - path : hack/install-libelf.sh
122
+ match : VERSION
123
+
118
124
- name : debian-vmlinux
119
125
version : trixie
120
126
refPaths :
@@ -174,11 +180,6 @@ dependencies:
174
180
match : llvmPackages_\d+.clang-unwrapped
175
181
- path : nix/derivation-bpf.nix
176
182
match : llvm_\d+
177
-
178
- # TODO: update to the latest clang of debian 12 packages are available.
179
- - name : clang-debian-12
180
- version : 16
181
- refPaths :
182
183
- path : hack/pull-security-profiles-operator-verify
183
184
match : CLANG_VERSION
184
185
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright 2025 The Kubernetes Authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ set -euo pipefail
17
+
18
+ # TODO: remove this script once the debian image (via golang:1.25 or higher) ships
19
+ # the fixed libelf version.
20
+ #
21
+ apt-get install -y \
22
+ bzip2 \
23
+ m4 \
24
+ zlib1g-dev
25
+
26
+ VERSION=0.193
27
+ curl -sSfL --retry 5 --retry-delay 3 \
28
+ " https://sourceware.org/elfutils/ftp/$VERSION /elfutils-$VERSION .tar.bz2" -o- |
29
+ tar xfj -
30
+
31
+ DIR=" elfutils-$VERSION "
32
+ trap ' rm -rf -- "$DIR"' EXIT
33
+
34
+ pushd " $DIR "
35
+ ./configure
36
+ make install -j8
37
+ popd
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ set -euo pipefail
5
5
apt-get update
6
6
apt-get install -y \
7
7
libapparmor-dev \
8
- libelf-dev \
9
8
libseccomp-dev \
10
9
libzstd-dev
11
10
11
+ ./hack/install-libelf.sh
12
12
./hack/install-libbpf.sh
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ set -euo pipefail
3
3
4
4
./hack/install-packages
5
5
6
- CLANG_VERSION=16
7
- apt-get install -y software-properties-common
6
+ CLANG_VERSION=18
7
+ apt-get install -y lsb-release
8
8
curl -sSfL --retry 5 --retry-delay 3 https://apt.llvm.org/llvm.sh | bash -s -- $CLANG_VERSION all
9
9
ln -sf /usr/bin/clang-format-$CLANG_VERSION /usr/bin/clang-format
10
10
You can’t perform that action at this time.
0 commit comments