[SCM] Debian packaging of librpc-xml-perl branch, master, updated. debian/0.76-2-4-gd9bc167

intrigeri intrigeri at boum.org
Tue Jun 26 03:22:09 UTC 2012


The following commit has been merged in the master branch:
commit 9f4a425cf5cafa22ea38796777e94ed26f43495f
Author: intrigeri <intrigeri at boum.org>
Date:   Tue Jun 26 04:59:50 2012 +0200

    New patch: Net-Server-2.x-compatibility.patch (Closes: #678767).

diff --git a/debian/patches/Net-Server-2.x-compatibility.patch b/debian/patches/Net-Server-2.x-compatibility.patch
new file mode 100644
index 0000000..ee78339
--- /dev/null
+++ b/debian/patches/Net-Server-2.x-compatibility.patch
@@ -0,0 +1,33 @@
+Description: Net::Server 2.x compatibility
+Origin: vendor
+Forwarded: no
+Author: Niko Tyni <ntyni at debian.org>
+Last-Update: 2012-06-25
+
+Newer versions of Net::Server bless the client connection to a subclass
+like Net::Server::Proto::TCP, breaking the check for an already blessed
+HTTP::Daemon::ClientConn and making all connections fail with errors like
+
+ Can't locate object method "get_request" via package "Net::Server::Proto::TCP" at /home/niko/tmp/librpc-xml-perl-0.76/blib/lib/RPC/XML/Server.pm line 828.
+
+(Example: http://bugs.debian.org/678767)
+
+Explicitly test for the get_request method that we need
+from HTTP::Daemon::ClientConn.
+---
+ lib/RPC/XML/Server.pm |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/RPC/XML/Server.pm b/lib/RPC/XML/Server.pm
+index 97a8c03..55c59c5 100644
+--- a/lib/RPC/XML/Server.pm
++++ b/lib/RPC/XML/Server.pm
+@@ -798,7 +798,7 @@ sub process_request ## no critic (ProhibitExcessComplexity)
+     );
+ 
+     my $me = ref($self) . '::process_request';
+-    if (! ($conn && ref $conn))
++    if (! ($conn && ref $conn && $conn->can('get_request')))
+     {
+         $conn = $self->{server}->{client};
+         bless $conn, 'HTTP::Daemon::ClientConn';
diff --git a/debian/patches/series b/debian/patches/series
index 8810115..be9a249 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-spelling-error-in-manpage.patch
+Net-Server-2.x-compatibility.patch

-- 
Debian packaging of librpc-xml-perl



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