File: fix-protoc-path.patch

package info (click to toggle)
grpc 1.59.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 154,304 kB
  • sloc: cpp: 1,130,928; python: 91,228; ansic: 44,612; objc: 12,369; ruby: 11,884; sh: 8,043; php: 7,588; makefile: 3,927; xml: 3,620; cs: 2,160; java: 465; pascal: 286; awk: 132; javascript: 89
file content (23 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/src/ruby/end2end/package_with_underscore_test.rb
+++ b/src/ruby/end2end/package_with_underscore_test.rb
@@ -20,8 +20,10 @@ def main
   pb_dir = File.join(root_dir, 'src', 'ruby', 'end2end', 'protos')
 
   bins_dir = File.join(root_dir, 'cmake', 'build')
+  bins_dir = '/usr/bin'
   plugin = File.join(bins_dir, 'grpc_ruby_plugin')
   protoc = File.join(bins_dir, 'third_party', 'protobuf', 'protoc')
+  protoc = File.join(bins_dir, 'protoc')
 
   got = nil
 
--- a/src/ruby/tools/bin/grpc_tools_ruby_protoc
+++ b/src/ruby/tools/bin/grpc_tools_ruby_protoc
@@ -25,6 +25,7 @@ plugin_name = 'grpc_ruby_plugin' + ext
 
 protoc_dir = File.join(File.dirname(__FILE__),
                        PLATFORM.architecture + '-' + PLATFORM.os_name)
+protoc_dir = '/usr/bin'
 
 protoc_path = File.join(protoc_dir, protoc_name)