Skip to content

Commit

Permalink
Merge pull request #1532 from craigcomstock/fix-build-host-promise-log
Browse files Browse the repository at this point in the history
Small build host setup policy and script fixes
  • Loading branch information
craigcomstock authored Nov 15, 2024
2 parents 2cc2f52 + 2fcffd7 commit 1288879
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build-scripts/build-environment-check
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

case "$OS" in
rhel|centos)
DEP_LIST="gcc-c++ ncurses ncurses-devel pkgconfig rpm-build pam-devel"
DEP_LIST="gcc-c++ ncurses ncurses-devel pkgconfig rpm-build-libs pam-devel"
UNWANTED_DEPS="libtool-ltdl libtool-ltdl-devel"
;;
debian|ubuntu)
Expand Down
7 changes: 4 additions & 3 deletions ci/cfengine-build-host-setup.cf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ bundle agent cfengine_build_host_setup
"pam-devel";
"rsync";
"make";
"rpm-build";
"rpm-build-libs" handle => "rpm_build_libs_installed";
"libtool-ltdl" package_policy => "delete";

(redhat|centos).(yum_dnf_conf_ok)::
Expand Down Expand Up @@ -223,8 +223,9 @@ bundle agent cfengine_build_host_setup
comment => "even though rhel8/9 come with /bin/perl perl >= 5.8.8 is needed by cfbuild-lcov-1.16-1.noarch. So the package must be installed.";
redhat_9.!have_python3_pip_package_installed.(yum_dnf_conf_ok)::
"yum install -y python3-pip" contain => in_shell;
redhat_8|centos_8|redhat_9::
"sudo sed -ri 's/^%_enable_debug_packages/#\0/' /usr/lib/rpm/redhat/macros" contain => in_shell;
redhat_8|centos_8|redhat_9|centos_9::
"sudo sed -ri 's/^%_enable_debug_packages/#\0/' /usr/lib/rpm/redhat/macros" contain => in_shell,
depends_on => { "rpm_build_libs_installed" };

ubuntu_16.!have_i386_architecture:: # mingw build host
"${paths.dpkg} --add-architecture i386";
Expand Down
4 changes: 2 additions & 2 deletions ci/setup-cfengine-build-host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ policy="$(dirname "$0")"/cfengine-build-host-setup.cf
chmod 600 "$policy"
/var/cfengine/bin/cf-agent -KIf "$policy" -b cfengine_build_host_setup | tee promises.log
grep -i error: promises.log && exit 1
/var/cfengine/bin/cf-agent -KIf "$policy" -b cfengine_build_host_setup | tee promises.log
/var/cfengine/bin/cf-agent -KIf "$policy" -b cfengine_build_host_setup | tee -a promises.log
grep -i error: promises.log && exit 1
/var/cfengine/bin/cf-agent -KIf "$policy" -b cfengine_build_host_setup | tee promises.log
/var/cfengine/bin/cf-agent -KIf "$policy" -b cfengine_build_host_setup | tee -a promises.log
grep -i error: promises.log && exit 1

cleanup

0 comments on commit 1288879

Please sign in to comment.