Holger Levsen wrote (27 Nov 2012 10:34:39 GMT) : > I'd love you to prepare debian/patches/ for me to pull ;-) Even more awesome > if you'd accompany this with the commands to do it...)
OK. Previous one was a bit harder to apply, but here is a real Git patch, prepared with git format-patch, applicable with: $ git am $PATH_TO_PATCH (Don't be scared by whitespace errors, they are expected for a commit that introduces patches.)
>From 87f5621b8bec87de2725adae1ca4619489cc89e8 Mon Sep 17 00:00:00 2001 From: intrigeri <intrig...@debian.org> Date: Tue, 27 Nov 2012 12:04:56 +0100 Subject: [PATCH] Have master support multi-homed nodes that only listen on IPv4. (Closes: #678662) This is upstream commit a18229c5, thanks to Michael Renner <r...@amd.co.at> for the testing and the patch! --- .../240-master-connect-to-AAAA-and-A-address.patch | 30 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 31 insertions(+) create mode 100644 debian/patches/240-master-connect-to-AAAA-and-A-address.patch diff --git a/debian/patches/240-master-connect-to-AAAA-and-A-address.patch b/debian/patches/240-master-connect-to-AAAA-and-A-address.patch new file mode 100644 index 0000000..3486483 --- /dev/null +++ b/debian/patches/240-master-connect-to-AAAA-and-A-address.patch @@ -0,0 +1,30 @@ +commit a18229c522e1df5468a7dcb3a2f4c96aca56a761 +Author: Steve Schnepp <steve.schn...@pwkf.org> +Date: Tue Nov 27 07:28:43 2012 +0100 + + master: connect to AAAA and A address + + According to Michael Renner in D#678662 : + + The lack of the "MulitHomed" parameter causes IO::Socket::INET6 to give + preferential treatment to AAAA-addresses and fail if they don't yield a socket. + When enabling MultiHomed IO::Socket::INET6 will try all returned addresses. + + See http://search.cpan.org/~shlomif/IO-Socket-INET6-2.69/lib/IO/Socket/INET6.pm#CONSTRUCTOR for detailed information. + + Thx to Kelsey Cummings for reporting it on the ml. + + Closes: D#678662 + +diff --git a/master/lib/Munin/Master/Node.pm b/master/lib/Munin/Master/Node.pm +index 6549fbf..af9d69e 100644 +--- a/master/lib/Munin/Master/Node.pm ++++ b/master/lib/Munin/Master/Node.pm +@@ -86,6 +86,7 @@ sub _do_connect { + PeerPort => $self->{port} || 4949, + LocalAddr => $config->{local_address}, + Proto => 'tcp', ++ MultiHomed => 1, + Timeout => $config->{timeout} + ); + if (! $self->{reader} ) { diff --git a/debian/patches/series b/debian/patches/series index 4f43be9..715552f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 100-DejaVu-Fonts-Path.patch 237-hddtemp_smartctl-sata-detect.patch 238-munin-node-ipv6allow.patch +240-master-connect-to-AAAA-and-A-address.patch -- 1.7.10.4