Skip to content

Commit f9f67d4

Browse files
authored
Merge branch 'puppetlabs:master' into gems
2 parents 68df29c + 903be86 commit f9f67d4

18 files changed

+304
-23
lines changed

.github/workflows/component_diff_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
cat ./output/text
3636
3737
- name: Upload artifacts
38-
uses: actions/upload-artifact@v2
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: artifacts
4141
path: output/

configs/components/_base-rubygem.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@
4141
# in its component file rubygem-<compoment>, before the instance_eval of this file.
4242
gem_install_options = settings["#{pkg.get_name}_gem_install_options".to_sym]
4343
remove_older_versions = settings["#{pkg.get_name}_remove_older_versions".to_sym]
44+
# Set a default gem_uninstall
45+
gem_uninstall = settings[:gem_uninstall] || "#{settings[:host_gem]} uninstall --all --ignore-dependencies"
4446
pkg.install do
4547
steps = []
46-
steps << "#{settings[:gem_uninstall]} #{name}" if remove_older_versions
48+
steps << "#{gem_uninstall} #{name}" if remove_older_versions
4749
steps << if gem_install_options.nil?
4850
"#{settings[:gem_install]} #{name}-#{version}.gem"
4951
else

configs/components/curl.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
case version
77
when '7.88.1'
88
pkg.sha256sum 'cdb38b72e36bc5d33d5b8810f8018ece1baa29a8f215b4495e495ded82bbf3c7'
9-
when '8.9.1'
10-
pkg.sha256sum '291124a007ee5111997825940b3876b3048f7d31e73e9caa681b80fe48b2dcd5'
9+
when '8.10.1'
10+
pkg.sha256sum 'd15ebab765d793e2e96db090f0e172d127859d78ca6f6391d7eafecfd894bbc0'
1111
else
1212
raise "curl version #{version} has not been configured; Cannot continue."
1313
end
@@ -49,10 +49,11 @@
4949
pkg.apply_patch 'resources/patches/curl/CVE-2024-2004.patch'
5050
pkg.apply_patch 'resources/patches/curl/CVE-2024-2398.patch'
5151
pkg.apply_patch 'resources/patches/curl/CVE-2024-7264.patch'
52+
pkg.apply_patch 'resources/patches/curl/CVE-2024-8096.patch'
5253
end
5354

5455
configure_options = []
55-
configure_options << "--with-ssl=#{settings[:prefix]}"
56+
configure_options << "--with-ssl=#{settings[:prefix]} --without-libpsl"
5657

5758
# OpenSSL version 3.0 & up no longer ships by default the insecure algorithms
5859
# that curl's ntlm module depends on (md4 & des).

configs/components/libxml2.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
component "libxml2" do |pkg, settings, platform|
2-
pkg.version '2.12.6'
3-
pkg.sha256sum '889c593a881a3db5fdd96cc9318c87df34eb648edfc458272ad46fd607353fbb'
2+
pkg.version '2.13.4'
3+
pkg.sha256sum '65d042e1c8010243e617efb02afda20b85c2160acdbfbcb5b26b80cec6515650'
44

55
libxml2_version_y = pkg.get_version.gsub(/(\d+)\.(\d+)\.(\d+)/, '\1.\2')
66
pkg.url "https://download.gnome.org/sources/libxml2/#{libxml2_version_y}/libxml2-#{pkg.get_version}.tar.xz"

configs/components/libxslt.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
component "libxslt" do |pkg, settings, platform|
2-
pkg.version '1.1.39'
3-
pkg.sha256sum '2a20ad621148339b0759c4d4e96719362dee64c9a096dbba625ba053846349f0'
2+
pkg.version '1.1.42'
3+
pkg.sha256sum '85ca62cac0d41fc77d3f6033da9df6fd73d20ea2fc18b0a3609ffb4110e1baeb'
44

55
libxslt_version_y = pkg.get_version.gsub(/(\d+)\.(\d+)\.(\d+)/, '\1.\2')
66
pkg.url "https://download.gnome.org/sources/libxslt/#{libxslt_version_y}/libxslt-#{pkg.get_version}.tar.xz"

