[opensuse-ruby] rack-1.1.0 in d:l:r:e breaks RoR installation
Hi, 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. -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org
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
* Marcus Rueckert <darix@opensu.se> [Feb 25. 2010 15:54]:
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
Whats wrong with this ? Otherwise a Requires: rack >= 1.0.1 Conflicts: rack >= 1.1.0 should do the trick for zypper/satsolver ?! Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org
On 2010-02-25 17:20:15 +0100, Klaus Kaempf wrote:
Requires: rack >= 1.0.1 Conflicts: rack >= 1.1.0
should do the trick for zypper/satsolver ?!
i couldnt have 2 rack packages installed in parallel (think rack-1_0/rack-1_1) darix -- 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
participants (3)
-
Klaus Kaempf
-
Ladislav Slezak
-
Marcus Rueckert