[DRE-maint] Bug#1093920: ruby-capybara: FTBFS: Capybara is unable to load `puma` for its server

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


Package: src:ruby-capybara
Version: 3.40.0+ds-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
   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

[... snipped ...]

     # --- Caused by: ---
     # LoadError:
     #   cannot load such file -- rack/handler/puma
     #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  10) Capybara::Session DSL #current_url, #current_path, #current_host redirects to a fragment
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  11) Capybara::DSL#current_session should change with the current driver
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  12) Capybara::DSL#current_session should be persistent even across driver changes
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  13) Capybara::Session RackTest #current_url, #current_path, #current_host is affected by visiting a page directly
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  14) Capybara::Session RackTest #current_url, #current_path, #current_host returns to the app host when visiting a relative url
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  15) Capybara::Session RackTest #current_url, #current_path, #current_host is affected by setting Capybara.app_host
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  16) Capybara::Session RackTest #current_url, #current_path, #current_host is unaffected by following a relative link
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  17) Capybara::Session RackTest #current_url, #current_path, #current_host is affected by following an absolute link
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  18) Capybara::Session RackTest #current_url, #current_path, #current_host is unaffected by posting through a relative form
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  19) Capybara::Session RackTest #current_url, #current_path, #current_host is affected by posting through an absolute form
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  20) Capybara::Session RackTest #current_url, #current_path, #current_host is affected by following a redirect
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  21) Capybara::Session RackTest #current_url, #current_path, #current_host maintains fragment
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  22) Capybara::Session RackTest #current_url, #current_path, #current_host redirects to a fragment
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  23) Capybara::Session RackTest #current_url, #current_path, #current_host doesn't raise exception on a nil current_url
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  24) Capybara::Server should spool up a rack server
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  25) Capybara::Server should do nothing when no server given
      Failure/Error:
        expect do
          described_class.new(nil).boot
        end.not_to raise_error

        expected no Exception, got #<LoadError: Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.> with backtrace:
          # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
          # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
          # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
          # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
          # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # /<<PKGBUILDDIR>>/spec/server_spec.rb:16:in `block (2 levels) in <top (required)>'

  26) Capybara::Server should bind to the specified host
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  27) Capybara::Server should use specified port
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  28) Capybara::Server should use given port
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  29) Capybara::Server should find an available port
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  30) Capybara::Server should return its #base_url
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  31) Capybara::Server should call #clamp on the puma configuration to ensure that environment is a string
      Failure/Error: require 'puma'

      LoadError:
        cannot load such file -- puma
      # /<<PKGBUILDDIR>>/spec/server_spec.rb:105:in `block (2 levels) in <top (required)>'

  32) Capybara::Server should not emit any warnings when booting puma
      Failure/Error: require 'puma'

      LoadError:
        cannot load such file -- puma
      # /<<PKGBUILDDIR>>/spec/server_spec.rb:124:in `block (2 levels) in <top (required)>'

  33) Capybara::Server should raise an error when there are pending requests
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  34) Capybara::Server When Capybara.reuse_server is true should use the existing server if it already running
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  35) Capybara::Server When Capybara.reuse_server is true detects and waits for all reused server sessions pending requests
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  36) Capybara::Server When Capybara.reuse_server is false should not reuse an already running server
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

  37) Capybara::Server When Capybara.reuse_server is false detects and waits for only one sessions pending requests
      Failure/Error: raise LoadError, 'Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.'

      LoadError:
        Capybara is unable to load `puma` for its server, please add `puma` to your project or specify a different server via something like `Capybara.server = :webrick`.
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:29:in `rescue in block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:26:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara.rb:254:in `run_default_server'
      # /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:4:in `block in <top (required)>'
      # /<<PKGBUILDDIR>>/lib/capybara/server.rb:77:in `block in boot'
      # ------------------
      # --- Caused by: ---
      # LoadError:
      #   cannot load such file -- rack/handler/puma
      #   /<<PKGBUILDDIR>>/lib/capybara/registrations/servers.rb:27:in `block in <top (required)>'

