rubygem-rack in epel and fedora

Michal Fojtik mfojtik at redhat.com
Mon Sep 13 16:48:02 UTC 2010


On 13/09/10 11:12 -0400, Mohammed Morsi wrote:
>  On 09/13/2010 08:31 AM, Michal Fojtik wrote:
>> On 12/09/10 19:34 -0500, Michael Stahnke wrote:
>>> I'd like to bump rubygem-rack to the latest (1.2.1) in Rawhide and
>>> EPEL.  I was worried about EPEL and even started making a seperate
>>> branch for a rack1 package, but according to my queries, the only
>>> packages requiring rack in EPEL are:
>>>
>>>
>>>
>>> EPEL:
>>>
>>> stahnma at tyr /home/stahnma>  repoquery -q --whatrequires "rubygem(rack)"
>>> rubygem-sinatra-1:1.0-2.el5.noarch
>>> rubygem-shotgun-0:0.4-1.el5.noarch
>>>
>>>
>>>
>>> F13:
>>>
>>> stahnma at olive /home/stahnma>  repoquery --whatrequires "rubygem(rack)"
>>> rubygem-actionpack-1:2.3.5-1.fc13.noarch
>>> rubygem-actionpack-1:2.3.5-2.fc13.noarch
>>> rubygem-merb-core-0:1.0.15-1.fc13.noarch
>>> rubygem-shotgun-0:0.4-1.fc13.noarch
>>> rubygem-sinatra-1:0.9.4-2.fc12.noarch
>>> rubygem-sinatra-1:1.0-1.fc13.noarch
>>> rubygem-thin-0:1.2.5-5.fc13.i686
>> FYI: when I tried to use rack-1.2.1 with new Rack I got:
>> (same error for Rails 2.3.5)
>>
>> <snip>
>> /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138:in `union': can't convert Array into String (TypeError)
>>    from /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138
>> </snip>
>>
>> I'll contact Sinatra upstream to fix it.
>>
>>    -- Michal
>>
>I discovered and reported this issue (or at least a very similar one) a 
>little while back. Its not a upstream problem, rather a Fedora packaging 
>problem as we change actionpack 2.3.5 to be compatible with Rack 1.1.0
>
>https://bugzilla.redhat.com/show_bug.cgi?id=617803
>
>The problem is though we miss one important change which is causing this 
>error. My updated patch to actionpack fixes this
>
>http://mo.morsi.org/files/patches/rubygem-actionpack-2.3.5-rack-compat.patch
>
>I'm guessing this is a same or similar problem for sinatra.

Well, after small investigation and chat with Sinatra folks I can confirm
that this is not Rack/Sinatra relevant bug, but Ruby 1.8.6 bug.

After I tried this gem with Ruby 1.8.7 installed through 'rvm', this
exception dissapears and all stuff is working normally now.

I hope we will have Ruby 1.8.7 soon ;-)

  -- Michal

-- 
--------------------------------------------------------
Michal Fojtik, mfojtik at redhat.com
Deltacloud API: http://deltacloud.org
--------------------------------------------------------


More information about the ruby-sig mailing list