Bug 2371181

Summary: YARD is going to be broken by update to Rack 3.x+
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: rubygem-yardAssignee: Mamoru TASAKA <mtasaka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: brandfbb, jaruga, mtasaka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-yard-0.9.37-3.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-10 11:47:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vít Ondruch 2025-06-09 15:59:23 UTC
I am soon going to update rubygem-rack to Rack 3.x+ due to update of Ruby on Rails 8. Here is the PR:

https://src.fedoraproject.org/rpms/rubygem-rack/pull-request/5

But this is going to break rubygem-yard. The test suite fails with errors such as:

~~~
  1) YARD::CLI::Server General options binds address with Rack adapter
     Failure/Error: RackServer = Rack::Server

     NameError:
       uninitialized constant Rack::Server
     # ./lib/yard/server/rack_adapter.rb:12:in '<module:Server>'
     # ./lib/yard/server/rack_adapter.rb:4:in '<module:YARD>'
     # ./lib/yard/server/rack_adapter.rb:3:in '<top (required)>'
     # ./lib/yard/cli/server.rb:206:in 'block in YARD::CLI::Server#optparse'
     # ./lib/yard/cli/command.rb:56:in 'YARD::CLI::Command#parse_options'
     # ./lib/yard/cli/server.rb:223:in 'YARD::CLI::Server#optparse'
     # ./lib/yard/cli/server.rb:46:in 'YARD::CLI::Server#run'
     # ./spec/cli/server_spec.rb:64:in 'RSpec::ExampleGroups::YARDCLIServer#run'
     # ./spec/cli/server_spec.rb:202:in 'block (3 levels) in <top (required)>'
     # ./spec/spec_helper.rb:129:in 'block (2 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # LoadError:
     #   cannot load such file -- rackup
     #   ./lib/yard/server/rack_adapter.rb:6:in '<module:Server>'
~~~

This is due to `rackup` being split into independent package. This is going to be included in Fedora as part of bug 2338474. But I think that to prevent this issue adding `BR: %{_bindir}/rackup` could be good, since this file is already shipped by rubygem-rack

Reproducible: Always

Comment 1 Mamoru TASAKA 2025-06-10 07:24:24 UTC
Okay, thank you.

Comment 2 Fedora Update System 2025-06-10 08:04:00 UTC
FEDORA-2025-d22cb6876f (rubygem-yard-0.9.37-3.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d22cb6876f

Comment 3 Fedora Update System 2025-06-10 11:47:02 UTC
FEDORA-2025-d22cb6876f (rubygem-yard-0.9.37-3.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.