Skip to content

Commit 436024a

Browse files
authored
Merge pull request #827 from joshcooper/libxml2_release_tarball
(PA-5715) Download release tarballs for libxml2 and libxslt
2 parents 20ea8b8 + b4fe378 commit 436024a

9 files changed

+19
-22
lines changed

Diff for: configs/components/libxml2.rb

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
component "libxml2" do |pkg, settings, platform|
22
pkg.version '2.10.3'
3-
pkg.sha256sum '26d2415e1c23e0aad8ca52358523fc9116a2eb6e4d4ef47577b1635c7cee3d5f'
4-
pkg.url "#{settings[:buildsources_url]}/libxml2-#{pkg.get_version}.tar.gz"
3+
pkg.sha256sum '5d2cc3d78bec3dbe212a9d7fa629ada25a7da928af432c93060ff5c17ee28a9c'
54

6-
# Newer versions of libxml2 either ship as tar.xz or do not ship with a configure file
7-
# and require a newer version of GNU Autotools to generate. This causes problems with
8-
# the older and esoteric (AIX, Solaris) platforms that we support.
9-
# So we generate a configure file manually, compress as tar.gz, and host internally.
5+
libxml2_version_y = pkg.get_version.gsub(/(\d+)\.(\d+)\.(\d+)/, '\1.\2')
6+
pkg.url "https://download.gnome.org/sources/libxml2/#{libxml2_version_y}/libxml2-#{pkg.get_version}.tar.xz"
7+
pkg.mirror "#{settings[:buildsources_url]}/libxml2-#{pkg.get_version}.tar.xz"
108

119
if platform.is_aix?
1210
if platform.name == 'aix-7.1-ppc'
13-
pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH)"
11+
pkg.environment "PATH", "/opt/pl-build-tools/bin:/opt/freeware/bin:$(PATH)"
1412
else
1513
pkg.environment "PATH", "/opt/freeware/bin:$(PATH)"
1614
end
@@ -19,7 +17,7 @@
1917
pkg.environment "CFLAGS", settings[:cflags]
2018
pkg.environment "LDFLAGS", settings[:ldflags]
2119
elsif platform.is_solaris?
22-
pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:#{settings[:bindir]}"
20+
pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:#{settings[:bindir]}"
2321
pkg.environment "CFLAGS", "#{settings[:cflags]} -std=c99"
2422
pkg.environment "LDFLAGS", settings[:ldflags]
2523
elsif platform.is_macos?

Diff for: configs/components/libxslt.rb

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
component "libxslt" do |pkg, settings, platform|
22
pkg.version '1.1.37'
3-
pkg.sha256sum 'a4ecab265f44e888ed3b39e11c7e925103ef6e26e09d62e9381f26977df96343'
4-
pkg.url "#{settings[:buildsources_url]}/libxslt-v#{pkg.get_version}.tar.gz"
3+
pkg.sha256sum '3a4b27dc8027ccd6146725950336f1ec520928f320f144eb5fa7990ae6123ab4'
54

6-
# Newer versions of libxslt either ship as tar.xz or do not ship with a configure file
7-
# and require a newer version of GNU Autotools to generate. This causes problems with
8-
# the older and esoteric (AIX, Solaris) platforms that we support.
9-
# So we generate a configure file manually, compress as tar.gz, and host internally.
5+
libxslt_version_y = pkg.get_version.gsub(/(\d+)\.(\d+)\.(\d+)/, '\1.\2')
6+
pkg.url "https://download.gnome.org/sources/libxslt/#{libxslt_version_y}/libxslt-#{pkg.get_version}.tar.xz"
7+
pkg.mirror "#{settings[:buildsources_url]}/libxslt-#{pkg.get_version}.tar.xz"
108

119
pkg.build_requires "libxml2"
1210

1311
if platform.is_aix?
1412
if platform.name == 'aix-7.1-ppc'
15-
pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH)"
13+
pkg.environment "PATH", "/opt/pl-build-tools/bin:/opt/freeware/bin:$(PATH)"
1614
else
1715
pkg.environment "PATH", "/opt/freeware/bin:$(PATH)"
1816
end
@@ -26,7 +24,7 @@
2624
# don't depend on libgcrypto
2725
disable_crypto = "--without-crypto"
2826
elsif platform.is_solaris?
29-
pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:#{settings[:bindir]}"
27+
pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:#{settings[:bindir]}"
3028
pkg.environment "CFLAGS", settings[:cflags]
3129
pkg.environment "LDFLAGS", settings[:ldflags]
3230
elsif platform.is_macos?

Diff for: configs/platforms/aix-7.1-ppc.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
cd openssl-1.0.2.1800 && /usr/sbin/installp -acgwXY -d $PWD openssl.base;
4343
curl --output yum.sh https://artifactory.delivery.puppetlabs.net/artifactory/generic__buildsources/buildsources/aix-yum.sh && sh yum.sh;
4444
/opt/freeware/bin/sed -i 's|https://anonymous:[email protected]/aix/freeSoftware/aixtoolbox/RPMS|https://artifactory.delivery.puppetlabs.net/artifactory/rpm__remote_aix_linux_toolbox/RPMS|' /opt/freeware/etc/yum/yum.conf;
45-
yum install -y gcc8-c++;
45+
yum install -y gcc8-c++ xz-5.2.5;
4646
ln -sf /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8/libgcc_s.a /opt/freeware/lib/libgcc_s.a]
4747

