The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #11251

mcollective `rake doc` fails on rdoc.gem > v2.3.0

Added by Nikhil M. over 2 years ago. Updated over 2 years ago.

Status:ClosedStart date:12/07/2011
Priority:NormalDue date:
Assignee:R.I. Pienaar% Done:

0%

Category:Packaging
Target version:1.3.x
Keywords:marionette, collective, rdoc, darkfish Affected mCollective version:
Branch:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

[root@vm200-005 marionette-collective]# rake19 doc
(in /root/marionette-collective)
rm -r doc
invalid options: --line-numbers, --inline-source
(invalid options are ignored)
Parsing sources...
100% [52/52]  mco                                                               
Generating Darkfish...
rake aborted!
could not find template "html"  

[root@vm200-005 marionette-collective]# gem19 env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib64/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/bin/ruby19
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib64/ruby/gems/1.9.1
- /root/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/  

[root@vm200-005 marionette-collective]# gem19 list
*** LOCAL GEMS ***
minitest (1.6.0)
rake (0.8.7)
rdoc (2.5.8)

In the Rakefile, there is a rdoc.template “html” line.
The html template is not present in recent versions of rdoc.
If this is replaced with the “darkfish” template, things work.

History

#1 Updated by Daniel Pittman over 2 years ago

  • Category set to ruby19
  • Status changed from Unreviewed to Investigating
  • Assignee set to R.I. Pienaar

R.I., can you take a look and confirm if this is a problem, and how we should resolve it?

#2 Updated by Daniel Pittman over 2 years ago

  • Project changed from Puppet to MCollective
  • Category deleted (ruby19)

#3 Updated by Nikhil M. over 2 years ago

Sorry for not mentioning this in the issue report, but this patch works perfectly for me.

Also, my platform details are —

[root@vm200-005 ~]# uname -a
Linux vm200-005.sc01.xyz.com 2.6.32-042stab039.11 #1 SMP Thu Nov 10 18:16:06 MSK 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@vm200-005 ~]# cat /etc/redhat-release 
CentOS Linux release 6.0 (Final)

#4 Updated by R.I. Pienaar over 2 years ago

  • Category set to Packaging
  • Status changed from Investigating to Accepted
  • Target version set to 1.3.x

The darkfish theme is new, so to avoid messing around users with older rubies it seems the best is just to remove the rdoc.template = ‘html’ line from the Rakefile the versions I tested seem to do the right thing by default.

#5 Updated by R.I. Pienaar over 2 years ago

Nikhil, you state your platform is CentOS 6.0 but that does not ship with ruby 1.9x, so presumably your platform is actually something managed with rvm right? Your patch would actually fail on your platform as ruby 1.8.7 did not include that theme

#6 Updated by R.I. Pienaar over 2 years ago

  • Status changed from Accepted to Closed

1 files changed, 0 insertions(+), 1 deletions(–) http://git.io/DBRTdA

#7 Updated by Nikhil M. over 2 years ago

Thanks R. I., my CentOS actually pulls ruby19 from rbel6, which is why the different versions.

R.I. Pienaar wrote:

1 files changed, 0 insertions(+), 1 deletions(–) http://git.io/DBRTdA

Also available in: Atom PDF