Re: help with building ruby-grpc

2017-08-10 Thread Pirate Praveen
On ചൊവ്വ 08 ആഗസ്റ്റ് 2017 02:20 രാവിലെ, Antonio Terceiro wrote:
> You can try something like this in debian/ruby-tests.rake (untested):
> 
> unless ENV['ADTTMP']
>   # during the build, look for library in the source tree
>   ENV['LD_LIBRARY_PATH'] = path_to_local_dir_containing_libgrpc_a
> end
> 

Thanks for the suggestion. I figured it would be easier to link against
libgrpc.so. It is also easier to maintain.



signature.asc
Description: OpenPGP digital signature


Re: help with building ruby-grpc

2017-08-08 Thread Antonio Terceiro
On Mon, Jul 31, 2017 at 10:34:53PM +0530, Pirate Praveen wrote:
> Hi,
> 
> I have been trying to build ruby-grpc for last many weeks without
> success. Current work can be found at
> https://git.fosscommunity.in/praveen/grpc (under branch ruby).
> 
> RUBYLIB=.
> GEM_PATH=debian/ruby-grpc/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all
> ruby2.3 -S rake -f debian/ruby-tests.rake
> /usr/bin/ruby2.3 /usr/bin/rspec --pattern
> ./src/ruby/spec/\*\*/\*_spec.rb --format documentation
> /<>/debian/ruby-grpc/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0/gems/grpc-1.3.2/src/ruby/lib/grpc/grpc.rb:37:in
> `require_relative':
> /<>/debian/ruby-grpc/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0/gems/grpc-1.3.2/src/ruby/lib/grpc/grpc_c.so:
> undefined symbol: inflate -
> /<>/debian/ruby-grpc/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0/gems/grpc-1.3.2/src/ruby/lib/grpc/grpc_c.so
> (LoadError)
> 
> This is because I'm linking against libgrpc.a already in the archive.
> (See no-make-in-extconf.patch). How do I pass the path to currently
> built libgrpc.a instead? I'm using --gem-install option.

You can try something like this in debian/ruby-tests.rake (untested):

unless ENV['ADTTMP']
  # during the build, look for library in the source tree
  ENV['LD_LIBRARY_PATH'] = path_to_local_dir_containing_libgrpc_a
end


signature.asc
Description: PGP signature