[DRE-maint] Bug#1100314: ruby-rack-rewrite: 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:34:15 GMT 2025
Package: src:ruby-rack-rewrite
Version: 1.5.1-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 7 in use)
dh_auto_clean -O--buildsystem=ruby
dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 7 in use)
dh_ruby --clean
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 7 in use)
debian/rules binary
dh binary --buildsystem=ruby --with ruby
dh: warning: Compatibility levels before 10 are deprecated (level 7 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 7 in use)
dh_ruby --configure
dh_auto_build -O--buildsystem=ruby
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 7 in use)
dh_ruby --build
dh_auto_test -O--buildsystem=ruby
dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 7 in use)
dh_ruby --test
dh_testroot -O--buildsystem=ruby
dh_prep -O--buildsystem=ruby
dh_auto_install --destdir=debian/ruby-rack-rewrite/ -O--buildsystem=ruby
dh_auto_install: warning: Compatibility levels before 10 are deprecated (level 7 in use)
dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-rack-rewrite
┌──────────────────────────────────────────────────────────────────────────────â”
│ ruby-rack-rewrite: Install files │
└──────────────────────────────────────────────────────────────────────────────┘
install -d /<<PKGBUILDDIR>>/debian/ruby-rack-rewrite/usr/lib/ruby/vendor_ruby
install -D -m644 /<<PKGBUILDDIR>>/lib/rack/rewrite/rule.rb /<<PKGBUILDDIR>>/debian/ruby-rack-rewrite/usr/lib/ruby/vendor_ruby/rack/rewrite/rule.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/rack/rewrite/version.rb /<<PKGBUILDDIR>>/debian/ruby-rack-rewrite/usr/lib/ruby/vendor_ruby/rack/rewrite/version.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/rack/rewrite.rb /<<PKGBUILDDIR>>/debian/ruby-rack-rewrite/usr/lib/ruby/vendor_ruby/rack/rewrite.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/rack-rewrite.rb /<<PKGBUILDDIR>>/debian/ruby-rack-rewrite/usr/lib/ruby/vendor_ruby/rack-rewrite.rb
┌──────────────────────────────────────────────────────────────────────────────â”
│ ruby-rack-rewrite: Install Rubygems integration metadata │
└──────────────────────────────────────────────────────────────────────────────┘
generating gemspec at /<<PKGBUILDDIR>>/debian/ruby-rack-rewrite/usr/share/rubygems-integration/all/specifications/rack-rewrite-1.5.1.gemspec
/usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner
┌──────────────────────────────────────────────────────────────────────────────â”
│ Run tests for ruby3.3 from debian/ruby-tests.rb │
└──────────────────────────────────────────────────────────────────────────────┘
RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-rack-rewrite/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-rack-rewrite/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 debian/ruby-tests.rb
<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/rack-rewrite_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 debian/ruby-tests.rb:7:in `block in <main>'
from debian/ruby-tests.rb:7:in `each'
from debian/ruby-tests.rb:7:in `<main>'
ERROR: Test "ruby3.3" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-rack-rewrite returned exit code 1
make: *** [debian/rules:15: 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-rack-rewrite, 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