<div dir="ltr">


On Mon, 8 Jun 2020 10:18:09 +0300 Niko Tyni <<a href="mailto:ntyni@debian.org">ntyni@debian.org</a>> wrote:<br>> On Sat, Jun 06, 2020 at 10:22:58AM +0300, Adrian Bunk wrote:<br>> > Source: libmojolicious-perl<br>> > Version: 8.52+dfsg-1<br>> > Severity: serious<br>> > Tags: ftbfs<br>> ><br>> > <a href="https://buildd.debian.org/status/logs.php?pkg=libmojolicious-perl&ver=8.52+dfsg-1">https://buildd.debian.org/status/logs.php?pkg=libmojolicious-perl&ver=8.52+dfsg-1</a><br>> ><br>> > ...<br>> > Can't create listen socket: Address family for hostname not supported at /<<PKGBUILDDIR>>/blib/lib/Mojo/IOLoop.pm line 123.<br>> > # Tests were run but no plan was declared and done_testing() was not seen.<br>> > ...<br>> > Failed 39/103 test programs. 0/6415 subtests failed.<br>> > make[2]: *** [Makefile:1393: test_dynamic] Error 22<br>> ><br>> ><br>> > See #962019 as example of a similar problem in another package.<br>><br>> This seems to be a wider issue. Copying the debian-perl list for<br>> discussion.<br>><br>> The root cause is that IO::Socket::IP defaults to passing AI_ADDRCONFIG<br>> to getaddrinfo(3) if no flags are explicitly specified. From the<br>> getaddrinfo(3) man page:<br>><br>>        If hints.ai_flags includes the AI_ADDRCONFIG flag, then IPv4<br>>        addresses are returned in the list pointed to by res only if<br>>        the local system has at least one IPv4 address configured, and<br>>        IPv6 addresses are returned only if the local system has at<br>>        least one IPv6 address configured.  The loopback address is  not<br>>        considered  for  this  case  as  valid  as  a configured address.<br>>        This flag is useful on, for example, IPv4-only systems, to ensure<br>>        that getaddrinfo() does not return IPv6 socket addresses that<br>>        would always fail in connect(2) or bind(2).<br>><br>> While this may be useful on IPv4-only systems, it breaks on systems with<br>> an IPv6-only network connection that still provide IPv4 on localhost. This<br>> appears to match the recent new official buildds where these failures<br>> happen.<br>><br>../..<br>> BTW, I noticed nodejs also fails (with test code listening on 127.0.0.1<br>> but client connecting to ::1) so at least we're not quite alone in this...
<div><br></div><div>Indeed nodejs has the same issue.</div><div>Is there a simple way to setup the network locally so i can reproduce it ?</div><div>Naive attempts (like disabling IPv4 on the wan network) failed.</div><div><br></div><div>Jérémy</div></div>