Skip to content

Commit

Permalink
Tracking down the missing openssl.so file
Browse files Browse the repository at this point in the history
Signed-off-by: John McCrae <john.mccrae@progress.com>
  • Loading branch information
johnmccrae committed May 7, 2024
1 parent e1259af commit 7c1b7ec
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions config/software/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,17 @@
end

if windows?
puts "START - searching for openssl.so instances"
puts "opscode dir:"
Dir["#{install_dir}/**/openssl.so"]
puts "install dir:"
Dir["#{project_dir}/**/openssl.so"]
puts "Msys path:"
msys_path = ENV["MSYS2_INSTALL_DIR"] ? "#{ENV["MSYS2_INSTALL_DIR"]}" : "#{ENV["OMNIBUS_TOOLCHAIN_INSTALL_DIR"]}/embedded/bin"
Dir["#{msys_path}/**/openssl.so"]
puts "END - searching for openssl.so instances"
def find_files
puts "START - searching for openssl.so instances"
puts "opscode dir:"
Dir["#{install_dir}/**/openssl.so"]
puts "install dir:"
Dir["#{project_dir}/**/openssl.so"]
puts "Msys path:"
msys_path = ENV["MSYS2_INSTALL_DIR"] ? "#{ENV["MSYS2_INSTALL_DIR"]}" : "#{ENV["OMNIBUS_TOOLCHAIN_INSTALL_DIR"]}/embedded/bin"
Dir["#{msys_path}/**/openssl.so"]
puts "END - searching for openssl.so instances"
end
# Needed now that we switched to msys2 and have not figured out how to tell
# it how to statically link yet
%w{ erb gem irb rdoc ri bundle }.each do |cmd|
Expand All @@ -329,6 +331,7 @@
# Ruby seems to mark rake.bat as read-only.
# Mark it as writable so that we can install other version of rake without
# running into permission errors.
command find_files
command "attrib -r #{install_dir}/embedded/bin/rake.bat"

end
Expand Down

0 comments on commit 7c1b7ec

Please sign in to comment.