configs/components/openssl-3.0.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
component 'openssl' do |pkg, settings, platform|
2-
pkg.version '3.0.14'
3-
pkg.sha256sum 'eeca035d4dd4e84fc25846d952da6297484afa0650a6f84c682e39df3a4123ca'
4-
pkg.url "https://openssl.org/source/openssl-#{pkg.get_version}.tar.gz"
2+
pkg.version '3.0.15'
3+
pkg.sha256sum '23c666d0edf20f14249b3d8f0368acaee9ab585b09e1de82107c66e1f3ec9533'
4+
pkg.url "https://github.com/openssl/openssl/releases/download/openssl-#{pkg.get_version}/openssl-#{pkg.get_version}.tar.gz"
55
pkg.mirror "#{settings[:buildsources_url]}/openssl-#{pkg.get_version}.tar.gz"
66

77
#############################
@@ -121,9 +121,6 @@
121121
'no-whirlpool'
122122
]
123123

124-
# Remove this in 3.0.15 or later
125-
pkg.apply_patch 'resources/patches/openssl/CVE-2024-5535.patch'
126-
127124
if settings[:use_legacy_openssl_algos]
128125
pkg.apply_patch 'resources/patches/openssl/openssl-3-activate-legacy-algos.patch'
129126
else
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
component 'rubygem-faraday-follow_redirects' do |pkg, settings, platform|
2+
pkg.version '0.3.0'
3+
pkg.md5sum '75fa678fa40b54a94e51efc1600a6461'
4+
5+
instance_eval File.read('configs/components/_base-rubygem.rb')
6+
end
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
component 'rubygem-faraday-net_http' do |pkg, settings, platform|
2-
pkg.version '1.0.2'
3-
pkg.md5sum 'b8e560b8cd7c008a7fd1686143428337'
2+
version = settings[:rubygem_faraday_net_http_version] || '1.0.2'
3+
4+
case version
5+
when '1.0.2'
6+
pkg.version '1.0.2'
7+
pkg.md5sum 'b8e560b8cd7c008a7fd1686143428337'
8+
when '3.3.0'
9+
pkg.version '3.3.0'
10+
pkg.md5sum '7e6378aaa271587dd4109795c0a05769'
11+
else
12+
raise "rubygem-faraday-net_http version #{version} is not supported"
13+
end
414

515
instance_eval File.read('configs/components/_base-rubygem.rb')
616
end

configs/components/rubygem-faraday.rb

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
component 'rubygem-faraday' do |pkg, settings, platform|
2-
pkg.version '1.10.3'
3-
pkg.md5sum 'c7b56130721c0b055c071bec593e2446'
2+
version = settings[:rubygem_faraday_version] || '1.10.3'
3+
4+
case version
5+
when '1.10.3'
6+
pkg.version '1.10.3'
7+
pkg.md5sum 'c7b56130721c0b055c071bec593e2446'
8+
when '2.12.0'
9+
pkg.version '2.12.0'
10+
pkg.md5sum 'c0248b00a32c46b64cd2a172c96409ec'
11+
else
12+
raise "rubygem-faraday version #{version} is not supported"
13+
end
414

515
instance_eval File.read('configs/components/_base-rubygem.rb')
616
end
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
component 'rubygem-puppet_forge' do |pkg, settings, platform|
2-
pkg.version '3.2.0'
3-
pkg.md5sum '501d5f9f742007504d0d60ce6cf0c27f'
2+
version = settings[:rubygem_puppet_forge_version] || '3.2.0'
3+
pkg.version version
4+
5+
case version
6+
when '3.2.0'
7+
pkg.version '3.2.0'
8+
pkg.md5sum '501d5f9f742007504d0d60ce6cf0c27f'
9+
when '5.0.4'
10+
pkg.version '5.0.4'
11+
pkg.md5sum '04a2ca2f027ed41d9142ced587b71bd7'
12+
else
13+
raise "rubygem-puppet_forge version #{version} is not supported"
14+
end
415

516
instance_eval File.read('configs/components/_base-rubygem.rb')
617
end

0 commit comments

Comments
 (0)