Subject: bug#13205: guile 2.0.7: net-db.test fails

From: [email-masked]
Date: Mon, 17 Dec 2012 14:18:26 +0100

Hi,

net-db.test fails in some cirtumstances (build changeroot) because glibc's
gettadrinfo() can return EAI_SYSTEM:

http://sourceware.org/ml/libc-alpha/2012-10/msg00611.html

rpm -q glibc
glibc-2.16.90-7.1.x86_64

Following patch fixed test for me:

Index: guile-2.0.7/test-suite/tests/net-db.test
===================================================================
--- guile-2.0.7.orig/test-suite/tests/net-db.test
+++ guile-2.0.7/test-suite/tests/net-db.test
@@ -79,6 +79,7 @@
                      (and (defined? 'EAI_NODATA)  ; GNU extension
                           (= errcode EAI_NODATA))
                      (= errcode EAI_AGAIN)
+                     (= errcode EAI_SYSTEM)
                      (begin
                        (format #t "unexpected error code: ~a ~s~%"
                                errcode (gai-strerror errcode))
@@ -105,6 +106,7 @@
             ;; `EAI_NONAME'.)
             (and (or (= errcode EAI_SERVICE)
                      (= errcode EAI_NONAME)
+                     (= errcode EAI_SYSTEM)
                      (and (defined? 'EAI_NODATA)
                           (= errcode EAI_NODATA)))
                  (string? (gai-strerror errcode))))))))

Thanks,
Petr

Few more details at:
https://bugzilla.novell.com/show_bug.cgi?id=794696