Project

General

Profile

Bug #7970

Default Ubuntu 12.04 Ruby should be 1.8

Added by Dominic Cleal almost 6 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Debian/Ubuntu
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

After installation with #7227, the default Ruby becomes 1.9.3 but should probably be 1.8. At the least, we should support switching it back, but there are a few cases where the wrong version would be loaded.

  • /usr/sbin/foreman-rake calls "/usr/bin/rake" but should be "/usr/bin/rake1.9.1"
  • postinst scripts call "bundle", but this will use the default Ruby

Related issues

Related to Packaging - Feature #7227: Move Ubuntu 12.04 packages to Brightbox PPA with Ruby 1.9Closed2014-08-22

Associated revisions

Revision 717c40e0 (diff)
Added by Dominic Cleal almost 6 years ago

fixes #7970 - add and prefer /usr/bin/foreman-ruby symlink

Use foreman-ruby for bundle calls especially, so it allows the default Ruby
to vary separately from Foreman's. Set foreman-ruby to ruby1.9.1 explicitly
on Ubuntu 12.04.

History

#1 Updated by Dominic Cleal almost 6 years ago

  • Related to Feature #7227: Move Ubuntu 12.04 packages to Brightbox PPA with Ruby 1.9 added

#2 Updated by Dominic Cleal almost 6 years ago

  • Status changed from Assigned to Ready For Testing

https://github.com/theforeman/foreman-packaging/pull/398 adds a foreman-ruby symlink and fixes all bundle/rake calls in core and plugins.

https://github.com/theforeman/puppet-foreman/pull/241 changes the default system Ruby back to 1.8, particularly as Hammer isn't working with 1.9 (unable to load the locale lib).

#3 Updated by Dominic Cleal almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF