[Bug 294271] www/rubygem-gollum fails to run reporting errors with conflicting rack versions

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Apr 2026 01:43:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294271

            Bug ID: 294271
           Summary: www/rubygem-gollum fails to run reporting errors with
                    conflicting rack versions
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: russo@bogodyn.org
                CC: sirl33tname@gmail.com
             Flags: maintainer-feedback?(sirl33tname@gmail.com)
                CC: sirl33tname@gmail.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.