mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-22 09:19:06 +08:00
travis: fix libelf-dev build-dep issues by using aptitude instead of apt-get
Use aptitude to actually see what's wrong with the dependencies. And it actually magically resolves whatever minor version conflicts there are. The big surprise came from the apparent difference in build-dep command behavior. Aptitude's build-dep doesn't seem to install the libpfelf-dev package itself. Adding explicit `aptitude install libelf-dev` after build-dep solves the issue for now. Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
committed by
Andrii Nakryiko
parent
9e123fa5d2
commit
b8b1faa3d4
@@ -40,9 +40,10 @@ for phase in "${PHASES[@]}"; do
|
||||
-dit --net=host debian:$DEBIAN_RELEASE /bin/bash
|
||||
docker_exec bash -c "echo deb-src http://deb.debian.org/debian $DEBIAN_RELEASE main >>/etc/apt/sources.list"
|
||||
docker_exec apt-get -y update
|
||||
docker_exec apt-get -y build-dep libelf-dev
|
||||
docker_exec apt-get -y install libelf-dev
|
||||
docker_exec apt-get -y install "${ADDITIONAL_DEPS[@]}"
|
||||
docker_exec apt-get -y install aptitude
|
||||
docker_exec aptitude -y build-dep libelf-dev
|
||||
docker_exec aptitude -y install libelf-dev
|
||||
docker_exec aptitude -y install "${ADDITIONAL_DEPS[@]}"
|
||||
;;
|
||||
RUN|RUN_CLANG|RUN_GCC10|RUN_ASAN|RUN_CLANG_ASAN|RUN_GCC10_ASAN)
|
||||
if [[ "$phase" = *"CLANG"* ]]; then
|
||||
|
||||
Reference in New Issue
Block a user