File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 132
132
end
133
133
end
134
134
135
- # One of our gems, google-protobuf is known to have issues with older gcc versions
136
- # when using the pre-built extensions. We will remove it and rebuild it here.
137
- block 'reinstall google-protobuf gem' do
138
- require 'fileutils'
139
-
140
- unless OhaiHelper . ruby_native_gems_unsupported?
141
- current_gem = shellout! ( "#{ embedded_bin ( 'bundle' ) } show | grep google-protobuf" , env : env ) . stdout
142
- protobuf_version = current_gem [ /google-protobuf \( (.*)\) / , 1 ]
143
- shellout! ( "#{ embedded_bin ( 'gem' ) } uninstall --force google-protobuf" , env : env )
144
- shellout! ( "#{ embedded_bin ( 'gem' ) } install google-protobuf --version #{ protobuf_version } --platform=ruby" , env : env )
145
- end
146
- end
147
-
148
135
block 'delete unneeded precompiled shared libraries' do
149
136
next if OhaiHelper . ruby_native_gems_unsupported?
150
137
151
138
ruby_ver = shellout! ( "#{ embedded_bin ( 'ruby' ) } -e 'puts RUBY_VERSION.match(/\\ d+\\ .\\ d+/)[0]'" , env : env ) . stdout . chomp
152
139
gem_paths = {
140
+ 'google-protobuf' => 'lib/google' ,
153
141
'grpc' => 'src/ruby/lib/grpc' ,
154
142
'prometheus-client-mmap' => 'lib' ,
155
143
'nokogiri' => 'lib'
You can’t perform that action at this time.
0 commit comments