diff --git a/configs/components/libxml2.rb b/configs/components/libxml2.rb index 11b1bbe14..f4f7a7550 100644 --- a/configs/components/libxml2.rb +++ b/configs/components/libxml2.rb @@ -1,12 +1,10 @@ component "libxml2" do |pkg, settings, platform| pkg.version '2.10.3' - pkg.sha256sum '26d2415e1c23e0aad8ca52358523fc9116a2eb6e4d4ef47577b1635c7cee3d5f' - pkg.url "#{settings[:buildsources_url]}/libxml2-#{pkg.get_version}.tar.gz" + pkg.sha256sum '5d2cc3d78bec3dbe212a9d7fa629ada25a7da928af432c93060ff5c17ee28a9c' - # Newer versions of libxml2 either ship as tar.xz or do not ship with a configure file - # and require a newer version of GNU Autotools to generate. This causes problems with - # the older and esoteric (AIX, Solaris) platforms that we support. - # So we generate a configure file manually, compress as tar.gz, and host internally. + libxml2_version_y = pkg.get_version.gsub(/(\d+)\.(\d+)\.(\d+)/, '\1.\2') + pkg.url "https://download.gnome.org/sources/libxml2/#{libxml2_version_y}/libxml2-#{pkg.get_version}.tar.xz" + pkg.mirror "#{settings[:buildsources_url]}/libxml2-#{pkg.get_version}.tar.xz" if platform.is_aix? if platform.name == 'aix-7.1-ppc' diff --git a/configs/components/libxslt.rb b/configs/components/libxslt.rb index 2f76a3a96..36674dfda 100644 --- a/configs/components/libxslt.rb +++ b/configs/components/libxslt.rb @@ -1,12 +1,10 @@ component "libxslt" do |pkg, settings, platform| pkg.version '1.1.37' - pkg.sha256sum 'a4ecab265f44e888ed3b39e11c7e925103ef6e26e09d62e9381f26977df96343' - pkg.url "#{settings[:buildsources_url]}/libxslt-v#{pkg.get_version}.tar.gz" + pkg.sha256sum '3a4b27dc8027ccd6146725950336f1ec520928f320f144eb5fa7990ae6123ab4' - # Newer versions of libxslt either ship as tar.xz or do not ship with a configure file - # and require a newer version of GNU Autotools to generate. This causes problems with - # the older and esoteric (AIX, Solaris) platforms that we support. - # So we generate a configure file manually, compress as tar.gz, and host internally. + libxslt_version_y = pkg.get_version.gsub(/(\d+)\.(\d+)\.(\d+)/, '\1.\2') + pkg.url "https://download.gnome.org/sources/libxslt/#{libxslt_version_y}/libxslt-#{pkg.get_version}.tar.xz" + pkg.mirror "#{settings[:buildsources_url]}/libxslt-#{pkg.get_version}.tar.xz" pkg.build_requires "libxml2"