-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #379 from oneclick/openssl-provider
Move bundled OpenSSL related files to bin/lib subdirectory.
- Loading branch information
Showing
7 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Move bundled OpenSSL related files to bin/lib subdirectory. | ||
# This is necessary because libcrypt.dll and libssl.dll are located in bin/ruby_builtin_dlls and they search other dlls in ../lib | ||
|
||
if package.rubyver2 >= "3.2" | ||
osl_files = %w[ | ||
lib/engines-3/capi.dll | ||
lib/engines-3/loader_attic.dll | ||
lib/engines-3/padlock.dll | ||
lib/ossl-modules/legacy.dll | ||
] | ||
|
||
osl_files.each do |path| | ||
# Add tasks to write the DLLs into the sub directory | ||
destpath = File.join(sandboxdir, "bin", path) | ||
file destpath => [File.join(unpackdirmgw, path), File.dirname(destpath)] do |t| | ||
cp(t.prerequisites.first, t.name) | ||
end | ||
|
||
# Add the DLLs in the dependent files list to the subdirectory | ||
self.sandboxfiles << destpath | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters