Bug #4758

fix gem install for thin on ruby < 2.2.0

Added by Holger Fischer about 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:09/01/2016
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Packaging
Target version:Release 5.2
Resolution:fixed Pull request:
Affected Versions:OpenNebula 5.0

Description

issue when trying on el7 with ruby 2.0
see https://github.com/OpenNebula/one/pull/109

History

#1 Updated by Ruben S. Montero about 4 years ago

  • Category set to Packaging
  • Assignee set to Javi Fontan
  • Target version set to Release 5.2

THANKS!!!!

#2 Updated by Javi Fontan about 4 years ago

Can you send us the error you're getting. I can successfully run install_gems script. Also, thin version 1.7.0 supports ruby 2.0.0:

https://rubygems.org/gems/thin/versions/1.7.0

#3 Updated by Javi Fontan about 4 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

#4 Updated by Holger Fischer about 4 years ago

Please see also https://github.com/OpenNebula/addon-installgems/pull/13
Error occured when building rpm with addon-installgems
AFAIR installing thin >= 1.7.0 (as a dep for the build) requires/installs a rack version > 2.0.0 which then breaks compatibility which ruby < 2.2.0
more details
rack < 2.0.0 was already installed built and rpm-packaged, but thin installation/build failed when trying to install rack >= 2.0.0 (the installed and packaged rack version was not sufficient for installing thin)

#5 Updated by Javi Fontan about 4 years ago

install_gems script specifies rack < 2.0.0 when ruby < 2.2.0. I've tested it in CentOS and Ubuntu 14.04, it works OK. Can you try the new version? To do that you can download these three files to the same directory and execute install_gems (assuming you're using CentOS 7):

The versions installed are fixed in Gemfile.lock

#6 Updated by Holger Fischer about 4 years ago

install_gems works as expected but addon-installgems fails.
see also https://github.com/OpenNebula/addon-installgems/issues/14

Also available in: Atom PDF