Skip to content

Commit 50954b5

Browse files
authored
Merge pull request #816 from joshcooper/curl8
Add curl 8.7.1 and configure agent-runtime-main to use it
2 parents 436024a + fc11658 commit 50954b5

File tree

3 files changed

+26
-51
lines changed

3 files changed

+26
-51
lines changed

configs/components/curl.rb

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
component 'curl' do |pkg, settings, platform|
2-
pkg.version '7.88.1'
3-
pkg.sha256sum 'cdb38b72e36bc5d33d5b8810f8018ece1baa29a8f215b4495e495ded82bbf3c7'
2+
# Projects may define a :curl_version setting
3+
version = settings[:curl_version] || '7.88.1'
4+
pkg.version version
5+
6+
case version
7+
when '7.88.1'
8+
pkg.sha256sum 'cdb38b72e36bc5d33d5b8810f8018ece1baa29a8f215b4495e495ded82bbf3c7'
9+
when '8.7.1'
10+
pkg.sha256sum 'f91249c87f68ea00cf27c44fdfa5a78423e41e71b7d408e5901a9896d905c495'
11+
else
12+
raise "curl version #{version} has not been configured; Cannot continue."
13+
end
14+
415
pkg.url "https://curl.se/download/curl-#{pkg.get_version}.tar.gz"
516
pkg.mirror "#{settings[:buildsources_url]}/curl-#{pkg.get_version}.tar.gz"
617

@@ -26,15 +37,17 @@
2637
pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH):#{settings[:bindir]}"
2738
end
2839

29-
# Following 3 lines should we removed once we upgrade CURL to 8.x.x
30-
pkg.apply_patch 'resources/patches/curl/CVE-2023-27535.patch'
31-
pkg.apply_patch 'resources/patches/curl/CVE-2023-28319.patch'
32-
pkg.apply_patch 'resources/patches/curl/CVE-2023-32001.patch'
33-
pkg.apply_patch 'resources/patches/curl/CVE-2023-38545.patch'
34-
pkg.apply_patch 'resources/patches/curl/CVE-2023-38546.patch'
35-
pkg.apply_patch 'resources/patches/curl/CVE-2023-46218.patch'
36-
pkg.apply_patch 'resources/patches/curl/CVE-2024-2004.patch'
37-
pkg.apply_patch 'resources/patches/curl/CVE-2024-2398.patch'
40+
# Following lines should we removed once we drop curl 7
41+
if version.start_with?('7')
42+
pkg.apply_patch 'resources/patches/curl/CVE-2023-27535.patch'
43+
pkg.apply_patch 'resources/patches/curl/CVE-2023-28319.patch'
44+
pkg.apply_patch 'resources/patches/curl/CVE-2023-32001.patch'
45+
pkg.apply_patch 'resources/patches/curl/CVE-2023-38545.patch'
46+
pkg.apply_patch 'resources/patches/curl/CVE-2023-38546.patch'
47+
pkg.apply_patch 'resources/patches/curl/CVE-2023-46218.patch'
48+
pkg.apply_patch 'resources/patches/curl/CVE-2024-2004.patch'
49+
pkg.apply_patch 'resources/patches/curl/CVE-2024-2398.patch'
50+
end
3851

3952
configure_options = []
4053
configure_options << "--with-ssl=#{settings[:prefix]}"

configs/projects/agent-runtime-main.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
proj.setting :augeas_version, '1.14.1'
1313
end
1414

15+
proj.setting :curl_version, '8.7.1'
16+
1517
########
1618
# Load shared agent settings
1719
########

resources/patches/curl/curl-7.55.1-aix-poll.patch

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)