Package: libamrita-ruby1.8
Version: 1.0.2-3

(Version in etch - also in sarge!)

When you use amrita with xml=true, you get "uninitialized constant
REXML::File" error. I've reported the bug to amrita authors on
18.11.2005, but nothing has happened yet. So I'm trying to make it fixed
at least in Debian.

Here is patch which fixes this long-standing bug:

--- xml.rb      2006-05-10 23:21:25.000000000 +0200
+++ xml.rb.old  2006-05-10 23:21:25.000000000 +0200
@@ -98,7 +98,7 @@

     def XMLParser.parse_file(fname, dummy=nil, &block)
       l = Listener.new(&block)
-      REXML::Document.parse_stream(REXML::File.new(fname), l)
+      REXML::Document.parse_stream(File.new(fname), l)
       l.result
     end
   end

And here a transcript my original email to Shirai Kaoru (which of course
included this patch as an attachment):

---

Hello,
    I've been using Amrita for quite a while (say two years now) and
always thought that the bug with REXML::File I always had to patch is so
simple that it's not worth reporting. But it seems to me that noone is
using Amrita XML features, so nobody bothered reporting/fixing it. I
should've done this a year ago, but it's better now than never. Attached
is one-line diff -ru which corrects it.
    There is no class named REXML::File and REXML::Document.parse_stream
expects normal File instance.

    Sorry for trying to write directly to you, but the sf.jp is a mess
to me and I didn't find any address like [EMAIL PROTECTED] and
bug-tracking system seems to be unused in this project (and that would
need registration, which I'm generally unwilling to make).

Regards,
Dominik Joe Pantůček

---

Verified on Sarge (with all updates as of today) and etch (dtto).

Hope this helps,
Dominik Joe Pantůček

Reply via email to