[DRE-maint] Bug#1093921: ruby-hipchat: FTBFS: Failure/Error: require 'mimemagic'

Santiago Vila sanvila at debian.org
Fri Jan 24 00:59:51 GMT 2025


Package: src:ruby-hipchat
Version: 1.6.0-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_auto_clean -O--buildsystem=ruby
	dh_ruby --clean
W: XS-Ruby-Versions is deprecated, and will be ignored
   dh_autoreconf_clean -O--buildsystem=ruby
   debian/rules override_dh_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf coverage
dh_clean
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
 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-hipchat/ -O--buildsystem=ruby
	dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-hipchat

┌──────────────────────────────────────────────────────────────────────────────┐
│ ruby-hipchat: Install files                                                  │
└──────────────────────────────────────────────────────────────────────────────┘

install -d /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/api_version.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/api_version.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/capistrano/tasks/hipchat.rake /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/capistrano/tasks/hipchat.rake
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/capistrano.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/capistrano.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/capistrano2.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/capistrano2.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/chef.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/chef.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/client.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/client.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/errors.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/errors.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/file_helper.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/file_helper.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/rails3_tasks.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/rails3_tasks.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/railtie.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/railtie.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/room.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/room.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/user.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/user.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat/version.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat/version.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/hipchat.rb /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby/hipchat.rb

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

generating gemspec at /<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/share/rubygems-integration/all/specifications/hipchat-1.6.0.gemspec
/usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner

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

RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
/usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec ./spec/hipchat_error_handler_spec.rb ./spec/hipchat_spec.rb --format documentation
warning: coveralls gem not found; skipping coverage

HipChat::ErrorHandler
  response_code_to_exception_for
    success codes
      Hipchat API responds with success
        code 200
          it should behave like the error handler
            does not raise an error
        code 201
          it should behave like the error handler
            does not raise an error
        code 202
          it should behave like the error handler
            does not raise an error
        code 204
          it should behave like the error handler
            does not raise an error
    failure codes
      Hipchat API responds with Not Found
        code 404
          it should behave like the error handler
            raises the correct client error
      Hipchat API responds with Unauthorized
        code 401
          it should behave like the error handler
            raises the correct client error
        code 403
          it should behave like the error handler
            raises the correct client error
      Hipchat API responds with Bad Request
        code 400
          it should behave like the error handler
            raises the correct client error
      Hipchat API responds with MethodNotAllowed
        code 405
          it should behave like the error handler
            raises the correct client error
      Hipchat API responds with TooManyRequests
        code 429
          it should behave like the error handler
            raises the correct client error
      Hipchat API responds with an unknown response code
        code 502
          it should behave like the error handler
            raises the correct client error

HipChat
  http_proxy
    specified by option of constructor
      Client's proxy settings should be changed
      Room class's proxy
        proxy settings should be changed
  options
    api_version
      defaults to a v2 client
      when given 'v1' it registers a v1 client
      when given 'v2' it registers a v2 client
      when given '2' it raises an exception
    server_url
      defaults to 'https://api.hipchat.com'
      can be overridden to 'http://hipchat.example.com'

Finished in 0.02412 seconds (files took 0.51975 seconds to load)
19 examples, 0 failures

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

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

RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-hipchat/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-hipchat/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 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
/usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec ./spec/hipchat_error_handler_spec.rb ./spec/hipchat_spec.rb --format documentation

An error occurred while loading ./spec/hipchat_error_handler_spec.rb. - Did you mean?
                    rspec ./spec/hipchat_spec.rb

Failure/Error: require 'mimemagic'

LoadError:
  cannot load such file -- mimemagic
# ./lib/hipchat/file_helper.rb:1:in `<top (required)>'
# ./lib/hipchat.rb:7:in `<module:HipChat>'
# ./lib/hipchat.rb:4:in `<top (required)>'
# ./spec/spec_helper.rb:3:in `<top (required)>'
# ./spec/hipchat_error_handler_spec.rb:1:in `<top (required)>'

An error occurred while loading ./spec/hipchat_spec.rb. - Did you mean?
                    rspec ./spec/hipchat_api_v2_spec.rb

Failure/Error: require 'mimemagic'

LoadError:
  cannot load such file -- mimemagic
# ./lib/hipchat/file_helper.rb:1:in `<top (required)>'
# ./lib/hipchat.rb:7:in `<module:HipChat>'
# ./lib/hipchat.rb:4:in `<top (required)>'
# ./spec/spec_helper.rb:3:in `<top (required)>'
# ./spec/hipchat_spec.rb:1:in `<top (required)>'
No examples found.

Finished in 0.00007 seconds (files took 0.06453 seconds to load)
0 examples, 0 failures, 2 errors occurred outside of examples

/usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec ./spec/hipchat_error_handler_spec.rb ./spec/hipchat_spec.rb --format documentation failed
ERROR: Test "ruby3.3" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-hipchat returned exit code 1
make: *** [debian/rules:15: 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/202501/

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-hipchat, 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