pkgsrc/lang/ruby18-base/patches/patch-lib_rdoc_rdoc.rb
taca 3ba133ce34 * Make rdoc compatible with newer version of rdoc (on Ruby 1.9.2) about
handling of none existing files.

This should be fix build problem of www/ruby-rails3 with ruby18-base.

Bump PKGREVISION.
2011-03-28 14:10:25 +00:00

15 lines
569 B
Ruby

$NetBSD: patch-lib_rdoc_rdoc.rb,v 1.1 2011/03/28 14:10:25 taca Exp $
* Ignore none existing files as newer version of rdoc.
--- lib/rdoc/rdoc.rb.orig 2007-02-12 23:01:19.000000000 +0000
+++ lib/rdoc/rdoc.rb
@@ -174,7 +174,7 @@ module RDoc
relative_files.each do |rel_file_name|
next if exclude_pattern && exclude_pattern =~ rel_file_name
- stat = File.stat(rel_file_name)
+ stat = File.stat(rel_file_name) rescue next
case type = stat.ftype
when "file"
next if @last_created and stat.mtime < @last_created