Your message dated Mon, 30 Nov 2009 19:23:08 -0800
with message-id <[email protected]>
and subject line relevance-rcov fixes rexml bug
has caused the Debian Bug report #517112,
regarding rcov workaround for rexml not applied to ruby 1.8.7
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
517112: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517112
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rcov
Version: 0.8.1.2-2
Severity: important
Tags: patch


rcov includes a workaround for broken rexml.write, but it detects ruby
1.8.6 and misses 1.8.7 causing errors like:

/usr/lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `[]': no implicit
conversion from nil to integer (TypeError)

The upstream bug [1] hasn't had any response in six months.

[1] 
http://rubyforge.org/tracker/index.php?func=detail&aid=21627&group_id=1750&atid=6802

-- Patch / Workaround:

diff -ru rcov-0.8.1.2/lib/rcov/report.rb rcov-0.8.1.2.new/lib/rcov/report.rb
--- rcov-0.8.1.2/lib/rcov/report.rb 2007-11-22 02:58:11.000000000 -0800
+++ rcov-0.8.1.2.new/lib/rcov/report.rb 2009-02-24 21:01:41.000000000 -0800
@@ -12,7 +12,7 @@
 rescue LoadError
 end

-if RUBY_VERSION == "1.8.6" && defined? REXML::Formatters::Transitive
+if ( RUBY_VERSION == "1.8.6" || RUBY_VERSION == "1.8.7" ) && defined?
REXML::Formatters::Transitive
     class REXML::Document
         remove_method :write rescue nil
         def write( output=$stdout, indent=-1, trans=false, ie_hack=false )

-- See also:

http://enfranchisedmind.com/blog/2008/03/24/rexml-dynamic-typing-lose/

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rcov depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libruby1.8                    1.8.7.72-3 Libraries necessary to run Ruby 1.
ii  ruby1.8                       1.8.7.72-3 Interpreter of object-oriented scr

rcov recommends no packages.

rcov suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 0.9.6-1

Replacing the abandoned rcov with the relevance-rcov fork brought the
removal of the requirement for rexml [1], which resolves this bug.

It is worth noting that ubuntu karmic does not experience this bug,
likely due to upstream bug fixes in Ruby's rexml, which rcov
originally had workarounds for.

[1] README.markdown:* Removal of REXML Dependency (the source of most
of the RCov bugs, done)


--- End Message ---

Reply via email to