[DRE-maint] Bug#1123465: ruby-benchmark-suite: FTBFS: NoMethodError: undefined method `first' for nil

Santiago Vila sanvila at debian.org
Tue Dec 16 20:29:34 GMT 2025


Package: src:ruby-benchmark-suite
Version: 1.0.0+git.20130122.5bded6-3
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202512/

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 cannot 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-benchmark-suite, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=ruby --with ruby
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean
	dh_ruby --clean
W: XS-Ruby-Versions is deprecated, and will be ignored
rm -rf doc
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   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
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
	dh_ruby --build
# build documentation
rdoc --main=README.md lib
Parsing sources...
 33% [ 1/ 3]  lib/benchmark/suite-run.rb
 66% [ 2/ 3]  lib/benchmark/suite.rb
100% [ 3/ 3]  lib/benchmark_suite.rb

Generating Darkfish format into /<<PKGBUILDDIR>>/doc...


  Files:       3

  Classes:     3 ( 3 undocumented)
  Modules:     1 ( 1 undocumented)
  Constants:   1 ( 1 undocumented)
  Attributes:  4 ( 4 undocumented)
  Methods:    12 (12 undocumented)

  Total:      21 (21 undocumented)
    0.00% documented

  Elapsed: 0.0s

make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   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
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_install
	dh_ruby --install /<<BUILDDIR>>/ruby-benchmark-suite-1.0.0\+git.20130122.5bded6/debian/tmp

┌──────────────────────────────────────────────────────────────────────────────┐
│ ruby-benchmark-suite: Install files                                          │
└──────────────────────────────────────────────────────────────────────────────┘

install -d /<<PKGBUILDDIR>>/debian/ruby-benchmark-suite/usr/bin
install -D -m755 /<<PKGBUILDDIR>>/bin/benchmark /<<PKGBUILDDIR>>/debian/ruby-benchmark-suite/usr/bin/benchmark
install -d /<<PKGBUILDDIR>>/debian/ruby-benchmark-suite/usr/lib/ruby/vendor_ruby
install -D -m644 /<<PKGBUILDDIR>>/lib/benchmark/suite-run.rb /<<PKGBUILDDIR>>/debian/ruby-benchmark-suite/usr/lib/ruby/vendor_ruby/benchmark/suite-run.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/benchmark/suite.rb /<<PKGBUILDDIR>>/debian/ruby-benchmark-suite/usr/lib/ruby/vendor_ruby/benchmark/suite.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/benchmark_suite.rb /<<PKGBUILDDIR>>/debian/ruby-benchmark-suite/usr/lib/ruby/vendor_ruby/benchmark_suite.rb
Rewriting shebang line of /<<PKGBUILDDIR>>/debian/ruby-benchmark-suite/usr/bin/benchmark

┌──────────────────────────────────────────────────────────────────────────────┐
│ ruby-benchmark-suite: Install Rubygems integration metadata                  │
└──────────────────────────────────────────────────────────────────────────────┘

/usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby3.3 from debian/ruby-tests.rb                              │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-benchmark-suite/usr/lib/ruby/vendor_ruby:. GEM_PATH=/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
ruby 3.3.8 (2025-04-09 revision b200bad6cd) [x86_64-linux-gnu]
Warming up --------------------------------------
               sleep     1.000 i/100ms
Calculating -------------------------------------
               sleep      3.998 (± 0.0%) i/s  (250.10 ms/i) -      4.000 in   1.000396s
E
===============================================================================
Error: test_ips(TestBenchmarkSuite): NoMethodError: undefined method `first' for nil
/<<PKGBUILDDIR>>/test/test_benchmark_suite.rb:14:in `test_ips'
     11:       end
     12:     end
     13: 
  => 14:     rep = s.report.first
     15: 
     16:     assert_equal "sleep", rep.label
     17:     assert_equal 4, rep.iterations
===============================================================================
Finished in 2.007864016 seconds.
-------------------------------------------------------------------------------
1 tests, 0 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
0% passed
-------------------------------------------------------------------------------
0.50 tests/s, 0.00 assertions/s
/usr/lib/ruby/vendor_ruby/gem2deb.rb:52:in `run': /usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner (Gem2Deb::CommandFailed)
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:64:in `block in run_ruby'
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:87:in `maybe_crossbuild'
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:63:in `run_ruby'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:189:in `run_tests_for_version'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:176:in `block in run_tests'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:175:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:175:in `run_tests'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:71:in `run_tests'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:57:in `install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:163:in `install'
	from /usr/bin/dh_ruby:89:in `<main>'
dh_auto_install: error: dh_ruby --install /<<BUILDDIR>>/ruby-benchmark-suite-1.0.0\+git.20130122.5bded6/debian/tmp returned exit code 1
make[1]: *** [debian/rules:27: override_dh_auto_install] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



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