From b8b1faa3d4278922d1df31d1987919f53b462f8d Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Mon, 3 May 2021 14:25:50 -0700 Subject: [PATCH] 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 --- travis-ci/managers/debian.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/travis-ci/managers/debian.sh b/travis-ci/managers/debian.sh index 33084ae..09d39e1 100755 --- a/travis-ci/managers/debian.sh +++ b/travis-ci/managers/debian.sh @@ -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