Bug 132692 - dev-ruby/rake-0.7.0 conflicts with dev-ruby/rails-1.0.0
|
Bug#:
132692
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: ruby@gentoo.org
|
Reported By: dev@tallowitz.ch
|
|
Component: Unspecified
|
|
|
URL:
|
|
Summary: dev-ruby/rake-0.7.0 conflicts with dev-ruby/rails-1.0.0
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-05-08 09:13 0000
|
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
Can you try with the latest rake and the latest rails?
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?
perhaps I should just remove the older versions from portage.
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
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).