[DRE-maint] Bug#1094123: ruby-mongo: FTBFS: /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:135:in `load_gemspec': E: cannot load gemspec mongo.gemspec (RuntimeError)

Lucas Nussbaum lucas at debian.org
Fri Jan 24 20:25:00 GMT 2025


Source: ruby-mongo
Version: 2.5.1-1.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20250124 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules clean
> dh clean --buildsystem=ruby --with ruby
>    dh_auto_clean -O--buildsystem=ruby
> 	dh_ruby --clean
> Invalid gemspec in [mongo.gemspec.gem2deb]: undefined method `exists?' for class File
> Invalid gemspec in [mongo.gemspec]: undefined method `exists?' for class File
> /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:135:in `load_gemspec': E: cannot load gemspec mongo.gemspec (RuntimeError)
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:37:in `block in initialize'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:36:in `chdir'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:36: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:240:in `new'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:240:in `block in installers'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:239:in `map'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:239:in `installers'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:121:in `clean'
> 	from /usr/bin/dh_ruby:91:in `<main>'
> W: XS-Ruby-Versions is deprecated, and will be ignored
> dh_auto_clean: error: dh_ruby --clean returned exit code 1
> make: *** [debian/rules:15: clean] Error 25


The full build log is available from:
http://qa-logs.debian.net/2025/01/24/ruby-mongo_2.5.1-1.1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20250124;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20250124&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



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