Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107099 - upgrade to ruby 1.8.3 causes an error in Rails
Summary: upgrade to ruby 1.8.3 causes an error in Rails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-24 11:03 UTC by M. Edward Borasky
Modified: 2005-09-26 08:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch from http://dev.rubyonrails.org/ticket/2245 (as_clean_logger_rb-fixed.patch,449 bytes, patch)
2005-09-26 07:29 UTC, Steffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description M. Edward Borasky 2005-09-24 11:03:20 UTC
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 Steffen 2005-09-26 07:29:48 UTC
Created attachment 69262 [details, diff]
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 M. Edward Borasky 2005-09-26 07:41:47 UTC
(In reply to comment #1)
> Created an attachment (id=69262) [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 3 Steffen 2005-09-26 08:43:59 UTC
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] [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 Caleb Tennis (RETIRED) gentoo-dev 2005-09-26 08:59:33 UTC
Fixed as activesupport-1.1.1-r1