Skip to content

Commit

Permalink
Merge pull request #1520 from chef/new_ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
lamont-granquist authored Nov 30, 2021
2 parents 2776450 + e350e19 commit 0d04164
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 147 deletions.
14 changes: 0 additions & 14 deletions config/patches/ruby/ruby-2.6.4-bug14834.patch

This file was deleted.

115 changes: 0 additions & 115 deletions config/patches/ruby/ruby-2.7.1-rubygemsperf.patch

This file was deleted.

23 changes: 5 additions & 18 deletions config/software/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,25 @@
# the default versions should always be the latest release of ruby
# if you consume this definition it is your responsibility to pin
# to the desired version of ruby. don't count on this not changing.
default_version "2.7.4"
default_version "2.7.5"

dependency "zlib"
dependency "openssl"
dependency "libffi"
dependency "libyaml"

# version_list: url=https://cache.ruby-lang.org/pub/ruby/ filter=*.tar.gz
version("3.0.3") { source sha256: "3586861cb2df56970287f0fd83f274bd92058872d830d15570b36def7f1a92ac" }
version("3.0.2") { source sha256: "5085dee0ad9f06996a8acec7ebea4a8735e6fac22f22e2d98c3f2bc3bef7e6f1" }
version("3.0.1") { source sha256: "369825db2199f6aeef16b408df6a04ebaddb664fb9af0ec8c686b0ce7ab77727" }
version("3.0.0") { source sha256: "a13ed141a1c18eb967aac1e33f4d6ad5f21be1ac543c344e0d6feeee54af8e28" }

version("2.7.5") { source sha256: "2755b900a21235b443bb16dadd9032f784d4a88f143d852bc5d154f22b8781f1" }
version("2.7.4") { source sha256: "3043099089608859fc8cce7f9fdccaa1f53a462457e3838ec3b25a7d609fbc5b" }
version("2.7.3") { source sha256: "8925a95e31d8f2c81749025a52a544ea1d05dad18794e6828709268b92e55338" }
version("2.7.2") { source sha256: "6e5706d0d4ee4e1e2f883db9d768586b4d06567debea353c796ec45e8321c3d4" }
version("2.7.1") { source sha256: "d418483bdd0000576c1370571121a6eb24582116db0b7bb2005e90e250eae418" }

version("2.6.9") { source sha256: "eb7bae7aac64bf9eb2153710a4cafae450ccbb62ae6f63d573e1786178b0efbb" }
version("2.6.8") { source sha256: "1807b78577bc08596a390e8a41aede37b8512190e05c133b17d0501791a8ca6d" }
version("2.6.7") { source sha256: "e4227e8b7f65485ecb73397a83e0d09dcd39f25efd411c782b69424e55c7a99e" }
version("2.6.6") { source sha256: "364b143def360bac1b74eb56ed60b1a0dca6439b00157ae11ff77d5cd2e92291" }
version("2.6.5") { source sha256: "66976b716ecc1fd34f9b7c3c2b07bbd37631815377a2e3e85a5b194cfdcbed7d" }

source url: "https://cache.ruby-lang.org/pub/ruby/#{version.match(/^(\d+\.\d+)/)[0]}/ruby-#{version}.tar.gz"

Expand Down Expand Up @@ -118,7 +116,7 @@

if version.satisfies?("~> 3.0")
case version
when "3.0.0", "3.0.1"
when "3.0.1"
patch source: "ruby-3.0.1-configure.patch", plevel: 1, env: patch_env
else
patch source: "ruby-3.0.2-configure.patch", plevel: 1, env: patch_env
Expand Down Expand Up @@ -173,13 +171,6 @@
patch source: "ruby-faster-load_27.patch", plevel: 1, env: patch_env
end

# rubygems 3.1.x perf improvements
# this is part of ruby 2.7.3 so skip it
#
if version.satisfies?("~> 2.7") && version.satisfies?("< 2.7.3")
patch source: "ruby-2.7.1-rubygemsperf.patch", plevel: 1, env: patch_env
end

# disable libpath in mkmf across all platforms, it trolls omnibus and
# breaks the postgresql cookbook. i'm not sure why ruby authors decided
# this was a good idea, but it breaks our use case hard. AIX cannot even
Expand Down Expand Up @@ -208,10 +199,6 @@
# need to patch ruby's configure file so it knows how to find shared libraries
patch source: "ruby-aix-configure_26_and_later.patch", plevel: 1, env: patch_env

if version.satisfies?("~> 2.6.4")
patch source: "ruby-2.6.4-bug14834.patch", plevel: 1, env: patch_env
end

# have ruby use zlib on AIX correctly
patch source: "ruby_aix_openssl.patch", plevel: 1, env: patch_env
# AIX has issues with ssl retries, need to patch to have it retry
Expand Down

0 comments on commit 0d04164

Please sign in to comment.