From 4a7a19b439ade267a29952b0b808eb38ae687d5b Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Thu, 20 Nov 2025 15:00:19 -0600 Subject: [PATCH] Added cleanup of system packages installed during build host setup on newer platforms For Debian-13, quickinstall and cf-remote don't work so we build from source which calls core/ci/dependencies.sh and installs libraries that we then later build ourselves. When the cached cfbuild--devel packages are installed from cache they conflict with the system versions and so break our build process. Ticket: ENT-13527 Changelog: none --- ci/cfengine-build-host-setup.cf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci/cfengine-build-host-setup.cf b/ci/cfengine-build-host-setup.cf index 0d1b4fe63..7c4071cba 100644 --- a/ci/cfengine-build-host-setup.cf +++ b/ci/cfengine-build-host-setup.cf @@ -45,6 +45,15 @@ bundle agent cfengine_build_host_setup "python3-psycopg2"; "rsync" comment => "added for debian-10"; "systemd-coredump" comment => "added step to jenkins testing-pr job to query for coredumps on failures"; +# core/ci/dependencies.sh is run on some systems where quickinstall and cf-remote cannot install an agent to run this policy so we must remove some system packages that we also build since both install to /usr as a prefix. + "libattr1-dev" package_policy => "delete"; + "libssl-dev" package_policy => "delete"; + "libpcre2-dev" package_policy => "delete"; + "libacl1-dev" package_policy => "delete"; + "libpam0g-dev" package_policy => "delete"; + "libyaml-dev" package_policy => "delete"; + "libxml2-dev" package_policy => "delete"; + "librsync-dev" package_policy => "delete"; ubuntu_20:: "libncurses5";