Mailinglist Archive: opensuse-commit (1130 mails)

< Previous Next >
commit perl-XML-LibXML for openSUSE:Factory

Hello community,

here is the log from the commit of package perl-XML-LibXML for openSUSE:Factory
checked in at Mon Aug 29 14:32:02 CEST 2011.



--------
--- perl-XML-LibXML/perl-XML-LibXML.changes 2011-07-25 12:00:51.000000000
+0200
+++ /mounts/work_src_done/STABLE/perl-XML-LibXML/perl-XML-LibXML.changes
2011-08-29 10:35:51.000000000 +0200
@@ -1,0 +2,21 @@
+Mon Aug 29 08:23:27 UTC 2011 - vcizek@xxxxxxxx
+
+- update to 1.87
+ - Fix t/49callbacks_returning_undef.t to not read /etc/passed which may
+ not be valid XML. Instead, we're reading a local file while using
+ URI::file (assuming it exists - else - we skip_all.)
+1.86 Thu Aug 25 11:42:55 IDT 2011
+ - Changed SvPVx_nolen() to SvPV_nolen() in LibXML.xs for better
compatibility.
+ - SvPVx_nolen() appears to be undocumented API.
+ - Resolves https://rt.cpan.org/Public/Bug/Display.html?id=70476
+ - Thanks to Paul for the report.
+1.85 Wed Aug 24 17:05:19 IDT 2011
+ - Gracefully handle returned undef()s in the read callback under -w ($^W):
+ - t/49callbacks_returning_undef.t
+ - https://rt.cpan.org/Ticket/Display.html?id=70321
+ - Add a patch from Mithaldu to get XML::LibXML to compile on Win32:
+ - https://rt.cpan.org/Ticket/Display.html?id=70141
+ - I'm applying it by faith, so if it breaks, blame him. (;-).
+ - the patch adds -lllibgettextlib.dll to the Makefile.PL.
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
XML-LibXML-1.84.tar.gz

New:
----
XML-LibXML-1.87.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-XML-LibXML.spec ++++++
--- /var/tmp/diff_new_pack.YUenYf/_old 2011-08-29 14:30:40.000000000 +0200
+++ /var/tmp/diff_new_pack.YUenYf/_new 2011-08-29 14:30:40.000000000 +0200
@@ -21,7 +21,7 @@
Name: perl-XML-LibXML
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Perl Binding for libxml2
-Version: 1.84
+Version: 1.87
Release: 1
AutoReqProv: on
Group: Development/Libraries/Perl

++++++ XML-LibXML-1.84.tar.gz -> XML-LibXML-1.87.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/Changes new/XML-LibXML-1.87/Changes
--- old/XML-LibXML-1.84/Changes 2011-07-23 22:12:32.000000000 +0200
+++ new/XML-LibXML-1.87/Changes 2011-08-27 13:05:40.000000000 +0200
@@ -1,5 +1,25 @@
Revision history for Perl extension XML::LibXML

+1.87 Sat Aug 27 14:05:37 IDT 2011
+ - Fix t/49callbacks_returning_undef.t to not read /etc/passed which may
+ not be valid XML. Instead, we're reading a local file while using
+ URI::file (assuming it exists - else - we skip_all.)
+
+1.86 Thu Aug 25 11:42:55 IDT 2011
+ - Changed SvPVx_nolen() to SvPV_nolen() in LibXML.xs for better
compatibility.
+ - SvPVx_nolen() appears to be undocumented API.
+ - Resolves https://rt.cpan.org/Public/Bug/Display.html?id=70476
+ - Thanks to Paul for the report.
+
+1.85 Wed Aug 24 17:05:19 IDT 2011
+ - Gracefully handle returned undef()s in the read callback under -w ($^W):
+ - t/49callbacks_returning_undef.t
+ - https://rt.cpan.org/Ticket/Display.html?id=70321
+ - Add a patch from Mithaldu to get XML::LibXML to compile on Win32:
+ - https://rt.cpan.org/Ticket/Display.html?id=70141
+ - I'm applying it by faith, so if it breaks, blame him. (;-).
+ - the patch adds -lllibgettextlib.dll to the Makefile.PL.
+
1.84 Sat Jul 23 23:12:28 IDT 2011
- Fix for perl 5.8.x before 5.8.8:
- "You can now use the x operator to repeat a qw// list. This used to
raise a syntax error."
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/LibXML.pm
new/XML-LibXML-1.87/LibXML.pm
--- old/XML-LibXML-1.84/LibXML.pm 2011-07-23 22:08:21.000000000 +0200
+++ new/XML-LibXML-1.87/LibXML.pm 2011-08-27 13:04:27.000000000 +0200
@@ -27,7 +27,7 @@
use IO::Handle; # for FH reads called as methods

