Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351189 - dev-ruby/rails-3.0.3 depends on dev-ruby/builder-2.1.2
Summary: dev-ruby/rails-3.0.3 depends on dev-ruby/builder-2.1.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-09 08:55 UTC by Serge Ratke
Modified: 2011-01-10 19:13 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,3.93 KB, text/plain)
2011-01-09 17:16 UTC, Serge Ratke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Ratke 2011-01-09 08:55:55 UTC
rails-3.0.3 applications can't be started with rails server. bundler complains that gems are missing. builder-3.0 is installed along with rails 3.0.3, while bundler requires builder-2.1.2.

Reproducible: Always

Steps to Reproduce:
1. emerge rails
2. create rails application with rails new <app>
3. start the app cd <app> && rails server

Actual Results:  
/usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/resolver.rb:129:in `resolve': Could not find gem 'builder (~> 2.1.2)', required by 'rails (= 3.0.3)', in any of the sources (Bundler::VersionConflict)
        from /usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/resolver.rb:127:in `catch'
        from /usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/resolver.rb:127:in `resolve'
        from /usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb:151:in `resolve'
        from /usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb:90:in `specs'
        from /usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb:135:in `specs_for'
        from /usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb:124:in `requested_specs'
        from /usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/environment.rb:23:in `requested_specs'
        from /usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:11:in `setup'
        from /usr/lib64/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler.rb:100:in `setup'
        from /home/serge.ratke/projekte/web/seite/config/boot.rb:8
        from script/rails:5:in `require'
        from script/rails:5
Comment 1 Serge Ratke 2011-01-09 17:16:56 UTC
Created attachment 259389 [details]
emerge --info
Comment 2 Hans de Graaff gentoo-dev Security 2011-01-09 17:47:08 UTC
The problem is that the rails gemspec requires something like =builder-2.1.* and bundler tries to make sure of that. A quick fix is to downgrade to builder 2.1.2.

This should either be fixed by loosening the rails dependencies or by slotting builder.
Comment 3 Hans de Graaff gentoo-dev Security 2011-01-10 19:13:26 UTC
Rails HEAD switched to require builder 3.0.0 without any further code changes, so I'm making the assumption that both versions work equally well. Should be fixed with activemodel 3.0.3-r1 and actionpack 3.0.3-r1.