Skip to content

Commit

Permalink
Merge pull request #694 from joshcooper/aix_yum_conf
Browse files Browse the repository at this point in the history
(PA-5621) Point AIX 7.1 & 7.2 to artifactory
  • Loading branch information
joshcooper authored Jul 6, 2023
2 parents ab10cb3 + 0ed684c commit b1ec6c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions configs/platforms/aix-7.1-ppc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
tar xvf openssl-1.0.2.1800.tar;
cd openssl-1.0.2.1800 && /usr/sbin/installp -acgwXY -d $PWD openssl.base;
curl --output yum.sh https://artifactory.delivery.puppetlabs.net/artifactory/generic__buildsources/buildsources/aix-yum.sh && sh yum.sh;
/opt/freeware/bin/sed -i 's|https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS|https://artifactory.delivery.puppetlabs.net/artifactory/rpm__remote_aix_linux_toolbox/RPMS|' /opt/freeware/etc/yum/yum.conf;
yum install -y gcc8-c++;
ln -sf /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8/libgcc_s.a /opt/freeware/lib/libgcc_s.a]

Expand Down
6 changes: 6 additions & 0 deletions configs/platforms/aix-7.2-ppc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
cd openssl-1.0.2.1800 && /usr/sbin/installp -acgwXY -d $PWD openssl.base;
curl --output yum.sh https://artifactory.delivery.puppetlabs.net/artifactory/generic__buildsources/buildsources/aix-yum.sh && sh yum.sh]

# After installing yum, but before yum installing packages, point yum to artifactory
# AIX sed doesn't support in-place replacement, so download GNU sed and use that
plat.provision_with %[
rpm -Uvh https://artifactory.delivery.puppetlabs.net/artifactory/rpm__remote_aix_linux_toolbox/RPMS/ppc/sed/sed-4.1.1-1.aix5.1.ppc.rpm;
/opt/freeware/bin/sed -i 's|https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS|https://artifactory.delivery.puppetlabs.net/artifactory/rpm__remote_aix_linux_toolbox/RPMS|' /opt/freeware/etc/yum/yum.conf]

packages = %w(
autoconf
cmake
Expand Down

0 comments on commit b1ec6c5

Please sign in to comment.