Bug 294271 - www/rubygem-gollum fails to run reporting errors with conflicting rack versions
Summary: www/rubygem-gollum fails to run reporting errors with conflicting rack versions
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-06 01:43 UTC by russo
Modified: 2026-04-06 01:43 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sirl33tname)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description russo 2026-04-06 01:43:49 UTC
Sometime back in January I installed rubygem-gollum and all its dependencies, and it worked fine.

Today I tried to run it and got the following errors:
/usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:196:in `rescue in try_activate': undefined method `name' for nil (NoMethodError)

      spec ||= Gem::Specification.find_by_name(spec.name)
                                                   ^^^^^
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:192:in `try_activate'
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:142:in `block in require'
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:142:in `synchronize'
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:142:in `rescue in require'
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:138:in `require'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:110:in `require_handler'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:52:in `rescue in get'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:49:in `get'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:74:in `block in pick'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:72:in `each'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:72:in `pick'
        from /usr/local/lib/ruby/gems/3.3/gems/sinatra-4.2.1/lib/sinatra/base.rb:1631:in `run!'
        from /usr/local/lib/ruby/gems/3.3/gems/gollum-6.1.0/bin/gollum:294:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:304:in `load'
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:304:in `activate_and_load_bin_path'
        from /usr/local/bin/gollum:25:in `<main>'
/usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:2179:in `check_version_conflict': can't activate rack-2.2.22, already activated rack-3.1.20 (Gem::LoadError)
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:1388:in `activate'
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:193:in `try_activate'
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:142:in `block in require'
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:142:in `synchronize'
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:142:in `rescue in require'
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:138:in `require'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:110:in `require_handler'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:52:in `rescue in get'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:49:in `get'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:74:in `block in pick'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:72:in `each'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:72:in `pick'
        from /usr/local/lib/ruby/gems/3.3/gems/sinatra-4.2.1/lib/sinatra/base.rb:1631:in `run!'
        from /usr/local/lib/ruby/gems/3.3/gems/gollum-6.1.0/bin/gollum:294:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:304:in `load'
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:304:in `activate_and_load_bin_path'
        from /usr/local/bin/gollum:25:in `<main>'
<internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:139:in `require': cannot load such file -- rack/handler/thin (LoadError)
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:139:in `require'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:110:in `require_handler'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:52:in `rescue in get'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:49:in `get'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:74:in `block in pick'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:72:in `each'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:72:in `pick'
        from /usr/local/lib/ruby/gems/3.3/gems/sinatra-4.2.1/lib/sinatra/base.rb:1631:in `run!'
        from /usr/local/lib/ruby/gems/3.3/gems/gollum-6.1.0/bin/gollum:294:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:304:in `load'
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:304:in `activate_and_load_bin_path'
        from /usr/local/bin/gollum:25:in `<main>'
<internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:139:in `require': cannot load such file -- rackup/handler/thin (LoadError)
        from <internal:/usr/local/lib/ruby/site_ruby/3.3/rubygems/core_ext/kernel_require.rb>:139:in `require'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:110:in `require_handler'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:50:in `get'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:74:in `block in pick'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:72:in `each'
        from /usr/local/lib/ruby/gems/3.3/gems/rackup-2.3.1/lib/rackup/handler.rb:72:in `pick'
        from /usr/local/lib/ruby/gems/3.3/gems/sinatra-4.2.1/lib/sinatra/base.rb:1631:in `run!'
        from /usr/local/lib/ruby/gems/3.3/gems/gollum-6.1.0/bin/gollum:294:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:304:in `load'
        from /usr/local/lib/ruby/site_ruby/3.3/rubygems.rb:304:in `activate_and_load_bin_path'
        from /usr/local/bin/gollum:25:in `<main>'


I'm not sure what the source of the problem is or when it showed up, since I have only used gollum a few times since installing it in January and not since then.   

Since the ONLY rubygems I have installed are those required by gollum I tried to see if this was some sort of issue of conflicting old installs by deleting *all* rubygem ports including gollum, and then reinstalling gollum from ports.  The end result was that both versions of rubygem-rack (rubygem-rack and rubygem-rack22) got installed in the process, and the new install fails in the same way.