guile: adding a patch to allow guile builds without chroots

Otherwise, the NSS troubles may make a test fail.

Patch suggested by ludo.

+25 -1
+1 -1
pkgs/development/interpreters/guile/default.nix
··· 29 29 30 30 enableParallelBuilding = true; 31 31 32 - patches = [ ./disable-gc-sensitive-tests.patch ] ++ 32 + patches = [ ./disable-gc-sensitive-tests.patch ./eai_system.patch ] ++ 33 33 (stdenv.lib.optional (coverageAnalysis != null) ./gcov-file-name.patch); 34 34 35 35 # Explicitly link against libgcc_s, to work around the infamous
+24
pkgs/development/interpreters/guile/eai_system.patch
··· 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 4 + 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))))))))