From 98b4406196d4a334342439be59621e36bb330f2d Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Fri, 29 Oct 2021 12:58:09 -0300 Subject: [PATCH] ci/install_libseccomp: Fix fail when DESTDIR is set If DESTDIR is set on the environment then gperf will be installed in an unexpected directory, resulting on the libseccomp's configure not being able to find it. To avoid that issue this changed the ci/install_libseccomp.sh so that PREFIX and DESTDIR are unset inside the script. Fixes #2932 Signed-off-by: Wainer dos Santos Moschetta --- ci/install_libseccomp.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/install_libseccomp.sh b/ci/install_libseccomp.sh index dbd7bac83..be75ed668 100755 --- a/ci/install_libseccomp.sh +++ b/ci/install_libseccomp.sh @@ -14,6 +14,11 @@ clone_tests_repo source "${tests_repo_dir}/.ci/lib.sh" +# The following variables if set on the environment will change the behavior +# of gperf and libseccomp configure scripts, that may lead this script to +# fail. So let's ensure they are unset here. +unset PREFIX DESTDIR + arch=$(uname -m) # Variables for libseccomp