Skip to content

Commit

Permalink
(PA-5621) Point AIX 7.1 & 7.2 to artifactory
Browse files Browse the repository at this point in the history
This is slightly complicated by the fact that AIX sed doesn't support in-place
upgrades and we need to make this change after installing yum, but before
running yum to install build dependencies.
  • Loading branch information
joshcooper committed Jul 6, 2023
1 parent 27c97b3 commit 0ed684c
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 0ed684c

Please sign in to comment.