Skip to content

Commit

Permalink
(maint) Ensure mktemp is available without modifying PATH
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joshcooper committed Jun 30, 2023
1 parent 340a4b7 commit 1abd12b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configs/platforms/aix-7.2-ppc.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 1abd12b

Please sign in to comment.