From 91c0a295a23b9798bc3c0ab0a7333a2eb62f3d97 Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Fri, 31 Oct 2025 06:51:54 -0500 Subject: [PATCH] Fixed build from source in build host setup Needed to install git and try python3-pip for cf-remote install on redhats. Ticket: ENT-13016 Changelog: none --- ci/setup-cfengine-build-host.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/setup-cfengine-build-host.sh b/ci/setup-cfengine-build-host.sh index 33d197f23..8dc21c694 100755 --- a/ci/setup-cfengine-build-host.sh +++ b/ci/setup-cfengine-build-host.sh @@ -184,15 +184,21 @@ fi # if cf-agent not installed, try cf-remote --version master if [ ! -x /var/cfengine/bin/cf-agent ]; then echo "quick install didn't install cf-agent, try cf-remote" - # could try pipx or various package names for different distributions, or uv + # try pipx first for debian as pip won't work. + # If that fails to install CFEngine then try python3-pip for redhats. if software pipx; then pipx install cf-remote export PATH=$HOME/.local/bin:$PATH + elif software python3-pip; then + pip install cf-remote + fi + if command -v cf-remote >/dev/null; then cf-remote --version master install --clients localhost fi fi if [ ! -x /var/cfengine/bin/cf-agent ]; then + software git echo "quickinstall and cf-remote didn't install cf-agent, try from source" CFE_VERSION=3.26.0 # need to use an actualy release which has a checksum for masterfiles download rm -rf core # just in case we are repeating the script