diff -Nru libnet-traceroute-perl-1.15/debian/changelog libnet-traceroute-perl-1.15/debian/changelog --- libnet-traceroute-perl-1.15/debian/changelog 2021-01-19 15:57:34.000000000 +0000 +++ libnet-traceroute-perl-1.15/debian/changelog 2021-12-24 00:28:46.000000000 +0000 @@ -1,3 +1,14 @@ +libnet-traceroute-perl (1.15-3) unstable; urgency=medium + + * Update fragile-tests.patch. + Traceroute 127.0.0.1 instead of the hostname, as the latter might not be + in /etc/hosts. + Thanks to Lucas Nussbaum for the bug report and help in analyzing. + (Closes: #1002229) + * Declare compliance with Debian Policy 4.6.0. + + -- gregor herrmann Fri, 24 Dec 2021 01:28:46 +0100 + libnet-traceroute-perl (1.15-2) unstable; urgency=medium [ Salvatore Bonaccorso ] diff -Nru libnet-traceroute-perl-1.15/debian/control libnet-traceroute-perl-1.15/debian/control --- libnet-traceroute-perl-1.15/debian/control 2021-01-19 15:57:34.000000000 +0000 +++ libnet-traceroute-perl-1.15/debian/control 2021-12-24 00:28:46.000000000 +0000 @@ -7,7 +7,7 @@ Build-Depends: debhelper-compat (= 13) Build-Depends-Indep: perl, traceroute -Standards-Version: 4.5.1 +Standards-Version: 4.6.0 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libnet-traceroute-perl Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libnet-traceroute-perl.git Homepage: https://metacpan.org/release/Net-Traceroute diff -Nru libnet-traceroute-perl-1.15/debian/patches/fragile-tests.patch libnet-traceroute-perl-1.15/debian/patches/fragile-tests.patch --- libnet-traceroute-perl-1.15/debian/patches/fragile-tests.patch 2021-01-19 15:57:34.000000000 +0000 +++ libnet-traceroute-perl-1.15/debian/patches/fragile-tests.patch 2021-12-24 00:28:46.000000000 +0000 @@ -1,17 +1,30 @@ Description: mark tests as TODO They can fail under several circumstances, eg. more than one IPv4 address; no IPv4 address; no network access except localhost. + . + Additionally, traceroute to 127.0.0.1 instead of the hostname, as the + latter might not be in /etc/hosts. Origin: vendor +Bug: https://rt.cpan.org/Ticket/Display.html?id=134067 Bug-Debian: https://bugs.debian.org/849933 https://bugs.debian.org/980475 -Author: gregor herrmann -Last-Update: 2021-01-19 + https://bugs.debian.org/1002229 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=134067 -Bug: https://rt.cpan.org/Ticket/Display.html?id=134067 +Author: gregor herrmann +Last-Update: 2021-12-24 --- a/t/95-sys-traceroute.t +++ b/t/95-sys-traceroute.t -@@ -68,5 +68,10 @@ +@@ -52,6 +52,8 @@ + # Get this sytem's hostname, and traceroute to it. Don't bother + # trying localhost; its quirky on systems like netbsd. + my $name = hostname(); ++# Use 127.0.0.1, the hostname might not be in /etc/hosts; cf. #1002229 ++$name = '127.0.0.1'; + + # Wrinkle: while our specification is that we will use whatever + # traceroute is in path, it's pretty common for testing to be done +@@ -68,5 +70,10 @@ my $packed_addr = inet_aton($name); my $addr = inet_ntoa($packed_addr);