Package: release.debian.org Severity: normal User: release.debian....@packages.debian.org Usertags: unblock
Dear Release Team, Please unblock package haproxy. The version in unstable enables the use of getaddrinfo() (instead of gethostbyname()) for hostname resolution, thus enabling IPv6 support when resolving backend addresses (see #862780). Enabling the use of getaddrinfo injects the following code in the hostname resolution path (src/standard.c): #ifdef USE_GETADDRINFO if (global.tune.options & GTUNE_USE_GAI) { struct addrinfo hints, *result; memset(&result, 0, sizeof(result)); memset(&hints, 0, sizeof(hints)); hints.ai_family = sa->ss_family ? sa->ss_family : AF_UNSPEC; hints.ai_socktype = SOCK_DGRAM; hints.ai_flags = 0; hints.ai_protocol = 0; if (getaddrinfo(str, NULL, &hints, &result) == 0) { if (!sa->ss_family || sa->ss_family == AF_UNSPEC) sa->ss_family = result->ai_family; else if (sa->ss_family != result->ai_family) goto fail; switch (result->ai_family) { case AF_INET: memcpy((struct sockaddr_in *)sa, result->ai_addr, result->ai_addrlen); set_host_port(sa, port); return sa; case AF_INET6: memcpy((struct sockaddr_in6 *)sa, result->ai_addr, result->ai_addrlen); set_host_port(sa, port); return sa; } } if (result) freeaddrinfo(result); } #endif We would like to have this change migrate to Stretch, as full IPv6 support has been a long-standing project goal and the change is not expected to have any negative side-effects. Full source debdiff attached. Thanks, Apollon unblock haproxy/1.7.5-2
diff -Nru haproxy-1.7.5/debian/changelog haproxy-1.7.5/debian/changelog --- haproxy-1.7.5/debian/changelog 2017-04-04 14:25:38.000000000 +0300 +++ haproxy-1.7.5/debian/changelog 2017-05-17 13:01:45.000000000 +0300 @@ -1,3 +1,11 @@ +haproxy (1.7.5-2) unstable; urgency=medium + + * Enable getaddrinfo() support, allowing resolution of hostnames to IPv6 + addresses (Closes: #862780). Thanks to Anton Eliasson + <de...@antoneliasson.se>! + + -- Apollon Oikonomopoulos <apoi...@debian.org> Wed, 17 May 2017 13:01:45 +0300 + haproxy (1.7.5-1) unstable; urgency=medium * New upstream version release (see CHANGELOG): diff -Nru haproxy-1.7.5/debian/rules haproxy-1.7.5/debian/rules --- haproxy-1.7.5/debian/rules 2017-04-04 14:25:27.000000000 +0300 +++ haproxy-1.7.5/debian/rules 2017-05-17 12:58:07.000000000 +0300 @@ -12,6 +12,7 @@ USE_OPENSSL=1 \ USE_ZLIB=1 \ USE_LUA=1 \ + USE_GETADDRINFO=1 \ LUA_INC=/usr/include/lua5.3 OS_TYPE = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)