Finished in 33.05 seconds (files took 0.58476 seconds to load)
2573 examples, 37 failures, 6 pending

Failed examples:

rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:1]' # Capybara::Session DSL #current_url, #current_path, #current_host is affected by visiting a page directly
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:2]' # Capybara::Session DSL #current_url, #current_path, #current_host returns to the app host when visiting a relative url
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:3]' # Capybara::Session DSL #current_url, #current_path, #current_host is affected by setting Capybara.app_host
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:4]' # Capybara::Session DSL #current_url, #current_path, #current_host is unaffected by following a relative link
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:5]' # Capybara::Session DSL #current_url, #current_path, #current_host is affected by following an absolute link
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:6]' # Capybara::Session DSL #current_url, #current_path, #current_host is unaffected by posting through a relative form
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:7]' # Capybara::Session DSL #current_url, #current_path, #current_host is affected by posting through an absolute form
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:8]' # Capybara::Session DSL #current_url, #current_path, #current_host is affected by following a redirect
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:9]' # Capybara::Session DSL #current_url, #current_path, #current_host maintains fragment
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[1:27:10]' # Capybara::Session DSL #current_url, #current_path, #current_host redirects to a fragment
rspec /<<PKGBUILDDIR>>/spec/dsl_spec.rb:167 # Capybara::DSL#current_session should change with the current driver
rspec /<<PKGBUILDDIR>>/spec/dsl_spec.rb:173 # Capybara::DSL#current_session should be persistent even across driver changes
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:1]' # Capybara::Session RackTest #current_url, #current_path, #current_host is affected by visiting a page directly
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:2]' # Capybara::Session RackTest #current_url, #current_path, #current_host returns to the app host when visiting a relative url
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:3]' # Capybara::Session RackTest #current_url, #current_path, #current_host is affected by setting Capybara.app_host
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:4]' # Capybara::Session RackTest #current_url, #current_path, #current_host is unaffected by following a relative link
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:5]' # Capybara::Session RackTest #current_url, #current_path, #current_host is affected by following an absolute link
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:6]' # Capybara::Session RackTest #current_url, #current_path, #current_host is unaffected by posting through a relative form
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:7]' # Capybara::Session RackTest #current_url, #current_path, #current_host is affected by posting through an absolute form
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:8]' # Capybara::Session RackTest #current_url, #current_path, #current_host is affected by following a redirect
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:9]' # Capybara::Session RackTest #current_url, #current_path, #current_host maintains fragment
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:10]' # Capybara::Session RackTest #current_url, #current_path, #current_host redirects to a fragment
rspec '/<<PKGBUILDDIR>>/lib/capybara/spec/spec_helper.rb[2:27:13]' # Capybara::Session RackTest #current_url, #current_path, #current_host doesn't raise exception on a nil current_url
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:6 # Capybara::Server should spool up a rack server
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:15 # Capybara::Server should do nothing when no server given
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:21 # Capybara::Server should bind to the specified host
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:42 # Capybara::Server should use specified port
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:54 # Capybara::Server should use given port
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:64 # Capybara::Server should find an available port
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:95 # Capybara::Server should return its #base_url
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:102 # Capybara::Server should call #clamp on the puma configuration to ensure that environment is a string
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:121 # Capybara::Server should not emit any warnings when booting puma
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:265 # Capybara::Server should raise an error when there are pending requests
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:168 # Capybara::Server When Capybara.reuse_server is true should use the existing server if it already running
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:181 # Capybara::Server When Capybara.reuse_server is true detects and waits for all reused server sessions pending requests
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:213 # Capybara::Server When Capybara.reuse_server is false should not reuse an already running server
rspec /<<PKGBUILDDIR>>/spec/server_spec.rb:226 # Capybara::Server When Capybara.reuse_server is false detects and waits for only one sessions pending requests

/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 --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby3.3" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<BUILDDIR>>/ruby-capybara-3.40.0\+ds/debian/ruby-capybara returned exit code 1
make: *** [debian/rules:11: 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-capybara, 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