[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help with building ruby-grpc



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
> /<<PKGBUILDDIR>>/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':
> /<<PKGBUILDDIR>>/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 -
> /<<PKGBUILDDIR>>/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

Attachment: signature.asc
Description: PGP signature


Reply to: