Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132692 - dev-ruby/rake-0.7.0 conflicts with dev-ruby/rails-1.0.0
Summary: dev-ruby/rake-0.7.0 conflicts with dev-ruby/rails-1.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-08 09:13 UTC by Stephen Tallowitz
Modified: 2006-06-02 06:28 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Tallowitz 2006-05-08 09:13:13 UTC
when updating rake to 0.7.0 I run into problems running 'rake appdoc':

... (many errors and warnings) ...
unrecognized option `--line-numbers --inline-source`
For help on options, try 'rdoc --help'

rdoc --help tells me that --line-numbers requires a numeric argument, so obviously something has changed in the command line interface. Downgrading to 0.6.2 lets me run rake appdoc without any problems at all.

Steps to reproduce:
1. Install dev-ruby/rails-1.0.0
2. Upgrade dev-ruby/rake to 0.7.0
3. create a rails app, i.e. 'cd ~/; rails testapp'
4. cd to ~/testapp and run 'rake appdoc'

related bug, where >=rake-0.7.1 is required for >=rails-1.1.1: https://bugs.gentoo.org/show_bug.cgi?id=129220
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2006-05-08 10:23:26 UTC
Can you try with the latest rake and the latest rails?
Comment 2 Stephen Tallowitz 2006-05-08 11:32:57 UTC
Latest version of rails and its dependencies works like a charm, of course.
The combination of rails 1.0.0 and rake 0.7.1 doesn't work either.
My real point being: installing the current stable rails (stable as in gentoo-tree-stable) will not give you a fully working rails.
Quickest solution would be to restrict rails-1.0.0 dependency to something like '>=dev-ruby/rake-0.6.2 <dev-ruby/rake-0.7.0'. Could be a bad idea if using the slottable installation of rails 1.0 and rails 1.1. As pointed out in the other bug, rails 1.1.1 requires rake-0.7.1.
Maybe patching rails 1.0 to work with current rake is the better solution?
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2006-05-08 11:38:35 UTC
perhaps I should just remove the older versions from portage.
Comment 4 Stephen Tallowitz 2006-05-08 12:26:49 UTC
I've found the cause. It's a bug that's been fixed already in rails-1.1.0.

/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/documentation.rake at the top:

rdoc.options << '--line-numbers --inline-source'
is invalid. options is an array and each array element must be a single option to supply to rdoc. correct version from rails-1.1.0:
rdoc.options << '--line-numbers' << '--inline-source'

My guess: rake is more tolerant in version 0.6.2 than in version 0.7.0
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-02 06:28:20 UTC
I've added a patch to fix the argument passing to be on the safe side (I think there might still be people interested in rails 1.0).