BEGIN {
-$VERSION = "1.84"; # VERSION TEMPLATE: DO NOT CHANGE
+$VERSION = "1.87"; # VERSION TEMPLATE: DO NOT CHANGE
$ABI_VERSION = 2;
require Exporter;
require DynaLoader;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/LibXML.pod
new/XML-LibXML-1.87/LibXML.pod
--- old/XML-LibXML-1.84/LibXML.pod 2011-07-23 22:09:06.000000000 +0200
+++ new/XML-LibXML-1.87/LibXML.pod 2011-08-27 13:04:56.000000000 +0200
@@ -505,7 +505,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/LibXML.xs
new/XML-LibXML-1.87/LibXML.xs
--- old/XML-LibXML-1.84/LibXML.xs 2011-07-12 21:55:44.000000000 +0200
+++ new/XML-LibXML-1.87/LibXML.xs 2011-08-25 10:39:28.000000000 +0200
@@ -652,6 +652,7 @@
STRLEN res_len;
const char * output;
SV * ctxt;
+ SV * output_sv;

res_len = 0;
ctxt = (SV *)context;
@@ -685,7 +686,15 @@
croak_obj;
}

- output = POPp;
+ /*
+ * Handle undef()s gracefully, to avoid using POPpx which warns upon
$^W
+ * being set. See t/49callbacks_returning_undef.t and:
+ * https://rt.cpan.org/Ticket/Display.html?id=70321
+ * */
+
+ output_sv = POPs;
+ output = SvOK(output_sv) ? SvPV_nolen(output_sv) : NULL;
+
if (output != NULL) {
res_len = strlen(output);
if (res_len) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/MANIFEST new/XML-LibXML-1.87/MANIFEST
--- old/XML-LibXML-1.84/MANIFEST 2011-07-23 22:16:06.000000000 +0200
+++ new/XML-LibXML-1.87/MANIFEST 2011-08-27 13:06:47.000000000 +0200
@@ -1,15 +1,6 @@
Av_CharPtrPtr.c
Av_CharPtrPtr.h
Changes
-HACKING.txt
-LICENSE
-LibXML.pm
-LibXML.pod
-LibXML.xs
-MANIFEST
-Makefile.PL
-README
-TODO
debian/changelog
debian/compat
debian/control
@@ -23,19 +14,18 @@
docs/libxml.dbk
dom.c
dom.h
-example/JBR-ALLENtrees.htm
-example/article.xml
example/article_bad.xml
example/article_external_bad.xml
-example/article_internal.xml
example/article_internal_bad.xml
+example/article_internal.xml
+example/article.xml
example/bad.dtd
example/bad.xml
example/catalog.xml
example/cb_example.pl
+example/complex/complex2.xml
example/complex/complex.dtd
example/complex/complex.xml
-example/complex/complex2.xml
example/complex/dtd/f.dtd
example/complex/dtd/g.dtd
example/dromeds.xml
@@ -43,14 +33,15 @@
example/enc2_latin2.html
example/enc_latin2.html
example/ext_ent.dtd
+example/JBR-ALLENtrees.htm
example/ns.xml
+example/test2.xml
+example/test3.xml
+example/test4.xml
example/test.dtd
example/test.html
example/test.xhtml
example/test.xml
-example/test2.xml
-example/test3.xml
-example/test4.xml
example/thedieline.rss
example/utf-16-1.html
example/utf-16-2.html
@@ -60,15 +51,16 @@
example/xmlns/goodguy.xml
example/xpath.pl
example/yahoo-finance-html-with-errors.html
+HACKING.txt
lib/XML/LibXML/Attr.pod
lib/XML/LibXML/Boolean.pm
lib/XML/LibXML/CDATASection.pod
lib/XML/LibXML/Comment.pod
lib/XML/LibXML/Common.pm
lib/XML/LibXML/Common.pod
-lib/XML/LibXML/DOM.pod
-lib/XML/LibXML/Document.pod
lib/XML/LibXML/DocumentFragment.pod
+lib/XML/LibXML/Document.pod
+lib/XML/LibXML/DOM.pod
lib/XML/LibXML/Dtd.pod
lib/XML/LibXML/Element.pod
lib/XML/LibXML/ErrNo.pm
@@ -78,35 +70,42 @@
lib/XML/LibXML/InputCallback.pod
lib/XML/LibXML/Literal.pm
lib/XML/LibXML/Namespace.pod
-lib/XML/LibXML/Node.pod
lib/XML/LibXML/NodeList.pm
+lib/XML/LibXML/Node.pod
lib/XML/LibXML/Number.pm
-lib/XML/LibXML/PI.pod
lib/XML/LibXML/Parser.pod
lib/XML/LibXML/Pattern.pod
+lib/XML/LibXML/PI.pod
lib/XML/LibXML/Reader.pm
lib/XML/LibXML/Reader.pod
lib/XML/LibXML/RegExp.pod
lib/XML/LibXML/RelaxNG.pod
-lib/XML/LibXML/SAX.pm
-lib/XML/LibXML/SAX.pod
lib/XML/LibXML/SAX/Builder.pm
lib/XML/LibXML/SAX/Builder.pod
lib/XML/LibXML/SAX/Generator.pm
lib/XML/LibXML/SAX/Parser.pm
+lib/XML/LibXML/SAX.pm
+lib/XML/LibXML/SAX.pod
lib/XML/LibXML/Schema.pod
lib/XML/LibXML/Text.pod
lib/XML/LibXML/XPathContext.pm
lib/XML/LibXML/XPathContext.pod
lib/XML/LibXML/XPathExpression.pod
+LibXML.pm
+LibXML.pod
+LibXML.xs
+LICENSE
+Makefile.PL
+MANIFEST
perl-libxml-mm.c
perl-libxml-mm.h
perl-libxml-sax.c
perl-libxml-sax.h
ppport.h
-scripts/Test.pm-to-Test-More.pl
+README
scripts/fast-eumm.pl
scripts/prints-to-comments.pl
+scripts/Test.pm-to-Test-More.pl
t/01basic.t
t/02parse.t
t/03doc.t
@@ -147,26 +146,23 @@
t/45regex.t
t/46err_column.t
t/47load_xml_callbacks.t
-t/48_rt55000.t
t/48importing_nodes_IDs_rt_69520.t
-t/49_load_html.t
+t/48_rt55000.t
+t/49callbacks_returning_undef.t
t/49global_extent.t
+t/49_load_html.t
t/60error_prev_chain.t
t/60struct_error.t
t/61error.t
t/80registryleak.t
t/90threads.t
-t/lib/Collector.pm
-t/lib/Counter.pm
-t/lib/Stacker.pm
-t/lib/TestHelpers.pm
-t/pod.t
+t/data/callbacks_returning_undef.xml
test/relaxng/badschema.rng
-test/relaxng/demo.rng
-test/relaxng/demo.xml
test/relaxng/demo2.rng
test/relaxng/demo3.rng
test/relaxng/demo4.rng
+test/relaxng/demo.rng
+test/relaxng/demo.xml
test/relaxng/invaliddemo.xml
test/relaxng/schema.rng
test/schema/badschema.xsd
@@ -177,8 +173,14 @@
test/xinclude/entity.txt
test/xinclude/test.xml
test/xinclude/xinclude.xml
+t/lib/Collector.pm
+t/lib/Counter.pm
+t/lib/Stacker.pm
+t/lib/TestHelpers.pm
+TODO
+t/pod.t
typemap
xpath.c
-xpath.h
xpathcontext.h
+xpath.h
META.yml Module meta-data (added by MakeMaker)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/META.yml new/XML-LibXML-1.87/META.yml
--- old/XML-LibXML-1.84/META.yml 2011-07-23 22:16:06.000000000 +0200
+++ new/XML-LibXML-1.87/META.yml 2011-08-27 13:06:47.000000000 +0200
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: XML-LibXML
-version: 1.84
+version: 1.87
abstract: Interface to Gnome libxml2 xml parsing and DOM library
author:
- Petr Pajas
@@ -26,7 +26,7 @@
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.56
+generated_by: ExtUtils::MakeMaker version 6.57_05
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/Makefile.PL
new/XML-LibXML-1.87/Makefile.PL
--- old/XML-LibXML-1.84/Makefile.PL 2011-07-23 22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/Makefile.PL 2011-08-27 13:04:56.000000000 +0200
@@ -285,7 +285,7 @@
if( $ENV{ACTIVEPERL_MINGW} ) {
$config{LIBS} .= ' -llibxml2.lib -lzlib.lib';
} else {
- $config{LIBS} .= ' -llibxml2 -lzlib';
+ $config{LIBS} .= ' -llibxml2 -lzlib -llibgettextlib.dll';
}
} else {
$config{LIBS} .= ' -lxml2 -lz -lm';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/docs/libxml.dbk
new/XML-LibXML-1.87/docs/libxml.dbk
--- old/XML-LibXML-1.84/docs/libxml.dbk 2011-07-23 22:09:06.000000000 +0200
+++ new/XML-LibXML-1.87/docs/libxml.dbk 2011-08-27 13:04:56.000000000 +0200
@@ -22,7 +22,7 @@
</authorgroup>


- <edition>1.84</edition>
+ <edition>1.87</edition>
<copyright>
<year>2001-2007</year>
<holder>AxKit.com Ltd</holder>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Attr.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Attr.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Attr.pod 2011-07-23 22:09:07.000000000
+0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Attr.pod 2011-08-27 13:04:56.000000000
+0200
@@ -121,7 +121,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/CDATASection.pod
new/XML-LibXML-1.87/lib/XML/LibXML/CDATASection.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/CDATASection.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/CDATASection.pod 2011-08-27
13:04:56.000000000 +0200
@@ -45,7 +45,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Comment.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Comment.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Comment.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Comment.pod 2011-08-27
13:04:56.000000000 +0200
@@ -46,7 +46,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Common.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Common.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Common.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Common.pod 2011-08-27
13:04:56.000000000 +0200
@@ -116,7 +116,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/DOM.pod
new/XML-LibXML-1.87/lib/XML/LibXML/DOM.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/DOM.pod 2011-07-23 22:09:07.000000000
+0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/DOM.pod 2011-08-27 13:04:56.000000000
+0200
@@ -129,7 +129,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Document.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Document.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Document.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Document.pod 2011-08-27
13:04:56.000000000 +0200
@@ -683,7 +683,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/DocumentFragment.pod
new/XML-LibXML-1.87/lib/XML/LibXML/DocumentFragment.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/DocumentFragment.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/DocumentFragment.pod 2011-08-27
13:04:56.000000000 +0200
@@ -27,7 +27,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Dtd.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Dtd.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Dtd.pod 2011-07-23 22:09:07.000000000
+0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Dtd.pod 2011-08-27 13:04:56.000000000
+0200
@@ -89,7 +89,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Element.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Element.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Element.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Element.pod 2011-08-27
13:04:56.000000000 +0200
@@ -371,7 +371,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/ErrNo.pod
new/XML-LibXML-1.87/lib/XML/LibXML/ErrNo.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/ErrNo.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/ErrNo.pod 2011-08-27
13:04:56.000000000 +0200
@@ -14,7 +14,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Error.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Error.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Error.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Error.pod 2011-08-27
13:04:56.000000000 +0200
@@ -244,7 +244,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/InputCallback.pod
new/XML-LibXML-1.87/lib/XML/LibXML/InputCallback.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/InputCallback.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/InputCallback.pod 2011-08-27
13:04:56.000000000 +0200
@@ -280,7 +280,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Namespace.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Namespace.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Namespace.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Namespace.pod 2011-08-27
13:04:56.000000000 +0200
@@ -130,7 +130,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Node.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Node.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Node.pod 2011-07-23 22:09:07.000000000
+0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Node.pod 2011-08-27 13:04:56.000000000
+0200
@@ -739,7 +739,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/PI.pod
new/XML-LibXML-1.87/lib/XML/LibXML/PI.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/PI.pod 2011-07-23 22:09:07.000000000
+0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/PI.pod 2011-08-27 13:04:56.000000000
+0200
@@ -74,7 +74,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Parser.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Parser.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Parser.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Parser.pod 2011-08-27
13:04:56.000000000 +0200
@@ -960,7 +960,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Pattern.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Pattern.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Pattern.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Pattern.pod 2011-08-27
13:04:56.000000000 +0200
@@ -94,7 +94,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Reader.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Reader.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Reader.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Reader.pod 2011-08-27
13:04:56.000000000 +0200
@@ -656,7 +656,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/RegExp.pod
new/XML-LibXML-1.87/lib/XML/LibXML/RegExp.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/RegExp.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/RegExp.pod 2011-08-27
13:04:56.000000000 +0200
@@ -58,7 +58,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/RelaxNG.pod
new/XML-LibXML-1.87/lib/XML/LibXML/RelaxNG.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/RelaxNG.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/RelaxNG.pod 2011-08-27
13:04:56.000000000 +0200
@@ -69,7 +69,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/SAX/Builder.pod
new/XML-LibXML-1.87/lib/XML/LibXML/SAX/Builder.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/SAX/Builder.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/SAX/Builder.pod 2011-08-27
13:04:56.000000000 +0200
@@ -38,7 +38,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/SAX.pod
new/XML-LibXML-1.87/lib/XML/LibXML/SAX.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/SAX.pod 2011-07-23 22:09:07.000000000
+0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/SAX.pod 2011-08-27 13:04:56.000000000
+0200
@@ -47,7 +47,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Schema.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Schema.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Schema.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Schema.pod 2011-08-27
13:04:56.000000000 +0200
@@ -65,7 +65,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/Text.pod
new/XML-LibXML-1.87/lib/XML/LibXML/Text.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/Text.pod 2011-07-23 22:09:07.000000000
+0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/Text.pod 2011-08-27 13:04:56.000000000
+0200
@@ -170,7 +170,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/XPathContext.pod
new/XML-LibXML-1.87/lib/XML/LibXML/XPathContext.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/XPathContext.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/XPathContext.pod 2011-08-27
13:04:56.000000000 +0200
@@ -359,7 +359,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/lib/XML/LibXML/XPathExpression.pod
new/XML-LibXML-1.87/lib/XML/LibXML/XPathExpression.pod
--- old/XML-LibXML-1.84/lib/XML/LibXML/XPathExpression.pod 2011-07-23
22:09:07.000000000 +0200
+++ new/XML-LibXML-1.87/lib/XML/LibXML/XPathExpression.pod 2011-08-27
13:04:56.000000000 +0200
@@ -52,7 +52,7 @@

=head1 VERSION

-1.84
+1.87

=head1 COPYRIGHT

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/t/49callbacks_returning_undef.t
new/XML-LibXML-1.87/t/49callbacks_returning_undef.t
--- old/XML-LibXML-1.84/t/49callbacks_returning_undef.t 1970-01-01
01:00:00.000000000 +0100
+++ new/XML-LibXML-1.87/t/49callbacks_returning_undef.t 2011-08-27
13:00:53.000000000 +0200
@@ -0,0 +1,88 @@
+
+# This is a bug fix for:
+# https://rt.cpan.org/Ticket/Display.html?id=70321
+#
+# When the match callback returns 1 and the open callback returns undef, then
the
+# read callback (inside the XS code) warnings about:
+# "Use of uninitialized value in subroutine entry at".
+#
+# This is due to the value returned being undef and processed by SvPV.
+
+use strict;
+use warnings;
+
+use lib './t/lib';
+
+use Test::More;
+use File::Spec;
+
+use XML::LibXML;
+
+if (! eval { require URI::file; } )
+{
+ plan skip_all => "URI::file is not available.";
+}
+else
+{
+ plan tests => 1;
+}
+
+sub _escape_html
+{
+ my $string = shift;
+ $string =~ s{&}{&amp;}gso;
+ $string =~ s{<}{&lt;}gso;
+ $string =~ s{>}{&gt;}gso;
+ $string =~ s{"}{&quot;}gso;
+ return $string;
+}
+
+
+my $uri = URI::file->new(
+ File::Spec->rel2abs(
+ File::Spec->catfile(
+ File::Spec->curdir(), "t", "data", "callbacks_returning_undef.xml"
+ )
+ )
+);
+
+my $esc_path = _escape_html("$uri");
+
+my $string = <<"EOF";
+<?xml version="1.0" encoding="us-ascii"?>
+<!DOCTYPE foo [
+ <!ENTITY foo SYSTEM "${esc_path}">
+]>
+<methodCall>
+ <methodName>metaWeblog.newPost</methodName>
+ <params>
+ <param>
+ <value><string>Entity test: &foo;</string></value>
+ </param>
+ </params>
+</methodCall>
+EOF
+
+my $icb = XML::LibXML::InputCallback->new();
+
+my $match_ret = 1;
+$icb->register_callbacks( [
+ sub { my $to_ret = $match_ret; $match_ret = 0; return $to_ret; },
+ sub { return undef; },
+ undef,
+ undef
+ ]
+);
+
+my $parser = XML::LibXML->new();
+$parser->input_callbacks($icb);
+my $num_warnings = 0;
+{
+ local $^W = 1;
+ local $SIG{__WARN__} = sub {
+ $num_warnings++;
+ };
+ my $doc = $parser->parse_string($string);
+}
+# TEST
+is ($num_warnings, 0, "No warnings were recorded.");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/XML-LibXML-1.84/t/data/callbacks_returning_undef.xml
new/XML-LibXML-1.87/t/data/callbacks_returning_undef.xml
--- old/XML-LibXML-1.84/t/data/callbacks_returning_undef.xml 1970-01-01
01:00:00.000000000 +0100
+++ new/XML-LibXML-1.87/t/data/callbacks_returning_undef.xml 2011-08-27
13:01:50.000000000 +0200
@@ -0,0 +1 @@
+<foobar />


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages