[libwww-mechanize-treebuilder-perl] 01/05: Pluck patch from github to fix FTBFS (Closes: #746093)

Florian Schlichting fsfs at moszumanska.debian.org
Thu May 1 23:10:30 UTC 2014


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

fsfs pushed a commit to branch master
in repository libwww-mechanize-treebuilder-perl.

commit 40563c5a0d0985c059848b5db0753fdba92390ef
Author: Florian Schlichting <fsfs at debian.org>
Date:   Fri May 2 01:01:53 2014 +0200

    Pluck patch from github to fix FTBFS (Closes: #746093)
---
 debian/patches/bug746093-ftbfs.patch | 31 +++++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/bug746093-ftbfs.patch b/debian/patches/bug746093-ftbfs.patch
new file mode 100644
index 0000000..d3f9f5e
--- /dev/null
+++ b/debian/patches/bug746093-ftbfs.patch
@@ -0,0 +1,31 @@
+Description: remove use of Class::MOP::load_class and make Moose's new "is a class loaded?" test happy
+Author: Gianni Ceccarelli <dakkar at thenautilus.net>
+Bug: https://github.com/ashb/WWW-Mechanize-TreeBuilder/pull/4/files
+
+--- a/lib/WWW/Mechanize/TreeBuilder.pm
++++ b/lib/WWW/Mechanize/TreeBuilder.pm
+@@ -82,11 +82,12 @@
+ 
+ use MooseX::Role::Parameterized;
+ use Moose::Util::TypeConstraints;
++use Class::Load 'load_class';
+ #use HTML::TreeBuilder;
+ 
+ subtype 'WWW.Mechanize.TreeBuilder.LoadClass'
+   => as 'Str'
+-  => where { Class::MOP::load_class($_) }
++  => where { load_class($_) }
+   => message { "Cannot load class $_" };
+ 
+ subtype 'WWW.Mechanize.TreeBuilder.TreeClass'
+--- a/t/lib/MockTreeBuilder.pm
++++ b/t/lib/MockTreeBuilder.pm
+@@ -13,7 +13,7 @@
+ 
+ package #
+   MockTreeBuilderEle;
+-
++$INC{'MockTreeBuilderEle.pm'}=1; # help stricter Moose checking
+ use base 'HTML::Element';
+ 
+ sub some_other_method { "I exist in " . Scalar::Util::blessed($_[0]) };
diff --git a/debian/patches/series b/debian/patches/series
index ffdc77a..44f67a2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fixed-manpage-bad-entry.patch
 spelling.patch
+bug746093-ftbfs.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libwww-mechanize-treebuilder-perl.git



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