Package: ruby-libxml
Version: 2.3.2-1
Followup-For: Bug #676210
Control: reassign -1 libxml2 2.8.0+dfsg1-5
Control: affects -1 ruby-libxml
Control: retitle -1 xmlreader fails to report parsing failures, causing 
ruby-libxml test failure
Control: tag -1 patch

Hi!

As documented in the upstream bug report,
  https://github.com/xml4r/libxml-ruby/issues/43
Tests are passing with libxml2 2.7.8.
I found that the commit in libxml2 causing the failure is 
  
http://git.gnome.org/browse/libxml2/commit/?id=9d9685ad88c17d35b6688695af3ceba7c7309b13
which has been modified later just after 2.8.0 release by
  
http://git.gnome.org/browse/libxml2/commit/?id=c508fa3f0b40ba232e00ed8d514e0ba37ed602ab

Cherry-picking this commit and putting on top of 2.8.0 solves the
problem.

I converted this commit to a quilt patch with proper DEP-3 header.
Please consider include this patch in the current patch series.

Cheers,

Cédric


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ruby-libxml depends on:
ii  libc6                         2.13-35
ii  libruby1.8                    1.8.7.358-4
ii  libruby1.9.1                  1.9.3.194-1
ii  libxml2                       2.8.0+dfsg1-5
ii  ruby                          4.9
ii  ruby1.8 [ruby-interpreter]    1.8.7.358-4
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-1
ii  zlib1g                        1:1.2.7.dfsg-13

ruby-libxml recommends no packages.

ruby-libxml suggests no packages.

-- no debconf information
From: Daniel Veillard <veill...@redhat.com>
Date: Wed, 18 Jul 2012 17:39:56 +0800
Description: Fix a failure to report xmlreader parsing failures
 Related to https://bugzilla.gnome.org/show_bug.cgi?id=654567
 the problem is that the provided patch failed to raise an error
 on xmlTextReaderRead() return when an actual parsing error occured
Origin: upstream, http://git.gnome.org/browse/libxml2/commit/?id=c508fa3f0b40ba232e00ed8d514e0ba37ed602ab
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676210
---
 xmlreader.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/xmlreader.c
+++ b/xmlreader.c
@@ -907,8 +907,11 @@
 	}
     }
     reader->state = oldstate;
-    if (reader->ctxt->wellFormed == 0)
+    if (reader->ctxt->wellFormed == 0) {
 	reader->mode = XML_TEXTREADER_MODE_EOF;
+        return(-1);
+    }
+
     return(0);
 }
 

Reply via email to