[libsoap-wsdl-perl] 01/01: add patch fixing class loading in _factory() adds additional dependency on libclass-load-perl

Damyan Ivanov dmn at moszumanska.debian.org
Wed Jan 15 08:20:54 UTC 2014


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

dmn pushed a commit to branch master
in repository libsoap-wsdl-perl.

commit 8d0456156faff7a2c352707016bff8999524020b
Author: Damyan Ivanov <dmn at debian.org>
Date:   Wed Jan 15 08:20:46 2014 +0000

    add patch fixing class loading in _factory() adds additional dependency on libclass-load-perl
---
 debian/changelog                   |  2 ++
 debian/control                     |  4 ++--
 debian/patches/isa_UNIVERSAL.patch | 32 ++++++++++++++++++++++++++++++++
 debian/patches/series              |  1 +
 4 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8a82bff..760a724 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,8 @@ libsoap-wsdl-perl (2.00.10-2) UNRELEASED; urgency=low
   [ Damyan Ivanov ]
   * add patch fixing invalid lvalue assignments with perl 5.18
   * add libtest-xml-perl to build-dependencies enabling additional tests
+  * add patch fixing class loading in _factory()
+    adds additional dependency on libclass-load-perl
 
  -- Ansgar Burchardt <ansgar at debian.org>  Wed, 27 Jul 2011 18:47:44 +0200
 
diff --git a/debian/control b/debian/control
index bf00747..a117a60 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Build-Depends-Indep: libclass-std-fast-perl,
  libtemplate-perl, libterm-readkey-perl, libtimedate-perl, liburi-perl,
  libwww-perl, libxml-parser-perl, libtest-pod-perl, libsoap-lite-perl, 
  libtest-mockobject-perl, libio-stringy-perl, perl,
- libtest-xml-perl
+ libtest-xml-perl, libclass-load-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: gregor herrmann <gregoa at debian.org>
 Standards-Version: 3.9.1
@@ -18,7 +18,7 @@ Package: libsoap-wsdl-perl
 Architecture: all
 Depends: ${misc:Depends}, ${perl:Depends}, libclass-std-fast-perl,
  libtemplate-perl, libterm-readkey-perl, libtimedate-perl, liburi-perl,
- libwww-perl, libxml-parser-perl
+ libwww-perl, libxml-parser-perl, libclass-load-perl
 Recommends: libsoap-lite-perl
 Description: Perl module for SOAP with WSDL support
  SOAP::WSDL provides easy access to Web Services with WSDL descriptions.
diff --git a/debian/patches/isa_UNIVERSAL.patch b/debian/patches/isa_UNIVERSAL.patch
new file mode 100644
index 0000000..6561cb6
--- /dev/null
+++ b/debian/patches/isa_UNIVERSAL.patch
@@ -0,0 +1,32 @@
+--- a/lib/SOAP/WSDL/XSD/Typelib/ComplexType.pm
++++ b/lib/SOAP/WSDL/XSD/Typelib/ComplexType.pm
+@@ -7,6 +7,7 @@ use SOAP::WSDL::XSD::Typelib::Builtin;
+ use Scalar::Util qw(blessed);
+ use Data::Dumper;
+ require Class::Std::Fast::Storable;
++use Class::Load ();
+ 
+ use base qw(SOAP::WSDL::XSD::Typelib::Builtin::anyType);
+ 
+@@ -155,9 +156,8 @@ sub _factory {
+         my $type = $CLASSES_OF{ $class }->{ $name }
+             or croak "No class given for $name";
+ 
+-        # require all types here
+-        $type->isa('UNIVERSAL')
+-            or eval "require $type"
++        Class::Load::is_class_loaded($type)
++            or eval { Class::Load::load_class $type }
+                 or croak $@;
+ 
+         # check now, so we don't need to do it later.
+--- a/META.yml
++++ b/META.yml
+@@ -8,6 +8,7 @@ license: artistic
+ resources:
+   license: http://opensource.org/licenses/artistic-license.php
+ requires:
++  Class::Load: 0
+   Class::Std::Fast: 0.0.5
+   Data::Dumper: 0
+   Date::Format: 0
diff --git a/debian/patches/series b/debian/patches/series
index 41f98b6..6659c77 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 pod-whatis.patch
 pod-spelling.patch
 lvalue-modification-5.18.patch
+isa_UNIVERSAL.patch

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



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