[DRE-maint] Bug#996316: ruby-mechanize: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: /usr/lib/ruby/vendor_ruby/rubygems/dependency.rb:311:in `to_specs': Could not find 'webrick' (~> 1.6) among 107 total gem(s) (Gem::MissingSpecError)

Antonio Terceiro terceiro at debian.org
Tue Oct 12 23:49:50 BST 2021


Source: ruby-mechanize
Version: 2.7.7-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-mechanize was found to fail to build in that situation.

To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
> /usr/lib/ruby/vendor_ruby/rubygems/dependency.rb:311:in `to_specs': Could not find 'webrick' (~> 1.6) among 107 total gem(s) (Gem::MissingSpecError)
> Checked in 'GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-mechanize/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.0.0:/var/lib/gems/3.0.0:/usr/local/lib/ruby/gems/3.0.0:/usr/lib/ruby/gems/3.0.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.0.0:/usr/share/rubygems-integration/3.0.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.0.0' , execute `gem env` for more information
> 	from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1402:in `block in activate_dependencies'
> 	from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `each'
> 	from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `activate_dependencies'
> 	from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1372:in `activate'
> 	from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_gem.rb:68:in `block in gem'
> 	from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_gem.rb:68:in `synchronize'
> 	from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_gem.rb:68:in `gem'
> 	from -e:1:in `<main>'
> benchmark (default: 0.1.0)
> bigdecimal (default: 2.0.0)
> bundler (default: 2.1.4)
> cgi (default: 0.1.0)
> connection_pool (2.2.2)
> csv (default: 3.1.2)
> date (default: 3.0.0)
> dbm (default: 1.1.0)
> delegate (default: 0.1.0)
> did_you_mean (default: 1.4.0)
> domain_name (0.5.20190701)
> etc (default: 1.1.0)
> fcntl (default: 1.0.0)
> fiddle (default: 1.0.0)
> fileutils (default: 1.4.1)
> forwardable (default: 1.3.1)
> gdbm (default: 2.1.0)
> getoptlong (default: 0.1.0)
> http-cookie (1.0.3)
> io-console (default: 0.5.6)
> ipaddr (default: 1.2.2)
> irb (default: 1.2.6)
> json (default: 2.3.0)
> logger (default: 1.4.2)
> matrix (default: 0.2.0)
> mime-types (3.3.1)
> mime-types-data (3.2015.1120)
> minitest (5.13.0)
> mutex_m (default: 0.1.0)
> net-http-digest_auth (1.4)
> net-http-persistent (3.1.0)
> net-pop (default: 0.1.0)
> net-smtp (default: 0.1.0)
> net-telnet (0.1.1)
> nokogiri (1.11.7)
> observer (default: 0.1.0)
> open3 (default: 0.1.0)
> openssl (default: 2.1.2)
> ostruct (default: 0.2.0)
> pkg-config (1.4.6)
> power_assert (1.1.7)
> prime (default: 0.1.1)
> pstore (default: 0.1.0)
> psych (default: 3.1.0)
> racc (default: 1.4.16, 1.4.14)
> rake (13.0.3)
> rdoc (default: 6.2.1.1)
> readline (default: 0.0.2)
> readline-ext (default: 0.1.0)
> reline (default: 0.1.5)
> rexml (default: 3.2.3.1)
> rss (default: 0.2.8)
> rubygems-update (3.2.27)
> rubyntlm (0.6.1)
> sdbm (default: 1.0.0)
> singleton (default: 0.1.0)
> stringio (default: 0.1.0)
> strscan (default: 1.0.3)
> test-unit (3.3.9)
> timeout (default: 0.1.0)
> tracer (default: 0.1.0)
> unf (0.1.4)
> unf_ext (0.0.7.7)
> uri (default: 0.10.0)
> webrick (default: 1.6.1)
> webrobots (0.1.2)
> xmlrpc (0.3.0)
> yaml (default: 0.1.0)
> zlib (default: 1.1.0)
> ERROR: Test "ruby3.0" failed: 

Note that webrick has been removed from the standard library. It's
already been packaged and is currently in NEW, but this package now
needs an explicit dependency on it.


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-mechanize/ruby-mechanize_2.7.7-1+rebuild1633386391_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211012/62761ec2/attachment-0001.sig>


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