[DRE-maint] Bug#818520: ruby-tokyocabinet: FTBFS: [tokyocabinet.gemspec] isn't a Gem::Specification

Antonio Terceiro terceiro at debian.org
Thu Mar 17 21:54:44 UTC 2016


On Thu, Mar 17, 2016 at 11:32:48AM -0700, Martin Michlmayr wrote:
> Package: ruby-tokyocabinet
> Version: 1.31-4
> Severity: serious
> 
> This package fails to build in unstable:
> 
> > sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
> ...
> >    dh_testdir -O--buildsystem=ruby
> >    dh_auto_clean -O--buildsystem=ruby
> > 	dh_ruby --clean
> > [tokyocabinet.gemspec] isn't a Gem::Specification (NilClass instead).
> > [tokyocabinet.gemspec.gem2deb] isn't a Gem::Specification (NilClass instead).
> > /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:116:in `load_gemspec': E: cannot load gemspec tokyocabinet.gemspec (RuntimeError)
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:33:in `block in initialize'
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:32:in `chdir'
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:32:in `initialize'
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:24:in `new'
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:24:in `initialize'
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:202:in `new'
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:202:in `block in installers'
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:201:in `map'
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:201:in `installers'
> > 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:43:in `clean'
> > 	from /usr/bin/dh_ruby:96:in `<main>'
> >    dh_ruby --clean
> > dh_auto_clean: dh_ruby --clean returned exit code 1
> > debian/rules:18: recipe for target 'clean' failed

FYI I was checking the new CI failures triggered by the recent changes in
gem2deb, and in this case the issue is some crap at the bottom of the gemspec:

$ ruby -e 'puts Gem::Specification.load("tokyocabinet.gemspec").inspect'
[tokyocabinet.gemspec] isn't a Gem::Specification (NilClass instead).
nil
$ sed -e '/^if/,$d' tokyocabinet.gemspec > new.gemspec
$ ruby -e 'puts Gem::Specification.load("new.gemspec").inspect'
#<Gem::Specification:0x1361cfc tokyocabinet-1.31>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20160317/aa2e7028/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list