Commit 3bcbbf8
committed
setup-build-env: fix cross-compilation dependencies
BPF CI got broken due to apt errors when installing cross compilers:
* https://github.com/kernel-patches/bpf/actions/runs/14519065074/job/40735249827
dpkg --add-architecture now breaks apt config. Looks like there were
changes in Ubuntu that require migrating to deb822 [1][2] format of
apt package lists.
In our case not only target arch repos need to be added, but also
default /etc/apt/sources.list.d/ubuntu.sources needs to be modified.
The host architecture has to be whitelisted, otherwise apt attempts
fetching target arch packages from archive and security, and they are
not there.
Another issue was with libelf-dev:s390x dependencies. Current
linux-libc-dev breaks linux-libc-dev:s390x, and unfortunately we need
both for a proper cross-compilation build. Using aptituide I found
that downgrading linux-libc-dev:amd64 resolves this conflict.
[1] actions/runner-images#10901
[2] https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-deb822-sources-management
Signed-off-by: Ihor Solodrai <[email protected]>1 parent 4c78f40 commit 3bcbbf8
1 file changed
+49
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 13 | + | |
28 | 14 | | |
| 15 | + | |
29 | 16 | | |
30 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
31 | 65 | | |
0 commit comments