On 2010-02-25 15:43:32 +0100, Ladislav Slezak wrote:
I found that after updating my FACTORY workstation WebYaST stopped working and it prints this error at start:
Missing the Rails gem. Please `gem install -v= rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.
After some debugging I found that the problem is caused by the new rubygem-rack-1.1.0.
The problem is that actionpack-2.3.5.gemspec contains: s.add_dependency(%q<rack>, ["~> 1.0.0"])
Which doesn't match 1.1.0 version and therefore rails exit with the error. (the meaning of '~>' is described at http://rubygems.rubyforge.org/rubygems-update/Gem/Version.html )
After downgrading rack to 1.0.1 (fortunately it is still available in FACTORY) it works.
What is the right solution?
Do we need to change (upgrade?) actionpack or rack in d:l:r:e should be downgraded? Or actionpack should conflict with rack >= 1.1.0 so rails don't break.
i submitted a new rack 1.1 which has also has 1.0 included. sadly there is nothing to properly map the ~> operator from rubygems[1] into rpm. the clean solution would be Requires: rack >= 1.0.1 Requires: rack < 1.1.0 maybe we can patch that into gem2rpm darix [1] http://docs.rubygems.org/read/chapter/16#page74 -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org