Bug 107099 - upgrade to ruby 1.8.3 causes an error in Rails
Bug#: 107099 Product:  Gentoo Linux Version: 2005.1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: ruby@gentoo.org Reported By: znmeb@cesmail.net
Component: Ebuilds
URL: 
Summary: upgrade to ruby 1.8.3 causes an error in Rails
Keywords:  
Status Whiteboard: 
Opened: 2005-09-24 11:03 0000
Description:   Opened: 2005-09-24 11:03 0000
I just upgraded to ruby 1.8.3 and now Rails doesn't work:

znmeb@DreamGate ~ $ rails demo
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13:in
`remove_const': constant Logger::Format not defined (NameError)
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support.rb:31
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record.rb:29
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:182:in `activate'
        from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:181:in `activate'
        from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:167:in `activate'
        from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:166:in `activate'
        from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
`require_gem_with_options'
        from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:31:in `require_gem'
        from /usr/bin/rails:17
znmeb@DreamGate ~ $ 
------------------------------------------------------------------------------
This is in fact a known upstream problem, which I just found myself and an hour
or so later saw described on the Rails mailing list. So go ahead and mark this
"resolved upstream". :) The discussion can be found at

http://article.gmane.org/gmane.comp.lang.ruby.rails/23132

------- Comment #1 From Steffen Strobel 2005-09-26 07:29:48 0000 -------
Created an attachment (id=69262) [details]
patch from http://dev.rubyonrails.org/ticket/2245

i attached the patch from http://dev.rubyonrails.org/ticket/2245 !
using the patch with "patch
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb
as_clean_logger_rb-fixed.patch" fixed the problem for me!

steffen

------- Comment #2 From M. Edward Borasky 2005-09-26 07:41:47 0000 -------
(In reply to comment #1)
> Created an attachment (id=69262) [edit] [details]
> patch from http://dev.rubyonrails.org/ticket/2245
> 
> i attached the patch from http://dev.rubyonrails.org/ticket/2245 !
> using the patch with "patch
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb
> as_clean_logger_rb-fixed.patch" fixed the problem for me!
> 
> steffen


So is this a Rails bug, a Ruby bug or an ActiveSupport bug? They're all in
Portage, right?

Speaking of which, how tightly integrated is Portage with the Ruby Gems package
management system? I'm just starting to learn all this Ruby and Rails stuff, and
in distros other than Gentoo, I've pretty much had to build Ruby from source,
install Ruby Gems and install everything as a Gem, rather than just being able
to go out and install an RPM or a DEB. I like the Gentoo way better. :)

emerge rails

------- Comment #3 From Steffen Strobel 2005-09-26 08:43:59 0000 -------
hi, i think it's a activesupport bug!  
you can also see this on the patch 
path:  /usr/lib/ruby/gems/1.8/gems/ACTIVE_SUPPORT-1.1.1/lib/ACTIVE_SUPPORT/clean_logger.rb 
 
steffen 
 
(In reply to comment #2)  
> (In reply to comment #1)  
> > Created an attachment (id=69262) [edit] [details] [edit]  
> > patch from http://dev.rubyonrails.org/ticket/2245  
> >   
> > i attached the patch from http://dev.rubyonrails.org/ticket/2245 !  
> > using the patch with "patch  
>  
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb  
> > as_clean_logger_rb-fixed.patch" fixed the problem for me!  
> >   
> > steffen  
>   
>   
> So is this a Rails bug, a Ruby bug or an ActiveSupport bug? They're all in  
> Portage, right?  
>   
> Speaking of which, how tightly integrated is Portage with the Ruby Gems package  
> management system? I'm just starting to learn all this Ruby and Rails stuff, and  
> in distros other than Gentoo, I've pretty much had to build Ruby from source,  
> install Ruby Gems and install everything as a Gem, rather than just being able  
> to go out and install an RPM or a DEB. I like the Gentoo way better. :)  
>   
> emerge rails  
  
  

------- Comment #4 From Caleb Tennis 2005-09-26 08:59:33 0000 -------
Fixed as activesupport-1.1.1-r1