[libxml-xpath-perl] 07/11: Add "fallback => 1" to "use overload" in XML::XPath::Literal

Axel Beckert abe at deuxchevaux.org
Fri Jan 15 23:14:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch master
in repository libxml-xpath-perl.

commit cb1a035179d2b12d32ab88b2cb22755c2591fef8
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Fri Jan 15 23:37:40 2016 +0100

    Add "fallback => 1" to "use overload" in XML::XPath::Literal
    
    Fixes stringification which broke between 1.12 and 1.13. Fix by Niko
    Tyni.
    
    Closes: #315628
---
 debian/changelog                                  |  2 ++
 debian/patches/fix-stringification-overload.patch | 18 ++++++++++++++++++
 debian/patches/series                             |  1 +
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 12034ba..2cd439b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -35,6 +35,8 @@ libxml-xpath-perl (1.22-1) UNRELEASED; urgency=low
     + Refresh debian/patches/fix_comparison_bug_RT6363.patch.
     + New, laborious upstream maintainer. (Closes: #458713)
   * Add DEP-3 compliant patch headers to fix_comparison_bug_RT6363.patch.
+  * Add "fallback => 1" to "use overload" in XML::XPath::Literal to fix
+    broken stringification as suggested by Niko Tyni. (Closes: #315628)
 
   [ gregor herrmann ]
   * Strip trailing slash from metacpan URLs.
diff --git a/debian/patches/fix-stringification-overload.patch b/debian/patches/fix-stringification-overload.patch
new file mode 100644
index 0000000..5a79eda
--- /dev/null
+++ b/debian/patches/fix-stringification-overload.patch
@@ -0,0 +1,18 @@
+Description: Fix XML::XPath::Literal: stringification overload
+ It broke between 1.12 and 1.13.
+Author: Niko Tyni <ntyni at debian.org>
+Bug-Debian: https://bugs.debian.org/315628
+Bug: http://rt.cpan.org/Public/Bug/Display.html?id=11724
+
+Index: libxml-xpath-perl/lib/XML/XPath/Literal.pm
+===================================================================
+--- libxml-xpath-perl.orig/lib/XML/XPath/Literal.pm	2016-01-15 22:09:20.328815966 +0100
++++ libxml-xpath-perl/lib/XML/XPath/Literal.pm	2016-01-15 23:33:56.219813346 +0100
+@@ -8,6 +8,7 @@
+ 
+ use overload
+ 		'""' => \&value,
++		'fallback' => 1,
+ 		'cmp' => \&cmp;
+ 
+ sub new {
diff --git a/debian/patches/series b/debian/patches/series
index 449f113..957cb65 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 fix_comparison_bug_RT6363.patch
 example.patch
 test.patch
+fix-stringification-overload.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libxml-xpath-perl.git



More information about the Pkg-perl-cvs-commits mailing list