4848
# We use --force with rpm because the pl-gettext and pl-autoconf

Diff for: configs/platforms/aix-7.2-ppc.rb

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
readline-devel
5050
sed
5151
tar
52+
xz-5.4.3
5253
zlib
5354
zlib-devel
5455
)

Diff for: configs/platforms/solaris-10-i386.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
/opt/csw/bin/pkgutil -l gcc | xargs -I{} pkgrm -n -a /var/tmp/vanagon-noask {};
5151
/opt/csw/bin/pkgutil -l ruby18 | xargs -I{} pkgrm -n -a /var/tmp/vanagon-noask {};
5252
/opt/csw/bin/pkgutil -l readline | xargs -I{} pkgrm -n -a /var/tmp/vanagon-noask {};
53-
/opt/csw/bin/pkgutil --config=/var/tmp/vanagon-pkgutil.conf -y -i rsync gmake pkgconfig ggrep libffi_dev libreadline6 || exit 1;
53+
/opt/csw/bin/pkgutil --config=/var/tmp/vanagon-pkgutil.conf -y -i rsync gmake pkgconfig ggrep libffi_dev libreadline6 CSWxz-5.2.8,REV=2022.11.16 || exit 1;
5454
5555
# Install base build dependencies
5656
for pkg in #{base_pkgs.map { |pkg| "SUNW#{pkg}.pkg.gz" }.join(' ')}; do \

Diff for: configs/platforms/solaris-10-sparc.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
/opt/csw/bin/pkgutil -l gcc | xargs -I{} pkgrm -n -a /var/tmp/vanagon-noask {};
5252
/opt/csw/bin/pkgutil -l ruby18 | xargs -I{} pkgrm -n -a /var/tmp/vanagon-noask {};
5353
/opt/csw/bin/pkgutil -l readline | xargs -I{} pkgrm -n -a /var/tmp/vanagon-noask {};
54-
/opt/csw/bin/pkgutil --config=/var/tmp/vanagon-pkgutil.conf -y -i rsync gmake libgcc_s1 libreadline6 pkgconfig ggrep ruby20 ruby20_dev gcc4g++ || exit 1;
54+
/opt/csw/bin/pkgutil --config=/var/tmp/vanagon-pkgutil.conf -y -i rsync gmake libgcc_s1 libreadline6 pkgconfig ggrep ruby20 ruby20_dev gcc4g++ CSWxz-5.2.8,REV=2022.11.16 || exit 1;
5555
# For some reason, the bison reference is invalid on our artifactory mirror, so get it directly from opencsw.
5656
/opt/csw/bin/pkgutil -y -i bison;
5757
# RE-6121 openssl 1.0.2e requires functionality not in sytem grep

Diff for: configs/platforms/solaris-11-i386.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
basedir=default" > /var/tmp/vanagon-noask;
4242
echo "mirror=https://artifactory.delivery.puppetlabs.net/artifactory/generic__remote_opencsw_mirror/testing" > /var/tmp/vanagon-pkgutil.conf;
4343
pkgadd -n -a /var/tmp/vanagon-noask -d http://get.opencsw.org/now all
44-
/opt/csw/bin/pkgutil --config=/var/tmp/vanagon-pkgutil.conf -y -i libffi_dev autoconf gcc4core || exit 1;
44+
/opt/csw/bin/pkgutil --config=/var/tmp/vanagon-pkgutil.conf -y -i libffi_dev autoconf gcc4core CSWxz-5.2.8,REV=2022.11.16 || exit 1;
4545
ntpdate pool.ntp.org]
4646
plat.output_dir File.join("solaris", "11", "PC1")
4747
end

Diff for: configs/platforms/solaris-11-native-sparc.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555
basedir=default" > /var/tmp/vanagon-noask;
5656
echo "mirror=https://artifactory.delivery.puppetlabs.net/artifactory/generic__remote_opencsw_mirror/testing" > /var/tmp/vanagon-pkgutil.conf;
5757
pkgadd -n -a /var/tmp/vanagon-noask -d http://get.opencsw.org/now all
58-
/opt/csw/bin/pkgutil -U && /opt/csw/bin/pkgutil -y -i bison || exit 1
58+
/opt/csw/bin/pkgutil -U && /opt/csw/bin/pkgutil -y -i bison CSWxz-5.2.8,REV=2022.11.16 || exit 1
5959
]
6060
end

Diff for: configs/platforms/solaris-11-sparc.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
basedir=default" > /var/tmp/vanagon-noask;
4242
echo "mirror=https://artifactory.delivery.puppetlabs.net/artifactory/generic__remote_opencsw_mirror/testing" > /var/tmp/vanagon-pkgutil.conf;
4343
pkgadd -n -a /var/tmp/vanagon-noask -d http://get.opencsw.org/now all
44-
/opt/csw/bin/pkgutil -U && /opt/csw/bin/pkgutil -y -i gcc4g++ bison || exit 1
44+
/opt/csw/bin/pkgutil -U && /opt/csw/bin/pkgutil -y -i gcc4g++ bison CSWxz-5.2.8,REV=2022.11.16 || exit 1
4545
4646
ntpdate pool.ntp.org]
4747
end

0 commit comments

Comments
 (0)