Project

General

Profile

Bug #15628

Fix activesupport/rdoc dep issue

Added by Mark Austin over 4 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Packaging
Target version:
-

Description

Installation from current source results in the following error:

/opt/foreman/vendor/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- rdoc (LoadError)
from /opt/foreman/vendor/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /opt/foreman/vendor/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /opt/foreman/vendor/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/markup.rb:8:in `initialize'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/configuration.rb:139:in `new'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/configuration.rb:139:in `initialize'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/apipie_module.rb:26:in `new'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/apipie_module.rb:26:in `configuration'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/extractor.rb:38:in `finish'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/extractor.rb:179:in `block in <top (required)>'

Associated revisions

Revision 604e1e99 (diff)
Added by Viliam Krizan 6 months ago

Fixes #15628 - Require rdoc for apipie-rails

apipie-rails has rdoc optional, however, its default markup generator is
RDoc. rdoc seems to be found on most of the default OS installations
through inclusion from rubygems.

This fixes (development) setup when rdoc is missing:

```
`require': cannot load such file -- rdoc (LoadError)
```

Technically, the apipie-rails should not fail with default configuraton
when an optional dependency is not installed:
https://github.com/Apipie/apipie-rails/issues/544

Revision f630418a (diff)
Added by Ohad Levy 6 months ago

refs #15628 - remove unused rdoc gem reference

History

#1 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3632 added

#2 Updated by Dominic Cleal almost 4 years ago

  • Status changed from Ready For Testing to New
  • Assignee deleted (Mark Austin)
  • Pull request deleted (https://github.com/theforeman/foreman/pull/3632)

PR closed due to inactivity, but the issue is still valid (on Ruby distributions with RDoc shipped separately).

#3 Updated by Anonymous over 3 years ago

  • Pull request https://github.com/theforeman/foreman/pull/4503 added

#4 Updated by Viliam Krizan 7 months ago

Mark Austin wrote:

Installation from current source results in the following error:

/opt/foreman/vendor/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- rdoc (LoadError)
from /opt/foreman/vendor/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /opt/foreman/vendor/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /opt/foreman/vendor/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/markup.rb:8:in `initialize'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/configuration.rb:139:in `new'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/configuration.rb:139:in `initialize'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/apipie_module.rb:26:in `new'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/apipie_module.rb:26:in `configuration'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/extractor.rb:38:in `finish'
from /opt/foreman/vendor/ruby/2.1.0/gems/apipie-rails-0.3.6/lib/apipie/extractor.rb:179:in `block in <top (required)>'

This is an issue of apipie-rails: https://github.com/Apipie/apipie-rails/issues/544

rdoc is set as a development (optional) dependency, however it is required right on the apipie-rails import.

#5 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7671 added

#6 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases 2.2.0 added

#7 Updated by Viliam Krizan 6 months ago

  • Status changed from Ready For Testing to Closed

#8 Updated by The Foreman Bot 6 months ago

  • Assignee set to Ohad Levy
  • Pull request https://github.com/theforeman/foreman/pull/7688 added

#9 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added

Also available in: Atom PDF