Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / interpreters / guile / eai_system.patch
blobb0eb7ac44dae75f25c71bee8430e03cd33fb5036
1 Building nixpkgs in non-chroot, NSS modules may fail
2 and that will report EAI_SYSTEM in getaddrinfo.
3 https://bugzilla.novell.com/show_bug.cgi?id=794696
5 Index: 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))))))))