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 bf334cf commit 8c5ad82
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions config/software/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@
if windows? && version.satisfies?("~> 3.0.0")
patch source: "ruby-win32_resolv.patch", plevel: 0, env: patch_env
end

if suse? && version.satisfies?("== 3.1.4")
patch source: "ruby-3.1.4-configure.patch", plevel: 1, env: patch_env
end
# RHEL6 has a base compiler that does not support -fstack-protector-strong, but we
# cannot build modern ruby on the RHEL6 base compiler, and the configure script
# determines that it supports that flag and so includes it and then ultimately
Expand All @@ -178,11 +180,14 @@
#
if rhel? && platform_version.satisfies?("< 7")
patch source: "ruby-no-stack-protector-strong.patch", plevel: 1, env: patch_env
else
if rhel? && platform_version.satisfies?(">=7")
if version.satisfies?("= 3.1.4")
patch source: "ruby-3.1.4-configure.patch", plevel: 1, env: patch_env
end
end
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 Down

0 comments on commit 8c5ad82

Please sign in to comment.