[SCM] Debian packaging of librpc-xml-perl branch, master, updated. debian/0.76-1-5-g0aac237

gregor herrmann gregoa at debian.org
Fri Apr 6 19:57:03 UTC 2012


The following commit has been merged in the master branch:
commit a5ff1cb0e79150f3b2cd5b43a416535567f91518
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Apr 6 21:49:54 2012 +0200

    Add patch 0001-Explicitly-use-an-IPv4-socket-in-the-Net-Server-test.patch:
    Use 127.0.0.1 to force IPv4 usage in test to avoid IPv6 problems in
    libnet-server-perl.
    
    Thanks: Niko Tyni for triaging the problem and creating the patch.
    Closes: #666651

diff --git a/debian/patches/0001-Explicitly-use-an-IPv4-socket-in-the-Net-Server-test.patch b/debian/patches/0001-Explicitly-use-an-IPv4-socket-in-the-Net-Server-test.patch
new file mode 100644
index 0000000..48d8f1d
--- /dev/null
+++ b/debian/patches/0001-Explicitly-use-an-IPv4-socket-in-the-Net-Server-test.patch
@@ -0,0 +1,47 @@
+Origin: vendor
+Bug: http://rt.cpan.org/Public/Bug/Display.html?id=76362
+Bug-Debian: http://bugs.debian.org/666651
+Forwarded: http://rt.cpan.org/Public/Bug/Display.html?id=76362
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2012-04-06
+
+
+From ea0ddab6381398a8907f8f91ae208d03c8d6013e Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Fri, 6 Apr 2012 13:47:04 +0300
+Subject: [PATCH] Explicitly use an IPv4 socket in the Net::Server test
+
+As seen in <http://bugs.debian.org/666651>, Debian specific
+IPv6 Net::Server patches made it prefer IPv6 for 'localhost'.
+Unfortunately HTTP::Daemon::ClientConn is IPv4-only, leading
+to test failures.
+
+Use 127.0.0.1 to force IPv4 usage for now, at least until
+libnet-server-perl is fixed.
+---
+ t/60_net_server.t |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/t/60_net_server.t b/t/60_net_server.t
+index 902d79a..bad2c10 100644
+--- a/t/60_net_server.t
++++ b/t/60_net_server.t
+@@ -50,13 +50,13 @@ start_server($srv,
+              log_level   => 4,
+              pid_file    => $pid_file,
+              port        => $port,
+-             host        => 'localhost',
++             host        => '127.0.0.1',
+              background  => 1);
+ sleep 1; # Allow time for server to spin up
+ # Unless we see "ok 2", we have a problem
+ ok(-e $pid_file, 'server started, PID file exists');
+ # After this point, we have the obligation of killing the server manually
+-$client = RPC::XML::Client->new("http://localhost:$port");
++$client = RPC::XML::Client->new("http://127.0.0.1:$port");
+ is($client->simple_request('system.identity'), $srv->product_tokens,
+    'system.identity matches $srv->product_tokens');
+ 
+-- 
+1.7.9.5
+
diff --git a/debian/patches/series b/debian/patches/series
index 8810115..5e8b785 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-spelling-error-in-manpage.patch
+0001-Explicitly-use-an-IPv4-socket-in-the-Net-Server-test.patch

-- 
Debian packaging of librpc-xml-perl



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