Skip to content

Commit

Permalink
The patcher cannot find the files to patch. Correcting the path
Browse files Browse the repository at this point in the history
Signed-off-by: John McCrae <[email protected]>
  • Loading branch information
johnmccrae committed Mar 27, 2024
1 parent a7bb1a5 commit 93b0470
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config/patches/ruby/ruby-win32_resolv.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- ext\win32\lib\win32\resolv.rb.org 2024-03-25 19:48:15
+++ ext\win32\lib\win32\resolv.rb 2024-03-25 19:49:01
--- ext/win32/lib/win32/resolv.rb.org 2024-03-25 19:48:15
+++ ext/win32/lib/win32/resolv.rb 2024-03-25 19:49:01
@@ -4,7 +4,7 @@

=end
Expand Down
10 changes: 6 additions & 4 deletions config/software/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,13 @@
# UTF-16LE format and we need UTF-8.
# Here we patch the Ruby Win32/Reolv.rb file to make reloading the Win32::Registry class
# conditional and therefore prevent the monkeypatch from being overwritten.

puts "************************ PATCH ENV ***************************"
puts patch_env
puts "********************** END PATCH ENV ************************"

if windows? && version.satisfies?("~> 3.0.0")
puts "************************ PATCH ENV ***************************"
puts patch_env
puts "********************** END PATCH ENV ************************"
patch source: "ruby-win32_resolv.patch", plevel: 1, env: patch_env
patch source: "ruby-win32_resolv.patch", plevel: 0, env: patch_env
end

# RHEL6 has a base compiler that does not support -fstack-protector-strong, but we
Expand Down

0 comments on commit 93b0470

Please sign in to comment.