Project

General

Profile

Actions

Bug #2201

closed

Debian package does not depend on rubygems

Added by Alessandro Grassi about 11 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The Debian package, when installed from apt as documented in the Getting Started guide, does not install rubygems together with it.
However the installer requires "rubygems", so the installation fails immediately:

/usr/share/foreman-installer/generate_answers.rb:3:in `require': no such file to load -- rubygems (LoadError)
Actions #1

Updated by Greg Sutcliffe about 11 years ago

The Debian highline package installs the code to the ruby system library path, therefore rubygems is not needed. We should wrap the require in a rescue block...

Actions #2

Updated by Alessandro Grassi about 11 years ago

If rubygems is not needed, couldn't the line be removed straight away?

Actions #3

Updated by Greg Sutcliffe about 11 years ago

Thinking about it some more... it's likely to be needed for other distros, and maintaining patches in the packaging source is a pain. As you also need rubygems to install Foreman, we may as well depend on it.

Actions #4

Updated by Dominic Cleal almost 11 years ago

  • Status changed from New to Closed
  • Target version set to 1.2.0
  • % Done changed from 0 to 100

Fixed in 1.2 (or maybe the recent 1.1 rebuilds), thanks for the report!

https://github.com/theforeman/foreman-rpms/commit/7e8a68d9

Actions #5

Updated by Greg Sutcliffe almost 6 years ago

  • Target version deleted (1.2.0)
Actions

Also available in: Atom PDF