Skip to content

Commit 9b0c4b7

Browse files
author
Branan Riley
authored
Merge pull request #1503 from caseywilliams/PA-1941/openssl-1.1.0
(PA-1941) Fix libnames for new OpenSSL dlls
2 parents 480f59a + 25044a3 commit 9b0c4b7

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

configs/components/facter.rb

+10-3
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,17 @@
211211
# Copy these into facter's bindir, they've already been copied into ruby's
212212
# in the runtime component
213213
pkg.install_file "#{settings[:tools_root]}/bin/zlib1.dll", "#{settings[:facter_root]}/bin/zlib1.dll"
214+
if platform.architecture == "x64"
215+
gcc_postfix = 'seh'
216+
ssl_postfix = '-x64'
217+
else
218+
gcc_postfix = 'sjlj'
219+
ssl_postfix = ''
220+
end
214221
[
215-
"libeay32.dll",
216-
platform.architecture == "x64" ? "libgcc_s_seh-1.dll" : "libgcc_s_sjlj-1.dll",
217-
"ssleay32.dll"
222+
"libssl-1_1#{ssl_postfix}.dll",
223+
"libcrypto-1_1#{ssl_postfix}.dll",
224+
"libgcc_s_#{gcc_postfix}-1.dll"
218225
].each do |dll|
219226
pkg.install_file "#{settings[:prefix]}/bin/#{dll}", "#{settings[:facter_root]}/bin/#{dll}"
220227
end

configs/components/pxp-agent.rb

+14-11
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,20 @@
9393
# we ensure that Windows uses our in-house .dll files to start up pxp-agent.
9494
#
9595
# See https://tickets.puppetlabs.com/browse/PA-1850 for all the details.
96-
pkg.install do
97-
dependent_dlls = [
98-
"libeay32.dll",
99-
"ssleay32.dll",
100-
platform.architecture == "x64" ? "libgcc_s_seh-1.dll" : "libgcc_s_sjlj-1.dll",
101-
"libstdc++-6.dll"
102-
]
103-
104-
dependent_dlls.map do |dll|
105-
"C:/cygwin64/bin/cp.exe #{settings[:prefix]}/bin/#{dll} #{settings[:pxp_root]}/bin"
106-
end
96+
if platform.architecture == "x64"
97+
gcc_postfix = 'seh'
98+
ssl_postfix = '-x64'
99+
else
100+
gcc_postfix = 'sjlj'
101+
ssl_postfix = ''
102+
end
103+
[
104+
"libssl-1_1#{ssl_postfix}.dll",
105+
"libcrypto-1_1#{ssl_postfix}.dll",
106+
"libgcc_s_#{gcc_postfix}-1.dll",
107+
"libstdc++-6.dll"
108+
].each do |dll|
109+
pkg.install_file "#{settings[:prefix]}/bin/#{dll}", "#{settings[:pxp_root]}/bin/#{dll}"
107110
end
108111
end
109112

0 commit comments

Comments
 (0)