Browse Source

Work around test suite failure on IPv6-only build hosts. Closes: #964276

Christoph Biedl 3 years ago
parent
commit
f5637d9d14
2 changed files with 18 additions and 0 deletions
  1. 17 0
      debian/patches/fix-ipv6-only-buildhost.patch
  2. 1 0
      debian/patches/series

+ 17 - 0
debian/patches/fix-ipv6-only-buildhost.patch

@@ -0,0 +1,17 @@
+Subject: Fix race in testsuite
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Date: 2020-07-25
+Bug-Debian: https://bugs.debian.org/964276
+Forwarded: https://github.com/ngircd/ngircd/issues/281
+
+--- a/src/ngircd/resolve.c
++++ b/src/ngircd/resolve.c
+@@ -246,7 +246,7 @@
+ 	static struct addrinfo hints;
+ 
+ #ifdef AI_ADDRCONFIG	/* glibc has this, but not e.g. netbsd 4.0 */
+-	hints.ai_flags = AI_ADDRCONFIG;
++/*	hints.ai_flags = AI_ADDRCONFIG; */
+ #endif
+ 	hints.ai_socktype = SOCK_STREAM;
+ 	hints.ai_protocol = IPPROTO_TCP;

+ 1 - 0
debian/patches/series

@@ -1,2 +1,3 @@
 # patches that should go upstream
 fix-race-in-testsuite.patch
+fix-ipv6-only-buildhost.patch