1Building nixpkgs in non-chroot, NSS modules may fail
2and that will report EAI_SYSTEM in getaddrinfo.
3https://bugzilla.novell.com/show_bug.cgi?id=794696
4
5Index: guile-2.0.7/test-suite/tests/net-db.test
6===================================================================
7--- guile-2.0.7.orig/test-suite/tests/net-db.test
8+++ guile-2.0.7/test-suite/tests/net-db.test
9@@ -79,6 +79,7 @@
10 (and (defined? 'EAI_NODATA) ; GNU extension
11 (= errcode EAI_NODATA))
12 (= errcode EAI_AGAIN)
13+ (= errcode EAI_SYSTEM)
14 (begin
15 (format #t "unexpected error code: ~a ~s~%"
16 errcode (gai-strerror errcode))
17@@ -105,6 +106,7 @@
18 ;; `EAI_NONAME'.)
19 (and (or (= errcode EAI_SERVICE)
20 (= errcode EAI_NONAME)
21+ (= errcode EAI_SYSTEM)
22 (and (defined? 'EAI_NODATA)
23 (= errcode EAI_NODATA)))
24 (string? (gai-strerror errcode))))))))