[DRE-maint] Bug#1100306: ruby-fuzzyurl: FTBFS: <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- mocha/setup (LoadError)
Santiago Vila
sanvila at debian.org
Wed Mar 12 16:33:59 GMT 2025
Package: src:ruby-fuzzyurl
Version: 0.8.0-1.1
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: warning: Compatibility levels before 10 are deprecated (level 9 in use)
dh_auto_clean -O--buildsystem=ruby
dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
dh_ruby --clean
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc= called from fuzzyurl.gemspec.gem2deb:15.
W: XS-Ruby-Versions is deprecated, and will be ignored
dh_clean -O--buildsystem=ruby
dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
debian/rules binary
dh binary --buildsystem=ruby --with ruby
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
dh_update_autotools_config -O--buildsystem=ruby
dh_auto_configure -O--buildsystem=ruby
dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 9 in use)
dh_ruby --configure
dh_auto_build -O--buildsystem=ruby
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
dh_ruby --build
dh_auto_test -O--buildsystem=ruby
dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 9 in use)
dh_ruby --test
dh_testroot -O--buildsystem=ruby
dh_prep -O--buildsystem=ruby
dh_auto_install --destdir=debian/ruby-fuzzyurl/ -O--buildsystem=ruby
dh_auto_install: warning: Compatibility levels before 10 are deprecated (level 9 in use)
dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc= called from fuzzyurl.gemspec.gem2deb:15.
┌──────────────────────────────────────────────────────────────────────────────â”
│ ruby-fuzzyurl: Install files │
└──────────────────────────────────────────────────────────────────────────────┘
install -d /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/lib/ruby/vendor_ruby
install -D -m644 /<<PKGBUILDDIR>>/lib/fuzzyurl/fields.rb /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/lib/ruby/vendor_ruby/fuzzyurl/fields.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fuzzyurl/match.rb /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/lib/ruby/vendor_ruby/fuzzyurl/match.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fuzzyurl/protocols.rb /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/lib/ruby/vendor_ruby/fuzzyurl/protocols.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fuzzyurl/strings.rb /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/lib/ruby/vendor_ruby/fuzzyurl/strings.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fuzzyurl/version.rb /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/lib/ruby/vendor_ruby/fuzzyurl/version.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/fuzzyurl.rb /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/lib/ruby/vendor_ruby/fuzzyurl.rb
┌──────────────────────────────────────────────────────────────────────────────â”
│ ruby-fuzzyurl: Install Rubygems integration metadata │
└──────────────────────────────────────────────────────────────────────────────┘
generating gemspec at /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/share/rubygems-integration/all/specifications/fuzzyurl-0.8.0.gemspec
/usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner
┌──────────────────────────────────────────────────────────────────────────────â”
│ Checking Rubygems dependency resolution on ruby3.3 │
└──────────────────────────────────────────────────────────────────────────────┘
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed in Rubygems 4
Gem::Specification#has_rdoc= called from fuzzyurl.gemspec.gem2deb:15.
RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/share/rubygems-integration/all:/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\ \"fuzzyurl\"
┌──────────────────────────────────────────────────────────────────────────────â”
│ Run tests for ruby3.3 from debian/ruby-tests.rake │
└──────────────────────────────────────────────────────────────────────────────┘
RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-fuzzyurl/usr/share/rubygems-integration/all:/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 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
/usr/bin/ruby3.3 -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/fuzzyurl/match_test.rb" "test/fuzzyurl/protocols_test.rb" "test/fuzzyurl/strings_test.rb" "test/fuzzyurl_test.rb" "test/url_suite_test.rb" "test/test_helper.rb" -v
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- mocha/setup (LoadError)
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:136:in `require'
from /<<PKGBUILDDIR>>/test/test_helper.rb:3:in `<top (required)>'
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:136:in `require'
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:136:in `require'
from /<<PKGBUILDDIR>>/test/fuzzyurl/match_test.rb:1:in `<top (required)>'
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:136:in `require'
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:136:in `require'
from /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:21:in `block in <main>'
from /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in `select'
from /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in `<main>'
rake aborted!
Command failed with status (1): [ruby -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/fuzzyurl/match_test.rb" "test/fuzzyurl/protocols_test.rb" "test/fuzzyurl/strings_test.rb" "test/fuzzyurl_test.rb" "test/url_suite_test.rb" "test/test_helper.rb" -v]
/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => default
(See full trace by running task with --trace)
ERROR: Test "ruby3.3" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-fuzzyurl returned exit code 1
make: *** [debian/rules:6: binary] Error 255
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-fuzzyurl, 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