On 07/08/2017 01:48 PM, Pirate Praveen wrote: > On 07/08/2017 11:53 AM, Pirate Praveen wrote: >> On 07/08/2017 07:44 AM, Antonio Terceiro wrote: >>> if the pure ruby libraries were not being installed, you would get a >>> LoadError (i.e. a `require` statement failed), but that's not what is >>> happening here. >> For tests, the pure ruby libs are available in the source tree. >> >> If I move the src/ruby/lib folder (I have locally installed ruby-grpc >> deb), then it fails with `require': cannot load such file -- grpc >> (LoadError) > > I think gem2deb expects libraries only in lib. > > s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb ) mentions > it in grpc.gemspec but I don't know if gem2deb can reply on that. >
I tried adding X-DhRuby-Root: src/ruby but then I got this failure ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install files │ └──────────────────────────────────────────────────────────────────────────────┘ install -d /<<PKGBUILDDIR>>/debian/ruby-grpc/usr/bin install -D -m755 /<<PKGBUILDDIR>>/src/ruby/bin/apis /<<PKGBUILDDIR>>/debian/ruby-grpc/usr/bin/apis install: omitting directory '/<<PKGBUILDDIR>>/src/ruby/bin/apis' /usr/lib/ruby/vendor_ruby/gem2deb.rb:56:in `run': install -D -m755 /<<PKGBUILDDIR>>/src/ruby/bin/apis /<<PKGBUILDDIR>>/debian/ruby-grpc/usr/bin/apis (Gem2Deb::CommandFailed) from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:172:in `block in install_files' from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:169:in `each' from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:169:in `install_files' from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:30:in `install_files_and_build_extensions' from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:84:in `block in install' from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:82:in `each' from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:82:in `install' from /usr/bin/dh_ruby:94:in `<main>' dh_auto_install: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-grpc returned exit code 1 debian/rules:6: recipe for target 'binary-arch' failed make: *** [binary-arch] Error 1 dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2 -------------------------------------------------------------------------------- Build finished at 2017-07-08T09:04:37Z Finished --------
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pkg-ruby-extras-maintainers mailing list Pkg-ruby-extras-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers