From 1abd12b50b4d3d920e383e5c96cb56551cfec1df Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Thu, 29 Jun 2023 17:41:35 -0700 Subject: [PATCH] (maint) Ensure mktemp is available without modifying PATH While a custom `mktemp` command can be specified in vanagon, we expect the command to be available in PATH, such as in CI. Just link it. --- configs/platforms/aix-7.2-ppc.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/platforms/aix-7.2-ppc.rb b/configs/platforms/aix-7.2-ppc.rb index 2d6d5d222..8218889ff 100644 --- a/configs/platforms/aix-7.2-ppc.rb +++ b/configs/platforms/aix-7.2-ppc.rb @@ -1,7 +1,6 @@ platform "aix-7.2-ppc" do |plat| # os_version = 7.2 plat.make "gmake" - plat.mktemp "/opt/freeware/bin/mktemp -d -p /var/tmp" plat.patch "/opt/freeware/bin/patch" plat.rpmbuild "/usr/bin/rpm" plat.servicetype "aix" @@ -40,6 +39,9 @@ # No upstream rsync packages plat.provision_with "rpm -Uvh https://artifactory.delivery.puppetlabs.net/artifactory/rpm__remote_aix_linux_toolbox/RPMS/ppc/rsync/rsync-3.0.6-1.aix5.3.ppc.rpm" + # lots of things expect mktemp to be installed in the usual place, so link it + plat.provision_with "ln -sf /opt/freeware/bin/mktemp /usr/bin/mktemp" + plat.install_build_dependencies_with "yum install --assumeyes " plat.vmpooler_template "aix-7.2-power" end