Skip to content

Commit

Permalink
changing the conditon
Browse files Browse the repository at this point in the history
Signed-off-by: muthuja <[email protected]>
  • Loading branch information
muthuja committed May 29, 2024
1 parent a998456 commit 31365e3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions config/software/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@
if rhel? && platform_version.satisfies?("< 7")
patch source: "ruby-no-stack-protector-strong.patch", plevel: 1, env: patch_env
end

if rhel? && platform_version.satisfies?("== 7") && version == "3.1.4"
patch source: "ruby-3.1.4-configure.patch", plevel: 1, env: patch_env
end
# accelerate requires of c-extension.
#
# this would break code which did `require "thing"` and loaded thing.so and
Expand All @@ -191,11 +193,7 @@
patch source: "ruby-fast-load_26.patch", plevel: 1, env: patch_env
else
patch source: "ruby-fast-load_31.patch", plevel: 1, env: patch_env
end

if ((rhel? && platform_version.satisfies?("== 7")) || (suse? && platform_version.satisfies?("== 12"))) && version == "3.1.4"
patch source: "ruby-3.1.4-configure.patch", plevel: 1, env: patch_env
end
end
# this removes a checks for windows nano in the win32-ole files.
# windows nano is a dead platform and not supported by chef so we can avoid
# registry lookups by patching away this code
Expand Down

0 comments on commit 31365e3

Please sign in to comment.