-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
(PA-6507) Update gem rexml from default to 3.2.9 for CVE-2024-35176
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
component 'rubygem-rexml' do |pkg, settings, platform| | ||
pkg.version '3.2.6' | ||
pkg.md5sum 'a57288ae5afed07dd08c9f1302da7b25' | ||
pkg.version '3.2.9' | ||
pkg.md5sum '73fcf4d686d68dafbca57f941097ebf0' | ||
|
||
# If the platform is solaris with sparc architecture in agent-runtime-7.x project, we want to gem install rexml | ||
# ignoring the dependencies, this is because the pl-ruby version used in these platforms is ancient so it gets | ||
# confused when installing rexml. It tries to install rexml's dependency 'strscan' by building native extensions | ||
# but fails. We can ignore insalling that since strscan is already shipped with ruby 2.7.8 as its default gem. | ||
if platform.name =~ /solaris-(10|11)-sparc/ && settings[:ruby_version].to_i < 3 | ||
settings["#{pkg.get_name}_gem_install_options".to_sym] = "--ignore-dependencies" | ||
end | ||
|
||
instance_eval File.read('configs/components/_base-rubygem.rb') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters