From eccd082a73cfeb77a8e02150869181b51534f4b0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 18 Sep 2017 10:57:53 +0200 Subject: use XML::LibXML::Parser's 'huge' option this is needed b/c of eg: ruby-google-api-client-doc which filelist is 11mb. However this makes libxml2 to fail b/c XML_MAX_TEXT_LENGTH is 10mb: $ urpmf-fast iso-grk2.gml Entity: line 4014501: parser error : xmlSAX2Characters: huge text node sr/share/gems/doc/google-api-client-0.13.5/ri/Google/Apis/SqladminV1beta3/Import --- NEWS | 1 + urpm/xml_info.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 5a7909fb..7540f29d 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ o update perl-Pango first too (mga#21425) - urpmi: o update perl-base first too + o use XML::LibXML::Parser's 'huge' option Version 8.110 - 13 July 2017 diff --git a/urpm/xml_info.pm b/urpm/xml_info.pm index 10fab691..be31159d 100644 --- a/urpm/xml_info.pm +++ b/urpm/xml_info.pm @@ -44,7 +44,7 @@ sub open_lzma { sub _open_xml_reader { my ($xml_info_file) = @_; - my $reader = new XML::LibXML::Reader(IO => open_lzma($xml_info_file)) or die "cannot read $xml_info_file\n"; + my $reader = new XML::LibXML::Reader(IO => open_lzma($xml_info_file), huge => 1) or die "cannot read $xml_info_file\n"; $reader->read; $reader->name eq 'media_info' or die "global tag not found\n"; -- cgit v1.2.1