[DRE-maint] Bug#1100303: ruby-fakeweb: FTBFS: Error: test_uri_escape_delegates_to_uri_parser_when_available(TestUtility): NoMethodError: undefined method `any_instance' for class URI::RFC2396_Parser
Santiago Vila
sanvila at debian.org
Wed Mar 12 16:33:55 GMT 2025
Package: src:ruby-fakeweb
Version: 1.3.0+git20170806+dfsg1-3
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem=ruby --with ruby
dh_auto_clean -O--buildsystem=ruby
dh_ruby --clean
W: XS-Ruby-Versions is deprecated, and will be ignored
dh_autoreconf_clean -O--buildsystem=ruby
dh_clean -O--buildsystem=ruby
debian/rules binary
dh binary --buildsystem=ruby --with ruby
dh_update_autotools_config -O--buildsystem=ruby
dh_autoreconf -O--buildsystem=ruby
dh_auto_configure -O--buildsystem=ruby
dh_ruby --configure
dh_auto_build -O--buildsystem=ruby
dh_ruby --build
dh_auto_test -O--buildsystem=ruby
dh_ruby --test
create-stamp debian/debhelper-build-stamp
dh_testroot -O--buildsystem=ruby
dh_prep -O--buildsystem=ruby
dh_auto_install --destdir=debian/ruby-fakeweb/ -O--buildsystem=ruby
dh_ruby --install /<<BUILDDIR>>/ruby-fakeweb-1.3.0\+git20170806\+dfsg1/debian/ruby-fakeweb
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â ruby-fakeweb: Install files â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
install -d /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby
install -D -m644 /<<PKGBUILDDIR>>/lib/fake_web/ext/net_http.rb /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby/fake_web/ext/net_http.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fake_web/registry.rb /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby/fake_web/registry.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fake_web/responder.rb /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby/fake_web/responder.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fake_web/response.rb /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby/fake_web/response.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fake_web/stub_socket.rb /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby/fake_web/stub_socket.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fake_web/utility.rb /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby/fake_web/utility.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fake_web.rb /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby/fake_web.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fakeweb.rb /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby/fakeweb.rb
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â ruby-fakeweb: Install Rubygems integration metadata â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
generating gemspec at /<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/share/rubygems-integration/all/specifications/fakeweb-1.3.0.gemspec
dh_installchangelogs -pruby-fakeweb /<<PKGBUILDDIR>>/CHANGELOG upstream
/usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Checking Rubygems dependency resolution on ruby3.3 â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0 ruby3.3 -e gem\ \"fakeweb\"
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Run tests for ruby3.3 from debian/ruby-tests.rb â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-fakeweb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0 ruby3.3 debian/ruby-tests.rb
Loaded suite debian/ruby-tests
Started
E
===============================================================================
Error: test_uri_escape_delegates_to_uri_parser_when_available(TestUtility): NoMethodError: undefined method `any_instance' for class URI::RFC2396_Parser
/<<PKGBUILDDIR>>/test/test_utility.rb:78:in `test_uri_escape_delegates_to_uri_parser_when_available'
75: end
76:
77: def test_uri_escape_delegates_to_uri_parser_when_available
=> 78: parsing_object = URI.const_defined?(:Parser) ? URI::Parser.any_instance : URI
79: parsing_object.expects(:escape).with("string", /unsafe/).returns("escaped")
80: assert_equal "escaped", FakeWeb::Utility.uri_escape("string", /unsafe/)
81: end
===============================================================================
Finished in 0.04679735 seconds.
-------------------------------------------------------------------------------
181 tests, 294 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
99.4475% passed
-------------------------------------------------------------------------------
3867.74 tests/s, 6282.41 assertions/s
ERROR: Test "ruby3.3" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<BUILDDIR>>/ruby-fakeweb-1.3.0\+git20170806\+dfsg1/debian/ruby-fakeweb returned exit code 1
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202503/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:ruby-fakeweb, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the Pkg-ruby-extras-maintainers
mailing list