File tree 2 files changed +24
-14
lines changed
2 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 211
211
# Copy these into facter's bindir, they've already been copied into ruby's
212
212
# in the runtime component
213
213
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
214
221
[
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"
218
225
] . each do |dll |
219
226
pkg . install_file "#{ settings [ :prefix ] } /bin/#{ dll } " , "#{ settings [ :facter_root ] } /bin/#{ dll } "
220
227
end
Original file line number Diff line number Diff line change 93
93
# we ensure that Windows uses our in-house .dll files to start up pxp-agent.
94
94
#
95
95
# 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 } "
107
110
end
108
111
end
109
112
You can’t perform that action at this time.
0 commit comments